@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Base Colors - Default to Light Mode */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #F472B6;
    --accent: #A78BFA;

    --bg-body: #F1F5F9;
    /* Slate 100 (slightly darker for better contrast) */
    --bg-surface: #FFFFFF;
    --text-main: #1E293B;
    /* Softened from #0F172A (Slate 900 -> 800) */
    --text-muted: #64748B;
    /* Slate 500 */
    --border: #E2E8F0;
    /* Slate 200 */

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Custom Gradients */
    --grad-primary: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%);
    --grad-glow: 0 0 20px rgba(99, 102, 241, 0.2);

    --bg-filters: rgba(255, 255, 255, 0.9);
    --border-filters: var(--border);

    --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode {
    --bg-body: #0F172A;
    /* Slate 900 */
    --bg-surface: #1E293B;
    /* Slate 800 */
    --text-main: #F1F5F9;
    /* Slate 100 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --border: #334155;
    /* Slate 700 */

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);

    --bg-filters: rgba(30, 41, 59, 0.7);
    --border-filters: rgba(255, 255, 255, 0.1);

    --grad-glow: 0 0 20px rgba(99, 102, 241, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: var(--transition-theme);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition-theme);
}

body.dark-mode .header {
    background: rgba(15, 23, 42, 0.85);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-btn:hover {
    transform: scale(1.05);
}

/* WhatsApp Button */
.whatsapp-btn {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.icon-whatsapp {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Dark Mode Adjustments for WhatsApp */
body.dark-mode .whatsapp-btn {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
}

body.dark-mode .whatsapp-btn:hover {
    background: #25D366;
    color: #0f172a;
}

/* Reddit Button */
.reddit-btn {
    color: #FF4500;
    background: rgba(255, 69, 0, 0.1);
    border-color: rgba(255, 69, 0, 0.2);
}

.reddit-btn:hover {
    background: #FF4500;
    color: white;
    border-color: #FF4500;
}

.icon-reddit {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Dark Mode Adjustments for Reddit */
body.dark-mode .reddit-btn {
    background: rgba(255, 69, 0, 0.15);
    border-color: rgba(255, 69, 0, 0.3);
}

body.dark-mode .reddit-btn:hover {
    background: #FF4500;
    color: #0f172a;
}

/* Telegram Button */
.telegram-btn {
    color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.2);
}

.telegram-btn:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.icon-telegram {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-right: -1px;
    /* Optical centering */
}

/* Dark Mode Adjustments for Telegram */
body.dark-mode .telegram-btn {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.3);
}

body.dark-mode .telegram-btn:hover {
    background: #0088cc;
    color: #0f172a;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    width: 38px;
    height: 38px;
    padding: 0;
    line-height: 1;
}

.theme-toggle:hover {
    background: var(--border);
    transform: scale(1.05);
}

.theme-toggle .icon-dark {
    display: none;
}

.theme-toggle .icon-light {
    display: block;
}

body.dark-mode .theme-toggle .icon-dark {
    display: block;
}

body.dark-mode .theme-toggle .icon-light {
    display: none;
}



/* Hero Section */
.hero {
    padding: 2.25rem 0 0.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Filters */
.filters-bar {
    background: var(--bg-filters);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-filters);
    border-radius: var(--radius-full);
    padding: 0.4rem;
    display: flex;
    gap: 0.25rem;
    max-width: 650px;
    width: 100%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, var(--transition-theme);
}

body.dark-mode .filters-bar {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.filters-bar:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
}

.search-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

/* Search Bar */
.search-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 0.5rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.7rem 1rem;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-theme);
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: #94A3B8;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.category-tabs-container {
    margin: 1rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs-container::-webkit-scrollbar {
    display: none;
}


.category-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    /* Crucial for mobile scrolling */
    padding: 0 1rem;
    width: max-content;
    /* Allow content to define width */
    margin: 0 auto;
    /* Center the whole strip on desktop if it fits */
}

@media (min-width: 768px) {
    .category-tabs {
        justify-content: center;
        width: 100%;
    }
}

/* Hide scrollbar but keep functionality */
.category-tabs-container::-webkit-scrollbar {
    display: none;
}

.category-tabs-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.tab-btn {
    padding: 0.6rem 1.25rem;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    /* Tab-like shape */
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: var(--bg-filters);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--bg-surface);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Deals Grid */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 5rem;
}

.deal-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, var(--transition-theme);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.3);
}

.card-image-wrapper {
    position: relative;
    padding-top: 65%;
    /* Reduced from 70% */
    background: var(--bg-surface);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fills the box perfectly */
    transition: transform 0.3s ease;
}

.deal-card:hover .card-image {
    transform: scale(1.05);
}

.discount-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.3);
    z-index: 2;
}

.time-tag {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #CBD5E1;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.card-content {
    padding: 0.65rem;
    /* Reduced from 0.85rem */
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    /* Reduced from 110px */
}

.card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.card-title {
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    /* Reduced from 1.5rem */
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    flex-direction: column;
    /* Stack vertically for long prices */
    gap: 1rem;
    /* Reduced from 1.25rem */
    margin-top: auto;
    padding-top: 0.5rem;
    /* Reduced from 1rem */
}

.price-block {
    display: flex;
    flex-direction: column;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

.card-coupon {
    font-size: 0.8rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px dashed #16a34a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.35rem;
    width: fit-content;
    font-weight: 600;
}

.btn-deal {
    background: var(--grad-primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    /* Reduced from 1rem */
    padding: 0.65rem 0.75rem;
    /* Reduced padding */
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    /* Changed from inline-flex */
    align-items: center;
    justify-content: center;
    /* Center the text */
    gap: 0.5rem;
    box-shadow: none;
    /* Removed the glow/outline as requested */
    border: none;
    /* Explicitly remove any border */
    width: 100%;
    /* Full width for the stacked layout */
}

.btn-deal:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
}

.disclaimer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer p {
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    margin: 4rem 0;
    padding: 0 1rem;
}

.about-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-card h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-card {
        padding: 2rem 1.5rem;
    }

    .about-card h2 {
        font-size: 1.5rem;
    }

    .about-content {
        font-size: 1rem;
    }
}

/* Product Detail Page Styles */
.product-detail-container {
    padding: 3rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 6rem;
}

.main-image-wrapper {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    box-shadow: var(--shadow-md);
}

.main-image {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.discount-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--secondary);
    color: white;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.product-info {
    display: flex;
    flex-direction: column;
}

.category-path {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.85rem;
    /* text-3xl equivalent */
    font-weight: 700;
    line-height: 1.5;
    /* Increased room to breathe */
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.title-main {
    font-weight: 700;
}

.title-desc {
    font-weight: 400;
    /* Slightly thinner */
    opacity: 0.85;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1.5rem;
}

.main-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-label {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-current-price {
    font-size: 1.75rem;
    /* Reduced from 3rem */
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.posting-time-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.product-original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-buy-now {
    background: linear-gradient(135deg, #FFB347, #FF8C00);
    color: #0f172a;
    /* Dark text for high contrast on amber */
    font-size: 1.35rem;
    font-weight: 900;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
    filter: brightness(1.05);
}

/* Price Hero Section */
.price-hero-block {
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.final-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: -0.2rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-savings {
    color: #16a34a;
    /* Success Green */
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(22, 163, 74, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-top: 0;
    /* Align with price */
    height: fit-content;
}

.hero-mrp {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

.hero-mrp .strikethrough {
    text-decoration: line-through;
    opacity: 0.8;
}

.hero-deal-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0.4rem 0 0.1rem 0;
    line-height: 1.2;
}

.hero-deal-price .strikethrough,
.hero-mrp .strikethrough {
    text-decoration: line-through;
    opacity: 0.7;
}

.hero-coupon {
    color: #15803d;
    /* Darker Green */
    font-size: 0.95rem;
    font-weight: 500;
    background: #f0fdf4;
    /* Lightest Green bg */
    border: 1px dashed #16a34a;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.coupon-icon {
    font-size: 1rem;
}

.affiliate-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.5rem;
}

.price-disclaimer-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-subtitle-bottom {
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
}

.details-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--bg-surface);
    /* Fallback */
    background: var(--grad-primary);
    /* Site Scheme */
    color: white;
    border: none;
    border-radius: var(--radius-md);
    /* Box shape */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 0;
}

.floating-back-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 3px;
    /* Make it EXTRA FAT */
}

.floating-back-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

@media (max-width: 640px) {
    .floating-back-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .back-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.5rem 0.5rem 0;
        /* Increase tap area */
    }
}

/* Responsive adjustments for product page */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 640px) {
    .product-title {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .product-detail-container {
        padding: 1.5rem 0;
    }
}

.loading-state,
.error-card {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.price-expired {
    background: rgba(30, 41, 59, 0.3);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    text-align: center;
}

.price-hidden-note {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.price-disclaimer-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 2.5rem;
    text-align: center;
}

.price-expired-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    font-style: normal;
    margin-bottom: 0.5rem;
}

.price-expired-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    font-style: italic;
    white-space: nowrap;
    /* Prevent vertical stacking */
    display: block;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-body);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-number:hover {
    background: var(--bg-body);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination-ellipsis {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 0.25rem;
}

@media (max-width: 640px) {
    .pagination-numbers {
        display: flex;
        gap: 0.25rem;
    }

    .pagination-container {
        justify-content: center;
        width: 100%;
        padding: 2rem 0.5rem 0;
        gap: 0.5rem;
        flex-wrap: wrap;
        /* Allow wrapping if needed */
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .page-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--bg-surface);
    /* Fallback */
    background: var(--grad-primary);
    /* Site Scheme */
    color: white;
    border: none;
    border-radius: var(--radius-md);
    /* Box shape like back button */
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

.scroll-to-top svg {
    width: 28px;
    height: 28px;
    stroke-width: 3px;
    /* Match back button boldness */
    transform: rotate(90deg);
    /* Rotate Left Arrow to Point UP */
}