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

body {
    /* font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif; */
    font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
    padding-top: 80px;
    /* Space for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
}

/* Apply gradient background to blog post pages */
.blog-post-wrapper {
    min-height: calc(100vh - 80px);
}

body:has(.blog-post-wrapper) {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    min-height: 100vh;
}

/* === 2. VARIABLES === */
:root {
    --color-primary: #2d6df6;
    /* logo blue */
    --color-accent: #36c46f;
    /* logo green */
    --color-bg: #ffffff;
    --color-text: #222;
    --radius: 12px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

/* === 3. LAYOUT HELPERS === */
.container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-3 {
    gap: 0.5rem;
}

/* Blog Post Image */
.post-image-container {
    margin: 2rem 0;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.photo-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-top-left-radius: var(--radius);
}

.photo-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.photo-credit a:hover {
    color: white;
    text-decoration: underline;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    /* font-weight: 700; */
    font-size: 1.5rem;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    /* align-items: center; */
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: #2d6df6;
    background-color: rgba(45, 109, 246, 0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem 0.75rem;
    z-index: 1001;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(0.96);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 0.5rem 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    -webkit-tap-highlight-color: rgba(45, 109, 246, 0.1);
}

.mobile-menu-item:active {
    background-color: rgba(0, 0, 0, 0.02);
}

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

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    background-color: rgba(45, 109, 246, 0.05);
    color: #2d6df6;
    padding-left: 1.75rem;
}

/* Active state for mobile menu */
.mobile-menu-item.active {
    color: #2d6df6;
    font-weight: 600;
    background-color: rgba(45, 109, 246, 0.1);
    border-left: 4px solid #2d6df6;
}

/* Add a subtle animation for menu items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.mobile-menu-item {
    animation: slideIn 0.2s ease-out forwards;
    opacity: 0;
}

.mobile-menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-menu-item:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-menu-item:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-menu-item:nth-child(4) {
    animation-delay: 0.2s;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-container {
        height: 70px;
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 32px;
    }

    /* Improve touch targets */
    .mobile-menu-item {
        min-height: 56px;
        padding: 1rem 1.5rem;
    }
}

/* Product Grid */
.products,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.product-card .product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 aspect ratio */
    background-color: #fff;
    overflow: hidden;
}

.product-card img,
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #22c55e;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* Card Content */
.product-info {
    padding: 4px;
}

/* Grid view - rearrange new structure to work as grid */
.product-card:not(.product-view-list .product-card) {
    display: flex;
    flex-direction: column;
}

.product-card:not(.product-view-list .product-card) .product-top-row {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-bottom: none;
    gap: 0;
}

.product-card:not(.product-view-list .product-card) .product-image-container {
    width: 100%;
    padding-bottom: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
    flex: none;
    position: relative;
    overflow: hidden;
}

.product-card:not(.product-view-list .product-card) .discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.product-card:not(.product-view-list .product-card) .product-info-top {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 0 20px;
}

.product-card:not(.product-view-list .product-card) .product-info-top .product-brand {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.product-card:not(.product-view-list .product-card) .product-info-top .product-advertiser {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-card:not(.product-view-list .product-card) .product-info-top .price-container {
    margin-bottom: 0.75rem;
}

.product-card:not(.product-view-list .product-card) .product-bottom-section {
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px 20px;
    gap: 0;
}

.product-card:not(.product-view-list .product-card) .product-bottom-section .product-info {
    padding: 0;
    margin-bottom: 1rem;
}

.product-card:not(.product-view-list .product-card) .product-bottom-section .product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
}

.product-card:not(.product-view-list .product-card) .product-bottom-section .product-card-btn {
    width: 100%;
    margin-top: 0;
}

/* Brand */
.product-brand {
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Product Name */
.product-card h2,
.product-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-info a {
    text-decoration: none;
}

/* Shop Name */
.product-advertiser {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.shop-icon {
    width: 16px;
    height: 16px;
}

/* Price Section */
.price-container {
    margin-bottom: 16px;
}

.old-price,
.price .old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
}

/* Discounted price in green */
.current-price.special {
    color: #12873d;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
}

/* Normal price in dark gray */
.current-price:not(.special) {
    color: #111827;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
}

.currency {
    font-size: 18px;
}

/* Buy Button */
.product-card-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.product-card-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cart-icon {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: .5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover,
.btn:focus {
    background: #2fa35e;
    transform: translateY(-1px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
    color: #555;
}

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

.footer-section h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #555;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* === RESPONSIVE === */


@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}


/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.price {
    padding: 0 1rem 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

.current-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1rem 1rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    margin: 0 0 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-nav a:hover::after {
    width: 100%;
}

footer p {
    margin: 0;
    line-height: 1.6;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.9;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .footer-nav {
        gap: 1.25rem;
    }

    .footer-nav a {
        font-size: 0.9rem;
    }
}

.copyright {
    color: #ecf0f1;
    font-weight: 500;
}

.disclaimer {
    font-size: 0.8rem;
    color: #bdc3c7;
    max-width: 800px;
    line-height: 1.4;
}



/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* === SECTIONS === */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text);
}

.featured-products,
.latest-posts {
    margin-bottom: 4rem;
}

/* === PRODUCT IMPROVEMENTS === */
.product-card {
    position: relative;
    overflow: hidden;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #22c55e;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
}

.no-products {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

/* === BLOG POSTS === */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.post-content ul {
    margin: 0 0 1.5rem 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    max-height: none;
    min-height: 200px;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.post-featured-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 100%;
    flex: 0 0 300px;
    min-height: 100%;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-featured-image img {
    transform: scale(1.03);
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    /* Fixes flexbox overflow issues */
}

.post-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta .icon-calendar {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: #4a5568;
    margin: 0.75rem 0 1.25rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    max-height: 6rem;
    /* 4 lines * 1.5 line-height */
}

.post-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.read-more .arrow {
    margin-left: 0.4rem;
    transition: transform 0.2s ease;
    font-size: 1.1em;
    line-height: 1;
}

.read-more:hover .arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
        max-height: none;
    }

    .post-featured-image {
        flex: 0 0 200px;
        width: 100%;
        min-height: 200px;
    }

    .post-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-content {
        padding: 1.25rem;
    }

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

    .post-excerpt {
        -webkit-line-clamp: 3;
        max-height: 4.5rem;
    }

    .post-title {
        font-size: 1.15rem;
    }

    .post-excerpt {
        font-size: 0.9rem;
    }
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.blog-header .section-title {
    font-size: 2.25rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.blog-description {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
    max-width: 1200px;
    margin: 2rem auto;
}

.product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 3rem;
    gap: 1rem;
}

.product-image-container {
    text-align: center;
}

/* Product page specific image styles */
.product-detail .product-image-large {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-title {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 1.25rem 0;
}

.product-price .current-price,
.product-price .old-price {
    white-space: nowrap;
}

.price-disclaimer {
    cursor: help;
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    transition: color 0.2s ease;
}

.price-disclaimer:hover {
    color: var(--color-primary);
}

.price-disclaimer .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.1s ease, visibility 0.1s;
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.price-disclaimer .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.price-disclaimer:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


.discount {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.availability-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.availability-badge.in_stock {
    background: #d4edda;
    color: #155624;
}

.availability-badge.out_of_stock {
    background: #f8d7da;
    color: #721c24;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.product-description {
    margin-bottom: 3rem;
}

.product-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.description-content {
    line-height: 1.8;
    color: #555;
}

.related-products {
    margin-top: 4rem;
}

.product-availability {
    margin: 1rem 0;
}

/* === BLOG POST PAGE === */
.blog-post-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.blog-post-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 4rem;
}

.post-header-content {
    padding: 3rem 3rem 2rem;
}

.post-category-badge {
    margin-bottom: 1.5rem;
    display: none;
}

.category-label {
    display: inline-block;
    background: #e8f5e9;
    color: #4CAF50;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.post-title {
    margin: 0 0 1.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 1.2rem;
}

.post-featured-image-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
    width: 100%;
}

.post-featured-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-credit-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

.photo-credit-overlay a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.photo-credit-overlay a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.post-content-wrapper {
    padding: 3rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.post-content p {
    margin: 0 0 1.5rem 0;
}

/* Style the first paragraph in the article content */
.post-content>p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    padding: 1.5rem;
    background: #f8fdf9;
    border-left: 4px solid #4CAF50;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-content h2 {
    margin: 2.5rem 0 1.2rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.post-content h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

/* Inline Product Cards */
.inline-products-section {
    margin: 3rem 0;
    padding: 0rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Product Grid */
.inline-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.inline-product-card-wrapper {
    width: 100%;
}

.hide-on-mobile {
    display: block;
}

.inline-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inline-product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.inline-product-card .product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #fff;
    overflow: hidden;
}

.inline-product-card .product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.inline-product-card .product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inline-product-card .product-brand {
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.inline-product-card h3 {
    font-size: 14px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inline-product-card .product-info a {
    text-decoration: none;
}

.inline-product-card .product-advertiser {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 10px;
}

.inline-product-card .product-advertiser .shop-icon {
    width: 12px;
    height: 12px;
}

.inline-product-card .price-container {
    margin-bottom: 10px;
    margin-top: auto;
}

.inline-product-card .old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 11px;
    margin-bottom: 2px;
    display: block;
}

.inline-product-card .current-price {
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.inline-product-card .current-price.special {
    color: #16a34a;
}

.inline-product-card .currency {
    font-size: 14px;
}

.inline-product-card .product-card-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    margin-top: auto;
}

.inline-product-card .product-card-btn .cart-icon {
    width: 16px;
    height: 16px;
}

.inline-product-card .product-card-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.inline-product-card .discount-badge {
    padding: 4px 8px;
    font-size: 11px;
    top: 8px;
    right: 8px;
}

.inline-product-card .discount-badge .cart-icon {
    width: 12px;
    height: 12px;
}

.post-share-section {
    padding: 2rem 3rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.share-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: white;
}

.share-facebook {
    background: #3b5998;
}

.share-facebook:hover {
    background: #2d4373;
}

.share-twitter {
    background: #000000;
}

.share-twitter:hover {
    background: #0f0f0f;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #1da851;
}

/* Related Posts Section */
.related-posts-section {
    margin: 4rem 0;
}

.related-posts-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.related-post-image {
    height: 180px;
    background-size: contain;
    background-position: center;
    background-color: #f0f0f0;
}

.related-post-image-placeholder {
    background: linear-gradient(135deg, #81C784 0%, #4CAF50 100%);
}

.related-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-post-category {
    font-size: 0.8rem;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-post-title {
    margin: 0.8rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.related-post-title {
    color: inherit;
    transition: color 0.2s ease;
}

.related-post-card:hover .related-post-title {
    color: #4CAF50;
}

.related-post-excerpt {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-post-wrapper {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }

    .post-header-content {
        padding: 1.5rem 1rem 1rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta-info {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .post-featured-image-wrapper {
        height: 300px;
    }

    .post-content-wrapper {
        padding: 1.5rem 1rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content>p:first-of-type {
        font-size: 1.1rem;
        padding: 0.75rem;
    }

    /* Reset styles for nested paragraphs */
    .post-content div p {
        font-size: 1rem;
        padding: 0;
        background: transparent;
        border-left: none;
    }

    .post-share-section {
        padding: 1rem;
    }

    .share-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .inline-products-section {
        padding: 0rem;
    }

    .inline-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .hide-on-mobile {
        display: none;
    }

    .inline-product-card .product-info {
        padding: 10px;
    }

    .inline-product-card h3 {
        font-size: 13px;
    }

    .inline-product-card .current-price {
        font-size: 1.1rem;
        line-height: 1.3rem;
    }

    .inline-product-card .currency {
        font-size: 12px;
    }

    .inline-product-card .product-card-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .inline-product-card .product-brand {
        font-size: 10px;
    }

    .inline-product-card .product-advertiser {
        font-size: 10px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-posts-title {
        font-size: 1.75rem;
    }
}

/* === ERROR PAGE === */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.suggested-products {
    margin-top: 4rem;
}

.suggested-products h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

/* === BUTTON IMPROVEMENTS === */
.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* === RESPONSIVE IMPROVEMENTS === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .product-header {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .product-detail {
        margin: 0 auto;
    }

    .product-price .current-price {
        font-size: 1.75rem;
    }

    .product-price {
        gap: 0.5rem 0.75rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .error-title {
        font-size: 4rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
}

/* === PA
GE STYLES === */
.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-title {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
}

.page-content {
    line-height: 1.8;
    color: #444;
}

.page-content h2,
.page-content h3 {
    margin: 2rem 0 1rem;
    color: var(--color-text);
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* === CATEGORY PAGE === */
.category-page {
    margin-bottom: 4rem;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.25rem;
    border-radius: 8px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.view-btn:hover {
    background: rgba(45, 109, 246, 0.1);
    color: var(--color-primary);
}

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

/* Compact List View */
.product-view-list .product-grid {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    grid-template-columns: none !important;
}

.product-view-list .product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    border-radius: 8px;
}

/* List view - ensure new structure is visible */
.product-view-list .product-card .product-top-row,
.product-view-list .product-card .product-bottom-section {
    display: flex;
}

.product-view-list .product-card .product-top-row {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid #fff;
}

.product-view-list .product-card .product-image-container {
    flex: 0 0 120px;
    width: 120px;
    padding-bottom: 0 !important;
    height: 120px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.product-view-list .product-card .product-image-container img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 8px;
}

.product-view-list .product-card .product-info-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.product-view-list .product-card .product-brand {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.product-view-list .product-card .product-advertiser {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.product-view-list .product-card .price-container {
    margin-top: auto;
    margin-bottom: 0;
}

.product-view-list .product-card .current-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.product-view-list .product-card .currency {
    font-size: 1rem;
}

.product-view-list .product-card .product-bottom-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-view-list .product-card .product-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    letter-spacing: -0.01em;
    width: 100%;
}

.product-view-list .product-card .product-info h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-view-list .product-card .product-info h3 a:hover {
    color: var(--color-primary);
}

.product-view-list .product-card .product-card-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-top: 0;
}

.product-view-list .product-card .discount-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.75rem;
    z-index: 10;
    position: absolute;
}

@media (max-width: 768px) {
    .view-controls {
        padding: 0;
    }

    .product-view-list .product-card {
        flex-direction: column;
        border-radius: 8px;
    }

    .product-view-list .product-card .product-top-row {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .product-view-list .product-card .product-image-container {
        flex: 0 0 100px !important;
        width: 100px !important;
        height: 100px !important;
        padding-bottom: 0 !important;
        position: relative !important;
        border-radius: 8px;
        overflow: hidden !important;
        background-color: #fff;
    }

    .product-view-list .product-card .product-image-container a {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }

    .product-view-list .product-card .product-image-container img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px;
        display: block;
    }

    .product-view-list .product-card .product-info-top {
        flex: 1;
        min-width: 0;
    }

    .product-view-list .product-card .product-brand {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .product-view-list .product-card .product-advertiser {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .product-view-list .product-card .current-price {
        font-size: 1.25rem;
    }

    .product-view-list .product-card .currency {
        font-size: 0.875rem;
    }

    .product-view-list .product-card .product-bottom-section {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .product-view-list .product-card .product-info h3 {
        font-size: 0.9375rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 0;
        margin-top: 0;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .product-view-list .product-card .product-card-btn {
        width: 100%;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .product-view-list .product-card .discount-badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 0.7rem;
        z-index: 2;
    }
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.all-categories {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.all-categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-link {
    display: block;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.category-link:hover,
.category-link.active {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.categories-list {
    margin: 2rem 0;
}

/* === CATEGORY FILTERS === */
.category-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 2rem 0 1.5rem 0;
    position: relative;
}

.filters-section {
    position: relative;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-toggle-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-toggle-label {
    line-height: 1;
}

.filter-toggle-icon {
    transition: transform 0.2s ease;
    color: #6b7280;
    flex-shrink: 0;
}

.filter-toggle-btn[aria-expanded="true"] .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-chips {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    max-width: 300px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.filter-toggle-btn[aria-expanded="false"]+.filter-chips {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    padding: 0;
    margin: 0;
    border: none;
}

/* Custom scrollbar for filter chips */
.filter-chips::-webkit-scrollbar {
    width: 6px;
}

.filter-chips::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-chips::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-chips::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.filter-chip:hover {
    color: #1e5ae6;
    text-decoration: underline;
}

.filter-chip-text {
    line-height: 1.4;
}

.filter-chip-count {
    color: #6b7280;
    font-weight: 500;
    margin-left: 0.25rem;
}

.filter-chip:hover .filter-chip-count {
    color: inherit;
}

.view-controls {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .category-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filters-section {
        width: 100%;
    }

    .filter-toggle-btn {
        width: 100%;
        justify-content: space-between;
    }

    .filter-chips {
        min-width: 100%;
        max-width: 100%;
    }

    .view-controls {
        justify-content: flex-end;
    }
}

/* === CATEGORY SECTION === */
.category-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.category-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.categories-grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.category-card:hover {
    background: white;
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.category-card-content {
    flex: 1;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.category-card-count {
    font-size: 0.9rem;
    color: #666;
}

.category-card-arrow {
    color: var(--color-primary);
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.category-card:hover .category-card-arrow {
    transform: translateX(4px);
}

/* === RESPONSIVE IMPROVEMENTS === */
@media (max-width: 768px) {

    .page-title,
    .category-title {
        font-size: 2rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .categories-grid {
        gap: 0.5rem;
    }

    .category-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .category-section .section-title {
        font-size: 1.75rem;
    }

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

    .category-card {
        padding: 1.25rem;
    }

    .category-card-title {
        font-size: 1.1rem;
    }
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.pagination-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.pagination-link.pagination-current {
    background: var(--color-primary);
    color: white;
    cursor: default;
}

.pagination-link.pagination-current:hover {
    transform: none;
}

.pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #666;
}

.pagination-prev,
.pagination-next {
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .pagination-prev,
    .pagination-next {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* 
=== DROPDOWN MENU === */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    margin: 0;
}

.dropdown-menu a:hover {
    background: rgba(45, 109, 246, 0.1);
    color: var(--color-primary);
}

/* === BLOG PAGE === */
.blog-page {
    margin-bottom: 4rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.blog-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 1rem auto 0;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    text-decoration: underline;
}

.no-posts {
    text-align: center;
    padding: 4rem 0;
}

.no-posts p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === MOBILE DROPDOWN === */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(45, 109, 246, 0.05);
        margin-top: 0.5rem;
        border-radius: var(--radius);
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .blog-header {
        padding: 1rem 0;
    }

    .blog-description {
        font-size: 1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* === 
HEADER SEARCH === */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-form-header {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-form-header:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.1);
}

.search-input-header {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
}

.search-input-header::placeholder {
    color: #999;
}

.search-btn-header {
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn-header:hover {
    background: #1e5ae6;
}

/* === SEARCH PAGE === */
.search-page {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.search-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.search-page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-button {
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-button:hover {
    background: #1e5ae6;
}

.search-results h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h2 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

/* === RESPONSIVE SEARCH === */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        min-height: 70px;
        padding: 1rem;
    }

    .header-search {
        display: none;
        /* Hide search in mobile header, show in mobile menu instead */
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-button {
        padding: 1rem;
    }

    .search-header h1 {
        font-size: 2rem;
    }
}

/* ===MOBILE SEARCH=== */
.mobile-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.search-form-mobile {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-form-mobile:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.1);
}

.search-input-mobile {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
}

.search-input-mobile::placeholder {
    color: #999;
}

.search-btn-mobile {
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.search-btn-mobile:hover {
    background: #1e5ae6;
}

/* === MOBILE CATEGORIES === */
.mobile-categories {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-label {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
}

.mobile-category-item {
    padding-left: 2rem !important;
    font-size: 0.9rem;
    color: #666 !important;
}

.mobile-category-item:hover {
    color: var(--color-primary) !important;
    background-color: rgba(45, 109, 246, 0.05);
}

/* === DESKTOP HEADER SEARCH === */
@media (min-width: 769px) {
    .header-search {
        flex: 1;
        max-width: 400px;
        margin: 0 1rem;
    }

    .search-form-header {
        display: flex;
        background: #f8f9fa;
        border-radius: 25px;
        overflow: hidden;
        border: 2px solid transparent;
        transition: var(--transition);
    }

    .search-form-header:focus-within {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.1);
    }

    .search-input-header {
        flex: 1;
        padding: 0.75rem 1rem;
        border: none;
        background: transparent;
        font-size: 0.9rem;
        outline: none;
    }

    .search-input-header::placeholder {
        color: #999;
    }

    .search-btn-header {
        padding: 0.75rem 1rem;
        background: var(--color-primary);
        color: white;
        border: none;
        cursor: pointer;
        transition: var(--transition);
        font-size: 0.9rem;
    }

    .search-btn-header:hover {
        background: #1e5ae6;
    }
}

/* === MOBILE HEADER FIXES === */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .mobile-menu {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* ===
 BREADCRUMBS === */
.breadcrumb {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    padding: 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    /* Add some padding for scrollbar */
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: #204fb1;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #666;
    font-weight: 500;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

/* Mobile breadcrumb adjustments */
@media (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}

/* == RESPONSIVE PRODUCT CARDS === */
@media (max-width: 768px) {

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

    .product-info {
        padding: 0.875rem;
    }

    .product-card h2,
    .product-card h3 {
        font-size: 0.95rem;
    }

    .current-price {
        font-size: 1.2rem;
    }

    .product-brand {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

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

    .product-info {
        padding: 0.75rem;
    }

    .product-card h2,
    .product-card h3 {
        font-size: 0.9rem;
        min-height: 2.4rem;
    }

    .current-price {
        font-size: 1.1rem;
    }
}

/* =
== RESPONSIVE PRODUCT CARDS === */
@media (max-width: 768px) {

    .products,
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .product-info {
        padding: 16px;
    }

    .product-card h2,
    .product-card h3 {
        font-size: 16px;
    }

    .current-price {
        font-size: 28px;
    }

    .currency {
        font-size: 16px;
    }

    .product-card-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .products,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-info {
        padding: 14px 0;
    }

    .product-card h2,
    .product-card h3 {
        font-size: 15px;
    }

    .current-price {
        font-size: 24px;
    }

    .currency {
        font-size: 14px;
    }

    .product-advertiser {
        font-size: 14px;
    }
}

/* === SEARCH RESULTS PAGE === */
.search-page {
    padding: 2rem 0;
}

.search-page-header {
    margin-bottom: 2rem;
}

.search-page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.search-results-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}

.search-filters {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.search-filters h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.875rem;
    padding-right: 2rem;
}

.filter-select:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.05);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.1);
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.price-input:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.05);
}

.price-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.1);
}

.price-filter span {
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}

/* Category Filter Tree */
.category-filter-tree {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.category-filter-item {
    margin-bottom: 0.375rem;
}

.category-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.category-checkbox-label:hover {
    color: var(--color-primary);
}

.category-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    line-height: 1.3;
}

.category-count {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-children {
    margin-top: 0.25rem;
    padding-left: 0.375rem;
    border-left: 1px solid #e5e7eb;
}

.category-filter-item[data-level="0"] .category-checkbox-label {
    font-weight: 600;
}

.category-filter-item[data-level="1"] .category-checkbox-label {
    font-weight: 500;
}

.category-filter-item[data-level="2"] .category-checkbox-label {
    font-weight: 400;
}

/* Compact filter list for brands and advertisers */
.compact-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.compact-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    padding: 0.25rem 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-text);
    transition: all 0.2s ease;
    border-radius: 4px;
}

.compact-checkbox-label:hover {
    background: #f9fafb;
    color: var(--color-primary);
}

.compact-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.compact-checkbox-text {
    flex: 1;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price Range Slider */
.price-range-slider-container {
    margin-top: 0.5rem;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.375rem 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.price-separator {
    margin: 0 0.5rem;
    color: #6b7280;
}

.price-range-slider-wrapper {
    position: relative;
    height: 40px;
    margin: 0.5rem 0;
}

.price-range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-range-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

.price-range-slider::-moz-range-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

#price-min-slider {
    z-index: 2;
}

#price-max-slider {
    z-index: 1;
}

#price-max-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #e5e7eb 0%, var(--color-primary) 0%, var(--color-primary) 100%, #e5e7eb 100%);
}

#price-max-slider::-moz-range-track {
    background: linear-gradient(to right, #e5e7eb 0%, var(--color-primary) 0%, var(--color-primary) 100%, #e5e7eb 100%);
}

/* Stock Status Filter */
.stock-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stock-radio-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    color: var(--color-text);
}

.stock-radio-label:hover {
    background: #f9fafb;
}

.stock-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.stock-radio-label span {
    flex: 1;
}

.clear-filters-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

.clear-filters-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.search-results-main {
    min-width: 0;
}

.search-results-container .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
}

@media (max-width: 1200px) {
    .search-results-container .product-view-grid.product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-results-container .product-view-list.product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-results-container .product-view-grid.product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .search-results-container .product-view-grid.product-grid .current-price:not(.special) {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }

    .search-results-container .product-view-grid.product-grid .current-price.special {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }

    .search-results-container .product-view-grid.product-grid .currency {
        font-size: 0.875rem;
    }

    .search-results-container .product-view-list.product-grid {
        grid-template-columns: 1fr;
    }
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.results-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.sort-select,
.per-page-select {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.sort-select:focus,
.per-page-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.1);
}

.product-highlight {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.product-highlight mark {
    background: #fef08a;
    color: var(--color-text);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: var(--color-primary);
}

.pagination-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

/* Mobile filters toggle button */
.mobile-filters-toggle {
    display: none;
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-filters-toggle:hover {
    background: #f9fafb;
    border-color: var(--color-primary);
}

.mobile-filters-toggle.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.mobile-filters-toggle .filter-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-filters-toggle .filter-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.mobile-filters-toggle.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 968px) {
    .mobile-filters-toggle {
        display: flex;
    }

    .search-results-container {
        grid-template-columns: 1fr;
    }

    .search-filters {
        position: static;
        display: none;
        margin-bottom: 1.5rem;
    }

    .search-filters.mobile-filters-open {
        display: block;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-controls {
        width: 100%;
        justify-content: space-between;
    }
}


.global-search-container {
    flex: 1;
    min-width: 0;
    margin: 0 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.global-search {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.global-search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.global-search-input:focus {
    outline: none;
    border-color: #2d6df6;
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.1);
}

.global-search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    min-width: 300px;
    max-width: 900px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

@media (min-width: 1200px) {
    .global-search-results {
        max-width: 1000px;
    }
}

.global-search-results.active {
    display: block;
}

.search-results-section {
    padding: 0.75rem 0;
}

.search-results-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

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

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.search-result-item-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.search-result-item-count {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.search-result-item-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.search-result-item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #f3f4f6;
}

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

.search-result-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d6df6;
    margin-top: 0.25rem;
}

.search-view-all-section {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.search-view-all-btn {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    margin: 0 1rem;
    background: #2d6df6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.search-view-all-btn:hover {
    background: #1e4ed8;
}

.search-results-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #374151;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.mobile-search-btn:hover,
.mobile-search-btn:active {
    color: #2d6df6;
}

.mobile-search-btn svg {
    display: block;
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.mobile-search-container.active {
    display: flex;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    flex-shrink: 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

.mobile-search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-search-close:hover {
    color: #2d6df6;
}

.mobile-search-container .global-search {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mobile-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: -1;
    display: none;
    -webkit-overflow-scrolling: touch;
}

.mobile-search-results.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-search-container .global-search {
        flex: 1 1 0;
        min-width: 0;
        padding-bottom: 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-search-container .global-search-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-search-close {
        flex-shrink: 0;
    }

    .mobile-search-results {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
        height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding-top: 0;
        padding-bottom: 0;
    }

    .mobile-search-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10001;
    }
}

@media (max-width: 768px) {
    .global-search-container {
        display: none;
    }

    .mobile-search-btn {
        display: block;
    }

    .search-result-item-image {
        width: 50px;
        height: 50px;
    }

    .search-result-item-name {
        font-size: 0.95rem;
    }

    .mobile-search-container .global-search-input {
        font-size: 1rem;
        /* Prevents zoom on iOS */
    }

    .mobile-search-results .search-results-empty {
        padding: 3rem 1rem;
        font-size: 1rem;
    }
}

@media (min-width: 769px) {

    .mobile-search-container,
    .mobile-search-overlay,
    .mobile-search-btn {
        display: none !important;
    }
}


/* Force container to respect viewport */
.product-detail,
.product-header,
.product-image-container,
.main-image-wrapper,
.product-thumbnails {
    box-sizing: border-box !important;
}

.product-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    user-select: none;

}


#mainProductImage {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out, transform 0.3s ease;
    background: #fff;
    pointer-events: none;
    display: block;
}

/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

.main-image-wrapper:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Image counter */
.image-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.main-image-wrapper:hover .image-counter {
    opacity: 1;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 12px;
    padding: 5px 2px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: contain;
    background: #fff;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    opacity: 0.7;
}

.product-thumbnails .thumbnail:hover {
    opacity: 1;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-thumbnails .thumbnail.active {
    opacity: 1;
    border-color: #2d6df6;
    box-shadow: 0 0 0 2px rgba(45, 109, 246, 0.1);
    transform: translateY(-2px);
}

/* Desktop scrollbar styling */
@media (min-width: 769px) {
    .product-thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .product-thumbnails::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 10px;
    }

    .product-thumbnails::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 10px;
        border: 1px solid #f8fafc;
    }

    .product-thumbnails .thumbnail {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-thumbnails .thumbnail {
        width: 75px;
        height: 75px;
        flex: 0 0 75px;
    }
}

/* Mobile styles - CRITICAL SECTION */
@media (max-width: 768px) {

    /* Prevent any horizontal overflow on page */
    body {
        overflow-x: hidden !important;
    }

    .product-detail {
        overflow-x: hidden;
        width: 100%;
    }

    .product-header {
        overflow-x: hidden;
        width: 100%;
    }

    .product-header .product-image-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        overflow: hidden;
    }

    .main-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
        border-radius: 8px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Hide arrows on mobile */
    .gallery-nav {
        display: none;
    }

    /* Always show counter on mobile */
    .image-counter {
        opacity: 1;
        bottom: 12px;
        right: 12px;
        font-size: 12px;
        padding: 4px 10px;
    }

    /* Thumbnails - scrollable horizontally */
    .product-thumbnails {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 5px 0 12px 0;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;

        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .product-thumbnails .thumbnail {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
        min-width: 70px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .main-image-wrapper {
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .product-thumbnails {
        gap: 8px;
        padding: 5px 0 10px 0;
    }

    .product-thumbnails .thumbnail {
        width: 65px;
        height: 65px;
        flex: 0 0 65px;
        min-width: 65px;
    }
}

/* === DESIGN REFRESH (2026-02) === */
:root {
    --surface-0: #f5f7fb;
    --surface-1: #ffffff;
    --surface-2: #f0f4ff;
    --ink-1: #111827;
    --ink-2: #4b5563;
    --line-soft: #dde5f3;
    --brand-blue: #2d6df6;
    --brand-blue-dark: #1e56cf;
    --brand-green: #1fb16a;
}

body {
    background:
        radial-gradient(1200px 400px at 50% -150px, rgba(45, 109, 246, 0.16), transparent 72%),
        linear-gradient(180deg, #f8faff 0%, #f3f6fb 100%);
    color: var(--ink-1);
}

main.container {
    padding-top: 1.25rem;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(130%) blur(8px);
    border-bottom: 1px solid rgba(221, 229, 243, 0.9);
    box-shadow: 0 8px 30px rgba(26, 46, 84, 0.08);
}

.logo {
    color: #18356f;
    font-weight: 650;
    letter-spacing: 0.2px;
}

.global-search-input {
    border-radius: 999px;
    border: 1px solid #cfdbf3;
    background: #fbfdff;
}

.global-search-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(45, 109, 246, 0.14);
}

.section-title {
    text-align: left;
    font-size: clamp(1.45rem, 1rem + 1.2vw, 2rem);
    letter-spacing: -0.02em;
    color: #102446;
    margin-bottom: 1.25rem;
}

.home-hero {
    margin: 0.5rem 0 1.25rem;
}

.home-hero-inner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #123a86 0%, #1e56cf 54%, #1e915f 100%);
    color: #fff;
    border-radius: 24px;
    padding: clamp(1.4rem, 2.2vw, 2.25rem);
    box-shadow: 0 22px 38px rgba(17, 41, 84, 0.24);
}

.home-hero-inner::before {
    content: "";
    position: absolute;
    inset: auto -70px -95px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.home-kicker {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-title {
    margin-top: 0.85rem;
    font-size: clamp(1.55rem, 1.05rem + 1.85vw, 2.55rem);
    line-height: 1.12;
    color: #fff;
    max-width: 18ch;
}

.home-subtitle {
    margin-top: 0.85rem;
    max-width: 62ch;
    font-size: 1rem;
    color: rgba(247, 251, 255, 0.92);
}

.home-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 650;
    padding: 0.72rem 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: #fff;
    color: #1f4aa6;
    box-shadow: 0 10px 20px rgba(14, 30, 66, 0.18);
}

.hero-btn-primary:hover {
    background: #eef3ff;
}

.hero-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.home-stats {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.home-stat {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
}

.home-stat strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
}

.home-stat span {
    display: block;
    margin-top: 0.16rem;
    font-size: 0.83rem;
    opacity: 0.95;
}

.product-grid {
    gap: 1.4rem;
}

.product-card {
    background: var(--surface-1);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(34, 60, 107, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #c3d4f3;
    box-shadow: 0 18px 34px rgba(26, 47, 89, 0.14);
}

.product-card .product-image-container {
    background: linear-gradient(180deg, #fcfdff 0%, #f0f4fb 100%);
}

.product-brand {
    color: #1d4fb3;
}

.product-advertiser {
    color: var(--ink-2);
}

.current-price:not(.special) {
    color: #132443;
}

.current-price.special {
    color: var(--brand-green);
}

.product-card-btn {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    box-shadow: 0 10px 20px rgba(45, 109, 246, 0.22);
}

.product-card-btn:hover {
    background: linear-gradient(135deg, #1f5adb 0%, #1749b8 100%);
    box-shadow: 0 14px 22px rgba(45, 109, 246, 0.32);
}

footer {
    border-top: 1px solid #d5deee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .home-hero-inner {
        border-radius: 18px;
        padding: 1.1rem;
    }

    .home-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

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

    .section-title {
        text-align: left;
    }
}

/* Product page conversion upgrades */
.product-page .product-info > .product-card-btn {
    width: 100%;
    min-height: 54px;
    font-size: 1.02rem;
    font-weight: 700;
}

.product-buy-note {
    margin-top: 0.55rem;
    color: #4b5563;
    font-size: 0.87rem;
}

.mobile-sticky-buy {
    display: none;
}

@media (max-width: 768px) {
    .product-page {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .product-page .product-header {
        gap: 0.75rem;
    }

    .product-page .product-title {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .product-page .product-price {
        margin-top: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .mobile-sticky-buy {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #dbe4f4;
        box-shadow: 0 -8px 18px rgba(22, 40, 78, 0.14);
        backdrop-filter: blur(8px);
    }

    .mobile-sticky-buy__meta {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .mobile-sticky-buy__label {
        font-size: 0.73rem;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .mobile-sticky-buy__price {
        font-size: 1rem;
        color: #0f274f;
        white-space: nowrap;
    }

    .mobile-sticky-buy__btn {
        flex: 1;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 0.9rem;
        border-radius: 11px;
        text-decoration: none;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 700;
        background: linear-gradient(135deg, #1f5adb 0%, #1646b8 100%);
        box-shadow: 0 9px 16px rgba(31, 90, 219, 0.28);
    }
}
