:root {
    --primary: #20499A; /* Carvolix Blue */
    --primary-hover: #183774;
    --secondary: #FF6B00; /* Attention color for Add to Cart / Badges */
    --secondary-hover: #E65A00;
    --text-dark: #222222;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --container-width: 1300px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
}

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

ul {
    list-style: none;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-gray);
}

.top-bar-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-right a {
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.top-bar-right a:hover {
    color: var(--primary);
}

/* --- Header --- */
header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* GPU Hardware Acceleration to prevent scrolling jitter on mobile */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.header-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.95rem;
    outline: none;
}

.search-container .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-container button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-container button:hover {
    background-color: var(--primary-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.action-item:hover {
    color: var(--primary);
}

.action-item svg {
    width: 24px;
    height: 24px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* --- Category Nav --- */
.category-nav {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    /* GPU Hardware Acceleration to prevent scrolling jitter on mobile */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.category-nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    /* CSS Masking ile kenarlardan yumuşak kaybolma efekti (Bloom/Fade/Sis) */
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.category-nav ul {
    display: flex;
    gap: 2rem;
    padding: 0 3rem; /* Sis boşluğu kadar alan bırak */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth; /* Smooth scroll */
    cursor: grab; /* Mouse imleci için tutma işareti */
}

/* Sürükleme sırasında smooth-scroll'u kapat ki mouse 1:1 takip edilebilsin */
.category-nav ul.dragging {
    scroll-behavior: auto !important;
}

.category-nav ul::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-nav a {
    display: block;
    padding: 0.8rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.category-nav a:hover, .category-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* --- Banners / Hero --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

.banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.banner {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-color: #10254e;
    box-shadow: var(--shadow-sm);
    height: 320px;
}

.banner .banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.banner .banner-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.banner:hover .banner-bg-img img {
    transform: scale(1.02);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, rgba(16, 37, 78, 0.98) 0%, rgba(16, 37, 78, 0.95) 25%, rgba(16, 37, 78, 0.75) 50%, rgba(16, 37, 78, 0.3) 75%, rgba(16, 37, 78, 0) 100%);
    color: white;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 50%;
}

.banner-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    align-self: flex-start;
    transition: background 0.2s;
    z-index: 3;
}

.banner-btn:hover {
    background-color: var(--primary-hover);
}

.banner.small .banner-content {
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    justify-content: flex-end;
}

.banner.small h2 {
    font-size: 1.5rem;
}

/* --- Trust Features --- */
.trust-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-box {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.feature-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

/* --- Section Title --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    width: fit-content;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* --- E-commerce Product Card --- */
.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    z-index: 2;
}

.product-image-container {
    position: relative;
    padding: 1rem;
    background: #fff;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-gray);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    z-index: 10;
}

.favorite-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.favorite-btn.active {
    color: var(--secondary);
    border-color: var(--secondary);
}

.product-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid var(--border-color);
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.product-rating svg {
    color: #FFC107;
    width: 14px;
    height: 14px;
    fill: #FFC107;
}

.product-rating span {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-left: 0.2rem;
}

.product-price-container {
    margin-top: auto;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.free-shipping {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.product-card:hover .add-to-cart-btn {
    background-color: var(--primary);
    color: white;
}

/* --- Footer --- */
footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 4rem 1rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-category-grid {
    display: flex;
    gap: 2rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-instagram-link, .footer-email-link, .footer-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-instagram-link:hover, .footer-email-link:hover, .footer-whatsapp-link:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Premium Sort Button --- */
.sort-options {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.sort-options select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.45rem 1.75rem 0.45rem 2.25rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.sort-options select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32, 73, 154, 0.08);
}
.sort-options::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2320499A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cpolyline points='19 12 12 19 5 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .banners-grid { grid-template-columns: 1fr; }
    .banner.small { display: none; }
    .trust-features { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-main { flex-wrap: wrap; gap: 1rem; }
    .search-container { order: 3; max-width: 100%; flex-basis: 100%; }
    .banner {
        height: 200px;
    }
    .banner .banner-bg-img {
        width: 100%;
        left: 0;
        right: auto;
    }
    .banner .banner-bg-img img {
        width: 115%;
        max-width: none;
        object-position: 85% center;
    }
    .banner-content {
        width: 100%;
        padding: 1.5rem;
        background: linear-gradient(to right, rgba(16, 37, 78, 0.95) 0%, rgba(16, 37, 78, 0.8) 55%, rgba(16, 37, 78, 0.2) 100%);
    }
    .banner-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    .banner-content p {
        font-size: 0.8rem;
        max-width: 80%;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    .banner-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    .trust-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .trust-features .feature-box {
        padding: 0.75rem 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
    .trust-features .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    .trust-features .feature-text h4 {
        font-size: 0.8rem;
    }
    .trust-features .feature-text p {
        font-size: 0.7rem;
        margin-top: 0.1rem;
        line-height: 1.2;
    }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-category-grid { flex-direction: column; gap: 0.8rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-image-container { padding: 0.5rem; }
    .product-title { font-size: 0.85rem; }
    .product-price { font-size: 1.1rem; }
    .add-to-cart-btn { padding: 0.5rem; font-size: 0.8rem; }
    
    /* Mobile Category Pills Scroll */
    .category-nav {
        display: block !important;
        padding: 0.75rem 0 !important;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        /* GPU Hardware Acceleration to prevent scrolling jitter on mobile */
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        will-change: transform !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    .category-nav-inner {
        padding: 0 !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    }
    .category-nav ul {
        padding: 0.1rem 1rem !important;
        gap: 0.6rem !important;
    }
    .category-nav a {
        padding: 0.4rem 1rem !important;
        background-color: #f3f4f6 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 30px !important;
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        color: var(--text-gray) !important;
        border-bottom: none !important;
        transition: all 0.25s ease !important;
    }
    .category-nav a:hover, .category-nav a.active {
        background-color: var(--primary) !important;
        color: white !important;
        border-color: var(--primary) !important;
        box-shadow: 0 2px 4px rgba(32, 73, 154, 0.15);
    }

    .section-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 1.25rem !important;
        border-bottom: 2px solid var(--border-color) !important;
        padding-bottom: 0.5rem !important;
    }
    .section-header h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0 !important;
    }
    .filter-controls {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: auto !important;
    }

    /* Premium Sort Button styling on Mobile */
    .sort-options {
        position: relative;
        display: inline-flex;
        align-items: center;
    }
    .sort-options select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        padding: 0.35rem 1.4rem 0.35rem 1.75rem !important;
        border-radius: 30px !important;
        border: 1px solid var(--border-color) !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        background-color: var(--bg-white) !important;
        color: var(--text-dark) !important;
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.55rem center !important;
        background-size: 8px !important;
        box-shadow: var(--shadow-sm) !important;
        transition: all 0.2s ease !important;
    }
    .sort-options select:hover {
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 3px rgba(32, 73, 154, 0.08) !important;
    }
    .sort-options::before {
        content: "" !important;
        position: absolute !important;
        left: 0.6rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 11px !important;
        height: 11px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2320499A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cpolyline points='19 12 12 19 5 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        pointer-events: none !important;
        z-index: 5 !important;
    }
}

/* --- Modal CSS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-white);
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    min-height: 450px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 100%;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: var(--text-dark);
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--bg-white);
    color: var(--primary);
    transform: scale(1.1);
}

.modal-left {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    position: relative;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
}

.modal-left img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: auto;
    border: 1.5px solid #d1d5db;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1rem;
    background-color: #fbfbfb;
    border-radius: 8px;
}

.modal-right {
    grid-column: 2;
    grid-row: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    border-left: 1px solid var(--border-color);
}

.modal-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.modal-rating-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.modal-rating-container svg {
    color: #FFC107;
    width: 16px;
    height: 16px;
    fill: #FFC107;
}

.modal-rating-container span {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-price-container {
    background-color: var(--bg-main);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.modal-price-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.2rem;
}

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

.modal-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    white-space: pre-line;
}

.modal-specs {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.modal-spec-item svg {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.modal-buy-btn {
    flex: 1;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: var(--shadow-md);
}

.modal-buy-btn:hover {
    background-color: var(--primary-hover);
}

.modal-buy-btn:active {
    transform: scale(0.98);
}

.modal-fav-btn {
    background-color: var(--bg-white);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-fav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-fav-btn.active {
    color: var(--secondary);
    border-color: var(--secondary);
    background-color: rgba(255, 107, 0, 0.05);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        height: auto;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        overflow-y: auto;
        height: 100%;
        flex: 1;
    }
    
    .modal-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 101;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: var(--shadow-sm);
    }
    
    .modal-left {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    }
    
    .modal-right {
        grid-column: 1;
        grid-row: 2;
        height: auto;
        overflow-y: visible;
        padding: 1.5rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .modal-left img {
        max-height: 250px;
    }
}

/* --- Reviews System CSS --- */
.modal-reviews-section {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.reviews-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

/* Custom scrollbar for reviews list */
.reviews-list::-webkit-scrollbar {
    width: 6px;
}
.reviews-list::-webkit-scrollbar-track {
    background: transparent;
}
.reviews-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.no-reviews {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem 0;
}

.review-item {
    background-color: var(--bg-main);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.review-stars {
    display: flex;
    gap: 0.1rem;
    margin-bottom: 0.5rem;
}

.review-stars svg {
    width: 12px;
    height: 12px;
    fill: #FFC107;
    color: #FFC107;
}

.review-stars svg.empty {
    fill: #e5e7eb;
    color: #e5e7eb;
}

.review-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Yorum Yazma Formu */
.review-form {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.review-form h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.star-rating-selector {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.rating-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
}

.stars-select {
    display: flex;
    gap: 0.3rem;
}

.star-select-item {
    cursor: pointer;
    color: #e5e7eb;
    transition: color 0.1s, transform 0.1s;
}

.star-select-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.star-select-item.active {
    color: #FFC107;
}

.star-select-item:hover {
    transform: scale(1.1);
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.form-actions-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.submit-review-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-review-btn:hover {
    background-color: var(--primary-hover);
}

.cancel-edit-btn {
    background-color: #f3f4f6;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-edit-btn:hover {
    background-color: #e5e7eb;
    color: var(--text-dark);
}

.review-meta-left {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.review-actions-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.review-action-btn {
    background: none;
    border: none;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.review-action-btn.edit-btn {
    color: var(--primary);
    background-color: rgba(32, 73, 154, 0.05);
}

.review-action-btn.edit-btn:hover {
    color: white;
    background-color: var(--primary);
}

.review-action-btn.delete-btn {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.review-action-btn.delete-btn:hover {
    color: white;
    background-color: #ef4444;
}


