html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    --primary: #007AFF;
    --primary-hover: #0051D5;
    --primary-light: #5AC8FA;
    --primary-bg: #E3F2FD;
    --primary-dark: #1e40af;
    --secondary: #5856D6;
    --success: #34C759;
    --success-light: #D4F4DD;
    --warning: #FF9500;
    --danger: #FF3B30;
    --danger-light: #FFE5E3;
    --info: #007AFF;
    --text: #1f2937;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    --text-light: #6b7280;
    --bg: #F5F5F7;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-secondary: rgba(246, 246, 246, 0.8);
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    --gradient-accent: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    --gradient-success: linear-gradient(135deg, #34C759 0%, #D4F4DD 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 6px 20px rgba(0, 0, 0, 0.12);
    --blur: blur(30px);
    --blur-strong: blur(50px);
}

/* Base Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Noto Sans Georgian', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-bottom: 80px;
    /* Space for bottom navigation */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: var(--text-primary);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 24px 24px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Search Bar */
.main-search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    width: 100%;
    margin: 2rem auto 0;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
    overflow: visible;
}

.search-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.search-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.search-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.main-search-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    position: relative;
    align-items: stretch;
    flex-wrap: nowrap;
}

.quick-sort-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    /* Increased margin for better spacing */
}

/* Popular Searches Chips */
.popular-searches-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.popular-label {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-label i {
    color: var(--danger);
}

.popular-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-chip {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.popular-chip:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    color: var(--primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

/* How It Works Section */
.how-it-works-section {
    background: white;
    padding: 4rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    margin-top: -2rem;
    /* Pull up to connect with Hero */
    z-index: 2;
    position: relative;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.25);
    color: white;
    font-size: 1.75rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.step-arrow {
    color: #e5e7eb;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fun Animations */
@keyframes float-search {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-5px) rotate(-10deg) scale(1.1);
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 15px 30px rgba(111, 66, 193, 0.4);
    }
}

@keyframes bounce-wallet {

    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Assign animations to specific steps with VIVID colors */
/* Assign animations to specific steps - Professional & CLEAN */
.step-card:nth-child(1) .step-icon {
    /* No animation or very subtle */
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    /* Primary Blue */
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.2);
}

.step-card:nth-child(3) .step-icon {
    background: linear-gradient(135deg, #5856D6 0%, #4A48C8 100%);
    /* Secondary Purple */
    box-shadow: 0 8px 16px rgba(88, 86, 214, 0.2);
}

.step-card:nth-child(5) .step-icon {
    background: linear-gradient(135deg, #34C759 0%, #2DB84D 100%);
    /* Success Green */
    box-shadow: 0 8px 16px rgba(52, 199, 89, 0.2);
}

@media (max-width: 768px) {
    .steps-grid {
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        margin: 0 -1.5rem;
        /* Negative margin to span full width */
        width: calc(100% + 3rem);
        /* Compensate for margin */
    }

    .steps-grid::-webkit-scrollbar {
        display: none;
    }

    .step-arrow {
        display: none;
    }

    .how-it-works-section {
        padding: 3rem 1.5rem 1rem 1.5rem;
        overflow: hidden;
    }

    .step-card {
        min-width: 290px;
        /* Wider cards per user request */
        width: 65vw;
        /* ~1.5 cards visible */
        scroll-snap-align: center;
        /* Center snap */
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        margin-bottom: 5px;
    }

    /* First card margin for alignment */
    .steps-grid::before,
    .steps-grid::after {
        content: '';
        min-width: 0.5rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 0 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 122, 255, 0.2);
    }

    .step-card h3 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }

    .step-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    .popular-searches-container {
        margin-top: 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .popular-chips {
        flex-wrap: nowrap;
    }

    .popular-chip {
        white-space: nowrap;
    }
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 60px;
    z-index: 90;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.quick-filters::-webkit-scrollbar {
    display: none;
}

.quick-filter-chip {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    color: #374151;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-filter-chip:hover {
    background: #f9fafb;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.quick-filter-chip.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-filter-chip.active:hover {
    opacity: 0.95;
}

.quick-filter-chip i {
    font-size: 0.875rem;
}

.quick-sort-btn {
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-sort-btn i {
    margin-right: 0.375rem;
    font-size: 0.8125rem;
}

.quick-sort-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-sort-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-md);
}

/* Autocomplete Dropdown */
.autocomplete-container {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999;
    display: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Ensure dropdown scrollbar is visible */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 255, 0.3);
    border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 255, 0.5);
}

.autocomplete-dropdown.active {
    display: block;
}

/* Prevent body scroll when dropdown is open */
body.autocomplete-open {
    overflow: hidden;
}

/* Mobile nav styles are now in shared partials/mobile_nav_styles.html */

/* Mobile Bottom Filter Panel - Redesigned */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 28px 28px 0 0;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.mobile-filter-panel.active {
    transform: translateY(0);
}

.mobile-filter-handle-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 8px;
    cursor: grab;
}

.mobile-filter-handle {
    width: 48px;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
}

.mobile-filter-panel-header {
    padding: 0.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.mobile-filter-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.mobile-filter-panel-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.2s;
}

.mobile-filter-panel-close:active {
    background: #e5e7eb;
    transform: scale(0.92);
}

.mobile-filter-panel-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.5rem;
    padding-bottom: 2rem;
}

.mobile-filter-section {
    margin-bottom: 2.5rem;
}

.mobile-filter-section:last-child {
    margin-bottom: 0;
}

.mobile-filter-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.mobile-filter-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mobile-filter-chip {
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid #edeff1;
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.mobile-filter-chip i {
    font-size: 1rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.mobile-filter-chip.active {
    background: rgba(102, 126, 234, 0.08);
    border-color: #667eea;
    color: #667eea;
}

.mobile-filter-chip.active i {
    color: #667eea;
}

.mobile-filter-chip:active {
    transform: scale(0.98);
    background: rgba(102, 126, 234, 0.12);
}

.mobile-sort-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-sort-btn {
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid #edeff1;
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.mobile-sort-btn i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
    color: var(--text-tertiary);
}

.mobile-sort-btn .radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    margin-left: auto;
    position: relative;
    transition: all 0.2s;
}

.mobile-sort-btn.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.04);
    color: #667eea;
}

.mobile-sort-btn.active i {
    color: #667eea;
}

.mobile-sort-btn.active .radio-indicator {
    border-color: #667eea;
    background: #667eea;
    box-shadow: inset 0 0 0 4px white;
}

.mobile-sort-btn:active {
    transform: scale(0.99);
}

/* Offers Only Toggle Special Style */
#mobile-offers-only {
    width: 100%;
    justify-content: flex-start;
    padding-left: 1.25rem;
}

.mobile-filter-panel-actions {
    padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    gap: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.mobile-filter-apply-btn {
    flex: 2;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.25);
    height: 56px;
}

.mobile-filter-apply-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.2);
}

.mobile-filter-clear-btn {
    flex: 1;
    padding: 1rem;
    background: #f3f4f6;
    color: var(--text-secondary);
    border: none;
    border-radius: 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    height: 56px;
    white-space: nowrap;
}

.mobile-filter-clear-btn:active {
    background: #e5e7eb;
    color: var(--text-primary);
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    .main-search-container {
        display: none;
    }

    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    .hero {
        display: none;
    }
}

.autocomplete-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 80px;
}

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

.autocomplete-item:hover {
    background: rgba(0, 122, 255, 0.1);
}

.autocomplete-item-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.autocomplete-item-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.autocomplete-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 100px;
}

.autocomplete-item-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.autocomplete-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    white-space: nowrap;
}

.autocomplete-item-original-price {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    white-space: nowrap;
}

.autocomplete-item-discount {
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.autocomplete-category-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 122, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.autocomplete-category-item:hover {
    background: rgba(0, 122, 255, 0.1);
}

.autocomplete-category-name {
    font-weight: 600;
    color: var(--text-primary);
}

.autocomplete-category-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.main-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 200px;
    padding: 1.375rem 1.5rem 1.375rem 3.5rem;
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-radius: 16px;
    font-size: 1.0625rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
}

.main-search-input-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 1;
}

.search-shortcut {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    pointer-events: none;
    opacity: 0.7;
}

.main-search-input:focus~.search-shortcut {
    opacity: 0;
}

.main-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), 0 8px 24px rgba(0, 122, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.main-search-input::placeholder {
    color: var(--text-secondary);
}

.main-search-button {
    padding: 1.375rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-search-button i {
    font-size: 1.125rem;
}

.main-search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.main-search-button:hover::before {
    left: 100%;
}

.main-search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-search-button:active {
    transform: translateY(0);
}

/* Back Button */
.back-button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.back-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Deal Section */
.deal-section {
    margin-bottom: 3rem;
}

/* Personalized Offers - Modern Card Design */
#personalized-offers-section {
    position: relative;
    margin-bottom: 2.5rem;
}

#personalized-offers-section .section-header {
    margin-bottom: 1.5rem;
}

#personalized-offers-section .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#personalized-offers-section .section-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

#personalized-offers {
    position: relative;
}

#personalized-offers .product-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#personalized-offers .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

#personalized-offers .product-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    overflow: hidden;
    z-index: 1;
}

#personalized-offers .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

#personalized-offers .product-card:hover .product-image {
    transform: scale(1.1);
}

#personalized-offers .product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

#personalized-offers .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 3;
}

#personalized-offers .product-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    margin-bottom: 0 !important;
    padding: 0.875rem 1rem 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    border-top: 1px solid #E5E7EB;
}

#personalized-offers .product-pricing {
    display: block;
    padding: 0.25rem 1rem 0.875rem;
    background: rgba(255, 255, 255, 0.65);
    margin: 0;
}

#personalized-offers .price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

#personalized-offers .product-price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

#personalized-offers .product-original-price {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    font-weight: 500;
}

#personalized-offers .discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 0.625rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    max-width: calc(100% - 5rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

#personalized-offers .product-card-add-to-cart {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    color: white;
    font-size: 1rem;
}

#personalized-offers .product-card-add-to-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

#personalized-offers .product-meta {
    display: none;
}

#personalized-offers .product-site {
    display: none;
}

#personalized-offers .product-category,
#personalized-offers .savings-amount {
    display: none;
}

@media (max-width: 768px) {
    #personalized-offers-section {
        margin: 0 -1rem 1.5rem;
        padding: 0 1rem;
    }

    #personalized-offers {
        scroll-padding-left: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    #personalized-offers-section .section-header {
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }

    #personalized-offers-section .section-title {
        font-size: 1.25rem;
    }

    #personalized-offers-wrapper {
        position: relative;
        margin: 0;
        padding: 0;
    }

    #personalized-offers {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0.5rem 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #personalized-offers::-webkit-scrollbar {
        display: none;
    }

    #personalized-offers .product-card {
        flex: 0 0 calc(66.67% - 0.5rem);
        min-width: calc(66.67% - 0.5rem);
        max-width: calc(66.67% - 0.5rem);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin: 0;
        min-height: 320px;
        position: relative;
    }

    #personalized-offers .product-image-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
    }

    #personalized-offers .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        padding: 0;
    }

    #personalized-offers .product-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #personalized-offers .product-name {
        font-size: 0.8rem;
        font-weight: 600;
        color: #1F2937;
        margin: 0;
        margin-bottom: 0 !important;
        padding: 0.75rem 1rem 0;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.65);
        border-top: 1px solid #E5E7EB;
    }

    #personalized-offers .product-pricing {
        display: block;
        padding: 0.25rem 1rem 0.75rem;
        background: rgba(255, 255, 255, 0.65);
        margin: 0;
    }

    #personalized-offers .price-row {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin: 0;
    }

    #personalized-offers .product-price {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
    }

    #personalized-offers .product-original-price {
        display: block;
        font-size: 0.75rem;
        color: var(--text-tertiary);
        text-decoration: line-through;
        font-weight: 500;
    }

    #personalized-offers .discount-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        max-width: calc(100% - 4.5rem);
    }

    #personalized-offers .product-card-add-to-cart {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    /* Navigation Arrows - Hidden */
    .personalized-nav-arrow {
        display: none !important;
    }

    /* Progress Indicator */
    .personalized-progress {
        display: flex;
        justify-content: center;
        gap: 0.375rem;
        margin-top: 0.75rem;
        padding: 0 1rem;
    }

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

    .personalized-progress-dot.active {
        background: var(--primary);
        width: 18px;
        border-radius: 3px;
    }
}

@media (min-width: 769px) {
    #personalized-offers-section {
        padding: 0;
    }

    #personalized-offers-section .section-header {
        margin-bottom: 1.5rem;
    }

    #personalized-offers {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    #personalized-offers .product-card {
        min-height: 360px;
    }

    .personalized-nav-arrow,
    .personalized-progress {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    #personalized-offers {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.03em;
}

.section-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.view-all-link {
    padding: 0.625rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.view-all-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s;
    z-index: -1;
}

.view-all-link:hover {
    color: white;
    border-color: transparent;
    transform: translateX(4px);
}

.view-all-link:hover::before {
    left: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* Ensure sections show 12 items in a nice grid */
.deal-section .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 1400px) {
    .deal-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .deal-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .deal-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .deal-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .main-search-container {
        margin: 1.5rem auto 0;
        padding: 0 0.5rem;
    }

    .search-header {
        margin-bottom: 1rem;
    }

    .search-title {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .search-subtitle {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .main-search-row {
        gap: 0.75rem;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .main-search-input {
        padding: 1.125rem 1rem 1.125rem 2.75rem;
        font-size: 1rem;
        min-width: 0;
        flex: 1;
        border-radius: 14px;
        border-width: 1.5px;
        box-shadow: 0 2px 12px rgba(0, 122, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .main-search-input:focus {
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12), 0 4px 16px rgba(0, 122, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

    .search-icon {
        left: 1rem;
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .search-shortcut {
        display: none;
    }

    .main-search-button {
        padding: 0;
        width: 56px;
        height: 56px;
        min-width: 56px;
        max-width: 56px;
        border-radius: 14px;
        box-shadow: 0 3px 14px rgba(0, 122, 255, 0.28), 0 1px 4px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .main-search-button:hover {
        box-shadow: 0 5px 22px rgba(0, 122, 255, 0.38), 0 2px 8px rgba(0, 0, 0, 0.18);
        transform: translateY(-2px);
    }

    .main-search-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 122, 255, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .main-search-button span {
        display: none;
    }

    .main-search-button i {
        margin: 0;
        font-size: 1.25rem;
    }

    .quick-filters {
        gap: 0.5rem;
        margin-top: 0;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: sticky;
        top: 60px;
        z-index: 90;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .quick-filters::-webkit-scrollbar {
        height: 4px;
    }

    .quick-filters::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    .quick-filters::-webkit-scrollbar-thumb {
        background: rgba(0, 122, 255, 0.3);
        border-radius: 2px;
    }

    .quick-filter-chip {
        padding: 0.4375rem 0.875rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .deal-section .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Personalized offers carousel already handled above */

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #products-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

    .pagination {
        padding: 0 0.5rem;
        gap: 0.25rem;
        margin: 1.5rem 0;
    }

    .pagination-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-width: auto;
    }

    .pagination-info {
        font-size: 0.8125rem;
        padding: 0 0.5rem;
    }

    .back-button {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Modern product card - pricing page style */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Ensure discount badge is positioned relative to card, not image */
.product-card>.discount-badge,
.product-card>.discount-percentage {
    position: absolute;
    bottom: 15px;
    left: -32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Modern price styling */
.product-card .price-tag,
.product-card .product-price-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}


.product-card-add-to-cart {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card-add-to-cart:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.product-card-add-to-cart:hover i {
    color: white;
}

.product-card-add-to-cart i {
    color: var(--primary);
    font-size: 1rem;
    transition: color 0.2s;
}

.product-card-add-to-cart.added {
    background: var(--success);
    border-color: var(--success);
}

.product-card-add-to-cart.added i {
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(255, 255, 255, 0.85);
}

.product-card.has-offer {
    border: 1.5px solid rgba(0, 122, 255, 0.25);
    background: rgba(255, 255, 255, 0.75);
    position: relative;
}

.product-card.has-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
}


.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8125rem;
    z-index: 11;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}


@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(2deg);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.625rem;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    display: inline-block;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 2.8125rem;
    transition: color 0.3s;
}

.product-card:hover .product-name {
    color: var(--primary);
}

.product-pricing {
    margin-bottom: 0.75rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.product-original-price {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    font-weight: 500;
}

.savings-amount {
    font-size: 0.8125rem;
    color: var(--success);
    font-weight: 700;
    background: rgba(52, 199, 89, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.25rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.product-site {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Price History Modal */
.price-history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
}

.price-history-modal.active {
    display: flex;
}

.price-history-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.price-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.price-history-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-history-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-primary);
}

.price-history-close:hover {
    background: var(--border);
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1.5px solid var(--border-light);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.price-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}

.price-history-item:hover {
    background: var(--border-light);
    transform: translateX(4px);
}

.price-history-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-history-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-history-prices {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-history-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-history-original {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price-change-indicator {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
}

.price-change-up {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.price-change-down {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger);
}

.price-change-same {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

/* Cart Styles */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.cart-panel.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.cart-item-quantity-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.cart-item-quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-item-quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-item-remove {
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: var(--danger);
    color: white;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 12px;
}

.cart-total-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

.menu-overlay.active {
    display: block;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-panel.active {
    right: 0;
}

.menu-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #232f3e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    font-weight: 600;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.menu-close:active {
    transform: rotate(90deg) scale(0.95);
}



.menu-close:hover {
    background: var(--border);
}

.menu-content {
    padding: 1rem 1.25rem;
    flex: 1;
}

.menu-section {
    margin-bottom: 1rem;
}

.menu-user-action-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--text-primary);
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-user-action-btn:last-child {
    border-bottom: none;
}

.menu-user-action-btn:hover {
    background: rgba(0, 122, 255, 0.06) !important;
}

.menu-user-action-btn i {
    font-size: 1.0625rem;
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.menu-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    text-decoration: none;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-category-item:hover {
    background: rgba(0, 122, 255, 0.06);
}

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

.menu-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.menu-search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: var(--bg);
}

.menu-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.menu-filter-group {
    margin-bottom: 1.5rem;
}

.menu-filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.menu-filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.menu-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-checkbox:hover {
    background: var(--border-light);
}

.menu-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.menu-checkbox label {
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.menu-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

.menu-btn {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-btn-primary {
    background: var(--primary);
    color: white;
}

.menu-btn-primary:hover {
    background: var(--primary-dark);
}

.menu-btn-secondary {
    background: var(--bg);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.menu-btn-secondary:hover {
    background: var(--border-light);
}

/* Floating Action Button (Scroll to Top) */
.fab-scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    border: none;
}

.fab-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.fab-scroll-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.fab-scroll-top:active {
    transform: scale(0.95);
}

.fab-scroll-top i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {

    .hero {
        padding: 1.5rem 1rem 1.25rem;
        margin-bottom: 1rem;
        border-radius: 0 0 20px 20px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .fab-scroll-top {
        bottom: 80px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .fab-scroll-top i {
        font-size: 18px;
    }

    .hero p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .main-search-container {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        max-width: 100%;
        padding: 0 0.5rem;
        z-index: 100;
    }

    .main-search-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .autocomplete-container {
        width: 100%;
    }

    .autocomplete-dropdown {
        position: fixed !important;
        left: 2.5% !important;
        right: 2.5% !important;
        max-width: 95% !important;
        max-height: 50vh !important;
        z-index: 99999 !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: contain;
        overscroll-behavior-y: contain;
        will-change: scroll-position;
    }

    .autocomplete-item,
    .autocomplete-category-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 122, 255, 0.1);
        cursor: pointer;
    }

    .autocomplete-item:active,
    .autocomplete-category-item:active {
        background: rgba(0, 122, 255, 0.15) !important;
    }

    .autocomplete-item:hover,
    .autocomplete-category-item:hover {
        background: rgba(0, 122, 255, 0.1);
    }

    .main-search-input {
        width: 100%;
        min-width: 0;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .main-search-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }


    .quick-sort-buttons {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .quick-sort-buttons::-webkit-scrollbar {
        display: none;
    }

    .quick-sort-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
        min-width: fit-content;
    }

    .quick-sort-btn i {
        font-size: 0.75rem;
        margin-right: 0.25rem;
    }

    .container {
        padding: 0 1rem 2rem;
    }

    .deal-section {
        margin-bottom: 2.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .section-icon {
        font-size: 1.75rem;
    }

    .view-all-link {
        width: 100%;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #products-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

    .deal-section .products-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        padding: 0 0.5rem;
        gap: 0.25rem;
        margin: 1.5rem 0;
    }

    .pagination-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-width: auto;
    }

    .pagination-info {
        font-size: 0.8125rem;
        padding: 0 0.5rem;
    }

    .back-button {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    /* Product cards on search page - modern glassmorphism style */
    .product-card {
        border-radius: 20px;
        display: flex;
        flex-direction: row;
        min-height: 130px;
        max-height: none;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .product-card::before {
        height: 3px;
    }

    .product-image-container {
        width: 120px;
        min-width: 120px;
        height: 140px;
        flex-shrink: 0;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 10px 0 0 10px;
    }

    .product-image {
        padding: 0.75rem;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-info {
        padding: 0.875rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
        overflow: visible;
        gap: 0.5rem;
    }

    .product-category {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
        padding: 0.375rem 0.625rem !important;
        margin: 0 !important;
        margin-bottom: 0.375rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 6px;
        display: inline-block !important;
        width: fit-content;
        max-width: 100%;
    }

    .product-name {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        min-height: 2.5rem;
        margin: 0 !important;
        margin-bottom: 0.5rem !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }

    .product-pricing {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
        margin-top: auto;
    }

    .price-row {
        display: flex;
        align-items: baseline;
        gap: 0.625rem;
        flex-wrap: wrap;
    }

    .product-price {
        font-size: 1.375rem !important;
        font-weight: 800 !important;
        color: var(--primary) !important;
        white-space: nowrap;
    }

    .product-original-price {
        font-size: 0.875rem !important;
        color: var(--text-secondary) !important;
        white-space: nowrap;
    }

    .savings-amount {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
        color: var(--success);
        border-radius: 4px;
        font-weight: 600;
    }

    .product-meta {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        font-size: 0.8125rem;
        color: var(--text-secondary);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .product-site {
        font-weight: 500;
        color: var(--text-secondary);
    }

    .discount-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        font-weight: 700;
        z-index: 2;
    }

    .menu-panel {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }

    .menu-header {
        padding: 0.875rem 1rem;
    }

    .menu-title {
        font-size: 1.0625rem;
    }

    .menu-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .menu-content {
        padding: 0.875rem 1rem;
    }

    .menu-section {
        margin-bottom: 0.875rem;
    }

    .menu-user-action-btn {
        padding: 0.6875rem 0.875rem;
        font-size: 0.875rem;
    }

    .price-history-content {
        padding: 1.25rem;
        max-width: 95vw;
        max-height: 90vh;
    }

    .price-history-title {
        font-size: 1.25rem;
    }

    .price-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .price-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .price-history-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-search-container {
        margin: 1.25rem auto 0;
        padding: 0 0.75rem;
    }

    .search-header {
        margin-bottom: 0.875rem;
    }

    .search-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .search-subtitle {
        font-size: 0.75rem;
    }

    .main-search-row {
        gap: 0.625rem;
    }

    .main-search-input {
        padding: 1rem 0.875rem 1rem 2.5rem;
        font-size: 0.9375rem;
        border-radius: 12px;
        border-width: 1.5px;
        height: 52px;
        box-sizing: border-box;
    }

    .search-icon {
        left: 0.875rem;
        font-size: 0.9375rem;
    }

    .main-search-button {
        padding: 0;
        width: 52px;
        height: 52px;
        min-width: 52px;
        max-width: 52px;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(0, 122, 255, 0.26), 0 1px 3px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .main-search-button:hover {
        box-shadow: 0 4px 18px rgba(0, 122, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }

    .main-search-button:active {
        transform: translateY(0);
    }

    .main-search-button i {
        font-size: 1.125rem;
    }

    .hero {
        padding: 1.25rem 0.75rem 1rem;
        border-radius: 0 0 16px 16px;
    }

    .hero h1 {
        font-size: 1.375rem;
    }

    .hero p {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .fab-scroll-top {
        bottom: 75px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .fab-scroll-top i {
        font-size: 16px;
    }

    .main-search-container {
        margin: 1.25rem auto 0;
        padding: 0 0.5rem;
    }

    .search-header {
        margin-bottom: 0.875rem;
    }

    .search-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .search-subtitle {
        font-size: 0.75rem;
    }

    .main-search-row {
        gap: 0.625rem;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .autocomplete-container {
        flex: 1 1 auto;
        min-width: 0;
    }

    .main-search-button {
        padding: 1rem 1rem;
        font-size: 0.875rem;
        min-width: 52px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .main-search-input {
        padding: 1rem 0.875rem 1rem 2.5rem;
        font-size: 0.9375rem;
        border-radius: 12px;
        border-width: 1.5px;
    }

    .search-icon {
        left: 0.875rem;
        font-size: 0.9375rem;
    }

    .main-search-button i {
        font-size: 1rem;
    }

    .quick-sort-buttons {
        gap: 0.375rem;
        padding: 0.375rem 0.25rem;
        margin: 0 -0.25rem;
    }

    .quick-sort-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .quick-sort-btn i {
        font-size: 0.6875rem;
        margin-right: 0.25rem;
    }

    .container {
        padding: 1rem 0.75rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-card {
        flex-direction: row;
        min-height: 120px;
        max-height: none;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
        padding: 8px;
        border-radius: 10px;
    }

    .product-image-container {
        width: 90px;
        min-width: 90px;
        height: 104px;
        flex-shrink: 0;
    }

    .product-image {
        padding: 0.5rem;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-info {
        padding: 0.75rem;
        flex: 1;
        min-width: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
    }

    .product-category {
        font-size: 0.6875rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
        padding: 0.3rem 0.5rem !important;
        margin: 0 !important;
        margin-bottom: 0.25rem !important;
        border-radius: 5px;
        display: inline-block !important;
        width: fit-content;
        max-width: 100%;
    }

    .product-name {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        min-height: 2.25rem;
        margin: 0 !important;
        margin-bottom: 0.375rem !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }

    .product-price {
        font-size: 1.125rem;
    }

    .product-original-price {
        font-size: 0.75rem;
    }

    .savings-amount {
        font-size: 0.6875rem;
        padding: 0.15rem 0.35rem;
    }

    .product-category {
        font-size: 0.6875rem;
        font-weight: 700;
        color: var(--primary);
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
        display: inline-block;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-icon {
        font-size: 1.5rem;
    }

    .price-stats {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0 1rem;
}

.pagination-button {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 44px;
    text-align: center;
}

.pagination-button:hover:not(:disabled) {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-button.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-md);
}

.pagination-info {
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Low-resolution mobile optimization (360px and below) */
@media (max-width: 400px) {

    /* Compact product cards for search results */
    .products-grid {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        min-height: 115px;
        max-height: none;
        width: 100%;
        max-width: 100%;
        padding: 8px;
        border-radius: 16px;
        gap: 8px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow: hidden;
        box-sizing: border-box;
    }

    .product-image-container {
        width: 90px;
        min-width: 90px;
        height: 107px;
        border-radius: 8px;
    }

    .product-image {
        padding: 0.375rem;
    }

    .product-info {
        padding: 0.375rem;
        gap: 0.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
        overflow: visible;
    }

    .product-category {
        font-size: 0.6875rem !important;
        padding: 0.1875rem 0.4375rem !important;
        margin-bottom: 0.1875rem !important;
        border-radius: 4px;
        font-weight: 600 !important;
    }

    .product-name {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        font-weight: 600 !important;
    }

    .product-pricing {
        gap: 0.1875rem;
    }

    .price-row {
        gap: 0.375rem;
    }

    .product-price {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
    }

    .product-original-price {
        font-size: 0.75rem !important;
    }

    .savings-amount {
        font-size: 0.75rem;
        padding: 0.125rem 0.3125rem;
        border-radius: 3px;
        font-weight: 600;
    }

    .product-meta {
        gap: 0.375rem;
        padding-top: 0.25rem;
        margin-top: 0.25rem;
        font-size: 0.75rem;
    }

    .product-card-add-to-cart {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        bottom: 0.375rem;
        right: 0.375rem;
        border-radius: 8px;
    }

    /* Compact pagination */
    .pagination {
        gap: 0.375rem;
        padding: 0.75rem 0.5rem;
    }

    .pagination-button {
        min-width: 32px;
        height: 32px;
        padding: 0 0.5rem;
        font-size: 0.8125rem;
    }

    .pagination-info {
        font-size: 0.75rem;
        padding: 0 0.375rem;
    }

    /* Compact quick filters */
    .quick-filters {
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }

    .quick-filter-chip {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    /* Compact back button */
    .back-button {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        margin-bottom: 0.875rem;
    }

    /* Floating Filter Button */
    .fab-mobile-filters {
        position: fixed;
        bottom: 80px;
        /* Above nav bar */
        right: 1.5rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--text-primary);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        z-index: 990;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .fab-mobile-filters:active {
        transform: scale(0.95);
    }
}

.back-button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.back-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.page-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cart-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
}

/* Cart Table */
.cart-table-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cart-table thead {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(90, 200, 250, 0.05) 100%);
    border-bottom: 2px solid var(--border);
}

.cart-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.cart-table th:first-child {
    padding-left: 1.5rem;
}

.cart-table th:last-child {
    padding-right: 1.5rem;
    text-align: right;
}

.cart-table td {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
    transition: background-color 0.2s;
}

.cart-table td:first-child {
    padding-left: 1.5rem;
}

.cart-table td:last-child {
    padding-right: 1.5rem;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-table tbody tr {
    transition: all 0.2s;
}

.cart-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.03) 0%, rgba(90, 200, 250, 0.03) 100%);
    transform: scale(1.001);
}

.cart-table tbody tr:hover td {
    border-color: rgba(0, 122, 255, 0.1);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-image-cart {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.cart-table tbody tr:hover .product-image-cart {
    transform: scale(1.05);
}

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

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.product-site {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.product-site i {
    font-size: 0.75rem;
    color: var(--primary);
}

.price-cell {
    text-align: center;
    min-width: 120px;
}

.price-current {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.25rem;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #327aff 0%, #47659c 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
}

.quantity-cell {
    text-align: center;
    min-width: 140px;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.06) 0%, rgba(90, 200, 250, 0.06) 100%);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 10px;
    padding: 0.375rem 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.2s;
    font-weight: 700;
}

.quantity-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.quantity-value {
    min-width: 36px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
}

.subtotal-cell {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 100px;
    letter-spacing: -0.01em;
}

.remove-cell {
    text-align: center;
    width: 60px;
}

.remove-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    transition: all 0.2s;
}

.remove-btn:hover {
    background: linear-gradient(135deg, var(--danger) 0%, #ff6b5a 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

/* Empty State */
.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cart-empty-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cart-empty-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cart-empty-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.cart-empty-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Summary */
.cart-summary {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.01em;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.2s;
}

.stat-row:hover {
    background: rgba(0, 122, 255, 0.04);
    transform: translateX(2px);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.stat-value.success {
    color: var(--success);
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
    margin: 1.25rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(90, 200, 250, 0.08) 100%);
    border: 2px solid rgba(0, 122, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.summary-total-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.summary-total-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.checkout-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    letter-spacing: -0.01em;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.checkout-button:active {
    transform: translateY(0);
}

.checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.continue-shopping {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
    transition: all 0.2s;
}

.continue-shopping:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

/* Mobile Card Layout */
.cart-item-card {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.cart-item-card-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cart-item-card-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

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

.cart-item-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.cart-item-card-site {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.cart-item-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-card-original-price {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.cart-item-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.cart-item-card-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-card-quantity-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cart-item-card-remove {
    padding: 0.5rem 1rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.cart-item-card-remove:hover {
    background: #e02e24;
}

.cart-item-card-subtotal {
    text-align: right;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.cart-item-card-subtotal-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.cart-item-card-subtotal-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 968px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .page-header {
        margin-bottom: 0.75rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .cart-count {
        font-size: 0.8125rem;
    }

    /* Hide table on mobile */
    .cart-table-container {
        display: none;
    }

    /* Show card layout on mobile */
    .cart-item-card {
        display: block;
    }

    .cart-summary {
        padding: 1rem;
        margin-top: 1rem;
    }

    .summary-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .summary-stats {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .stat-row {
        font-size: 0.8125rem;
    }

    .summary-total {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .summary-total-label {
        font-size: 0.9375rem;
    }

    .summary-total-value {
        font-size: 1.25rem;
    }

    .checkout-button {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .continue-shopping {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .quantity-value {
        min-width: 40px;
        font-size: 1rem;
    }
}

/* Small mobile devices (Samsung S8+, iPhone SE, etc.) - 360px and below */
@media (max-width: 400px) {
    .container {
        padding: 0.375rem;
    }

    .page-title {
        font-size: 1.125rem;
    }

    .cart-count {
        font-size: 0.75rem;
    }

    .cart-item-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .cart-item-card-header {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .cart-item-card-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-card-name {
        font-size: 0.875rem;
    }

    .cart-item-card-site {
        font-size: 0.6875rem;
    }

    .cart-item-card-price {
        font-size: 1rem;
    }

    .cart-item-card-original-price {
        font-size: 0.75rem;
    }

    .cart-item-card-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .cart-item-card-quantity {
        justify-content: space-between;
        width: 100%;
    }

    .cart-item-card-remove {
        width: 100%;
        justify-content: center;
        padding: 0.625rem;
    }

    .cart-summary {
        padding: 0.75rem;
    }

    .summary-title {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
    }

    .summary-stats {
        gap: 0.375rem;
        margin-bottom: 0.625rem;
    }

    .stat-row {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 0.875rem;
    }

    .summary-total {
        padding: 0.625rem;
        margin-bottom: 0.625rem;
    }

    .summary-total-label {
        font-size: 0.875rem;
    }

    .summary-total-value {
        font-size: 1.125rem;
    }

    .checkout-button {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .continue-shopping {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }

    .quantity-controls {
        gap: 0.5rem;
        padding: 0.25rem 0.375rem;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9375rem;
    }

    .quantity-value {
        min-width: 32px;
        font-size: 0.9375rem;
    }

    .cart-empty {
        padding: 2rem 0.75rem;
    }

    .cart-empty-icon {
        font-size: 2.5rem;
    }

    .cart-empty-title {
        font-size: 1.125rem;
    }

    .cart-empty-text {
        font-size: 0.875rem;
    }

    .cart-empty-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 769px) {
    .cart-item-card {
        display: none !important;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding-bottom: 100px;
    position: relative;
}

.pricing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(100px);
    z-index: 0;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.pricing-hero {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

.pricing-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.pricing-hero p {
    font-size: 18px;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-12px) scale(1.08);
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.pricing-card.featured .featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.package-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.package-price {
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.package-price span {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
}

.package-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
    font-weight: 500;
}

.package-features {
    list-style: none;
    margin: 24px 0;
    flex-grow: 1;
}

.package-features li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    font-weight: 500;
}

.package-features li i {
    color: #10b981;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.package-features li i.fa-times-circle {
    color: #d1d5db;
}

.btn-package {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Georgian', sans-serif;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-package::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-package:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 50px 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.features-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 24px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card:hover .feature-icon {
    animation: float 2s ease-in-out infinite;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.feature-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.faq-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-question {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question::before {
    content: '💡';
    font-size: 22px;
}

.faq-answer {
    color: #6b7280;
    line-height: 1.8;
    font-size: 15px;
    font-weight: 500;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 40px 16px 32px;
    }

    .pricing-hero h1 {
        font-size: 32px;
    }

    .pricing-hero p {
        font-size: 16px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 24px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .package-name {
        font-size: 24px;
    }

    .package-price {
        font-size: 42px;
    }

    .features-section {
        padding: 40px 24px;
    }

    .features-section h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-section h2 {
        font-size: 28px;
    }

    .faq-item {
        padding: 20px;
    }
}

/* Very Small Mobile */
@media (max-width: 400px) {
    .pricing-page {
        padding-bottom: 80px;
    }

    .pricing-hero {
        padding: 32px 12px 24px;
    }

    .pricing-hero h1 {
        font-size: 28px;
    }

    .pricing-hero p {
        font-size: 14px;
    }

    .pricing-container {
        padding: 0 12px;
    }

    .pricing-card {
        padding: 20px;
    }

    .package-name {
        font-size: 22px;
    }

    .package-price {
        font-size: 36px;
    }

    .package-features li {
        font-size: 14px;
        padding: 10px 0;
    }

    .btn-package {
        padding: 14px 24px;
        font-size: 14px;
    }

    .features-section {
        padding: 32px 20px;
    }

    .features-section h2 {
        font-size: 24px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-description {
        font-size: 14px;
    }

    .faq-section h2 {
        font-size: 24px;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer {
        font-size: 14px;
    }
}

.back-button {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: #f5f5f5;
    border-color: #667eea;
    color: #667eea;
    transform: translateX(-4px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Product Detail */
.product-detail {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.product-image-wrapper {
    position: sticky;
    top: 100px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

.product-info-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-category {
    font-size: 0.75rem;
    background: #f0f0f0;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

.product-pricing-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -0.02em;
    line-height: 1;
}

.product-original-price {
    font-size: 1.25rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Premium Features Section */
.premium-features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.premium-feature-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.premium-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.premium-feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.premium-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.premium-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 193, 7, 0.15);
    color: #f57c00;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.premium-feature-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.premium-feature-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.premium-feature-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.premium-feature-btn-primary {
    background: var(--primary);
    color: white;
}

.premium-feature-btn-primary:hover {
    background: var(--primary-hover);
}

.premium-feature-btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.premium-feature-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.premium-feature-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.25rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.action-button-primary {
    background: var(--primary);
    color: white;
}

.action-button-primary:hover {
    background: var(--primary-hover);
}

.action-button-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.action-button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.product-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label i {
    font-size: 0.8125rem;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.meta-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
}

.external-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.external-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.external-link-button:hover::before {
    left: 100%;
}

.external-link-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.external-link-button:active {
    transform: translateY(0);
}

/* Price History Section */
.price-history-section {
    background: transparent;
    padding: 0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
}

.section-title i {
    font-size: 1.75rem;
    color: var(--primary);
}

.section-title i {
    font-size: 1.75rem;
    color: var(--primary);
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 122, 255, 0.2);
    background: rgba(255, 255, 255, 0.6);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label i {
    font-size: 0.875rem;
    opacity: 0.7;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.stat-change.negative {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
}

.stat-change.neutral {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.price-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-history-group {
    margin-bottom: 2rem;
}

.price-history-group-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-history-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.price-history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 10px 0 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-history-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 122, 255, 0.2);
}

.price-history-item:hover::before {
    opacity: 1;
}

.price-history-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-history-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-history-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.price-history-prices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.price-history-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.price-history-original {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price-change-indicator {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
}

.price-change-up {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
}

.price-change-down {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.price-change-same {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.price-change-indicator i {
    font-size: 0.75rem;
}

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--danger);
    font-size: 1.125rem;
}

/* Similar Products Section */
.similar-products-section {
    background: transparent;
    padding: 0;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.similar-product-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease-out;
    position: relative;
}

.similar-product-card-add-to-cart {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.similar-product-card-add-to-cart:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.similar-product-card-add-to-cart:hover i {
    color: white;
}

.similar-product-card-add-to-cart i {
    color: var(--primary);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.similar-product-card-add-to-cart.added {
    background: var(--success);
    border-color: var(--success);
}

.similar-product-card-add-to-cart.added i {
    color: white;
}

.similar-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.2);
    background: rgba(255, 255, 255, 0.6);
}

.similar-product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: rgba(248, 250, 252, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.similar-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.similar-product-card .discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 59, 48, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.similar-product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.similar-product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
    transition: color 0.3s ease;
}

.similar-product-card:hover .similar-product-name {
    color: var(--primary);
}

.similar-product-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: auto;
}

.similar-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.similar-product-original-price {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    font-weight: 400;
}

/* Pharmacy Comparison Table */
.comparison-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    overflow: hidden;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(90, 200, 250, 0.08) 100%);
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 1rem 1.25rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9375rem;
}

.comparison-table tbody tr {
    transition: all 0.2s;
}

.comparison-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.03);
}

.comparison-table tbody tr.best-price {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, rgba(48, 209, 88, 0.08) 100%);
}

.comparison-pharmacy {
    font-weight: 600;
    color: var(--text-primary);
}

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

.comparison-price.best {
    color: var(--success);
}

.comparison-savings {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
}

.comparison-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success) 0%, #30d158 100%);
    color: white;
    margin-left: 0.5rem;
}

.comparison-actions {
    display: flex;
    gap: 0.5rem;
}

.comparison-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.comparison-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.comparison-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

.comparison-btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.comparison-btn-secondary:hover {
    background: rgba(0, 122, 255, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(100%);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .product-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-image-wrapper {
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        top: 0;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 2.25rem;
    }

    .product-pricing-section {
        padding: 1.5rem;
    }

    .premium-features-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
    }

    .product-meta-info {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .product-header {
        gap: 1.5rem;
    }

    .product-name {
        font-size: 1.375rem;
    }

    .product-pricing-section {
        padding: 1.5rem;
    }

    .product-price {
        font-size: 2rem;
    }

    .product-original-price {
        font-size: 1rem;
    }

    .discount-badge-large {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .product-meta-info {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .price-history-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .price-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .price-history-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .price-history-meta {
        align-items: flex-start;
    }

    .price-history-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .price-history-current {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {

    .container {
        padding: 0.75rem;
    }

    .product-detail {
        padding: 1.25rem;
    }

    .product-name {
        font-size: 1.125rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-original-price {
        font-size: 1.125rem;
    }

    .product-meta-info {
        grid-template-columns: 1fr;
    }

    .price-history-section {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .price-stats {
        grid-template-columns: 1fr;
    }

    .similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .similar-product-image-container {
        height: 160px;
    }

    .similar-product-info {
        padding: 1rem;
    }

    .similar-product-name {
        font-size: 0.8125rem;
        min-height: 2.2rem;
    }

    .similar-product-price {
        font-size: 1.125rem;
    }

    .similar-product-original-price {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* Cart Styles */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s, opacity 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.cart-panel.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.cart-item-quantity-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.cart-item-quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-item-quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-item-remove {
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: var(--danger);
    color: white;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.cart-checkout-btn:active {
    transform: translateY(0);
}

/* Price Alert Modal Styles */
.price-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.price-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.price-alert-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.price-alert-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.price-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.price-alert-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-alert-title i {
    color: var(--primary);
}

.price-alert-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.price-alert-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.price-alert-content {
    padding: 1.5rem;
}

.price-alert-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.price-alert-form-group {
    margin-bottom: 1.5rem;
}

.price-alert-form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.price-alert-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: all 0.2s;
}

.price-alert-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.price-alert-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.price-alert-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.price-alert-btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-alert-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.price-alert-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.price-alert-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.price-alert-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.price-alert-btn-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.price-alert-btn-danger:hover {
    background: var(--danger);
    color: white;
}

.price-alert-success {
    text-align: center;
    padding: 2rem 1rem;
}

.price-alert-success i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.price-alert-success h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price-alert-success p {
    color: var(--text-secondary);
    line-height: 1.6;
}

#price-alert-btn.active {
    background: var(--success-light);
    color: var(--success);
}

#price-alert-btn.active i {
    color: var(--success);
}

/* Extra small mobile devices (360px and below) */
@media (max-width: 400px) {
    .container {
        padding: 0.5rem;
    }

    .product-detail {
        padding: 0.75rem;
    }

    .product-header {
        gap: 1.5rem;
    }

    .product-image {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
        line-height: 1.3;
    }

    .product-category {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }

    .product-price {
        font-size: 1.375rem;
    }

    .product-original-price {
        font-size: 1rem;
    }

    .discount-badge-large {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .premium-features-section {
        gap: 0.75rem;
    }

    .premium-feature-card {
        padding: 1rem;
    }

    .premium-feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .premium-feature-title {
        font-size: 0.9375rem;
    }

    .premium-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    .premium-feature-description {
        font-size: 0.75rem;
    }

    .premium-feature-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .premium-feature-hint {
        font-size: 0.6875rem;
    }

    .product-actions {
        gap: 0.5rem;
        flex-direction: column;
    }

    .action-button {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
        width: 100%;
    }

    .product-meta-info {
        padding: 1rem;
        gap: 0.75rem;
    }

    .meta-item {
        font-size: 0.75rem;
    }

    .meta-label {
        font-size: 0.75rem;
    }

    .meta-value {
        font-size: 0.75rem;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .similar-product-image-container {
        height: 140px;
    }

    .similar-product-info {
        padding: 0.75rem;
    }

    .similar-product-name {
        font-size: 0.75rem;
        min-height: 2rem;
        line-height: 1.3;
    }

    .similar-product-price {
        font-size: 1rem;
    }

    .similar-product-original-price {
        font-size: 0.6875rem;
    }

    /* .discount-badge {
                    font-size: 0.625rem;
                    padding: 0.25rem 0.5rem;
                    top: 0.375rem;
                    right: 0.375rem;
                } */

    /* Cart styles for small screens */
    .cart-panel {
        max-width: 100%;
    }

    .cart-header {
        padding: 1rem;
    }

    .cart-title {
        font-size: 1.125rem;
    }

    .cart-body {
        padding: 0.75rem;
    }

    .cart-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-name {
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    .cart-item-meta {
        font-size: 0.6875rem;
    }

    .cart-item-price {
        font-size: 0.9375rem;
    }

    .cart-item-actions {
        gap: 0.5rem;
    }

    .cart-item-quantity {
        height: 28px;
    }

    .cart-item-quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .cart-item-quantity-value {
        min-width: 24px;
        font-size: 0.8125rem;
    }

    .cart-item-remove {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .cart-footer {
        padding: 1rem;
    }

    .cart-total-label {
        font-size: 0.9375rem;
    }

    .cart-total-price {
        font-size: 1.25rem;
    }

    .cart-checkout-btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }

    /* Price history styles */
    .price-history-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .price-stats {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-label {
        font-size: 0.6875rem;
    }

    .stat-value {
        font-size: 1.125rem;
    }

    .stat-change {
        font-size: 0.625rem;
    }

    .price-history-item {
        padding: 0.75rem;
    }

    .price-history-date {
        font-size: 0.75rem;
    }

    .price-history-time {
        font-size: 0.6875rem;
    }

    .price-history-current {
        font-size: 1rem;
    }

    .price-history-original {
        font-size: 0.75rem;
    }

    .price-change-indicator {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}