@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Ubuntu:wght@400;500;700&display=swap');

html {
    overflow-y: scroll;
}

:root {
    --bg-base: radial-gradient(circle at 50% 40%, #c7ccd4 0%, #a3a8b0 50%, #767a82 80%, #4e5156 100%);
    --bg-surface: rgba(255, 255, 255, 0.45);
    --bg-surface-hover: rgba(255, 255, 255, 0.65);
    --border-color: rgba(255, 255, 255, 0.45);
    --text-primary: #111827;
    --text-secondary: #374151;
    --accent-primary: #0ea5e9;
    --accent-hover: #0284c7;
    --accent-orange: #f59e0b;
    --accent-orange-hover: #d97706;
    --accent-emerald: #10b981;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 32px rgba(31, 38, 135, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --bg-mega-menu: #f1f5f9; /* default fume solid background */
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --border-color: rgba(0, 0, 0, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --bg-mega-menu: #ffffff; /* light solid white */
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: var(--border-color); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary); 
}

body {
    background: var(--bg-base);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: clip;
    min-height: 100vh;
}

/* Header Container */
.main-header {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.05));
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
}

.logo-text {
    font-family: 'Ubuntu', sans-serif; /* Trendyol'un kullandığı şık ve modern yazı stili */
    font-size: 2.3rem; /* harf detaylarını en net gösteren dengeli boyut */
    font-weight: 700; /* Trendyol logosundaki gibi tok ve net duruş */
    font-style: normal; /* Harfler tamamen dik/düz duracak */
    display: inline-block;
    transform: none; /* Eğiklik kaldırıldı */
    line-height: 1; /* Dikey kapladığı alanı büyütmemek için */
    letter-spacing: 0.5px; /* Harfler hafif aralıklı ve çok daha ferah */
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Bar */
.search-wrapper {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 18px 10px 44px;
    border-radius: 50px;
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    color: #111827;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.search-input::placeholder {
    color: #6b7280;
}
.search-input:focus {
    border-color: var(--accent-primary);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.action-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(14, 165, 233, 0.3);
}

.btn-login {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: var(--accent-hover);
}

/* --- CATEGORY NAVBAR & MEGA TRIGGER STANDARDI --- */
.category-navbar {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    position: relative;
    z-index: 90;
}

.navbar-container {
    max-width: 100%;
    width: 100%;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

.dropdown-trigger-wrapper {
    position: relative;
    flex-shrink: 0;
}

.mega-trigger-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.mega-trigger-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.mega-menu-overlay {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 780px;
    background: var(--bg-mega-menu, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.mega-menu-overlay.active {
    display: flex;
}

.mega-menu-left-sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 12px 0;
    flex-shrink: 0;
}

.mega-menu-cat-item {
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s, color 0.15s;
}

.mega-menu-cat-item:hover, .mega-menu-cat-item.active {
    background: var(--bg-surface-hover);
    color: var(--accent-primary);
}

.mega-menu-right-grid {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 480px;
    overflow-y: auto;
}

.categories-container {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.category-pill:hover, .category-pill.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
}

/* Main Layout Grid */
.main-layout {
    max-width: 100%;
    width: 100%;
    margin: 24px 0;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Sidebar Filters */
.filter-sidebar {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-label input {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
}

/* Products Grid */
.products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product Card */
.product-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    height: 160px;
    background: var(--bg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-icon {
    font-size: 4.5rem;
    opacity: 0.9;
}

.badge-wholesale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-orange);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.badge-retail {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-emerald);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-vendor {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: bold;
}

.product-name {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.35;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #f59e0b;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
}

.product-min-order {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.add-cart-btn {
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-cart-btn.wholesale {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.add-cart-btn.retail {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.add-cart-btn:hover {
    transform: scale(1.1);
}

/* Modal Styling & Scroll Lock */
body.modal-open, html.modal-open {
    overflow: hidden !important;
    touch-action: none !important;
    height: 100% !important;
    max-height: 100vh !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    overscroll-behavior: contain;
    touch-action: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    touch-action: auto;
    overscroll-behavior: contain;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.modal-close {
    background: var(--bg-surface-hover);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Product Detail Modal Specifics */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .main-layout {
        grid-template-columns: 1fr;
    }
}

.detail-img-container {
    height: 250px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-top: 16px;
}

.detail-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.detail-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-panel {
    display: none;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-top: 12px;
}

.tab-panel.active {
    display: block;
}

/* Cart & Purchase Section */
.purchase-box {
    margin-top: auto;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-surface);
}

.qty-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.action-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    color: white;
}

.action-submit-btn.wholesale {
    background: var(--accent-orange);
    color: #000;
}

.action-submit-btn.wholesale:hover {
    background: var(--accent-orange-hover);
}

.action-submit-btn.retail {
    background: var(--accent-emerald);
}

.action-submit-btn.retail:hover {
    background: #059669;
}

/* Reviews Styling */
.review-item {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

/* Cart Modal Specifics */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-vendor {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-remove-cart {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-total-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (PDP) STYLES (TRENDYOL STYLE FULL WIDTH VIEW)
   ========================================================================== */

.pdp-breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.pdp-breadcrumbs a:hover {
    color: var(--accent-primary);
}

.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pdp-left-col {
        border-right: none;
        padding-right: 0;
    }
    .pdp-right-col {
        padding-left: 0;
    }
}

.pdp-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.pdp-right-col {
    display: flex;
    flex-direction: column;
    padding-left: 30px;
}

.pdp-gallery-main {
    height: 380px;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pdp-gallery-main .pdp-icon {
    font-size: 10rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.pdp-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdp-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.pdp-vendor-name {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdp-product-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.pdp-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.pdp-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}

.pdp-reviews-count {
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.pdp-price-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: bold;
}

.pdp-price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
}

.pdp-stock-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdp-merchant-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    background: rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp-merchant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-merchant-info {
    display: flex;
    flex-direction: column;
}

.pdp-merchant-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.pdp-merchant-score {
    background: var(--accent-emerald);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.pdp-merchant-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.pdp-merchant-btn:hover {
    background: var(--bg-surface-hover);
}

.pdp-actions-panel {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdp-btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.pdp-btn-back:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-primary);
}

/* Mega Menu Overlay */

/* Mega Menu Overlay */
.mega-menu-overlay {
    position: absolute;
    top: 50px;
    left: 0;
    width: 850px;
    height: 480px;
    background: var(--bg-mega-menu);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 110;
    overflow: hidden;
}

/* Show overlay when active class is added */
.mega-menu-overlay.active {
    display: flex;
}

/* Left Sidebar in Mega Menu */
.mega-menu-left-sidebar {
    width: 240px;
    border-right: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mega-menu-cat-item {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    outline: none;
}

.mega-menu-cat-item:hover,
.mega-menu-cat-item.active {
    background: var(--bg-surface-hover);
    color: var(--accent-primary);
    padding-left: 28px;
}

/* Right Grid in Mega Menu */
.mega-menu-right-grid {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.mega-subgroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-subgroup-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.mega-subgroup-title:hover {
    color: var(--accent-hover);
}

.mega-sublink {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.mega-sublink:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

/* Override categories-container inside navbar */
.category-navbar .categories-container {
    margin: 0;
    flex: 1;
    border-bottom: none;
    max-width: none;
}

/* Layered Glass on Opaque Fume Background */
.main-header, .category-navbar {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)), var(--bg-base) !important;
    background-attachment: scroll, fixed !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
}






/* User Dropdown Menu Styles */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: var(--bg-mega-menu);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 1000;
}
.user-dropdown-menu.active {
    display: block;
}
.user-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}
.user-dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    padding-left: 18px;
}

/* Account Dashboard Styles */
.account-menu-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-menu-btn:hover {
    background: var(--bg-surface-hover);
}
.account-menu-btn.active {
    background: var(--accent-orange);
    color: white;
}

/* Heart Button overlay on product card */
.product-heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-heart-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
}
.product-heart-btn.active {
    color: #ef4444;
}

/* Tab contents styling */
.account-tab-content {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Order cards */
.order-history-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
    font-size: 0.85rem;
}

/* Mega Menu Show More Button & Hidden Group */
.mega-more-btn {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.mega-more-btn:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    padding-left: 2px;
}
.mega-sublink-hidden-group {
    display: none;
    flex-direction: column;
    gap: 8px;
}
.mega-subgroup.expanded .mega-sublink-hidden-group {
    display: flex;
}

/* Premium Back to Shop Button Styles */
.back-to-shop-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-to-shop-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--accent-hover);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.back-to-shop-btn svg {
    transition: transform 0.2s ease;
}

.back-to-shop-btn:hover svg {
    transform: translateX(-2px);
}

/* Profile Layout Styles */
.profile-layout-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.profile-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 20px;
}

.profile-tab-btn {
    background: transparent;
    border: 1.5px solid var(--accent-primary);
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.profile-tab-btn:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.profile-tab-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    font-weight: 700;
}

.profile-content-pane {
    flex: 1;
}

.profile-form {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    padding: 11px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-group input:disabled, .form-group textarea:disabled {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.65;
}

.profile-submit-btn {
    align-self: flex-start;
    padding: 11px 24px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    transition: all 0.2s ease;
}

.profile-submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.profile-submit-btn:active {
    transform: translateY(0);
}

/* Saved Card Card Styles */
.saved-credit-card {
    background: linear-gradient(135deg, #708090 0%, #4f5d73 50%, #2f3e46 100%); /* soft matte titanium/slate grey */
    color: white;
    padding: 22px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.card-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 5px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 2px;
}

.card-brand {
    font-weight: 800;
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
}

.card-number {
    font-size: 1.15rem;
    letter-spacing: 2px;
    font-family: monospace;
    margin: 8px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.card-holder {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card-expiry {
    font-weight: 700;
    font-family: monospace;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Active Session Card Styles */
.session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 8px;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-icon {
    font-size: 1.5rem;
}

.session-meta h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    margin-top: 0;
}

.session-meta p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.session-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .profile-layout-container {
        flex-direction: column;
        gap: 24px;
    }
    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 16px;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    .profile-tab-btn {
        width: auto;
    }
    .profile-cards-divider {
        display: none;
    }
}

/* Address Card Styles (Trendyol Style) */
.address-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    box-sizing: border-box;
}

.address-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.address-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

.address-card-edit-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0;
}

.address-card-edit-btn:hover {
    color: var(--accent-primary);
}

.address-card-body {
    padding: 16px;
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.address-card-recipient {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.address-card-details {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 72px;
}

.address-card-phone {
    font-size: 0.8rem;
    font-weight: 500;
}

.address-card-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    border-top: 1px dashed var(--border-color);
}

.address-card-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.address-card-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Siparişler Menüsü Sekme ve Durum Butonları */
.orders-tab-btn {
    background: transparent;
    border: 1.5px solid var(--accent-primary);
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.orders-tab-btn:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.orders-tab-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.order-filter-btn {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.order-filter-btn:hover {
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.08);
}

.order-filter-btn.active {
    background: var(--accent-primary);
    color: white !important;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

/* --- CART PAGE STYLES (DESKTOP) --- */
.cart-view-layout {
    display: none;
    max-width: 100%;
    width: 100%;
    margin: 24px 0;
    padding: 0 40px;
    box-sizing: border-box;
}

.cart-back-wrapper {
    margin-bottom: 20px;
}

.cart-page-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cart-items-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-main-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.cart-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-count-badge {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-summary-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-summary-panel {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    position: sticky;
    top: 140px;
}

.cart-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cart-summary-calc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
}

.cart-summary-val {
    color: var(--text-primary);
    font-weight: 600;
}

.cart-shipping-val {
    color: var(--accent-emerald);
    font-weight: 600;
}

.cart-summary-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.cart-total-val {
    color: var(--accent-orange);
}

.cart-delivery-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    background: var(--bg-base);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-delivery-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-input, .cart-textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.cart-textarea {
    resize: none;
}

.cart-legal-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-legal-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.cart-legal-label input {
    margin-top: 2px;
    cursor: pointer;
}

.legal-link {
    color: var(--accent-orange);
    text-decoration: underline;
    cursor: pointer;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-checkout:hover:not(:disabled) {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 2;
}

.cart-item-img {
    font-size: 2.2rem;
    background: var(--bg-base);
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface-hover);
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: flex-end;
    flex: 1;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE DESIGN (VITRINIMDEN)
   ========================================================================== */

@media (max-width: 992px) {
    .header-container {
        padding: 12px 20px;
    }
    .main-layout {
        padding: 0 20px;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .logo-wrapper {
        gap: 8px;
    }

    .logo-text {
        font-size: 1.6rem !important;
    }

    .logo-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .search-wrapper {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin-top: 4px;
    }

    .search-input {
        padding: 8px 16px 8px 40px !important;
        font-size: 0.85rem !important;
        height: 38px;
    }

    .header-actions {
        gap: 6px;
    }

    .action-btn {
        padding: 6px;
    }

    .btn-login {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* Category Navigation on Mobile (Sol Küçük Buton + Sağ Geniş Kaydırılabilir Şerit) */
    .category-navbar {
        padding: 4px 0 !important;
        width: 100% !important;
    }

    .navbar-container {
        padding: 0 6px !important;
        gap: 6px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .dropdown-trigger-wrapper {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .mega-trigger-btn {
        padding: 4px 8px !important;
        font-size: 0.70rem !important;
        gap: 4px !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        width: auto !important;
        min-width: unset !important;
        height: auto !important;
    }

    .categories-container {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: auto !important;
    }

    .category-pill {
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
    }

    /* Mega Menu Overlay on Mobile */
    .mega-menu-overlay {
        position: fixed !important;
        top: 105px !important;
        left: 8px !important;
        right: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        flex-direction: column !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
        border-radius: 12px !important;
    }

    .mega-menu-left-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        max-height: 180px !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .mega-menu-cat-item {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }

    .mega-menu-right-grid {
        grid-template-columns: 1fr !important;
        padding: 14px !important;
        gap: 12px !important;
        max-height: 280px !important;
        overflow-y: auto !important;
    }

    /* Products Grid on Mobile (2 columns Trendyol style) */
    .main-layout {
        padding: 0 10px !important;
        margin: 12px 0 !important;
        gap: 12px !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card {
        border-radius: 12px !important;
    }

    .product-img-wrapper {
        height: 140px !important;
    }

    .product-body {
        padding: 10px !important;
        gap: 4px !important;
    }

    .product-name {
        font-size: 0.78rem !important;
        height: 32px !important;
        line-height: 1.25 !important;
    }

    .product-price-current {
        font-size: 0.95rem !important;
    }

    .product-btn-cart {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
    }

    /* Cart Mobile Optimization */
    .cart-view-layout {
        padding: 0 10px !important;
        margin: 12px 0 !important;
    }

    .cart-page-container {
        flex-direction: column !important;
        gap: 14px !important;
    }

    .cart-items-wrapper, .cart-summary-wrapper {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .cart-main-card, .cart-summary-panel {
        padding: 14px !important;
        border-radius: 12px !important;
        position: static !important;
        top: auto !important;
    }

    .cart-title {
        font-size: 1.15rem !important;
        margin-bottom: 16px !important;
    }

    .cart-item-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px 0 !important;
    }

    .cart-item-left {
        width: 100% !important;
        flex: unset !important;
    }

    .cart-item-right {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 12px !important;
        flex: unset !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }
    .logo-text {
        font-size: 1.4rem !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .product-img-wrapper {
        height: 120px !important;
    }
}
