@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* ===========================
   GENEL AYARLAR
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    color: var(--color-text-primary);
    font-family: 'Ubuntu', sans-serif !important;
    background-color: var(--color-bg-dark) !important;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
}

.content {
    background: var(--color-bg-light) !important;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 80px;
}

body.catalog .content .main {
    padding-top: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

.box-shadow {
    -webkit-box-shadow: 0px 0px 15px var(--color-shadow);
    box-shadow: 0px 0px 15px var(--color-shadow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6, .col-sm-6, .col-md-4, .col-lg-3 {
    padding: 0 15px;
    margin-bottom: 30px;
    width: 50%;
}

.col-4 {
    width: 33.333%;
    padding: 0 8px;
    margin-bottom: 20px;
}

.col-6 {
    width: 50%;
}

.col-12 {
    width: 100%;
    padding: 0 15px;
}

.ta-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* ===========================
   PRELOADER
   =========================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.logo-loader {
    margin-bottom: 30px;
    text-align: center;
}

.preloader-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    animation: logoFloat 2s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-10px);
    }
}

.spinner_container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.spinner-grow {
    width: 1rem;
    height: 1rem;
    background: var(--color-primary);
    border-radius: 50%;
    animation: spinner-grow 0.75s linear infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.spinner-grow:nth-child(2) {
    animation-delay: 0.15s;
}

.spinner-grow:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes spinner-grow {
    0%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   YAN MENÜ (SLIDE MENU)
   =========================== */
#menu {
    display: block;
    position: fixed;
    top: 0;
    left: -170px;
    width: 170px;
    padding: 10px 0;
    margin: 0;
    height: auto;
    max-height: 100vh;
    list-style: none;
    overflow: visible;
    z-index: 999;
    background: var(--color-primary);
    transition: left 0.3s ease;
}

body.menu-visible #menu {
    left: 0;
}

/* Menü overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

body.menu-visible .menu-overlay {
    display: block;
}

#menu li {
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

#menu li.active {
    background: color-mix(in srgb, var(--color-secondary) 20%, transparent);
}

#menu li.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--color-secondary) transparent transparent;
}

#menu li a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: var(--color-text-light);
    transition: background 0.3s ease;
}

#menu li a:hover {
    background: color-mix(in srgb, var(--color-text-light) 5%, transparent);
}

#menu li a img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

#menu li a span.name {
    font-size: 13px;
    flex: 1;
}

/* ===========================
   ANA SAYFA
   =========================== */
.header {
    padding: 10px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.header_top ul {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header_top ul li {
    position: relative;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 5px;
}

.header_top ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--color-text-light);
    cursor: pointer;
}

.header_top ul li.multi ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-primary);
    min-width: 100%;
    list-style: none;
    padding: 0;
    margin-top: 5px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header_top ul li.multi.active ul {
    display: block;
}

.header_top ul li.multi ul li {
    border: none;
    border-bottom: 1px solid var(--color-border);
}

.header_top ul li.multi ul li:last-child {
    border-bottom: none;
}

.header_top ul li.multi ul li a {
    padding: 10px 15px;
}

.header_top ul li.facebook a:hover {
    color: #3b5998;
}

.header_top ul li.twitter a:hover {
    color: #1da1f2;
}

.header_top ul li.pinterest a:hover {
    color: #bd081c;
}

.header_top ul li.linkedin a:hover {
    color: #0077b5;
}

/* Banner / Logo */
.home .banner {
    background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=1200&h=800&fit=crop');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    height: 55vh;
    position: relative;
    margin-bottom: 0;
}

.home .banner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
   /* background: linear-gradient(to bottom, rgba(236, 236, 236, 0) 0%, rgba(236, 236, 236, 1) 100%);*/
    z-index: 1;
}

body.home .logo {
    position: absolute;
    bottom: -75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 50%;
    max-width: 150px;
    border-radius: 20px;
    background-color: var(--color-primary);
    padding: 0 10px;
    box-shadow: 0px 0px 5px rgb(64, 56, 56);
    -webkit-box-shadow: 0px 0px 5px rgb(64, 56, 56);
}

body.home .logo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 10px 0;
}

/* Ana Kategori Butonları */
.body_menu {
    padding: 120px 20px 40px;
    width: 100%;
    position: relative;
}

.home-categories-row {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto !important;
}

.home_menu_button {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 280px;
    min-width: 200px;
    margin: 0;
}

.home_menu_button a {
    display: block;
    margin: 0 auto;
    color: var(--color-text-light);
    padding: 22px 30px;
    background: var(--color-primary);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 300;
    /*font-family: 'Cormorant Garamond', serif;*/
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

.home_menu_button a:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--color-accent);
}

/* Sosyal Medya İkonları */
.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    font-size: 24px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--color-accent);
}

/* ===========================
   KATEGORİ SAYFALARI
   =========================== */
.main_header {
    background: color-mix(in srgb, var(--color-bg-card) 95%, transparent);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.main_header .header_left {
    flex: 1;
    min-width: 0;
}

.main_header .logo {
    flex: 0 0 auto;
    text-align: center;
}

.main_header .header_top {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main_header .header_top ul {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main_header .header_top ul li {
    position: relative;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
}

.main_header .header_top ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 12px;
    min-height: 32px;
}

.main_header .header_top ul li a i {
    font-size: 14px;
}

.main_header .header_top ul li.multi ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-primary);
    min-width: 100%;
    list-style: none;
    padding: 0;
    margin-top: 5px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.main_header .header_top ul li.multi.active ul {
    display: block;
}

.main_header .header_top ul li.multi ul li {
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
}

.main_header .header_top ul li.multi ul li:last-child {
    border-bottom: none;
}

.main_header .header_top ul li.multi ul li a {
    padding: 8px 12px;
}

.logo-text-small {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Top Bar (Menü Toggle) */
.top_bar {
    padding: 15px 20px;
    background: transparent;
}

#toggle-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 25px;
    box-shadow: 2px 0px 15px rgb(119, 112, 105);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

#toggle-menu .text {
    font-weight: 400;
    font-size: 10px;
}

/* Hamburger Icon */
#nav-icon1 {
    width: 25px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon1 span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-text-light);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

#nav-icon1 span:nth-child(1) {
    top: 0px;
}

#nav-icon1 span:nth-child(2) {
    top: 8px;
}

#nav-icon1 span:nth-child(3) {
    top: 16px;
}

#nav-icon1.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

#nav-icon1.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#nav-icon1.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.go_home {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: bold;
}

/* Elegant Back Button */
.elegant-back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
}

.elegant-back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--color-accent) 0%, color-mix(in srgb, var(--color-accent) 90%, black) 100%);
}

.elegant-back-button .back-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.elegant-back-button:hover .back-icon {
    transform: translateX(-3px);
}

.elegant-back-button .back-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hide old breadcrumb */
ul.breadcrumb {
    display: none;
}

/* Ana İçerik */
.main.category {
    padding: 20px 0 40px;
}

.main.category h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    margin-top: 15px;
    font-weight: 700;
    text-align: left;
}

/* Ürün Kartları */
.product {
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.product .image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.product .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover .image img {
    transform: scale(1.1);
}

.product .detail {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product .detail .name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    height: 1.8em; /* Fixed height for exactly 2 lines (1.2 * 1.5 = 1.8em) */
    min-height: 1.8em;
    max-height: 1.8em;
}

.product .detail .description {
    display: none;
}

.product .detail .price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: right;
    margin-top: auto;
}

.product .detail .product-variants {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product .detail .product-variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    padding: 2px 0;
}

.product .detail .product-variant-name {
    color: var(--color-text-light);
    opacity: 0.9;
    font-weight: 400;
}

.product .detail .product-variant-price {
    color: var(--color-secondary);
    font-weight: 600;
}

.category-box {
    cursor: default;
}

.category-box .detail {
    text-align: center;
    padding: 15px;
}

.category-box .image {
    height: 180px;
}

.category-box .detail .name {
    font-size: 0.95rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    height: 2.28em; /* Fixed height for exactly 2 lines (1.2 * 1.9 = 2.28em) */
    min-height: 2.28em;
    max-height: 2.28em;
}

/* Resim olmayan kategoriler ve ürünler için stil */
.product.no-image {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product.no-image .detail.full-height {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.product.no-image .detail.full-height .name {
    font-size: 1.1rem;
    font-weight: 600;
    height: auto;
    min-height: auto;
    max-height: none;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Ürünler için resim olmayan durum */
.product-item.no-image {
    min-height: 150px;
}

.product-item.no-image .detail.full-height {
    min-height: 150px;
}

.product-item.no-image .detail.full-height .name {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-item.no-image .detail.full-height .price,
.product-item.no-image .detail.full-height .product-variants {
    margin-top: auto;
    width: 100%;
}

/* ===========================
   PRODUCT MODAL
   =========================== */
.product-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.product-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--color-bg-card);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: 300;
    color: var(--color-text-primary);
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--color-secondary);
    color: white;
}

.modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.modal-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    max-height: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Resim olmayan durumda modal-info tam genişlikte */
.modal-info.no-image {
    flex: 1;
    max-width: 100%;
    width: 100%;
}

.modal-info h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.modal-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.modal-price-section {
    padding: 15px 0;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    text-align: right;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.modal-variants {
    margin-top: 20px;
}

.modal-variants h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.variant-item:hover {
    opacity: 0.8;
}

.variant-name {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.variant-price {
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 700;
}

/* ===========================
   COPYRIGHT
   =========================== */
.copyright {
    background: linear-gradient(60deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    padding: 15px 0;
    text-align: center;
    border-radius: 0;
    margin-bottom: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.copyright > a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.copyright marquee,
.copyright .marque {
    font-size: 13px;
    line-height: 30px;
    margin: 0;
    display: block;
    text-align: center;
}

.copyright img {
    max-width: 70px;
    height: auto;
    display: block;
    margin: 10px auto 0;
}

.copyright .container {
    max-width: 100%;
}

.copyright .d-flex {
    display: flex !important;
}

.copyright .justify-content-center {
    justify-content: center !important;
}

/* ===========================
   PAGE TRANSITION
   =========================== */
#page {
    padding-bottom: 0;
    margin-bottom: 0;
    width: 100%;
}

/* Blur Effect for Images */
.blur {
    filter: blur(15px);
    transform: scale(1.1);
    transition: all 0.6s ease;
}

.medium-img img {
    transition: all 0.6s ease;
}

.no-blur {
    filter: blur(0) !important;
    transform: scale(1) !important;
}

/* Placeholder background for loading images */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===========================
   RESPONSİVE TASARIM
   =========================== */
/* Alt kategoriler için 2 tane yan yana */
@media (min-width: 576px) {
    .col-sm-6 {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        width: 50%;
    }
}

/* Ürünler için her zaman 3 tane yan yana */
@media (max-width: 575px) {
    .col-4 {
        width: 33.333%;
    }
}

@media (max-width: 767px) {
    body.home .logo {
        bottom: -60px;
        width: 60%;
        max-width: 130px;
    }
    
    body.home .logo img {
        padding: 8px 0;
    }
    
    .home .banner {
        height: 45vh;
    }
    
    .body_menu {
        padding: 90px 20px 40px;
    }
    
    .home-categories-row {
        gap: 15px;
    }
    
    .home_menu_button {
        flex: 0 1 calc(33.333% - 15px);
        max-width: none;
        min-width: 120px;
    }
    
    .home_menu_button a {
        font-size: 1rem;
        padding: 18px 20px;
    }
    
    .main_header {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .logo-text-small {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .main_header .header_top ul {
        gap: 4px;
    }
    
    .main_header .header_top ul li a {
        padding: 5px 8px;
        font-size: 11px;
        min-height: 28px;
    }
    
    .main_header .header_top ul li a i {
        font-size: 12px;
    }
    
    .main.category h1 {
        font-size: 1.5rem;
    }
    
    .elegant-back-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .elegant-back-button .back-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    /* Mobilde de yan yana 2 tane */
    .col-6 {
        width: 50%;
    }
    
    body.home .logo {
        bottom: -50px;
        width: 70%;
        max-width: 110px;
    }
    
    body.home .logo img {
        padding: 6px 0;
    }
    
    .home .banner {
        height: 40vh;
    }
    
    .body_menu {
        padding: 100px 15px 30px;
    }
    
    .home-categories-row {
        gap: 12px;
    }
    
    .home_menu_button {
        flex: 0 1 calc(33.333% - 12px);
        max-width: none;
        min-width: 100px;
    }
    
    .home_menu_button a {
        font-size: 0.9rem;
        padding: 16px 15px;
    }
    
    .social-media-icons {
        gap: 12px;
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }
    
    .social-icon i {
        font-size: 20px;
    }
    
    .main_header {
        padding: 5px 8px;
        gap: 5px;
    }
    
    .logo-text-small {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .main_header .header_top ul {
        gap: 3px;
    }
    
    .main_header .header_top ul li a {
        padding: 4px 6px;
        font-size: 10px;
        min-height: 26px;
    }
    
    .main_header .header_top ul li a i {
        font-size: 11px;
    }
    
    /* Mobilde ürün kartlarını daha küçük yap */
    .product .image {
        height: 100px;
    }
    
    .product .detail {
        padding: 8px;
    }
    
    .product .detail .name {
        font-size: 0.7rem;
        height: 2.68em; /* Fixed height for exactly 2 lines on mobile (1.2 * 1.4 = 1.68em) */
        min-height: 1.68em;
        max-height: 2.68em;
    }
    
    .product .detail .price {
        font-size: 0.75rem;
    }
    
    .col-4 {
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    /* Alt kategoriler mobilde de 2'şer */
    .category-box .image {
        height: 140px;
    }
    
    .category-box .detail {
        padding: 12px;
    }
    
    .category-box .detail .name {
        font-size: 0.85rem;
        height: 3.04em; /* Fixed height for exactly 2 lines on mobile (1.2 * 1.7 = 2.04em) */
        min-height: 2.04em;
        max-height: 3.04em;
    }
    
    /* Mobilde resim olmayan kategoriler ve ürünler */
    .product.no-image {
        min-height: 140px;
    }
    
    .product.no-image .detail.full-height {
        min-height: 140px;
        padding: 15px;
    }
    
    .product.no-image .detail.full-height .name {
        font-size: 1rem;
    }
    
    .product-item.no-image {
        min-height: 120px;
    }
    
    .product-item.no-image .detail.full-height {
        min-height: 120px;
        padding: 12px;
    }
    
    .product-item.no-image .detail.full-height .name {
        font-size: 0.85rem;
    }
    
    /* Modal responsive */
    .modal-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .modal-image {
        flex: 1;
        max-width: 100%;
    }
    
    .modal-info h2 {
        font-size: 1.4rem;
    }
    
    .modal-price {
        font-size: 1rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 30px;
    }
    
    .elegant-back-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .elegant-back-button .back-icon {
        font-size: 1rem;
    }
    
    .main.category h1 {
        font-size: 1.3rem;
    }
    
    .copyright {
        padding: 3px 0;
    }
    
    .copyright marquee,
    .copyright .marque {
        font-size: 10px;
        line-height: 24px;
    }
    
    .copyright img {
        max-width: 50px;
        margin-top: 8px;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .content {
        padding-bottom: 60px;
    }
    
    /* Preloader responsive */
    .preloader-logo {
        max-width: 150px;
        max-height: 150px;
    }
    
    .logo-loader {
        margin-bottom: 20px;
    }
}