/* =====================================================
   HOTEL HANDOFF — SHARED CUSTOMER CSS v1.0
   Tüm müşteri sayfalarında ortak kullanılan stiller
   ===================================================== */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    /* Primary: Navy Blue */
    --color-primary: #3B5998;
    --color-primary-dark: #2D4373;
    --color-primary-light: #5B7FC3;
    --color-primary-gradient: linear-gradient(135deg, #3B5998 0%, #4A6FB5 50%, #5B7FC3 100%);

    /* Accent: Vibrant Pink */
    --color-accent: #EC4899;
    --color-accent-light: #FDF2F8;
    --color-accent-dark: #DB2777;
    --color-accent-gradient: linear-gradient(135deg, #EC4899 0%, #F472B6 50%, #FB7185 100%);
    --color-accent-vibrant: linear-gradient(135deg, #DB2777 0%, #EC4899 50%, #F472B6 100%);

    /* Tertiary: Fresh Market Orange */
    --color-tertiary: #FF8C00;
    --color-tertiary-light: #FFB347;
    --color-tertiary-dark: #E67300;
    --color-tertiary-gradient: linear-gradient(135deg, #FF8C00 0%, #FFA033 50%, #FFB347 100%);
    --color-tertiary-warm: linear-gradient(135deg, #FF7700 0%, #FF9500 50%, #FFAB00 100%);

    /* Header */
    --color-header: linear-gradient(135deg, #1A2744 0%, #243352 50%, #1E2A4A 100%);
    --color-secondary: #1A2744;

    /* UI Colors */
    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;
    --color-border-dark: #D1D5DB;
    --color-text: #1E293B;
    --color-text-secondary: #64748B;
    --color-text-muted: #94A3B8;
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;

    /* Pricing Colors */
    --color-price: #FF8C00;
    --color-price-hover: #E67300;
    --color-price-gradient: linear-gradient(135deg, #FF8C00 0%, #FFA033 100%);
    --color-price-old: #9CA3AF;

    /* Layout */
    --header-height: 64px;
    --info-bar-height: 52px;
    --sidebar-width: 240px;
    --cart-sidebar-width: 320px;
    --container-max: 1400px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

/* =====================================================
   CSS RESET
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.hidden {
    display: none !important;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-header);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(30, 42, 74, 0.3);
}

.header-inner {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.header-logo {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

/* Search Box */
.header-search {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.header-search-input {
    width: 100%;
    height: 46px;
    padding: 0 20px 0 52px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 23px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-search-input:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(79, 125, 243, 0.2);
}

.header-search-input::placeholder {
    color: var(--color-text-muted);
    font-weight: 400;
}

.header-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.header-search.is-searching .header-search-icon {
    animation: searchPulse 1s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

.search-status {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-text-muted);
    display: none;
}

.search-status.visible {
    display: block;
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    background: var(--color-primary);
    color: white;
}

.search-clear-btn.visible {
    display: flex;
}

/* Header Center (inner pages) */
.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-page-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-page-title i {
    font-size: 18px;
    color: var(--color-accent);
}

/* Actions */
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.header-action-btn i {
    font-size: 17px;
}

.header-action-btn .badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-tertiary-warm);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.header-action-btn.btn-icon-only {
    padding: 10px 12px;
}

/* Cart Button */
.header-cart-btn {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-cart-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cart-total-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.cart-item-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-tertiary-warm);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.5);
    flex-shrink: 0;
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-card-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s, transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 28px;
}

/* Multi-image carousel */
.product-images-container {
    position: relative;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}

.product-images-container .product-image {
    position: absolute; opacity: 0; pointer-events: none;
}

.product-images-container .product-image.active {
    opacity: 1; pointer-events: auto;
}

.image-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-image-wrapper:hover .image-dots {
    opacity: 1;
}

.image-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.2); transition: all 0.2s;
}

.image-dot.active {
    background: var(--color-accent); transform: scale(1.2);
}

/* Mobile: always show image dots */
@media (max-width: 768px) {
    .image-dots {
        opacity: 1;
    }
}

/* Add Button */
.product-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    color: var(--color-accent);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.product-add-btn:hover {
    background: var(--color-accent-vibrant);
    border-color: var(--color-accent-dark);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.4);
}

.product-add-btn:active {
    transform: scale(0.95);
}

/* Discount Badge */
.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    background: var(--color-accent-vibrant);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(219, 39, 119, 0.45);
    letter-spacing: -0.3px;
    z-index: 5;
}

/* Product Info */
.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 100px;
}

.product-price {
    display: flex; align-items: center; gap: 8px;
}

.product-price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-price);
    letter-spacing: -0.3px;
}

.product-price-old {
    font-size: 12px;
    color: var(--color-price-old);
    text-decoration: line-through;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-weight {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* =====================================================
   CART SIDEBAR
   ===================================================== */
.sidebar-right {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - 48px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-widget.has-items {
    border: 2px solid var(--color-accent);
    box-shadow: 0 4px 24px rgba(219, 39, 119, 0.2);
}

.cart-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.cart-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: #F9FAFB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty-icon i {
    font-size: 32px;
    color: var(--color-border-dark);
}

.cart-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin-bottom: 8px;
}

.cart-empty-text {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #F9FAFB;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-price);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--color-primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 125, 243, 0.3);
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
}

.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cart-total-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.cart-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 50%, #FB7185 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
    display: block;
    text-align: center;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #DB2777 0%, #EC4899 50%, #F472B6 100%);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
}

.cart-checkout-btn:disabled {
    background: #E5E7EB;
    color: var(--color-text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.min-order-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 12px;
    color: #B45309;
    font-weight: 500;
}

.min-order-warning i {
    font-size: 14px;
    color: var(--color-tertiary-dark);
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(30, 42, 74, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.35);
}

.toast.error {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.35);
}

/* =====================================================
   FORM BASE STYLES
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--color-text);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 89, 152, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent-gradient);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* =====================================================
   MESSAGE ALERTS
   ===================================================== */
.message {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.message i {
    font-size: 18px;
}

.message-error {
    background: var(--color-error-light);
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.message-success {
    background: var(--color-success-light);
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.message-warning {
    background: var(--color-warning-light);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.message-info {
    background: var(--color-info-light);
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

/* =====================================================
   LOADING STATES
   ===================================================== */
.product-card.skeleton {
    pointer-events: none;
}

.skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 4px;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE — Header
   ===================================================== */
@media (max-width: 768px) {
    .header-search {
        flex: 1;
        max-width: none;
    }

    .header-actions {
        flex: 0;
    }

    .header-action-btn span {
        display: none;
    }
}

/* =====================================================
   RESPONSIVE — Cart Sidebar Hide
   ===================================================== */
@media (max-width: 1024px) {
    .sidebar-right {
        display: none;
    }
}

/* =====================================================
   BOTTOM NAVIGATION — Mobile (≤1024px)
   ===================================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 1024px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 12px;
    min-width: 64px;
    position: relative;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 20px;
    line-height: 1;
}

.bottom-nav-item span {
    line-height: 1;
    letter-spacing: -0.2px;
}

.bottom-nav-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

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

.bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.4);
}


/* =====================================================
   MOBILE CATEGORY TABS
   ===================================================== */
.mobile-category-tabs {
    display: none;
    grid-column: 1 / -1;
    overflow-x: auto;
    gap: 8px;
    padding: 0 4px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-category-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-cat-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #F3F4F6;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mobile-cat-tab:hover {
    background: #E5E7EB;
}

.mobile-cat-tab.active {
    background: var(--color-primary);
    color: #fff;
}

.mobile-cat-tab img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .mobile-category-tabs {
        display: flex;
        position: sticky;
        top: var(--header-height, 64px);
        z-index: 90;
        background: var(--color-bg);
        padding: 8px 16px 10px;
        margin: 0 -16px;
        width: calc(100% + 32px);
    }
}


/* =====================================================
   BANNER DOT INDICATORS
   ===================================================== */
.banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--color-border, #E5E7EB);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dot.active {
    width: 24px;
    background: var(--color-primary);
}


/* =====================================================
   MOBILE CART DRAWER (slide-up bottom sheet)
   ===================================================== */
.cart-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-cart-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--color-white, #fff);
    border-radius: 20px 20px 0 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

.mobile-cart-drawer.open {
    transform: translateY(0);
}

.cart-drawer-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    cursor: grab;
}

.cart-drawer-handle span {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #D1D5DB;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 14px;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.cart-drawer-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text, #1F2937);
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-secondary, #6B7280);
    cursor: pointer;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    -webkit-overflow-scrolling: touch;
}

.cart-drawer-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary, #6B7280);
}

.cart-drawer-empty i {
    font-size: 48px;
    color: #D1D5DB;
    margin-bottom: 12px;
}

.cart-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.cart-drawer-item:last-child {
    border-bottom: none;
}

.cart-drawer-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer-item-info {
    flex: 1;
    min-width: 0;
}

.cart-drawer-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #1F2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-drawer-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent, #EC4899);
    margin-top: 2px;
}

.cart-drawer-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-drawer-item-qty .qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border, #E5E7EB);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    color: var(--color-text, #1F2937);
}

.cart-drawer-item-qty .qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--color-border, #E5E7EB);
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-drawer-total-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #1F2937);
}

.cart-drawer-total-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent, #EC4899);
}

.cart-drawer-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--color-primary, #3B5998);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    font-family: inherit;
}

.cart-drawer-checkout-btn:hover {
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .mobile-cart-drawer {
        display: flex;
    }
}
