/* =====================================================================
   eDocumentos — Main Stylesheet
   Blue palette theme for document template store
   ===================================================================== */

/* =====================================================================
   1. CSS RESET & BASE
   ===================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* =====================================================================
   2. CSS CUSTOM PROPERTIES (TOKENS)
   ===================================================================== */

:root {
    /* Colors — Blue palette */
    --color-primary:       #1A3A5C;
    --color-accent:        #2E7DD1;
    --color-accent-hover:  #2569B8;
    --color-bg:            #F4F7FB;
    --color-surface:       #FFFFFF;
    --color-surface-alt:   #EBF2FA;
    --color-text:          #1E2B3C;
    --color-text-light:    #5E7A96;
    --color-success:       #1E7E4C;
    --color-border:        #D4E1EF;
    --color-border-dark:   #B8CFDF;

    /* Shadows */
    --shadow-sm:   0 1px 2px rgba(26,58,92,0.05);
    --shadow-md:   0 4px 12px rgba(26,58,92,0.08);
    --shadow-lg:   0 8px 30px rgba(26,58,92,0.12);
    --shadow-xl:   0 20px 60px rgba(26,58,92,0.15);

    /* Border radius */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
    --topbar-height: 40px;

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-base:   0.2s ease;
    --transition-slow:   0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   3. LAYOUT — CONTAINER
   ===================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* =====================================================================
   4. BUTTONS
   ===================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--outline:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--white {
    background-color: #FFFFFF;
    color: var(--color-primary);
    border-color: #FFFFFF;
}

.btn--white:hover {
    background-color: var(--color-surface-alt);
    border-color: var(--color-surface-alt);
    color: var(--color-primary);
}

/* =====================================================================
   5. FORMS
   ===================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(46,125,209,0.15);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

/* =====================================================================
   6. TOPBAR
   ===================================================================== */

.topbar {
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.8125rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.topbar__text {
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    opacity: 0.9;
}

/* =====================================================================
   7. SITE HEADER
   ===================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo-text strong {
    font-weight: 400;
}

/* Desktop Nav */
.header__nav {
    display: none;
    flex: 1;
    justify-content: center;
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
    }
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-base), background-color var(--transition-base);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--color-accent);
    background-color: var(--color-surface-alt);
}

.nav__link--dropdown {
    cursor: pointer;
}

.nav__chevron {
    transition: transform var(--transition-base);
}

.nav__link--dropdown[aria-expanded="true"] .nav__chevron {
    transform: rotate(180deg);
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.header__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    transition: color var(--transition-base), background-color var(--transition-base);
    position: relative;
}

.header__action-btn:hover {
    color: var(--color-accent);
    background-color: var(--color-surface-alt);
}

/* Cart badge */
.header__cart {
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #FFFFFF;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
    display: none;
}

.cart-count:not(:empty) {
    display: block;
}

.cart-count[data-count="0"],
.cart-count:empty {
    display: none;
}

/* Burger */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

@media (min-width: 768px) {
    .header__burger {
        display: none;
    }
}

.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__burger.is-active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active .burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger.is-active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   8. MEGA MENU
   ===================================================================== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 480px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 1001;
}

.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mega-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: background-color var(--transition-base);
}

.mega-menu__item:hover {
    background-color: var(--color-surface-alt);
    color: var(--color-text);
}

.mega-menu__emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-sm);
}

.mega-menu__item:hover .mega-menu__emoji {
    background-color: var(--color-surface);
}

.mega-menu__label {
    font-weight: 500;
    font-size: 0.9375rem;
    flex: 1;
}

.mega-menu__count {
    font-size: 0.75rem;
    color: var(--color-text-light);
    background-color: var(--color-surface-alt);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.mega-menu__footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.mega-menu__all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.mega-menu__all:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* =====================================================================
   9. SEARCH OVERLAY
   ===================================================================== */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(26,58,92,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.search-overlay__inner {
    background-color: var(--color-surface);
    padding: 2rem 0;
    max-height: 80vh;
    overflow-y: auto;
}

.search-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.search-overlay__title {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.search-overlay__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    transition: color var(--transition-base), background-color var(--transition-base);
}

.search-overlay__close:hover {
    color: var(--color-text);
    background-color: var(--color-surface-alt);
}

.search-overlay__form {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-overlay__input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3rem;
    font-size: 1.125rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    outline: none;
    transition: border-color var(--transition-base);
}

.search-overlay__input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(46,125,209,0.1);
}

.search-overlay__spinner {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.search-overlay__spinner.is-loading {
    display: block;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-overlay__results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: background-color var(--transition-base);
}

.search-result-item:hover {
    background-color: var(--color-surface-alt);
    color: var(--color-text);
}

.search-result-item__image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--color-surface-alt);
}

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

.search-result-item__title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item__category {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.search-result-item__price {
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* =====================================================================
   10. MOBILE MENU
   ===================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background-color: var(--color-surface);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(26,58,92,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.mobile-menu__backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    padding: 1.5rem;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
}

.mobile-menu__close:hover {
    color: var(--color-text);
    background-color: var(--color-surface-alt);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu__link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__link:hover {
    color: var(--color-accent);
}

.mobile-menu__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.mobile-menu__heading .nav__chevron {
    transition: transform var(--transition-base);
}

.mobile-menu__heading[aria-expanded="true"] .nav__chevron {
    transform: rotate(180deg);
}

.mobile-menu__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.mobile-menu__sub.is-open {
    max-height: 500px;
}

.mobile-menu__sub li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__sub a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    text-decoration: none;
}

.mobile-menu__sub a:hover {
    color: var(--color-accent);
}

.mobile-menu__all {
    font-weight: 600;
    color: var(--color-accent) !important;
}

/* =====================================================================
   11. HERO SECTION
   ===================================================================== */

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #234B6E 50%, var(--color-accent) 100%);
    color: #FFFFFF;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(46,125,209,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    max-width: 680px;
    text-align: center;
    margin: 0 auto;
}

.hero__title {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero__highlight {
    display: inline;
    background: linear-gradient(135deg, #7CB8F0, #BFE0FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero__actions .btn--primary {
    background-color: #FFFFFF;
    color: var(--color-primary);
    border-color: #FFFFFF;
}

.hero__actions .btn--primary:hover {
    background-color: var(--color-surface-alt);
    border-color: var(--color-surface-alt);
    color: var(--color-primary);
}

.hero__actions .btn--outline {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.4);
}

.hero__actions .btn--outline:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: #FFFFFF;
}

@media (min-width: 640px) {
    .hero {
        padding: 4rem 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0;
    }

    .hero__title {
        font-size: 2.75rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0;
    }

    .hero__title {
        font-size: 3.25rem;
    }

    .hero__subtitle {
        font-size: 1.1875rem;
    }
}

/* =====================================================================
   12. FEATURE BAR
   ===================================================================== */

.feature-bar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.feature-bar__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.feature-bar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
}

.feature-bar__icon {
    font-size: 1.25rem;
}

.feature-bar__text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .feature-bar__grid {
        gap: 2rem;
    }

    .feature-bar__text {
        font-size: 0.9375rem;
    }
}

/* =====================================================================
   13. SECTIONS
   ===================================================================== */

.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 5rem 0;
    }
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .section__title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .section__title {
        font-size: 2.25rem;
    }
}

.section__subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.section__action {
    text-align: center;
    margin-top: 2.5rem;
}

/* =====================================================================
   14. CATEGORY GRID
   ===================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.category-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-text);
}

.category-card__emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-md);
}

.category-card:hover .category-card__emoji {
    background-color: rgba(46,125,209,0.1);
}

.category-card__name {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--color-primary);
}

.category-card__desc {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: none;
}

@media (min-width: 768px) {
    .category-card__desc {
        display: block;
    }
}

.category-card__count {
    font-size: 0.75rem;
    color: var(--color-text-light);
    background-color: var(--color-surface-alt);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

/* =====================================================================
   15. PRODUCT CARDS
   ===================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid--shop {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .product-grid--shop {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    position: relative;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.product-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card__link {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}

.product-card__link:hover {
    color: var(--color-text);
}

.product-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

.product-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--color-surface-alt);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-alt);
    font-size: 3rem;
    opacity: 0.4;
}

.product-card__placeholder--large {
    min-height: 300px;
    font-size: 5rem;
}

.product-card__body {
    padding: 1rem 1.25rem 1.25rem;
}

.product-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
}

.product-card__title {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-card__price {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
}

.product-card__price .price-iva-note {
    display: none;
}

.product-card__btn {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
}

.product-card:hover .product-card__btn {
    color: var(--color-accent-hover);
}

/* =====================================================================
   16. BLOG CARDS
   ===================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card__link {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}

.blog-card__link:hover {
    color: var(--color-text);
}

.blog-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-surface-alt);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.3;
}

.blog-card__body {
    padding: 1.25rem;
}

.blog-card__date {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.blog-card:hover .blog-card__more {
    color: var(--color-accent-hover);
}

/* =====================================================================
   17. HOW IT WORKS — STEPS
   ===================================================================== */

.how-it-works {
    background-color: var(--color-surface-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.step-card__title {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.step-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* =====================================================================
   18. CTA SECTION
   ===================================================================== */

.cta-section {
    padding: 3rem 0;
}

.cta-box {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #234B6E 50%, var(--color-accent) 100%);
    border-radius: var(--radius-xl);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box__title {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-box__text {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-box .btn--primary {
    background-color: #FFFFFF;
    color: var(--color-primary);
    border-color: #FFFFFF;
    position: relative;
}

.cta-box .btn--primary:hover {
    background-color: var(--color-surface-alt);
    border-color: var(--color-surface-alt);
}

@media (min-width: 768px) {
    .cta-box {
        padding: 4rem 3rem;
    }

    .cta-box__title {
        font-size: 1.75rem;
    }
}

/* =====================================================================
   19. PAGE HERO
   ===================================================================== */

.page-hero {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
    text-align: center;
}

.page-hero__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-hero__subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-hero__subtitle a {
    color: var(--color-accent);
    text-decoration: underline;
}

.page-hero--post {
    padding: 3rem 0;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 3rem 0;
    }

    .page-hero__title {
        font-size: 2.25rem;
    }

    .page-hero__subtitle {
        font-size: 1.0625rem;
    }

    .page-hero--post {
        padding: 4rem 0;
    }

    .page-hero--post .page-hero__title {
        font-size: 2.5rem;
    }
}

/* =====================================================================
   20. SHOP FILTERS
   ===================================================================== */

.shop-filters {
    background-color: var(--color-surface);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-full);
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all var(--transition-base);
}

.filter-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-pill--active {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}

.filter-pill--active:hover {
    color: #FFFFFF;
}

.filter-pill__emoji {
    font-size: 1rem;
}

.filter-pill__count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* =====================================================================
   21. SINGLE PRODUCT DETAIL
   ===================================================================== */

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-detail__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.product-detail__gallery {
    position: sticky;
    top: calc(var(--header-height, 70px) + 1.5rem);
    align-self: start;
}

.product-detail__image {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.product-detail__image img {
    max-height: 560px;
    width: 100%;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

/* Gallery arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.gallery-arrow:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.gallery-arrow--prev {
    left: 0.75rem;
}

.gallery-arrow--next {
    right: 0.75rem;
}

/* Gallery counter */
.gallery-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full, 999px);
    pointer-events: none;
    z-index: 2;
}

/* Thumbnail strip */
.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 96px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    padding: 4px;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumb:hover {
    border-color: var(--color-accent);
}

.product-thumb.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(46, 125, 209, 0.25);
}

/* Compatibility Bar */
.compatibility-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    justify-content: center;
}

.compatibility-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
}

.compatibility-bar__icon {
    font-size: 1.25rem;
}

.compatibility-bar__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Product Info */
.product-detail__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.product-detail__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .product-detail__title {
        font-size: 1.75rem;
    }
}

.product-detail__excerpt {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-detail__excerpt p {
    margin-bottom: 0.5rem;
}

/* Meta list — see overhaul block at end of file for final styles */
.product-meta-list__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Purchase section */
.product-detail__purchase {
    padding: 1.5rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.product-detail__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.product-detail__price .price-iva-note {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.product-detail__price del {
    color: var(--color-text-light);
    font-size: 1.25rem;
    font-weight: 400;
}

.product-detail__price ins {
    text-decoration: none;
}

/* WooCommerce add to cart button */
.product-detail__purchase .single_add_to_cart_button,
.product-detail__purchase .button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #FFFFFF;
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.product-detail__purchase .single_add_to_cart_button:hover,
.product-detail__purchase .button:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.product-detail__purchase .quantity {
    display: none;
}

/* Meta bottom */
.product-detail__meta-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.product-detail__meta-bottom a {
    color: var(--color-accent);
}

/* =====================================================================
   22. PRODUCT TABS
   ===================================================================== */

.product-tabs-section {
    background-color: var(--color-surface-alt);
}

.product-tabs {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.product-tabs__tab {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base);
    min-width: 0;
}

.product-tabs__tab:hover {
    color: var(--color-text);
}

.product-tabs__tab--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.product-tabs__panel {
    display: none;
    padding: 2rem;
}

.product-tabs__panel--active {
    display: block;
}

.product-tab-content {
    max-width: 720px;
    line-height: 1.7;
    color: var(--color-text);
}

.product-tab-content p {
    margin-bottom: 1rem;
}

.product-tab-content h3,
.product-tab-content h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.product-tab-content h3:first-child,
.product-tab-content h4:first-child {
    margin-top: 0;
}

/* Edit steps */
.edit-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
}

.edit-steps__item {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
}

.edit-steps__item:last-child {
    border-bottom: none;
}

.edit-steps__item::before {
    content: counter(step);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

/* Product FAQ */
.product-faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.product-faq__item:last-child {
    border-bottom: none;
}

.product-faq__item h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    margin-bottom: 0.375rem;
    margin-top: 0;
}

.product-faq__item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* =====================================================================
   23. BREADCRUMB
   ===================================================================== */

.breadcrumb {
    background-color: var(--color-surface);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb__item::before {
    content: '/';
    color: var(--color-border-dark);
    margin-right: 0.25rem;
}

.breadcrumb__item:first-child::before {
    display: none;
}

.breadcrumb__item a {
    color: var(--color-text-light);
    text-decoration: none;
}

.breadcrumb__item a:hover {
    color: var(--color-accent);
}

.breadcrumb__item--current {
    color: var(--color-text);
    font-weight: 500;
}

/* =====================================================================
   24. FAQ ACCORDION
   ===================================================================== */

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-group {
    margin-bottom: 2.5rem;
}

.faq-group:last-child {
    margin-bottom: 0;
}

.faq-group__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    gap: 1rem;
    cursor: pointer;
    transition: color var(--transition-base);
}

.faq-item__question:hover {
    color: var(--color-accent);
}

.faq-item__question span {
    flex: 1;
}

.faq-item__icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--color-text-light);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item__answer.is-open {
    max-height: 500px;
}

.faq-item__answer p {
    padding-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* =====================================================================
   25. ABOUT PAGE
   ===================================================================== */

.about-content {
    max-width: 760px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-block__title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.about-block__text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* =====================================================================
   26. CONTACT PAGE
   ===================================================================== */

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.contact-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card__title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

.contact-card__row {
    margin-bottom: 1rem;
}

.contact-card__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-card__email {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-accent);
}

.contact-card__email:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.contact-card__note {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-top: 1.5rem;
}

.contact-faq-link {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.contact-faq-link a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* =====================================================================
   27. SINGLE POST
   ===================================================================== */

.post-content {
    max-width: 760px;
    margin: 0 auto;
}

.post-content__featured {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-content__featured img {
    width: 100%;
    height: auto;
}

.post-content__body {
    line-height: 1.8;
    color: var(--color-text);
}

.post-content__body p {
    margin-bottom: 1.25rem;
}

.post-content__body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content__body h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content__body ul,
.post-content__body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content__body ul {
    list-style: disc;
}

.post-content__body ol {
    list-style: decimal;
}

.post-content__body li {
    margin-bottom: 0.5rem;
}

.post-content__body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-surface-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-content__body a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post-content__body img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

/* Post Author Box */
.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0;
    background: var(--color-bg-alt, #f4f6fa);
    border-radius: 12px;
    border: 1px solid var(--color-border, #e2e6ee);
}

.post-author__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.post-author__label {
    font-size: 0.8rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.3;
}

.post-author__name {
    font-family: var(--font-heading, 'DM Serif Display', serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text, #1a202c);
    line-height: 1.3;
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .post-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.post-nav__link {
    display: block;
    padding: 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color var(--transition-base);
}

.post-nav__link:hover {
    border-color: var(--color-accent);
}

.post-nav__link--next {
    text-align: right;
}

.post-nav__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.post-nav__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* =====================================================================
   28. PAGE CONTENT (generic)
   ===================================================================== */

.page-content {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* =====================================================================
   29. FOOTER
   ===================================================================== */

.site-footer {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.footer__logo .logo-text {
    color: #FFFFFF;
    font-size: 1.25rem;
}

.footer__tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-email {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.footer-email:hover {
    color: #FFFFFF;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s, color 0.2s;
}

.footer__social-link:hover {
    background: var(--color-accent);
    color: #FFFFFF;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer__links a:hover {
    color: #FFFFFF;
}

/* Footer Bottom */
.footer__bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.footer__disclaimer {
    font-size: 0.8125rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer__copy {
    font-size: 0.8125rem;
    opacity: 0.5;
}

/* =====================================================================
   30. COOKIE NOTICE
   ===================================================================== */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(26,58,92,0.1);
    padding: 1rem 0;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
}

.cookie-notice.is-visible {
    transform: translateY(0);
}

.cookie-notice__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-notice__inner {
        flex-direction: row;
        text-align: left;
    }
}

.cookie-notice__text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    flex: 1;
    line-height: 1.5;
}

.cookie-notice__text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-notice__btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-notice__btn:hover {
    background-color: var(--color-accent-hover);
}

/* =====================================================================
   31. 404 PAGE
   ===================================================================== */

.error-404 {
    padding: 6rem 0;
    text-align: center;
}

.error-404__content {
    max-width: 480px;
    margin: 0 auto;
}

.error-404__code {
    display: block;
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 400;
    color: var(--color-border-dark);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.error-404__text {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* =====================================================================
   32. EMPTY STATE
   ===================================================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state__text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* =====================================================================
   33. PAGINATION
   ===================================================================== */

.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.pagination .page-numbers:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pagination .page-numbers.current {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

.pagination .prev,
.pagination .next {
    font-size: 0.875rem;
}

/* =====================================================================
   34. WOOCOMMERCE OVERRIDES
   ===================================================================== */

/* Hide default WC stuff we don't need */
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.woocommerce-message {
    background-color: #E8F5EE;
    border-left: 4px solid var(--color-success);
    color: var(--color-success);
}

.woocommerce-info {
    background-color: var(--color-surface-alt);
    border-left: 4px solid var(--color-accent);
    color: var(--color-text);
}

.woocommerce-error {
    background-color: #FDE8E8;
    border-left: 4px solid #D32F2F;
    color: #D32F2F;
    list-style: none;
}

.woocommerce-error li {
    list-style: none;
}

/* Checkout form */
.woocommerce-checkout .form-row {
    margin-bottom: 1rem;
}

.woocommerce-checkout .form-row label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.woocommerce-checkout .form-row .input-text {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
}

.woocommerce-checkout .form-row .input-text:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,125,209,0.15);
}

.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.woocommerce-checkout #place_order:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

.woocommerce-checkout-review-order-table th {
    font-weight: 600;
    text-align: left;
}

/* Thank you page */
.woocommerce-thankyou-order-received {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

/* My account */
.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-navigation ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.woocommerce-MyAccount-navigation ul li a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

/* Related products section */
.related-section {
    background-color: var(--color-surface-alt);
}

/* =====================================================================
   35. ANIMATIONS
   ===================================================================== */

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* Pulse */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* =====================================================================
   36. RESPONSIVE BREAKPOINTS — FINE TUNING
   ===================================================================== */

/* Extra small devices (below 640px) */
@media (max-width: 639px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 0.9375rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .footer__grid {
        gap: 1.5rem;
    }

    .product-tabs__tab {
        font-size: 0.8125rem;
        padding: 0.75rem;
    }

    .error-404__code {
        font-size: 4rem;
    }

    .cta-box {
        padding: 2rem 1.25rem;
    }

    .cta-box__title {
        font-size: 1.25rem;
    }

    /* ── Product detail mobile fixes ── */

    /* Disable sticky gallery on mobile — prevents overlap when scrolling */
    .product-detail__gallery {
        position: static;
    }

    /* Reduce gallery image height for mobile viewports */
    .product-detail__image img {
        max-height: 400px;
    }

    /* Tighter grid gap on small screens */
    .product-detail__grid {
        gap: 1.25rem;
    }

    /* Smaller gallery arrows on mobile */
    .gallery-arrow {
        width: 32px;
        height: 32px;
    }

    .gallery-arrow--prev {
        left: 0.5rem;
    }

    .gallery-arrow--next {
        right: 0.5rem;
    }

    /* Smaller thumbnails on mobile */
    .product-thumb {
        width: 56px;
        height: 74px;
    }

    /* Compact compatibility bar */
    .compatibility-bar {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .compatibility-bar__item {
        min-width: 50px;
    }

    /* Tighter purchase box */
    .product-detail__purchase {
        padding: 1.25rem;
    }
}

/* Small devices (640px to 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Still single-column layout, so disable sticky gallery */
    .product-detail__gallery {
        position: static;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .topbar__text {
        font-size: 0.875rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .feature-bar {
        padding: 1.25rem 0;
    }
}

/* Large devices (1024px and up) */
@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .category-card__emoji {
        font-size: 2.25rem;
        width: 64px;
        height: 64px;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero__content {
        max-width: 720px;
    }
}

/* =====================================================================
   37. PRINT STYLES
   ===================================================================== */

@media print {
    .topbar,
    .site-header,
    .site-footer,
    .cookie-notice,
    .search-overlay,
    .mobile-menu,
    .mobile-menu__backdrop,
    .cta-section,
    .feature-bar {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* =====================================================================
   38. ACCESSIBILITY
   ===================================================================== */

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
   39. UTILITY CLASSES
   ===================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

.no-scroll {
    overflow: hidden;
}

/* =====================================================================
   DESIGN OVERHAUL — targeted improvements over the base styles
   ===================================================================== */

/* ─── Hero: badge, trust strip, ghost button ─── */

.hero {
    background: url('../img/hero-bg.png') center/cover no-repeat, linear-gradient(145deg, #0E2440 0%, #1A3A5C 40%, #1E4E80 70%, #2468A8 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Soft vignette overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(14,36,64,0.5) 100%);
    pointer-events: none;
}

/* Soft glow orbs */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 10% 90%, rgba(46,125,209,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 55%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.hero__title {
    font-size: 2.125rem;
    color: #FFFFFF;
    margin-bottom: 1.125rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero__highlight {
    display: inline;
    background: linear-gradient(100deg, #7DBEF5 0%, #A8D8FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
}

.hero .btn--primary {
    background: #FFFFFF;
    color: var(--color-primary);
    border-color: #FFFFFF;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.hero .btn--primary:hover {
    background: #EBF2FA;
    border-color: #EBF2FA;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.88);
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 0.9rem 2rem;
    font-size: 1rem;
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    color: #FFFFFF;
    transform: translateY(-2px);
}

@media (min-width: 640px) {
    .hero { padding: 5rem 0; }
    .hero__title { font-size: 2.6rem; }
}
@media (min-width: 768px) {
    .hero { padding: 6rem 0; }
    .hero__title { font-size: 3rem; }
    .hero__subtitle { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
    .hero { padding: 7rem 0; }
    .hero__title { font-size: 3.5rem; }
    .hero__subtitle { font-size: 1.1875rem; }
}

/* ─── Feature bar: visual dividers + icon boxes ─── */

.feature-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}

.feature-bar__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.feature-bar__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    position: relative;
}

.feature-bar__item + .feature-bar__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--color-border);
}

.feature-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.125rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.feature-bar__text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

/* ─── Category cards: accent bottom strip + stronger hover ─── */

.category-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1.75rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card__emoji {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.2s ease;
}

.category-card:hover .category-card__emoji {
    background: rgba(46,125,209,0.12);
}

.category-card__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.375rem;
}

.category-card__count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(46,125,209,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-top: auto;
}

/* ─── Product cards: format badge + stronger hover ─── */

.product-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(46,125,209,0.4);
}

.product-card__image {
    position: relative;
}

.product-card__image::after {
    content: 'DOCX';
    position: absolute;
    bottom: 0.625rem;
    right: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    background: rgba(26,58,92,0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.product-card__image::before {
    content: 'PDF';
    position: absolute;
    bottom: 0.625rem;
    right: 4.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    background: rgba(183,28,28,0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    pointer-events: none;
    z-index: 1;
}

.product-card__image img {
    transition: transform 0.4s ease;
}

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

.product-card__body {
    padding: 1.125rem 1.25rem 1.375rem;
}

.product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.45;
    margin-bottom: 0.875rem;
}

.product-card__footer {
    border-top: 1px solid var(--color-border);
    padding-top: 0.875rem;
}

.product-card__btn {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-accent);
    transition: color 0.15s ease, letter-spacing 0.15s ease;
}

.product-card:hover .product-card__btn {
    letter-spacing: 0.01em;
}

/* ─── Steps: connector line + elevated cards ─── */

.how-it-works {
    background: var(--color-surface-alt);
}

.steps-grid {
    position: relative;
}

@media (min-width: 768px) {
    .steps-grid {
        gap: 1.5rem;
    }

    .steps-grid::before {
        content: '';
        position: absolute;
        top: 2.75rem;
        left: calc(16.66% + 1.5rem);
        right: calc(16.66% + 1.5rem);
        height: 2px;
        background: linear-gradient(90deg, var(--color-accent), rgba(46,125,209,0.3));
        z-index: 0;
        pointer-events: none;
    }
}

.step-card {
    border: none;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    text-align: center;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

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

.step-card__number {
    width: 52px;
    height: 52px;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    box-shadow: 0 4px 14px rgba(46,125,209,0.4);
    margin-bottom: 1.25rem;
}

.step-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.step-card__text {
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ─── CTA section: more dramatic ─── */

.cta-section {
    padding: 0 0 4rem;
}

.cta-box {
    padding: 4rem 2.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #0E2440 0%, #1A3A5C 35%, #1E508A 65%, #2468A8 100%);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(46,125,209,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box__title {
    font-size: 1.75rem;
    margin-bottom: 0.875rem;
    position: relative;
    z-index: 1;
}

.cta-box__text {
    font-size: 1.0625rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn--primary {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    padding: 0.9rem 2.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
    .cta-box { padding: 5rem 3rem; }
    .cta-box__title { font-size: 2.25rem; }
}

/* ─── Footer: dark blue ─── */

.site-footer {
    background: #0C1E33;
    color: rgba(255,255,255,0.75);
    border-top: none;
}

.footer__logo .logo-text {
    color: #FFFFFF;
}

.footer__tagline {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.footer__heading {
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer__links li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer__links li a:hover {
    color: rgba(255,255,255,0.95);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

.footer__disclaimer {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer__copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}

.cookie-notice {
    background: #162C45;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.cookie-notice__text a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.cookie-notice__btn {
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

.cookie-notice__btn:hover {
    background: var(--color-accent-hover);
}

/* ─── Product trust list (new component) ─── */

.product-trust {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-trust__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.product-trust__item svg {
    flex-shrink: 0;
    color: var(--color-success);
}

/* ─── Product detail: stronger purchase box ─── */

.product-detail__purchase {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.product-detail__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.product-detail__price .price-iva-note {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 0.375rem;
}

.product-detail__purchase .single_add_to_cart_button,
.product-detail__purchase .button {
    padding: 1rem 1.5rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    box-shadow: 0 4px 14px rgba(46,125,209,0.35);
    letter-spacing: 0.01em;
}

.product-detail__purchase .single_add_to_cart_button:hover,
.product-detail__purchase .button:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(46,125,209,0.45);
    transform: translateY(-2px);
}

/* Compatibility bar as pills */
.compatibility-bar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compatibility-bar__item {
    flex-direction: row;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-full);
    min-width: unset;
}

.compatibility-bar__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ─── Blog cards ─── */

.blog-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-dark);
}

.blog-card__image {
    position: relative;
    overflow: hidden;
}

.blog-card__image img {
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.04);
}

.blog-card__body {
    padding: 1.375rem 1.375rem 1.5rem;
}

.blog-card__title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 0.625rem;
    line-height: 1.35;
}

/* ─── Product tabs ─── */

.product-tabs {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-tabs__tab {
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 1.125rem 1.25rem;
}

.product-tabs__tab--active {
    font-weight: 700;
    background: rgba(46,125,209,0.05);
}

/* ─── Meta list: pill chips ─── */

.product-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    background: none;
    margin-bottom: 1.25rem;
}

.product-meta-list__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-full);
}

/* ─── Section headings ─── */

.section__title {
    letter-spacing: -0.025em;
}

.section__header {
    margin-bottom: 3rem;
}

/* ─── Price IVA note in cards ─── */

.price-iva-note {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-light);
    display: inline-block;
    margin-left: 0.375rem;
}
