/* =========================================
   Design System & Tokens
   ========================================= */
:root {
    /* Colors */
    --primary: #2563eb; /* Blue */
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #1e293b;
    --accent: #2563eb;
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --bg-main: #ffffff;
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;
    
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Production baseline: predictable sizing, visible keyboard navigation and
   motion that respects user preferences. */
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.title-line {
    height: 4px;
    width: 60px;
    background: var(--primary);
    border-radius: 2px;
}

.title-line.center-line {
    margin: 0 auto;
}

/* =========================================
   Components
   ========================================= */
   
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 0 var(--primary-dark), 0 5px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--primary-dark), 0 2px 5px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header & Nav */
.top-bar {
    background-color: var(--secondary);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--text-light);
    margin-left: 15px;
}

.top-bar i {
    margin-right: 5px;
    color: var(--primary);
}

.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 i {
    color: var(--primary);
}

.logo h1 span {
    color: var(--primary);
}

.desktop-nav ul {
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
    z-index: 10;
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu .submenu a {
    font-size: 0.9rem;
    padding: 10px 20px;
    color: var(--text-main);
}

.dropdown-submenu .submenu a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-light);
}

.search-bar input {
    border: none;
    padding: 10px 15px;
    background: transparent;
    outline: none;
    width: 180px;
    font-family: inherit;
}

.search-bar button {
    border: none;
    background: transparent;
    padding: 10px 15px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--secondary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background: white;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-nav ul { display: grid; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 8px; color: var(--secondary); font-weight: 600; }
.mobile-nav .dropdown-menu, .mobile-nav .submenu { display: none; }
.mobile-nav.is-open { display: block; }

/* Hero Section Redesign */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #f4f7fc;
    overflow: hidden;
    padding: 60px 0;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.02) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.hero h2, .hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--secondary);
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn.bg-white {
    background: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}
.btn.bg-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Interface (Glassmorphism) */
.hero-interface {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.glass-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-left: 5px;
}

.glass-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.glass-dot.red { background-color: #ff5f56; }
.glass-dot.yellow { background-color: #ffbd2e; }
.glass-dot.green { background-color: #27c93f; }

.interface-img {
    width: 100%;
    border-radius: 16px;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
    animation: float 6s ease-in-out infinite;
    z-index: 20;
}

.floating-badge i {
    color: var(--primary);
    font-size: 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-1 {
    top: 40px;
    left: -40px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 80px;
    right: -30px;
    animation-delay: 2s;
}

.badge-3 {
    bottom: -20px;
    left: 40px;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features */
.features {
    padding: -40px 0 60px;
    margin-top: -30px;
    position: relative;
    z-index: 20;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 4px solid transparent;
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    color: var(--secondary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.cat-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: var(--transition);
}

.category-card h3 {
    font-size: 1.2rem;
}

.category-card:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    transform: perspective(1000px) rotateX(10deg) translateZ(15px);
}

.category-card:hover .cat-icon,
.category-card:hover h3 {
    color: white;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: perspective(1000px) rotateY(4deg) rotateX(4deg) translateY(-10px);
    box-shadow: 15px 15px 45px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-light);
    padding: 20px;
    mix-blend-mode: multiply;
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary);
    flex-grow: 1;
}

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 10px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.product-price del {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-right: 5px;
}

.add-to-cart {
    background: var(--bg-light);
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary);
    color: white;
}

/* Newsletter */
.newsletter {
    background: var(--primary);
    padding: 60px 0;
    color: white;
}

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 5px;
    border-radius: var(--border-radius);
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    outline: none;
    font-family: inherit;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.brand-col .logo h2 {
    color: white;
    margin-bottom: 20px;
}

.brand-col .logo h2 i {
    color: var(--primary);
}

.brand-col .logo h2 span {
    color: var(--primary);
}

.brand-col p {
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-list i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 2rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .search-bar { display: none; }
    .menu-toggle { display: block; }
    
    .hero h2, .hero h1 { font-size: 2.8rem; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .hero {
        text-align: center;
        background-position: left;
    }
    
    .hero-overlay {
        background: rgba(255,255,255,0.9);
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero h2, .hero h1 { font-size: 2.5rem; }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    .main-header { padding: 12px 0; }
    .logo h1 { font-size: 1.2rem; gap: 6px; }
    .header-right { gap: 14px; }
    .section-padding { padding: 52px 0; }
    .section-title { margin-bottom: 2rem; }
    .section-title h2, .category-section-title h2 { font-size: 1.75rem; }
    .hero { min-height: auto; padding: 64px 0; }
    .hero-inner { flex-direction: column; gap: 32px; }
    .hero-interface { width: 100%; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 576px) {
    .hero h2, .hero h1 { font-size: 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .flex-between {
        justify-content: center;
        text-align: center;
    }
    .container { padding: 0 16px; }
    .product-grid { grid-template-columns: 1fr; }
    .hero-buttons .btn { width: 100%; }
    .hero-buttons { width: 100%; }
    .payment-icons { justify-content: center; }
}

/* Homepage editorial imagery */
.sexual-health-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.articles-grid .article-card img {
    display: block;
}

.trustpilot-image {
    display: block;
    width: min(100%, 180px);
    height: 46px;
    margin: 0 auto 18px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

/* Category feature layout */
.category-spotlight {
    display: grid;
    grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.32fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    margin-bottom: 42px;
}

.category-spotlight__image {
    height: 330px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 30px rgba(9, 50, 61, 0.14);
}

.category-spotlight__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 24%;
}

.category-spotlight__content {
    max-width: 700px;
    margin: 0;
    text-align: left;
}

.category-spotlight__content .title-line {
    margin-left: 0;
}

.category-spotlight__content p {
    max-width: 680px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-spotlight__note {
    margin-top: 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .category-spotlight {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 32px;
    }

    .category-spotlight__image {
        height: 285px;
        max-width: 480px;
    }

    .sexual-health-intro {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 34px;
    }

    .sexual-health-intro > div:first-child {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }

    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .article-card img {
        height: 180px !important;
    }
}
/* ===== Category Cards Section ===== */

.category-section {
    padding: 70px 0;
   
}

.category-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-section-title {
    text-align: center;
    margin-bottom: 45px;
}

.category-section-title h2 {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.category-section-title .title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #a0704a, #c49a6c);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.category-section-title p {
    color: #777;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cards Grid */
.category-cards-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Individual Card */
.category-card {
    position: relative;
    width: 210px;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 48px rgba(0,0,0,0.18);
    text-decoration: none;
}

/* Card Image */
.category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover .category-card__img {
    transform: scale(1.07);
}

/* Overlay */
.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0) 30%,
        rgba(0,0,0,0.38) 100%
    );
    transition: background 0.38s ease;
    border-radius: 18px;
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.52) 100%
    );
}

/* Label band at top */
.category-card__label {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.32);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 7px 12px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.category-card:hover .category-card__label {
    background: rgba(160, 112, 74, 0.82);
    transform: translateY(-2px);
}

/* Arrow Icon - appears on hover */
.category-card__arrow {
    position: absolute;
    bottom: 20px;
    right: 18px;
    width: 34px;
    height: 34px;
    background: #a0704a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.category-card:hover .category-card__arrow {
    opacity: 1;
    transform: translateY(0);
}

/* Colored top accent per category */
.category-card[data-category="ed"] .category-card__label    { background: rgba(130, 87, 55, 0.72); }
.category-card[data-category="pe"] .category-card__label    { background: rgba(190, 120, 60, 0.60); }
.category-card[data-category="narc"] .category-card__label  { background: rgba(80, 80, 80, 0.50); }
.category-card[data-category="hair"] .category-card__label  { background: rgba(160, 112, 74, 0.72); }
.category-card[data-category="abort"] .category-card__label { background: rgba(190, 160, 120, 0.50); }

/* Responsive */
@media (max-width: 1024px) {
    .category-cards-grid {
        gap: 14px;
    }
    .category-card {
        width: 180px;
        height: 265px;
    }
}

@media (max-width: 768px) {
    .category-cards-grid {
        gap: 12px;
    }
    .category-card {
        width: 150px;
        height: 230px;
    }
    .category-section-title h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 560px) {
    .category-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .category-card {
        width: 100%;
        height: 220px;
    }
    /* Last card centered if odd */
    .category-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 200px;
        justify-self: center;
    }
}

/* =========================================
   Shop Page Styles
   ========================================= */

/* ======= Shop Layout ======= */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* ======= Sidebar ======= */
.sidebar {
    background: var(--bg-light, #f8fafc);
    padding: 28px 24px;
    border-radius: var(--border-radius, 12px);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(0,0,0,0.06);
}
.sidebar h3 {
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    letter-spacing: -0.01em;
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 6px; }
.filter-list a {
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}
.filter-list a:hover {
    color: var(--primary, #4f46e5);
    background: rgba(79, 70, 229, 0.06);
}
.filter-list a.active {
    color: var(--primary, #4f46e5);
    background: rgba(79, 70, 229, 0.1);
    font-weight: 700;
}
.filter-list a .cat-count {
    margin-left: auto;
    font-size: 0.78rem;
    background: rgba(0,0,0,0.06);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}
.filter-list a.active .cat-count {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary, #4f46e5);
}

/* ======= Shop Header Bar ======= */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.shop-header .result-count {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
}
.shop-header .sort-select {
    padding: 8px 14px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 0.88rem;
    background: white;
    color: var(--text-dark, #1e293b);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* ======= Shop Product Grid (override for shop page) ======= */
.shop-layout .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ======= Shop Product Card ======= */
.shop-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.shop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
}
.shop-product-card .product-img-wrap {
    position: relative;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
    overflow: hidden;
}
.shop-product-card .product-img-wrap i {
    font-size: 3.5rem;
    color: #cbd5e1;
    transition: transform 0.4s ease;
}
.shop-product-card .product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.shop-product-card:hover .product-img-wrap i {
    transform: scale(1.1);
}
.shop-product-card .sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.shop-product-card .oos-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 2;
}
.shop-product-card .product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.shop-product-card .product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--primary, #4f46e5);
    font-weight: 600;
    margin-bottom: 6px;
}
.shop-product-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark, #1e293b);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-product-card .product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.shop-product-card .product-name a:hover {
    color: var(--primary, #4f46e5);
}
.shop-product-card .product-stars {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.shop-product-card .product-stars i {
    font-size: 0.72rem;
    color: #f59e0b;
}
.shop-product-card .product-stars .rating-text {
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    margin-left: 6px;
}
.shop-product-card .product-price-range {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    margin-bottom: 14px;
    margin-top: auto;
}
.shop-product-card .btn-select-options {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary, #4f46e5), #6366f1);
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}
.shop-product-card .btn-select-options:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* ======= Pagination ======= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    color: var(--text-dark, #1e293b);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    background: white;
}
.pagination a:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary, #4f46e5);
    color: var(--primary, #4f46e5);
}
.pagination .active-page {
    background: linear-gradient(135deg, var(--primary, #4f46e5), #6366f1);
    color: white;
    border-color: var(--primary, #4f46e5);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    cursor: default;
}
.pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 30px;
    color: var(--text-muted, #94a3b8);
}
.pagination .arrow {
    font-size: 1rem;
    font-weight: 700;
}

/* ======= Shop Page Responsive ======= */
@media (max-width: 992px) {
    .shop-layout { grid-template-columns: 220px 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
    }
    .sidebar h3 { width: 100%; margin-bottom: 8px; }
    .filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
    .filter-list li { margin-bottom: 0; }
    .filter-list a { padding: 6px 12px; font-size: 0.82rem; }
    .filter-list a .cat-count { display: none; }
    .shop-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .shop-layout .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .shop-product-card .product-img-wrap { height: 160px; }
    .shop-product-card .product-info { padding: 12px; }
    .pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; font-size: 0.82rem; }
}

