/*
Theme Name: Zentralabs
Theme URI: 
Author: AI
Author URI: 
Description: A modern ecommerce theme based on the Zen Lab Figma design.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zentralabs
*/

:root {
    --bg-page: #EEEEEE;
    --text-main: #425172;
    --text-p: #425172;
    --primary-blue: #425172;
    --btn-dark: #425172;
    --card-bg: #D1D9D7;
    --white: #EEEEEE;
    --border-light: #425172;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6,
b, strong {
    font-weight: 600;
}

/* The uploaded logo has a white background; blend it into the page */
.custom-logo {
    mix-blend-mode: multiply;
}

/* Header */
.site-header {
    background-color: transparent;
    padding-top: 1rem;
    border-bottom: 1px solid #D1D9D7;
}

.header-container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

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

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-search-wrapper {
    display: flex;
}

.header-search-input-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0.5rem;
    background: var(--white);
    border-radius: 99px;
    z-index: 50;
    opacity: 0;
}

.header-search-wrapper.active .header-search-input-container {
    width: 250px;
    border: 1px solid var(--border-light);
    opacity: 1;
}

.header-search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.header-autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: calc(100% + 0.5rem);
    width: 250px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.header-autocomplete-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icon-btn {
    /* every header icon gets the same 40px box, so the gaps between them are equal */
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

/* Inline outline icons (zentralabs_icon) */
.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Count badge on the cart icon, set off from the icon's top-right corner */
.header-count {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 99px;
    background: #425172;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    transition: opacity 0.2s;
}

/* Hero Section */
.hero-section {
    padding: 6rem 2rem 4rem;
    border-bottom: 1px solid #D1D9D7;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 1.5rem;
    color: #425172;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 2.5rem;
    max-width: 600px;
}

.btn-explore {
    background-color: var(--btn-dark);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-explore i {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.btn-explore:hover i {
    transform: translateX(4px);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(162, 194, 219, 0.4) 0%, rgba(239, 238, 239, 0) 70%);
    z-index: 1;
    bottom: -100px;
}

.hero-vial {
    z-index: 2;
    transform: rotate(-3deg);
}

/* Main Content */
.main-content {
    max-width: 1264px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

/* Category Filter */
.category-filter-section {
    margin-bottom: 3rem;
}

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

.category-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cat-pill {
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.cat-pill.active {
    background-color: var(--text-main);
    color: var(--white);
}

/* Products */
.product-category-section {
    margin-bottom: 4rem;
}

.category-heading {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

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

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-image-bg {
    background-color: var(--card-bg);
    padding: 0;
    position: relative;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.badge-cat {
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    background-color: rgba(0,0,0,0.1);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 600;
}

.card-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-content {
    padding: 1rem 1.25rem 1.25rem;
    background-color: #fff;
    flex: 1;
}

.card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-variants {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.variant-pill {
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-cart {
    background-color: var(--btn-dark);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-add-cart .label-short {
    display: none;
}

.price small {
    font-size: 0.7rem;
    font-weight: 500;
}

.price {
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
    line-height: 1.2;
}

/* Footer Section */
.site-footer {
    background-color: #EEEEEE; /* Light greyish matching background */
    border-top: 1px solid #D1D9D7;
    color: var(--text-main);
}

.footer-container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-desc {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-p);
    line-height: 1.6;
}

.footer-col-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu a {
    text-decoration: none;
    color: var(--text-p);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
}

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

.footer-contact-link {
    text-decoration: none;
    color: var(--text-p);
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-contact-link:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    padding: 0 2rem 1.5rem;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-main);
    border-top: 1px solid #D1D9D7;
    padding-top: 1.5rem;
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-overlay,
.mobile-nav-links,
.mobile-drawer-header {
    display: none;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: left;
        gap: 1rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        margin: 0 0 2.5rem;
    }
    .hero-glow {
        width: 100%;
        max-width: 400px;
        height: 300px;
        bottom: 0px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1.5rem;
        position: relative;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }

    /* Smaller logo (beats the Customizer width set in header.php) */
    .site-header .site-brand img.custom-logo {
        max-width: 110px;
        display: block;
    }
    
    /* Logo centred in the phone header, between the menu button and the icons */
    .site-brand {
        margin: 0;
        /* centred with auto margins, not transform: a transform would stop the logo blending into the page */
        position: absolute;
        inset: 0;
        margin: auto;
        width: max-content;
        height: max-content;
    }
    
    /* Phone header: menu button on the left, logo centred, search and cart on the right */
    .header-actions {
        margin-left: auto;
        gap: 0.25rem;
    }

    .header-actions .icon-btn-account {
        display: none; /* linked from the menu instead */
    }

    .site-header {
        padding-top: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 0.5rem 0 -8px; /* the icon itself lines up with the page margin */
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-main);
    }

    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(66, 81, 114, 0.4);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .mobile-menu-overlay.overlay-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Full-screen menu: slides in from the left. transform (not left) so the slide runs on the GPU and stays smooth */
    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%; /* the menu covers the whole phone screen */
        height: 100vh;
        height: 100dvh;
        background-color: #fff;
        box-shadow: 8px 0 30px rgba(66, 81, 114, 0.18);
        z-index: 9999;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
        will-change: transform;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .site-nav.drawer-open {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem 0.75rem 1.5rem;
        border-bottom: 1px solid #D1D9D7;
    }

    .mobile-drawer-header .custom-logo {
        max-width: 110px;
        height: auto;
        display: block;
        mix-blend-mode: normal;
    }

    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-main);
    }

    /* Menu rows with a chevron; the current page is highlighted */
    .site-nav ul {
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem;
    }

    .site-nav ul a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.95rem 1rem;
        border-radius: 12px;
        font-size: 1.05rem;
        transition: background-color 0.2s;
    }

    .site-nav ul a::after {
        content: "";
        width: 7px;
        height: 7px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.5;
    }

    .site-nav ul a:hover,
    .site-nav ul .current-menu-item > a,
    .site-nav ul .current_page_item > a {
        background: #EEEEEE;
    }

    /* Rows slide in one after another once the drawer is open */
    .site-nav.drawer-open ul li {
        animation: drawer-row-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .site-nav.drawer-open ul li:nth-child(2) { animation-delay: 0.04s; }
    .site-nav.drawer-open ul li:nth-child(3) { animation-delay: 0.08s; }
    .site-nav.drawer-open ul li:nth-child(4) { animation-delay: 0.12s; }
    .site-nav.drawer-open ul li:nth-child(n+5) { animation-delay: 0.16s; }

    @keyframes drawer-row-in {
        from { opacity: 0; transform: translateX(-16px); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Account link pinned to the bottom of the drawer */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin-top: auto;
        padding: 1rem;
        border-top: 1px solid #D1D9D7;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.8rem 1rem;
        border-radius: 12px;
        font-weight: 600;
    }

    .mobile-nav-links a:hover {
        background: #EEEEEE;
    }

    @media (prefers-reduced-motion: reduce) {
        .site-nav,
        .mobile-menu-overlay {
            transition: none;
        }
        .site-nav.drawer-open ul li {
            animation: none;
        }
    }

    /* Phone hero image runs edge to edge (the page margins are cancelled out); !important beats the inline max-width */
    .hero-image-wrapper,
    .hero-vial {
        width: 100%;
    }

    .hero-vial img {
        display: block;
        width: calc(100% + 3rem);
        max-width: none !important;
        margin: 0 -1.5rem;
    }

    .hero-section {
        overflow-x: clip;
        padding: 4rem 1.5rem 2rem;
    }
    .main-content {
        padding: 2rem 1.5rem 4rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-pills {
        gap: 0.5rem;
    }
    
    .cat-pill {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Phone product card, as in the Figma phone frame: name + sizes on one row, button + price on one row */
    .card-image-bg {
        padding: 0;
        height: 180px;
    }

    .card-content {
        padding: 0.6rem 0.5rem 0.7rem;
    }

    .badge-cat {
        font-size: 0.5rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.4rem;
    }

    /* Name on the left, sizes in one line on the right (as in the Figma phone card).
       The sizes never wrap or stack; only a long name wraps onto a second line. */
    .card-info-row {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.25rem;
        margin-bottom: 0.6rem;
    }

    .product-name {
        font-size: 0.9rem;
        line-height: 1.2;
        min-width: 0;
        overflow-wrap: anywhere; /* last resort for one very long word */
    }

    .product-variants {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 0.15rem;
    }

    .variant-pill {
        font-size: 0.45rem;
        padding: 0.12rem 0.28rem;
        border-radius: 99px;
    }

    .card-footer {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .price {
        font-size: 0.95rem;
    }

    .price small {
        font-size: 0.55rem;
    }

    .btn-add-cart {
        padding: 0.4rem 0.55rem;
        border-radius: 6px;
        font-size: 0.62rem;
    }

    .btn-add-cart .label-full {
        display: none;
    }

    .btn-add-cart .label-short {
        display: inline;
    }
}

/* Back to Top Button: floating in the bottom-right corner */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background-color: #425172;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(66, 81, 114, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.visible:hover {
    transform: translateY(-3px);
}

/* --------------------------------------
   Single Product Page Styles
-------------------------------------- */
.product-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: #EEEEEE;
}


.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    margin-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-image-box {
    background-color: #D1D9D7;
    border-radius: 12px;
    padding: 2rem;
    flex: 0 0 85%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}
.gallery-image-box:only-child {
    flex: 0 0 100%;
}
.gallery-image-box img {
    max-height: 250px;
    width: auto;
}

.product-title {
    font-size: 2.2rem;
    margin: 0 0 1rem;
}
.product-notices {
    margin-top: 2rem;
    font-size: 0.85rem;
    line-height: 1.6;
}
.product-notices h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.25rem 0 0.25rem;
}
.product-notices p {
    margin: 0;
}

.product-description-block h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.desc-content {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.5rem;
}
.option-group h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.dosage-pills {
    display: flex;
    gap: 0.75rem;
}
.dosage-pill {
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}
.dosage-pill.active {
    background-color: #425172;
    color: var(--white);
    border-color: #425172;
}

.quantity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.qty-card {
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    position: relative;
}
.qty-card.active {
    border-color: #425172;
    border-width: 2px;
    padding: calc(0.75rem - 1px);
}
.qty-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.qty-icons {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    margin-bottom: 1rem;
}
/* Vial: body with a narrower cap on top */
.qty-icons .vial {
    height: 20px;
    border-radius: 2px;
    clip-path: polygon(25% 0, 75% 0, 75% 20%, 100% 20%, 100% 100%, 0 100%, 0 20%, 25% 20%);
}
.qty-icons .icon-active {
    background-color: #425172;
}
.qty-icons .icon-inactive {
    background-color: #D1D9D7;
}
.qty-save {
    background-color: #D1D9D7; /* Greyish for inactive */
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0;
    border-radius: 4px;
    text-align: center;
    width: 60%;
    margin: 0 auto;
}
.qty-card.active .qty-save {
    background-color: #425172;
    color: var(--white);
}

/* Order summary under the quantity cards: four columns split by thin dividers, the final price emphasised */
.summary-box {
    background-color: #D1D9D7;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}
.summary-item {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.6rem;
    border-left: 1px solid rgba(66, 81, 114, 0.25);
}
.summary-item:first-child {
    border-left: none;
}
.summary-label {
    font-size: 0.7rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}
.summary-val {
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.65;
}
.summary-val.highlight {
    font-weight: 600;
    opacity: 1;
}
/* Two buttons: stacked on phones (as in the Figma phone frame), side by side from tablet up */
.product-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background-color: #425172;
    border: none;
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
}

/* Breadcrumbs */
/* Breadcrumb bar under the header (every page except the homepage) */
.breadcrumb-bar {
    max-width: 1264px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
}
.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    /* long trails scroll sideways on small screens instead of wrapping */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.breadcrumb-list::-webkit-scrollbar {
    display: none;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.breadcrumb-list li:last-child {
    flex-shrink: 1;
    min-width: 0;
}
.breadcrumb-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.7;
    padding: 0.3rem 0.1rem;
    transition: opacity 0.2s;
}
.breadcrumb-list a:hover {
    opacity: 1;
    text-decoration: underline;
}
.breadcrumb-list [aria-current] {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.breadcrumb-list .icon {
    width: 14px;
    height: 14px;
}
.breadcrumb-list .icon-chevron {
    opacity: 0.45;
}
.breadcrumb-list .icon-home {
    width: 16px;
    height: 16px;
}
/* the page below already has its own top padding; with the bar above it needs less
   (~ not +: a script tag sits between the bar and the page container) */
.breadcrumb-bar ~ .about-container,
.breadcrumb-bar ~ .contact-page-container,
.breadcrumb-bar ~ .faq-page-container,
.breadcrumb-bar ~ .how-to-order-container,
.breadcrumb-bar ~ .legal-container,
.breadcrumb-bar ~ .archive-container,
.breadcrumb-bar ~ .cart-page-container,
.breadcrumb-bar ~ .checkout-page-container,
.breadcrumb-bar ~ .account-page-container,
.breadcrumb-bar ~ .product-detail-container,
.breadcrumb-bar ~ .page-main-container {
    padding-top: 2rem;
}
@media (max-width: 768px) {
    .breadcrumb-bar {
        padding: 1rem 1.5rem 0;
    }
    .breadcrumb-bar ~ .about-container,
    .breadcrumb-bar ~ .contact-page-container,
    .breadcrumb-bar ~ .faq-page-container,
    .breadcrumb-bar ~ .how-to-order-container,
    .breadcrumb-bar ~ .legal-container,
    .breadcrumb-bar ~ .archive-container,
    .breadcrumb-bar ~ .cart-page-container,
    .breadcrumb-bar ~ .checkout-page-container,
    .breadcrumb-bar ~ .account-page-container,
    .breadcrumb-bar ~ .product-detail-container,
    .breadcrumb-bar ~ .page-main-container {
        padding-top: 1.25rem;
    }
}

/* Mobile vs Desktop */
.desktop-gallery {
    display: none;
}
.desktop-price {
    display: none;
}
.related-section {
    border-top: 1px solid #D1D9D7;
    margin-top: 2rem;
    padding: 2rem 0 4rem;
}
.related-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .product-detail-container {
        max-width: 1264px;
        padding: 2rem;
    }
    .product-detail-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .product-gallery {
        position: sticky;
        top: 2rem;
        align-self: start;
    }

    .mobile-gallery {
        display: none;
    }
    .desktop-gallery {
        display: block;
    }
    
    .gallery-main-box {
        background-color: #D1D9D7;
        border-radius: 12px;
        padding: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 500px;
        margin-bottom: 1rem;
    }
    .gallery-main-box img {
        max-height: 400px;
        width: auto;
    }
    .gallery-thumbs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    .thumb-box {
        background-color: #D1D9D7;
        border-radius: 8px;
        padding: 1rem;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px;
    }
    .thumb-box img {
        max-height: 80px;
        width: auto;
    }
    
    .quantity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .qty-header {
        justify-content: center;
    }
    .mobile-price {
        display: none;
    }
    .desktop-price {
        display: block;
        text-align: center;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .qty-icons {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        margin-bottom: 0.75rem;
    }
    .qty-icons .vial {
        height: 26px;
    }
    .product-title {
        font-size: 3rem;
    }
    .product-badge-mobile {
        display: none;
    }

    .product-actions {
        flex-direction: row;
    }
    .btn-secondary, .btn-primary {
        flex: 1;
    }
}

/* --------------------------------------
   Products Archive Page Styles (shop, categories, search)
-------------------------------------- */
.archive-container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}
.archive-header-top .about-title {
    margin-bottom: 1.5rem;
}
.archive-header-top .cart-title-row {
    margin-bottom: 1.5rem;
}
.archive-header-top .cart-title-row .about-title {
    margin-bottom: 0;
}
.archive-search-term {
    font-weight: 500;
}
.archive-pills {
    margin-bottom: 1.5rem;
}
.archive-pills .cat-pill {
    text-decoration: none;
}
.archive-filter-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #D1D9D7;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 2rem;
}
.filter-search {
    position: relative;
    flex: 1;
    min-width: 0;
}
.filter-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.filter-search .search-input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #EEEEEE;
    color: var(--text-main);
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    font-size: 0.95rem;
}
.filter-search .search-input:focus,
.filter-select:focus {
    outline: 2px solid #425172;
    outline-offset: 1px;
}
.archive-count {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.filter-sort {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.filter-select {
    border: 1px solid #425172;
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
.archive-container .cart-empty-state .btn-primary {
    border-radius: 8px;
}
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
.pagination-wrapper ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}
.pagination-wrapper .page-numbers:not(ul) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.5rem;
    border: 1px solid #D1D9D7;
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.2s;
}
.pagination-wrapper .page-numbers.current {
    background: #425172;
    border-color: #425172;
    color: var(--white);
}
.pagination-wrapper a.page-numbers:hover {
    border-color: #425172;
}
@media (max-width: 700px) {
    .archive-container {
        padding: 2rem 1.5rem 4rem;
    }
    .archive-filter-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .filter-search {
        flex-basis: 100%;
    }
    .archive-count {
        margin-right: auto;
        padding-left: 0.25rem;
    }
    /* categories scroll sideways instead of stacking into many rows */
    .archive-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -1.5rem;
        padding-right: 1.5rem;
        scrollbar-width: none;
    }
    .archive-pills::-webkit-scrollbar {
        display: none;
    }
    .archive-pills .cat-pill {
        flex-shrink: 0;
    }
}

/* --------------------------------------
   Autocomplete Search
-------------------------------------- */
.filter-search {
    position: relative;
}
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid #D1D9D7;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid #EEEEEE;
    transition: background 0.2s;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: #EEEEEE;
}
.suggestion-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 4px;
    background: #EEEEEE;
}
.suggestion-info {
    display: flex;
    flex-direction: column;
}
.suggestion-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.suggestion-cat {
    font-size: 0.75rem;
    color: var(--text-p);
    text-transform: uppercase;
    font-weight: 600;
}

/* --------------------------------------
   About Us Page
-------------------------------------- */
.page-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}
.about-container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 4rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.about-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}
.about-title,
.contact-title {
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
}
.about-title span,
.contact-title span {
    display: block;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0;
    margin-top: 0.5rem;
}
.about-desc,
.contact-desc {
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 2rem;
}
.about-btn {
    display: inline-block;
    text-decoration: none;
    padding: 1rem 2.5rem;
}
.about-btn i {
    margin-left: 0.5rem;
}
.about-established {
    background: #425172;
    color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
}
/* Product photo as a backdrop on the right of the card: multiplied into the navy so it reads as a
   dark tint, and faded out towards the text on the left */
.about-established {
    position: relative;
    overflow: hidden;
}
.about-established-image {
    position: absolute;
    top: 50%;
    right: -6%;
    height: 135%;
    width: auto;
    transform: translateY(-50%);
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 55%);
    mask-image: linear-gradient(to right, transparent, #000 55%);
    pointer-events: none;
}
.about-established > :not(.about-established-image) {
    position: relative; /* text stays above the backdrop */
}
.about-established strong {
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.about-established span {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.75rem;
}
.about-established small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.35rem;
}
.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.highlight-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.highlight-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}
.highlight-card p,
.quality-item p,
.about-mission p {
    margin: 0;
    line-height: 1.6;
}
.about-mission {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
}
.about-mission h2,
.about-quality h2 {
    font-size: 2rem;
    margin: 0 0 1rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #D1D9D7;
    border: 1px solid #D1D9D7;
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
}
.about-stats > div {
    background: #EEEEEE;
    padding: 1.5rem;
}
.about-stats dt {
    font-size: 1.75rem;
    font-weight: 600;
}
.about-stats dd {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.about-quality {
    margin-top: 2rem;
}
.quality-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.quality-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #425172;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}
.quality-item h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}
.about-disclaimer {
    background: #D1D9D7;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    line-height: 1.6;
}
.about-disclaimer h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}
.about-disclaimer p {
    margin: 0;
}
.about-cta {
    text-align: center;
    border-top: 1px solid #D1D9D7;
    padding: 4rem 2rem 6rem;
}
.about-cta h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
}
.about-cta p {
    margin: 0 0 1.5rem;
}
@media (max-width: 900px) {
    .about-hero,
    .about-mission,
    .quality-list {
        grid-template-columns: 1fr;
    }
    .about-highlights-grid {
        grid-template-columns: 1fr;
    }
    .about-established {
        min-height: 0;
    }
    /* Phone and tablet: the whole vial fits inside the card, clear of the text */
    .about-established-image {
        height: 100%;
        right: -3%;
    }
}
@media (max-width: 600px) {
    .about-container {
        padding: 2rem 1.5rem 3rem;
    }
    .about-cta {
        padding: 3rem 1.5rem 4rem;
    }
    .about-title,
    .contact-title {
        font-size: 2.5rem;
    }
    .about-title span,
    .contact-title span {
        font-size: 1.35rem;
    }
    .about-mission {
        padding: 1.5rem;
    }
    .about-established strong {
        font-size: 3.5rem;
    }
}

/* --------------------------------------
   FAQ Page
-------------------------------------- */
.faq-page-container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}
.faq-side {
    position: sticky;
    top: 2rem;
}
.faq-contact h2 {
    margin-bottom: 0.5rem;
}
.faq-contact p {
    margin: 0 0 1.25rem;
    line-height: 1.6;
}
.faq-contact .about-btn i {
    margin: 0 0.5rem 0 0;
}

/* Accordion (FAQ page and homepage) */
.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}
.faq-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.faq-title {
    font-size: 3rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}
.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.faq-item {
    background: #fff;
    border: 1px solid #D1D9D7;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover,
.faq-item.active {
    border-color: #425172;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background-color 0.2s, color 0.2s;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: #425172;
    color: var(--white);
}
/* The answer opens by animating a grid row from 0 to its real height, so the motion matches the
   content exactly (a fixed max-height made it lurch and lag on close) */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}
.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    line-height: 1.6;
}
.faq-answer-inner p {
    margin: 0;
}
/* bottom spacing sits on the content, so the closed row can shrink all the way to nothing */
.faq-answer-inner > :last-child {
    padding-bottom: 1.25rem;
}
@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-icon {
        transition: none;
    }
}
.faq-notice {
    background: #D1D9D7;
    border-radius: 12px;
    padding: 1.5rem;
    line-height: 1.6;
}
.faq-notice h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}
.faq-notice p {
    margin: 0;
}
@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .faq-side {
        position: static;
    }
}
@media (max-width: 600px) {
    .faq-page-container {
        padding: 2rem 1.5rem 4rem;
    }
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    .faq-answer-inner {
        padding: 0 1.25rem;
    }
    .faq-answer-inner > :last-child {
        padding-bottom: 1rem;
    }
}

    /* --------------------------------------
       Generic Page (page.php)
    -------------------------------------- */
    .page-main-container {
        max-width: 900px;
        margin: 0 auto;
        padding: 4rem 2rem;
    }
    .page-header {
        margin-bottom: 3rem;
        text-align: center;
    }
    .page-title {
        font-size: 2.5rem;
        font-weight: 600;
        color: var(--text-main);
    }
    .page-content {
        line-height: 1.8;
        font-size: 1.1rem;
        color: var(--text-p);
    }
    .page-content h2, .page-content h3 {
        color: var(--text-main);
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    /* --------------------------------------
       Contact Page
    -------------------------------------- */
    .contact-page-container {
        max-width: 1264px;
        margin: 0 auto;
        padding: 4rem 2rem 6rem;
    }
    .contact-content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    .contact-quick {
        display: flex;
        gap: 1.25rem;
        align-items: flex-start;
    }
    .contact-quick > i {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: 50%;
        background: #425172;
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .contact-quick h2 {
        margin-bottom: 0.35rem;
    }
    .contact-quick p {
        margin: 0 0 0.25rem;
    }
    .contact-quick a {
        color: var(--text-main);
        font-size: 1.1rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }
    .contact-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-top: 1.25rem;
    }
    .contact-links a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.1rem 1.25rem;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 600;
        transition: border-color 0.2s;
    }
    .contact-links a:hover {
        border-color: #425172;
    }
    .contact-links a i:last-child {
        margin-left: auto;
    }
    .contact-form-card {
        padding: 2rem;
        scroll-margin-top: 2rem;
    }
    .contact-form-card .checkout-label:first-of-type {
        margin-top: 0;
    }
    .contact-form-card textarea {
        resize: vertical;
        min-height: 140px;
        font-family: inherit;
    }
    .contact-hp {
        position: absolute;
        left: -9999px;
    }
    .contact-errors {
        list-style: none;
        margin: 0 0 1.5rem;
        padding: 1rem 1.25rem;
        border: 1px solid #425172;
        border-radius: 8px;
        font-weight: 500;
    }
    .contact-errors li + li {
        margin-top: 0.25rem;
    }
    .contact-sent {
        text-align: center;
        padding: 3rem 1rem;
    }
    .contact-sent i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    .contact-sent h2 {
        margin-bottom: 0.5rem;
    }
    .contact-sent p {
        margin: 0;
    }
    @media (max-width: 900px) {
        .contact-content-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }
    @media (max-width: 600px) {
        .contact-page-container {
            padding: 2rem 1.5rem 4rem;
        }
        .contact-links {
            grid-template-columns: 1fr;
        }
        .contact-form-card {
            padding: 1.25rem;
        }
    }
    /* --------------------------------------
       How to Order Page
    -------------------------------------- */
    .how-to-order-container {
        max-width: 1264px;
        margin: 0 auto;
        padding: 4rem 2rem 6rem;
    }
    .how-header {
        margin-bottom: 1rem;
    }
    .how-layout {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        align-items: start;
    }
    .how-toc {
        position: sticky;
        top: 2rem;
    }
    .how-toc ol {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .how-toc a {
        display: flex;
        gap: 0.75rem;
        padding: 0.55rem 0.5rem;
        border-radius: 8px;
        color: var(--text-main);
        text-decoration: none;
        font-size: 0.9rem;
        line-height: 1.4;
        transition: background-color 0.2s;
    }
    .how-toc a:hover {
        background: #EEEEEE;
    }
    .how-toc a span {
        font-weight: 600;
    }
    .how-steps-list {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        min-width: 0;
    }
    .how-step-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1.25rem;
        align-items: start;
        background: #fff;
        border: 1px solid #D1D9D7;
        border-radius: 12px;
        padding: 2rem;
        scroll-margin-top: 1.5rem;
    }
    .how-step-card.has-image {
        grid-template-columns: auto 1fr 260px;
    }
    .step-num {
        background: #425172;
        color: var(--white);
        font-weight: 600;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .step-text {
        line-height: 1.6;
        min-width: 0;
    }
    .step-text .step-title {
        font-size: 1.4rem;
        margin: 0.4rem 0 1rem;
    }
    .step-text h3,
    .step-text h4 {
        font-size: 1.05rem;
        margin: 1.25rem 0 0.25rem;
    }
    .step-text p {
        margin: 0 0 0.6rem;
    }
    .step-text > :last-child {
        margin-bottom: 0;
    }
    .step-text ul {
        margin: 0 0 0.75rem;
        padding-left: 1.25rem;
    }
    .step-image {
        background: #D1D9D7;
        border-radius: 12px;
        padding: 0.75rem;
    }
    .step-image img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    .how-cta {
        text-align: center;
        margin-top: 1.5rem;
    }
    /* Legal pages (terms, privacy): same header and side list as the how-to page */
    .legal-container {
        max-width: 1264px;
        margin: 0 auto;
        padding: 4rem 2rem 6rem;
    }
    /* One long word ("Personvernerklæring") has to fit a phone screen */
    .legal-container .about-title {
        font-size: clamp(1.75rem, 8vw, 3.5rem);
        overflow-wrap: anywhere;
    }
    .legal-updated {
        margin: -0.5rem 0 2rem;
        font-size: 0.9rem;
        font-weight: 500;
    }
    .legal-updated i {
        margin-right: 0.4rem;
    }
    .legal-content {
        padding: 2.5rem;
        line-height: 1.7;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .legal-content h2 {
        font-size: 1.4rem;
        margin: 2.5rem 0 1rem;
        padding-top: 2.5rem;
        border-top: 1px solid #D1D9D7;
        scroll-margin-top: 1.5rem;
    }
    .legal-content > :first-child {
        margin-top: 0;
    }
    .legal-content > h2:first-child {
        padding-top: 0;
        border-top: none;
    }
    .legal-content h3 {
        font-size: 1.05rem;
        margin: 1.5rem 0 0.5rem;
    }
    .legal-content p {
        margin: 0 0 0.75rem;
    }
    .legal-content ul {
        margin: 0 0 1rem;
        padding-left: 1.25rem;
    }
    .legal-content a {
        color: var(--text-main);
        font-weight: 600;
    }
    .legal-content > :last-child {
        margin-bottom: 0;
    }
    @media (max-width: 700px) {
        .legal-container {
            padding: 2rem 1.5rem 4rem;
        }
        .legal-content {
            padding: 1.5rem;
        }
    }
    .footer-legal {
        max-width: 1200px;
        margin: 0 auto 1.5rem;
        font-size: 0.75rem;
        line-height: 1.6;
    }
    @media (max-width: 1000px) {
        .how-layout {
            grid-template-columns: 1fr;
        }
        .how-toc {
            position: static;
        }
        .how-toc ol {
            display: grid;
            grid-template-columns: 1fr 1fr;
            column-gap: 1rem;
        }
    }
    @media (max-width: 700px) {
        .how-to-order-container {
            padding: 2rem 1.5rem 4rem;
        }
        .how-toc ol {
            grid-template-columns: 1fr;
        }
        .how-step-card,
        .how-step-card.has-image {
            grid-template-columns: auto 1fr;
            padding: 1.25rem;
        }
        .how-step-card .step-image {
            grid-column: 1 / -1;
            max-width: 280px;
            margin: 1.25rem auto 0;
        }
    }
    /* --------------------------------------
       Cart Page
    -------------------------------------- */
    .cart-page-container {
        max-width: 1264px;
        margin: 0 auto;
        padding: 4rem 2rem;
    }
    .cart-back-link {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        color: var(--text-main);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }
    .cart-title-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .cart-page-title {
        font-size: 2.5rem;
        margin: 0;
        color: var(--text-main);
    }
    .cart-count-badge {
        background: #D1D9D7;
        border-radius: 6px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }
    .cart-empty-state {
        text-align: center;
        padding: 5rem 2rem;
        border-radius: 12px;
        border: 1px dashed #425172;
    }
    .cart-empty-state i {
        font-size: 4rem;
        color: #D1D9D7;
        margin-bottom: 1.5rem;
    }
    .cart-empty-state h2 {
        font-size: 1.8rem;
        margin: 0 0 0.5rem;
    }
    .cart-empty-state p {
        margin: 0 0 2rem;
    }
    .cart-empty-state .btn-primary {
        display: inline-block;
        text-decoration: none;
        padding: 1rem 2.5rem;
    }
    .cart-grid {
        display: grid;
        grid-template-columns: 1.7fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    .cart-items {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    .cart-item {
        display: flex;
        gap: 1.5rem;
        background: #fff;
        border: 1px solid #D1D9D7;
        border-radius: 12px;
        padding: 1.5rem;
        transition: border-color 0.2s;
    }
    .cart-item:hover {
        border-color: #425172;
    }
    .cart-item-image {
        width: 110px;
        height: 110px;
        flex-shrink: 0;
        background: #D1D9D7;
        border-radius: 8px;
        overflow: hidden;
    }
    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .cart-item-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .cart-item-details h4 {
        font-size: 1.25rem;
        margin: 0.25rem 0 0;
    }
    .cart-item-details h4 a {
        color: var(--text-main);
        text-decoration: none;
    }
    .cart-item-meta {
        font-size: 0.8rem;
    }
    .cart-item-side {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
    }
    .btn-remove-item {
        background: none;
        border: none;
        color: var(--text-main);
        font-size: 1rem;
        cursor: pointer;
        /* 40px tap target without moving the icon */
        width: 40px;
        height: 40px;
        margin: -0.6rem -0.6rem 0 0;
        opacity: 0.6;
        transition: opacity 0.2s;
    }
    .btn-remove-item:hover {
        opacity: 1;
    }
    .qty-selector {
        display: inline-flex;
        border-radius: 8px;
        overflow: hidden;
        margin-top: auto;
    }
    .qty-btn {
        background: #425172;
        color: var(--white);
        border: none;
        width: 40px;
        height: 42px;
        cursor: pointer;
        font-weight: 600;
        font-size: 1rem;
    }
    .qty-input {
        width: 56px;
        text-align: center;
        border: 1px solid #425172;
        border-width: 1px 0;
        border-radius: 0;
        background: #fff;
        color: var(--text-main);
        font-weight: 600;
        font-size: 1rem;
        -moz-appearance: textfield;
    }
    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    .cart-item-price {
        font-weight: 600;
        font-size: 1.4rem;
        white-space: nowrap;
    }
    .cart-summary h3 {
        font-size: 1.3rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin: 0 0 1.5rem;
    }
    .coupon-form {
        display: flex;
        gap: 0.75rem;
    }
    .coupon-form input {
        flex: 1;
        min-width: 0;
        border: 1px solid #425172;
        border-radius: 8px;
        background: #fff;
        color: var(--text-main);
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .coupon-form .btn-primary {
        padding: 0 1.5rem;
        font-size: 0.8rem;
        text-transform: uppercase;
    }
    .coupon-message {
        min-height: 1.2rem;
        margin: 0.5rem 0 1.5rem;
        font-size: 0.8rem;
    }
    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 0;
        border-top: 1px solid #D1D9D7;
    }
    .btn-remove-coupon {
        background: none;
        border: none;
        padding: 0;
        margin-left: 0.5rem;
        color: var(--text-main);
        font-size: 0.8rem;
        text-decoration: underline;
        cursor: pointer;
    }
    .summary-total {
        font-weight: 600;
        font-size: 1.3rem;
    }
    .summary-total span:first-child {
        text-transform: uppercase;
    }
    .summary-total span:last-child {
        font-size: 2rem;
    }
    .cart-checkout-btn {
        display: block;
        text-decoration: none;
        border-radius: 99px;
        padding: 1.25rem;
        margin-top: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 1rem;
    }
    .cart-checkout-btn i {
        margin-left: 0.75rem;
    }
    .cart-research-note {
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        font-size: 0.7rem;
        font-weight: 600;
        margin: 1.5rem 0 0;
    }
    @media (max-width: 900px) {
        .cart-grid {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 600px) {
        .cart-page-container {
            padding: 2rem 1.5rem;
        }
        .cart-item {
            gap: 1rem;
            padding: 1rem;
        }
        .cart-item-image {
            width: 72px;
            height: 72px;
        }
        .cart-item-details h4 {
            font-size: 1rem;
        }
        .cart-item-price {
            font-size: 1.1rem;
        }
    }
    /* --------------------------------------
       Checkout Page
    -------------------------------------- */
    .checkout-page-container {
        max-width: 1264px;
        margin: 0 auto;
        padding: 4rem 2rem;
    }
    .checkout-page-container .cart-page-title {
        margin-bottom: 2rem;
    }
    .checkout-warning {
        border: 1px solid #425172;
        border-radius: 12px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    .checkout-warning h3 {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0 0 0.5rem;
    }
    .checkout-warning p {
        margin: 0 0 0.75rem;
    }
    .checkout-warning p:last-child {
        margin: 0;
    }
    .checkout-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    .checkout-col {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        min-width: 0;
    }
    .checkout-box {
        background: #fff;
        border: 1px solid #D1D9D7;
        border-radius: 12px;
        padding: 1.5rem;
    }
    .checkout-box h2 {
        font-size: 1.3rem;
        margin: 0 0 1.25rem;
    }
    .checkout-box h2 i,
    .checkout-box h3 i {
        margin-right: 0.4rem;
    }
    .checkout-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #D1D9D7;
    }
    .checkout-box h2 + .checkout-item {
        border-top: none;
        padding-top: 0;
    }
    .checkout-item:last-child {
        padding-bottom: 0;
    }
    .checkout-item-image {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
        background: #D1D9D7;
        border-radius: 8px;
        overflow: hidden;
    }
    .checkout-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .checkout-item-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
    .checkout-item-price {
        font-weight: 600;
    }
    .checkout-item .qty-selector {
        margin-top: 0;
        border-radius: 99px;
    }
    .checkout-item .btn-remove-item {
        margin: 0;
    }
    .checkout-nudge {
        border-color: #425172;
    }
    .checkout-nudge h3 {
        font-size: 1rem;
        margin: 0 0 0.5rem;
    }
    .checkout-nudge p {
        margin: 0 0 1rem;
        font-size: 0.9rem;
    }
    .nudge-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nudge-btn {
        background: transparent;
        border: 1px solid #425172;
        border-radius: 99px;
        color: var(--text-main);
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        cursor: pointer;
        transition: background-color 0.2s, color 0.2s;
    }
    .nudge-btn:hover {
        background: #425172;
        color: var(--white);
    }
    .checkout-box .coupon-message:empty {
        margin: 0;
        min-height: 0;
    }
    .checkout-box .coupon-message {
        margin-bottom: 0;
    }
    .checkout-box .summary-coupon {
        margin-top: 1rem;
        padding-bottom: 0;
    }
    .checkout-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #425172;
        color: var(--white);
        border-radius: 12px;
        padding: 1.5rem;
        font-weight: 600;
        letter-spacing: 0.05em;
    }
    .checkout-total strong {
        font-size: 1.75rem;
        letter-spacing: 0;
    }
    /* WooCommerce payment block inside the checkout box */
    .checkout-box #payment .place-order {
        display: none;
    }
    .checkout-box #payment ul.payment_methods {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .checkout-box #payment ul.payment_methods > li {
        padding: 0.75rem 0;
        border-top: 1px solid #D1D9D7;
    }
    .checkout-box #payment ul.payment_methods > li:first-child {
        border-top: none;
        padding-top: 0;
    }
    .checkout-box #payment .woocommerce-info,
    .checkout-box #payment .woocommerce-notice {
        list-style: none;
        background: none;
        border: none;
        margin: 0;
        padding: 0;
        color: var(--text-main);
        font-size: 0.9rem;
    }
    .checkout-box #payment .woocommerce-info::before {
        display: none;
    }
    .checkout-box #payment {
        background: none;
        border-radius: 0;
    }
    .checkout-box #payment label {
        font-weight: 600;
        margin-left: 0.4rem;
    }
    /* The gateway's own fields (network, token, instructions) in the site's style instead of WooCommerce's purple box */
    .woocommerce-checkout .checkout-box #payment div.payment_box {
        background: #EEEEEE;
        border-radius: 8px;
        color: var(--text-main);
        font-size: 0.85rem;
        line-height: 1.6;
        margin: 0.75rem 0 0;
        padding: 1rem;
    }
    .woocommerce-checkout .checkout-box #payment div.payment_box::before {
        display: none;
    }
    .woocommerce-checkout .checkout-box #payment div.payment_box p {
        margin: 0 0 0.75rem;
    }
    .woocommerce-checkout .checkout-box #payment div.payment_box label {
        display: block;
        margin: 0.75rem 0 0.35rem;
        font-size: 0.8rem;
    }
    .woocommerce-checkout .checkout-box #payment div.payment_box select,
    .woocommerce-checkout .checkout-box #payment div.payment_box input[type="text"] {
        width: 100%;
        border: 1px solid #425172;
        border-radius: 8px;
        background: #fff;
        color: var(--text-main);
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    .checkout-box #payment ul.payment_methods > li > label {
        margin-left: 0;
    }
    .checkout-label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        margin: 1.5rem 0 0.6rem;
    }
    .checkout-box h2 + .checkout-label {
        margin-top: 0;
    }
    .ll-code {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    .ll-prefix {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        border-radius: 50%;
        background: #425172;
        color: var(--white);
        font-size: 0.75rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ll-digit {
        flex: 1;
        min-width: 0;
        max-width: 38px;
        height: 38px;
        padding: 0;
        text-align: center;
        border: 1px solid #425172;
        border-radius: 6px;
        background: #fff;
        color: var(--text-main);
        font-size: 1rem;
        font-weight: 600;
    }
    .ll-digit.ll-gap {
        margin-left: 0.4rem;
    }
    .ll-digit:focus,
    .checkout-input:focus,
    .coupon-form input:focus {
        outline: 2px solid #425172;
        outline-offset: 1px;
    }
    .checkout-help-link {
        display: inline-block;
        margin-top: 0.75rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-main);
    }
    .checkout-input {
        width: 100%;
        border: 1px solid #425172;
        border-radius: 8px;
        background: #fff;
        color: var(--text-main);
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
    .checkout-hint {
        font-size: 0.75rem;
        line-height: 1.6;
        margin: 0.6rem 0 0;
    }
    .checkout-privacy {
        background: #EEEEEE;
        border-radius: 8px;
        padding: 1.25rem;
        margin-top: 1.5rem;
        font-size: 0.8rem;
        line-height: 1.6;
    }
    .checkout-privacy h3 {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0 0 0.5rem;
    }
    .checkout-privacy p {
        margin: 0 0 0.75rem;
    }
    .checkout-privacy-tag {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }
    .checkout-terms {
        font-size: 0.8rem;
        margin: 1.5rem 0 0;
    }
    .checkout-terms a {
        color: var(--text-main);
    }
    .checkout-box .cart-checkout-btn {
        width: 100%;
    }
    /* Order received */
    .order-received-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    .order-received-header > i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    .order-received-header .cart-page-title {
        margin-bottom: 0.75rem;
    }
    .order-received-header p {
        margin: 0;
    }
    .order-received-header .cart-checkout-btn {
        display: inline-block;
        padding: 1rem 3rem;
    }
    .order-overview {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1px;
        background: #D1D9D7;
        border: 1px solid #D1D9D7;
        border-radius: 12px;
        overflow: hidden;
        margin: 0 0 1.25rem;
    }
    .order-overview > div {
        background: #fff;
        padding: 1.25rem 1.5rem;
    }
    .order-overview dt,
    .order-delivery dt {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 0.3rem;
    }
    .order-overview dd,
    .order-delivery dd {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }
    .order-delivery {
        margin: 0;
    }
    .order-delivery dd {
        margin-bottom: 1.25rem;
    }
    .order-payment-info {
        margin-bottom: 1.25rem;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }
    .order-received .checkout-item:last-of-type {
        padding-bottom: 1rem;
    }
    .order-received .checkout-item {
        flex-wrap: nowrap;
    }
    .order-received .checkout-item-details {
        flex-basis: auto;
    }
    .order-received .checkout-item-price {
        white-space: nowrap;
    }
    /* WooCommerce error list shown above the form on a failed order */
    .checkout-grid .woocommerce-NoticeGroup {
        grid-column: 1 / -1;
    }
    .checkout-grid .woocommerce-error {
        list-style: none;
        margin: 0;
        padding: 1rem 1.5rem;
        border: 1px solid #425172;
        border-radius: 12px;
        background: #fff;
        font-weight: 500;
    }
    .checkout-grid .woocommerce-error::before {
        display: none;
    }
    .checkout-grid .woocommerce-error a {
        color: inherit;
        text-decoration: none;
    }
    .checkout-grid .woocommerce-error li + li {
        margin-top: 0.25rem;
    }
    @media (max-width: 900px) {
        .checkout-grid {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 600px) {
        .checkout-page-container {
            padding: 2rem 1.5rem;
        }
        .checkout-box {
            padding: 1.25rem;
        }
        form.checkout .checkout-item {
            flex-wrap: wrap;
        }
        form.checkout .checkout-item-details {
            flex-basis: calc(100% - 56px - 1rem);
        }
        .checkout-item .qty-selector {
            margin-left: calc(56px + 1rem);
        }
        .checkout-item .btn-remove-item {
            margin-left: auto;
        }
    }
    /* --------------------------------------
       Mini cart drawer + "added" toast
    -------------------------------------- */
    .cart-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(66, 81, 114, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 1000;
    }
    .cart-drawer {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: min(420px, calc(100vw - 2rem));
        max-height: calc(100vh - 2rem);
        display: flex;
        flex-direction: column;
        background: #EEEEEE;
        border: 1px solid #425172;
        border-radius: 12px;
        padding: 1.75rem;
        box-shadow: 0 20px 40px rgba(66, 81, 114, 0.25);
        transform: translateX(calc(100% + 2rem));
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
        z-index: 1001;
    }
    .cart-drawer-open .cart-drawer-overlay {
        opacity: 1;
        visibility: visible;
    }
    .cart-drawer-open .cart-drawer {
        transform: translateX(0);
        visibility: visible;
    }
    .cart-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    .cart-drawer-title {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.2em;
    }
    .cart-drawer-close {
        background: none;
        border: none;
        color: var(--text-main);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0.25rem;
    }
    .cart-drawer-items {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    .cart-drawer-item {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        animation: cart-drawer-item-in 0.4s ease both;
    }
    .cart-drawer-item:nth-child(2) { animation-delay: 0.06s; }
    .cart-drawer-item:nth-child(3) { animation-delay: 0.12s; }
    .cart-drawer-item:nth-child(n+4) { animation-delay: 0.18s; }
    @keyframes cart-drawer-item-in {
        from { opacity: 0; transform: translateX(16px); }
        to { opacity: 1; transform: translateX(0); }
    }
    .cart-drawer-item img,
    .cart-drawer-item .no-img {
        width: 68px;
        height: 68px;
        object-fit: cover;
        background: #D1D9D7;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .cart-drawer-item-info {
        flex: 1;
        min-width: 0;
    }
    .cart-drawer-item-name {
        display: block;
        font-weight: 600;
        margin: 0.15rem 0 0.25rem;
    }
    .cart-drawer-item-qty {
        font-size: 0.85rem;
        opacity: 0.75;
    }
    .cart-drawer-item-total {
        font-weight: 600;
        white-space: nowrap;
        margin-top: 0.15rem;
    }
    .cart-drawer-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        border-top: 1px solid #D1D9D7;
        margin-top: 1.5rem;
        padding: 1.25rem 0;
    }
    .cart-drawer-subtotal strong {
        font-size: 1.6rem;
    }
    .cart-drawer .btn-primary {
        display: block;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        font-size: 0.85rem;
        padding: 1.2rem;
    }
    .cart-drawer .btn-primary i {
        margin-left: 0.75rem;
        transition: transform 0.2s;
    }
    .cart-drawer .btn-primary:hover i {
        transform: translateX(4px);
    }
    .cart-toast {
        position: fixed;
        left: 1.5rem;
        bottom: 1.5rem;
        width: min(380px, calc(100vw - 2rem));
        background: #fff;
        border: 1px solid #425172;
        border-radius: 12px;
        padding: 1.25rem 1.5rem;
        box-shadow: 0 10px 30px rgba(66, 81, 114, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
        z-index: 1002;
    }
    .cart-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .cart-toast-title {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.35rem;
    }
    /* Phones: the toast is nearly as wide as the screen, so the mini cart stops short of it instead of running underneath */
    @media (max-width: 600px) {
        .cart-drawer {
            max-height: calc(100vh - 9rem);
            max-height: calc(100dvh - 9rem);
        }
    }
    .cart-count.bump {
        animation: cart-count-bump 0.4s ease;
    }
    @keyframes cart-count-bump {
        50% { transform: scale(1.5); }
    }
    @media (prefers-reduced-motion: reduce) {
        .cart-drawer,
        .cart-drawer-overlay,
        .cart-toast {
            transition: none;
        }
        .cart-drawer-item,
        .cart-count.bump {
            animation: none;
        }
    }
    /* --------------------------------------
       Full-screen search
    -------------------------------------- */
    .search-overlay {
        position: fixed;
        inset: 0;
        background: rgba(238, 238, 238, 0.97);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 22vh 1.5rem 2rem;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 10000;
    }
    .search-overlay.open {
        opacity: 1;
        visibility: visible;
    }
    body.search-open {
        overflow: hidden;
    }
    .search-overlay-close {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
        background: none;
        border: none;
        color: var(--text-main);
        font-size: 1.75rem;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .search-overlay-close:hover {
        transform: rotate(90deg);
    }
    .search-overlay-inner {
        width: 100%;
        max-width: 620px;
        transform: translateY(16px);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .search-overlay.open .search-overlay-inner {
        transform: translateY(0);
    }
    .search-overlay input[type="search"] {
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 2px solid #425172;
        border-radius: 0;
        color: var(--text-main);
        font-size: 2rem;
        font-weight: 500;
        padding: 0.5rem 0;
        outline: none;
    }
    .search-overlay input[type="search"]::placeholder {
        color: var(--text-main);
        opacity: 0.4;
    }
    .search-overlay input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
    }
    .search-overlay-item {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding: 0.9rem 0.5rem;
        border-bottom: 1px solid #D1D9D7;
        color: var(--text-main);
        text-decoration: none;
        animation: cart-drawer-item-in 0.3s ease both;
        transition: background-color 0.2s;
    }
    .search-overlay-item:hover,
    .search-overlay-item:focus-visible {
        background: #fff;
    }
    .search-overlay-img {
        width: 72px;
        height: 72px;
        flex-shrink: 0;
        object-fit: cover;
        background: #D1D9D7;
        border-radius: 8px;
    }
    .search-overlay-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 1.1rem;
    }
    .search-overlay-message {
        margin: 1.5rem 0 0;
        font-weight: 500;
    }
    @media (max-width: 600px) {
        .search-overlay {
            padding-top: 14vh;
        }
        .search-overlay input[type="search"] {
            font-size: 1.5rem;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .search-overlay,
        .search-overlay-inner {
            transition: none;
        }
        .search-overlay-item {
            animation: none;
        }
    }
    /* --------------------------------------
       Homepage FAQ section
    -------------------------------------- */
    /* The section above ends where this one's line begins, so it gives up some bottom padding */
    .main-content--before-section {
        padding-bottom: 2rem;
    }
    .home-faq-section {
        border-top: 1px solid #D1D9D7;
        padding: 4rem 2rem 6rem;
    }
    .home-faq {
        max-width: 900px;
        margin: 0 auto;
    }
    @media (max-width: 768px) {
        .home-faq-section {
            padding: 3rem 1.5rem 4rem;
        }
    }
    .home-faq .faq-header {
        margin-bottom: 2.5rem;
    }
    .home-faq .faq-title {
        font-size: 2.25rem;
        margin: 0;
    }
    .home-faq .faq-accordion-wrapper {
        margin-bottom: 0;
    }
    /* --------------------------------------
       404 Error Page
    -------------------------------------- */
    .error-404-content {
        position: relative;
        max-width: 760px;
        padding: 2rem 0 1rem;
    }
    /* Oversized "404" sitting behind the heading */
    .error-code {
        display: block;
        font-size: clamp(6rem, 22vw, 14rem);
        font-weight: 600;
        line-height: 0.85;
        letter-spacing: -0.04em;
        color: #D1D9D7;
        margin: 0 0 1.5rem -0.05em;
        user-select: none;
    }
    .error-search {
        display: flex;
        gap: 0.75rem;
        background: #fff;
        border: 1px solid #D1D9D7;
        border-radius: 12px;
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    /* A desktop rule elsewhere makes every .btn-primary stretch; these two sit beside a text field and should not */
    .error-search .btn-primary,
    .coupon-form .btn-primary {
        flex: 0 0 auto;
    }
    .error-search .btn-primary {
        padding: 0 2rem;
        font-size: 0.95rem;
    }
    .error-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .error-actions .about-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.75rem;
    }
    .error-actions .about-btn i {
        margin: 0 0.5rem 0 0;
    }
    /* "Populære produkter" on dead ends (404, empty search) */
    .product-suggestions {
        margin-top: 4rem;
    }
    /* 404 and empty search: the suggestions sit in their own full-width section under a line */
    .error-404-container,
    .archive-container--before-section {
        padding-bottom: 2rem;
    }
    .related-section .archive-container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .related-section .product-suggestions {
        margin-top: 0;
    }
    .product-suggestions h2 {
        font-size: 1.75rem;
        margin: 0 0 1.5rem;
    }
    @media (max-width: 600px) {
        .error-search {
            flex-direction: column;
        }
        .error-search .btn-primary {
            padding: 0.9rem;
        }
        .error-actions .about-btn {
            flex: 1 1 100%;
            text-align: center;
        }
    }

    /* --------------------------------------
       My Account Page
    -------------------------------------- */
    .account-page-container {
        max-width: 1264px;
        margin: 0 auto;
        padding: 4rem 2rem;
    }
    .account-page-container > .cart-page-title {
        margin-bottom: 2rem;
    }
    /* Login / register / password reset */
    .auth-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 960px;
        margin: 0 auto;
    }
    .auth-grid-single {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
    .auth-card {
        padding: 2rem;
    }
    /* WooCommerce's default stylesheet boxes these forms; the card already does */
    .account-page-container form.login,
    .account-page-container form.register,
    .account-page-container form.lost_reset_password {
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    .auth-card .checkout-label:first-of-type {
        margin-top: 0;
    }
    .auth-desc {
        line-height: 1.6;
        margin: 0 0 1.5rem;
    }
    .auth-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
        font-size: 0.85rem;
    }
    .auth-row a,
    .auth-back a {
        color: var(--text-main);
        font-weight: 600;
    }
    .auth-remember {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
    }
    .auth-back {
        margin: 1.5rem 0 0;
        font-size: 0.85rem;
    }
    .auth-back a {
        text-decoration: none;
    }
    /* Logged-in layout */
    .account-dashboard {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 2rem;
        align-items: start;
    }
    .dashboard-sidebar {
        position: sticky;
        top: 2rem;
    }
    .user-profile-badge {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid #D1D9D7;
        min-width: 0;
    }
    .user-profile-badge > div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .user-profile-badge span,
    .user-profile-badge strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .user-profile-badge div span {
        font-size: 0.8rem;
    }
    .user-avatar {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: 50%;
        background: #425172;
        color: var(--white);
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .account-nav {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .account-nav a {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 0.8rem 1rem;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
        border-radius: 8px;
        transition: background-color 0.2s;
    }
    .account-nav a i {
        width: 18px;
        text-align: center;
    }
    .account-nav a:hover {
        background: #EEEEEE;
    }
    .account-nav a.active {
        background: #425172;
        color: var(--white);
        font-weight: 600;
    }
    .account-nav-logout {
        margin-top: 0.75rem;
        border-top: 1px solid #D1D9D7;
        border-radius: 0 0 8px 8px !important;
        padding-top: 1.1rem !important;
    }
    .dashboard-main {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        min-width: 0;
    }
    .dashboard-main form {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    .dashboard-main .order-overview,
    .dashboard-main .order-payment-info,
    .dashboard-main .cart-back-link {
        margin-bottom: 0;
    }
    .dashboard-main .checkout-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 1.25rem;
    }
    .account-welcome h2 {
        margin-bottom: 0.5rem;
    }
    .account-welcome p {
        margin: 0;
    }
    .account-tiles {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .account-tile {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        color: var(--text-main);
        text-decoration: none;
        min-width: 0;
        transition: border-color 0.2s;
    }
    .account-tile:hover {
        border-color: #425172;
    }
    .account-order-row:hover .account-order-main strong {
        text-decoration: underline;
    }
    .account-tile i {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .account-tile strong {
        font-size: 1.25rem;
    }
    .account-tile span {
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .account-order-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #D1D9D7;
        color: var(--text-main);
        text-decoration: none;
    }
    .checkout-box h2 + .account-order-row {
        border-top: none;
        padding-top: 0;
    }
    .account-order-row:last-child {
        padding-bottom: 0;
    }
    .account-order-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
    .account-order-main span {
        font-size: 0.85rem;
    }
    .account-order-total {
        min-width: 80px;
        text-align: right;
        white-space: nowrap;
    }
    .order-status {
        border: 1px solid #425172;
        border-radius: 99px;
        padding: 0.3rem 0.75rem;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
    .order-status-completed,
    .order-status-processing {
        background: #425172;
        color: var(--white);
    }
    .order-status-cancelled,
    .order-status-failed,
    .order-status-refunded {
        border-color: #D1D9D7;
        background: #D1D9D7;
    }
    .account-empty {
        margin: 0 0 1.25rem;
    }
    .account-empty:last-child {
        margin-bottom: 0;
    }
    .account-inline-btn,
    .account-save-btn {
        display: inline-block;
        width: auto;
        align-self: flex-start;
        padding: 1rem 2.5rem;
        margin-top: 0;
    }
    .account-pagination {
        display: flex;
        gap: 0.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid #D1D9D7;
    }
    .account-pagination .nudge-btn {
        text-decoration: none;
    }
    .account-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .account-password-hint {
        margin: -0.75rem 0 0;
    }
    .account-note + .account-note {
        border-top: 1px solid #D1D9D7;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    .account-note p {
        margin: 0.25rem 0 0;
    }
    /* WooCommerce notices (saved, errors) on the account pages */
    .account-page-container .woocommerce-error,
    .account-page-container .woocommerce-message,
    .account-page-container .woocommerce-info {
        list-style: none;
        margin: 0 auto 1.25rem;
        padding: 1rem 1.5rem;
        border: 1px solid #425172;
        border-radius: 12px;
        background: #fff;
        color: var(--text-main);
        font-weight: 500;
    }
    .dashboard-main .woocommerce-error,
    .dashboard-main .woocommerce-message,
    .dashboard-main .woocommerce-info {
        width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    .dashboard-main .woocommerce-error {
        display: block;
    }
    .account-page-container .woocommerce-message {
        background: #425172;
        color: var(--white);
    }
    .account-page-container .woocommerce-error::before,
    .account-page-container .woocommerce-message::before,
    .account-page-container .woocommerce-info::before {
        display: none;
    }
    /* The wrapper is printed even with no notice in it; without this it adds a gap above the first card */
    .account-page-container .woocommerce-notices-wrapper:not(:has(*)) {
        display: none;
    }
    .account-page-container .woocommerce-notices-wrapper > :last-child {
        margin-bottom: 0;
    }
    .account-page-container .woocommerce-info .button,
    .account-page-container .woocommerce-message .button {
        float: none;
        order: 2;
        flex-shrink: 0;
        background: #425172;
        color: var(--white);
        border-radius: 99px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        font-weight: 600;
        text-decoration: none;
    }
    .checkout-box h2 + .account-form-row .checkout-label {
        margin-top: 0;
    }
    .account-auth .woocommerce-error,
    .account-auth .woocommerce-message,
    .account-auth .woocommerce-info {
        max-width: 460px;
    }
    @media (max-width: 900px) {
        .account-dashboard,
        .auth-grid,
        .dashboard-main .checkout-grid {
            grid-template-columns: 1fr;
        }
        .dashboard-sidebar {
            position: static;
        }
        .account-nav {
            flex-direction: row;
            flex-wrap: wrap;
        }
        .account-nav-logout {
            margin-top: 0;
            border-top: none;
            padding-top: 0.8rem !important;
            border-radius: 8px !important;
        }
    }
    @media (max-width: 600px) {
        .account-page-container {
            padding: 2rem 1.5rem;
        }
        .account-tiles,
        .account-form-row {
            grid-template-columns: 1fr;
        }
        .account-form-row {
            gap: 0;
        }
        .account-order-row {
            flex-wrap: wrap;
            row-gap: 0.5rem;
        }
        .account-order-main {
            flex-basis: 100%;
        }
        .account-order-total {
            margin-left: auto;
        }
    }

/* --------------------------------------
   Desktop hover effects (only where there is a real pointer)
-------------------------------------- */
@media (hover: hover) and (min-width: 769px) {
    /* Nav links: an underline draws in from the left; it stays under the current page */
    .site-nav ul a {
        position: relative;
        padding: 0.4rem 0;
    }

    .site-nav ul a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-nav ul a:hover::after,
    .site-nav ul .current-menu-item > a::after,
    .site-nav ul .current_page_item > a::after {
        transform: scaleX(1);
    }

    /* Buttons: on hover a fill sweeps across from the left.
       Solid navy buttons fill with white (navy text and outline); outlined ones fill with navy. */
    .btn-primary,
    .btn-explore,
    .btn-add-cart,
    .btn-secondary,
    .cat-pill {
        background-repeat: no-repeat;
        background-size: 0% 100%;
        transition: background-size 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease, box-shadow 0.4s ease;
    }

    .btn-primary,
    .btn-explore,
    .btn-add-cart {
        background-image: linear-gradient(#fff, #fff);
    }

    .btn-secondary,
    .cat-pill {
        background-image: linear-gradient(#425172, #425172);
    }

    .btn-primary:hover:not(:disabled),
    .btn-explore:hover:not(:disabled),
    .btn-add-cart:hover:not(:disabled) {
        background-size: 100% 100%;
        color: #425172;
        box-shadow: inset 0 0 0 1px #425172;
    }

    .btn-secondary:hover:not(:disabled),
    .cat-pill:hover {
        background-size: 100% 100%;
        color: #fff;
    }
}

@media (hover: hover) and (min-width: 769px) and (prefers-reduced-motion: reduce) {
    .site-nav ul a::after,
    .btn-primary,
    .btn-explore,
    .btn-add-cart,
    .btn-secondary,
    .cat-pill {
        transition: none;
    }
}

/* --------------------------------------
   Arrow on call-to-action buttons
   Added by CSS to every main button that has no icon of its own, so new buttons get it automatically.
-------------------------------------- */
.btn-primary:not(:has(i, svg))::after,
.btn-secondary:not(:has(i, svg))::after {
    content: "\f061"; /* Font Awesome arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

/* Small utility buttons beside a text field stay plain */
.coupon-form .btn-primary::after,
.error-search .btn-primary::after {
    content: none;
}

@media (hover: hover) {
    .btn-primary:hover:not(:disabled)::after,
    .btn-secondary:hover:not(:disabled)::after,
    .about-btn:hover .fa-arrow-right,
    .cart-checkout-btn:hover .fa-arrow-right {
        transform: translateX(4px);
    }
}

.about-btn .fa-arrow-right,
.cart-checkout-btn .fa-arrow-right {
    transition: transform 0.2s;
}

/* Desktop hero image: 20% larger, growing out to the right into the page margin
   (!important beats the inline max-width on the image) */
@media (min-width: 901px) {
    .hero-section {
        overflow-x: clip;
    }

    .hero-vial {
        width: 100%;
    }

    .hero-vial img {
        display: block;
        width: 120%;
        max-width: none !important;
    }
}

/* Phone product page buttons, as in the Figma phone frame: two plain full-width buttons stacked,
   "Legg i handlekurv" with a soft grey outline, "Gå til kassen" solid navy, no arrows */
@media (max-width: 767px) {
    .product-actions {
        gap: 0.8rem;
    }

    .product-actions .btn-secondary,
    .product-actions .btn-primary {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 10px;
    }

    .product-actions .btn-secondary {
        border: 2px solid #C9CFCE;
    }

    .product-actions .btn-primary {
        border: 2px solid #425172;
    }

    .product-actions .btn-secondary::after,
    .product-actions .btn-primary::after {
        content: none !important;
    }
}

/* Desktop product cards: the button and the price always share one row (the "Fra 400 kr" cards used to wrap) */
@media (min-width: 901px) {
    .card-content {
        padding: 1rem 1rem 1.25rem;
    }

    .card-footer {
        flex-wrap: nowrap;
    }

    .btn-add-cart {
        padding: 0.6rem 1rem;
    }

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

/* Narrower desktops: three cards per row, so each card stays wide enough for that row */
@media (min-width: 901px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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


/* ============================================================
   Researcher verification popup
   ============================================================ */
.verify-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: #425172;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(20, 28, 48, 0.35);
}
.verify-dialog::backdrop {
    background: rgba(66, 81, 114, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.verify-dialog[open] { animation: verifyIn 0.35s ease; }
@keyframes verifyIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
}
.verify-form { padding: 40px; display: flex; flex-direction: column; }
.verify-brand {
    margin: 0 0 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}
.verify-form h2 { margin: 0 0 12px; font-size: 30px; font-weight: 600; line-height: 1.15; }
.verify-intro { margin: 0 0 24px; font-size: 16px; line-height: 1.55; opacity: 0.85; }
.verify-check {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 16px 18px;
    border: 1px solid #D1D9D7;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.verify-check:has(input:checked) { border-color: #425172; background: #EEEEEE; }
.verify-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #425172; cursor: pointer; }
.verify-check strong { font-weight: 600; }
.verify-label { margin: 12px 0 8px; font-size: 16px; font-weight: 600; }
.verify-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D1D9D7;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 16px;
}
.verify-select:focus-visible,
.verify-check:focus-within { outline: 2px solid #425172; outline-offset: 2px; }
.verify-submit { width: 100%; margin-top: 20px; justify-content: center; }
.verify-submit:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.verify-legal { margin: 20px 0 0; font-size: 13px; line-height: 1.55; opacity: 0.75; }
.verify-legal a,
.verify-exit a { color: inherit; text-decoration: underline; }
.verify-exit {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #D1D9D7;
    text-align: center;
    font-size: 15px;
}
.verify-exit a { font-weight: 600; }
@media (max-width: 600px) {
    .verify-dialog { border-radius: 18px; }
    .verify-form { padding: 26px 20px; }
    .verify-brand { margin-bottom: 14px; font-size: 12px; }
    .verify-form h2 { font-size: 24px; }
    .verify-intro { margin-bottom: 18px; font-size: 15px; }
    .verify-check { padding: 14px; font-size: 15px; }
}

/* Verification popup: compact size */
.verify-dialog { width: min(440px, calc(100vw - 40px)); border-radius: 20px; }
.verify-form { padding: 28px; }
.verify-brand { margin-bottom: 12px; font-size: 11px; }
.verify-form h2 { margin-bottom: 8px; font-size: 22px; }
.verify-intro { margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.verify-check { gap: 10px; margin-bottom: 8px; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.verify-check input { width: 17px; height: 17px; margin-top: 1px; }
.verify-label { margin: 8px 0 6px; font-size: 14px; }
.verify-select { padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.verify-submit { margin-top: 14px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.verify-legal { margin-top: 14px; font-size: 12px; line-height: 1.5; }
.verify-exit { margin-top: 14px; padding-top: 12px; font-size: 13px; }
@media (max-width: 600px) {
    .verify-form { padding: 22px 18px; }
    .verify-form h2 { font-size: 20px; }
}
/* no page scrolling behind the verification popup */
html:has(.verify-dialog[open]) { overflow: hidden; }
