/*
Theme Name: EZMEDWEAR
Description: Custom WordPress theme for EZMEDWEAR.
Version: 1.3.0
Text Domain: ezmedwear
*/


/* =========================================================
   ROOT / BASE
   ========================================================= */

:root {
    --oxblood: #4A1620;
    --bone: #F3EDE4;
    --ink: #211C18;
    --clay: #C97C93;
    --sage: #3F6B63;
    --white: #fff;
    --line: rgba(33, 28, 24, .10);
    --muted: rgba(33, 28, 24, .65);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    cursor: pointer;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    background: var(--oxblood);
    color: var(--bone);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    padding: 0 40px;
    gap: 20px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

nav a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(243, 237, 228, .8);
    transition: color .2s ease;
}

nav a:hover {
    color: var(--bone);
}


/* =========================================================
   SITE LOGO
   Renders the real WordPress custom logo (Appearance >
   Customize > Site Identity) when one is set, falling back
   to a text wordmark otherwise. Used in both header and
   footer.
   ========================================================= */

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.site-logo-text {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    color: var(--bone);
    letter-spacing: .01em;
    white-space: nowrap;
}


/* =========================================================
   HEADER ACTIONS
   Groups the search toggle and mobile nav toggle together
   on the right side of the header.
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 4px;
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--bone);
    transition: opacity .2s ease;
}

.header-social a:hover {
    opacity: .65;
}

.header-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--bone);
    cursor: pointer;
}

.search-toggle svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   SITE SEARCH FLYOUT
   Slides open below the header when the search icon is
   toggled via header.js (adds .is-open to #site-search).
   ========================================================= */

.site-search {
    max-height: 0;
    overflow: hidden;
    background: var(--oxblood);
    transition: max-height .3s ease;
}

.site-search.is-open {
    max-height: 140px;
}

.site-search-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 40px;
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(243, 237, 228, .3);
    color: var(--bone);
    font-family: 'Fraunces', serif;
    font-size: 20px;
    padding: 8px 2px;
    appearance: none;
}

.site-search-form input[type="search"]::placeholder {
    color: rgba(243, 237, 228, .45);
}

.site-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--clay);
}

.site-search-form input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.site-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--bone);
    cursor: pointer;
}

.site-search-form button svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   MOBILE NAV TOGGLE
   Hidden on desktop, shown at the mobile-nav breakpoint.
   Animates into an "X" when the menu is open via header.js
   toggling body.nav-open.
   ========================================================= */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bone);
    transition:
        transform .25s ease,
        opacity .2s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before {
    position: absolute;
    top: -7px;
    left: 0;
}

.nav-toggle-bars::after {
    position: absolute;
    top: 7px;
    left: 0;
}

body.nav-open .nav-toggle-bars {
    background: transparent;
}

body.nav-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}


/* =========================================================
   BUTTONS / PILLS
   ========================================================= */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background: var(--oxblood);
    color: var(--bone);
    padding: 12px 22px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.pill:hover {
    background: var(--ink);
    color: var(--bone);
    transform: translateY(-1px);
}


/* =========================================================
   HOMEPAGE SLIDER
   Thin wrapper around the Revolution Slider shortcode output
   (set under Appearance > Customize > Homepage Slider). The
   slider plugin manages its own sizing — this just prevents
   any default margin from creating a gap above it.
   ========================================================= */

.homepage-slider {
    width: 100%;
    line-height: 0;
}


/* =========================================================
   AMAZON CTA
   ========================================================= */

.amazon-cta {
    background: var(--bone);
    padding: 60px 40px;
    text-align: center;
}

.amazon-cta .eyebrow {
    justify-content: center;
    display: flex;
    color: var(--oxblood);
    margin-bottom: 14px;
}

.amazon-cta h1,
.amazon-cta h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    max-width: 850px;
    margin: 0 auto 24px;
}

.amazon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #111;
    color: #fff;
    padding: 16px 30px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition:
        background .25s ease,
        color .25s ease;
}

.amazon-btn:hover {
    background: #FF9900;
    color: #111;
}

.amazon-btn .a-mark {
    color: #FF9900;
    font-weight: 700;
    font-size: 15px;
}

.amazon-btn:hover .a-mark {
    color: #111;
}

.amazon-btn.wide {
    width: 100%;
    justify-content: center;
    padding: 19px 30px;
    font-size: 13px;
    margin-bottom: 12px;
}


/* =========================================================
   UNIFIED HOMEPAGE / SHOP MOSAIC
   ========================================================= */

/* =========================================================
   SECTION HEAD
   Shared heading row (title + "shop all" link) used by both
   the category tiles and bestsellers sections.
   ========================================================= */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto 30px;
    padding: 0 40px;
}

.section-head h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
}

.section-head a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--oxblood);
    border-bottom: 1px solid var(--oxblood);
    white-space: nowrap;
}


/* =========================================================
   SHOP BY CATEGORY
   Four large tappable tiles that route into the shop
   pre-filtered by category, in place of a full product dump.
   ========================================================= */

.category-tiles {
    width: 100%;
    background: var(--white);
    padding: 70px 0 40px;
}

.tile-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 46px 20px;
    background: #f4f3ef;
    border: 1px solid var(--line);
    text-align: center;
    transition:
        background .2s ease,
        border-color .2s ease;
}

.tile:hover {
    background: var(--oxblood);
    border-color: var(--oxblood);
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    color: var(--oxblood);
    transition:
        background .2s ease,
        color .2s ease;
}

.tile:hover .tile-icon {
    background: var(--bone);
    color: var(--oxblood);
}

.tile-icon svg {
    width: 26px;
    height: 26px;
}

.tile-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color .2s ease;
}

.tile:hover .tile-label {
    color: var(--bone);
}


/* =========================================================
   BESTSELLERS
   Reuses .pcard product-card styling from the Shop page so
   the homepage still feels like the shop, but shows only a
   curated edit rather than the full catalog.
   ========================================================= */

.bestsellers {
    width: 100%;
    background: var(--white);
    padding: 60px 0 80px;
}

.bestseller-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}


/* =========================================================
   TRUST STRIP
   Quick-scan credibility markers, since the storefront hands
   off checkout to Amazon rather than owning it directly.
   ========================================================= */

.trust-strip {
    width: 100%;
    background: var(--bone);
    padding: 50px 40px;
}

.trust-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-label {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 19px;
    margin-bottom: 6px;
}

.trust-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .03em;
    color: var(--muted);
}


/* =========================================================
   MOSAIC EMPTY STATE
   ========================================================= */

.ez-shop-empty {
    width: 100%;
    padding: 120px 30px;
    text-align: center;
    background: #f4f3ef;
}

.ez-shop-empty h2 {
    max-width: 650px;
    margin: 12px auto 15px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
}

.ez-shop-empty p:not(.eyebrow) {
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--muted);
}


/* =========================================================
   SHOP ALL SECTION
   ========================================================= */

.ez-shop-all {
    padding: 110px 30px;
    text-align: center;
    background: #f4f3ef;
}

.ez-shop-all .eyebrow {
    color: var(--oxblood);
    margin-bottom: 10px;
}

.ez-shop-all h2 {
    max-width: 700px;
    margin: 0 auto 28px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}


/* =========================================================
   STATEMENT
   ========================================================= */

.statement {
    background: var(--ink);
    color: var(--bone);
    padding: 110px 40px;
    text-align: center;
}

.statement .eyebrow {
    color: var(--clay);
    justify-content: center;
    display: flex;
    margin-bottom: 22px;
}

.statement h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.3;
    max-width: 760px;
    margin: 0 auto;
}

.statement h2 em {
    font-style: italic;
    color: var(--clay);
}


/* =========================================================
   SHOP PAGE
   ========================================================= */

.page-band {
    background: var(--ink);
    color: var(--bone);
    padding: 56px 40px;
}

.page-band.has-image {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 40px;
    padding: 0;
    overflow: hidden;
}

.page-band-image {
    height: 100%;
    min-height: 260px;
    overflow: hidden;
}

.page-band-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-band-copy {
    padding: 0;
}

.page-band.has-image .page-band-copy {
    padding: 40px 40px 40px 0;
}

.page-band .eyebrow {
    color: var(--clay);
    margin-bottom: 14px;
}

.page-band h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.category-desc {
    margin-top: 16px;
    max-width: 480px;
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(243, 237, 228, .75);
}

.shop-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px 90px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.pcard {
    display: block;
}

.pcard-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee;
}

.pcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.pcard:hover .pcard-img img {
    transform: scale(1.05);
}

.pcard-body {
    padding: 16px 4px;
}

.pcard-body h3 {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 500;
    margin: 4px 0 10px;
}

.pcard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .05em;
}

.pcard-link {
    color: var(--oxblood);
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {
    max-width: 1240px;
    margin: 24px auto 0;
    padding: 0 40px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: rgba(33, 28, 24, .45);
    text-transform: uppercase;
}

.breadcrumb a:hover {
    color: var(--oxblood);
}


/* =========================================================
   PRODUCT PAGE
   ========================================================= */

.pd-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 40px 100px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
}

.pd-gallery {
    min-width: 0;
}

.pd-gallery-main {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee;
    margin-bottom: 10px;
}

.pd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.pd-thumb-button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.pd-thumbs img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    opacity: .55;
    transition: opacity .2s ease;
}

.pd-thumb-button:hover img {
    opacity: .8;
}

.pd-thumb-button.active img {
    opacity: 1;
    outline: 2px solid var(--oxblood);
    outline-offset: -2px;
}

.pd-information {
    min-width: 0;
}

.pd-eyebrow {
    color: var(--oxblood);
    margin-bottom: 14px;
}

.pd-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 38px;
    margin-bottom: 14px;
    line-height: 1.05;
}

.pd-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 22px;
}

.pd-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(33, 28, 24, .7);
    max-width: 440px;
    margin-bottom: 30px;
}


/* =========================================================
   PRODUCT OPTIONS
   ========================================================= */

.pd-option-group {
    margin-bottom: 28px;
}

.pd-option-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.pd-option-label strong {
    font-weight: 600;
}

.pd-option-value {
    font-weight: 400;
}


/* =========================================================
   PRODUCT COLOR
   ========================================================= */

.pd-color-group {
    margin-top: 26px;
    margin-bottom: 26px;
}


/* =========================================================
   AVAILABLE SIZES
   INFORMATION ONLY
   ========================================================= */

.pd-size-group {
    margin-top: 26px;
    margin-bottom: 30px;
}

.pd-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pd-size-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(33, 28, 24, .18);
    background: #fff;
    color: var(--ink);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: default;
}

.pd-size-option:hover,
.pd-size-option.active,
.pd-size-option:focus {
    background: #fff;
    color: var(--ink);
    border-color: rgba(33, 28, 24, .18);
    outline: none;
}

.pd-size-note {
    margin-top: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(33, 28, 24, .45);
}


/* =========================================================
   AMAZON NOTE
   ========================================================= */

.pd-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    color: rgba(33, 28, 24, .4);
    text-align: center;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 36px;
}


/* =========================================================
   PRODUCT FEATURES
   ========================================================= */

.pd-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border-top: 1px solid rgba(33, 28, 24, .1);
    padding-top: 26px;
}

.pd-feature {
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: rgba(33, 28, 24, .65);
}

.pd-feature .mark {
    color: var(--sage);
    flex: 0 0 auto;
}


/* =========================================================
   PRODUCT IDENTIFIERS
   ========================================================= */

.pd-identifiers {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(33, 28, 24, .08);
}

.pd-identifier {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-identifier span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(33, 28, 24, .4);
}

.pd-identifier strong {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
}


/* =========================================================
   EMPTY PRODUCT IMAGE
   ========================================================= */

.pd-empty-image {
    background: var(--bone);
}


/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.related-products {
    width: 100%;
}

.related-head {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 40px 30px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(33, 28, 24, .08);
}

.related-head h2 {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 500;
}

.related-shop-link {
    color: var(--oxblood);
    border-bottom: 1px solid var(--oxblood);
}

.related-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px 90px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.related-card {
    display: block;
    overflow: hidden;
}

.related-card > img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
    transition: transform .5s ease;
}

.related-card:hover > img {
    transform: scale(1.04);
}

.related-card-body {
    padding: 14px 4px;
}

.related-card-body h3 {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 500;
    margin-top: 4px;
}

.related-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    margin-top: 8px;
    color: rgba(33, 28, 24, .65);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: var(--oxblood);
    color: rgba(243, 237, 228, .72);
    padding: 64px 40px 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 44px;
}

footer h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: 16px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 34px;
}

.footer-logo .site-logo-text {
    color: var(--bone);
    font-size: 20px;
}

footer p {
    font-size: 14px;
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 18px;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(243, 237, 228, .25);
    border-radius: 50%;
    color: var(--bone);
    transition:
        background .2s ease,
        border-color .2s ease;
}

.social-row a:hover {
    background: rgba(243, 237, 228, .12);
    border-color: rgba(243, 237, 228, .5);
}

.social-row svg {
    width: 14px;
    height: auto;
    fill: currentColor;
    display: block;
}

.contact-row {
    font-size: 13.5px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-row-empty {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(243, 237, 228, .45);
    max-width: 240px;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter-msg {
    font-size: 13px;
    margin-bottom: 10px;
}

.newsletter-msg-success {
    color: #9FCB9B;
}

.newsletter-msg-error {
    color: var(--clay);
}

.newsletter-form {
    display: flex;
    max-width: 320px;
    border: 1px solid rgba(243, 237, 228, .25);
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: var(--bone);
    font-family: 'Work Sans', sans-serif;
    font-size: 13.5px;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(243, 237, 228, .45);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
}

.newsletter-form button {
    background: var(--bone);
    color: var(--oxblood);
    border: none;
    padding: 0 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease;
}

.newsletter-form button:hover {
    background: var(--clay);
    color: var(--bone);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(243, 237, 228, .15);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(243, 237, 228, .45);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    /*
    Category tiles and bestsellers drop to two columns on tablet.
    */

    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bestseller-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /*
    Shop/product grids.
    */

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 20px;
        padding-right: 20px;
    }


    /*
    Product page.
    */

    .pd-layout {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
        gap: 35px;
    }

    .breadcrumb {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pd-title {
        font-size: 34px;
    }
}


/* =========================================================
   MOBILE NAV / GLOBAL
   ========================================================= */

@media (max-width: 820px) {

    .header-row {
        padding: 0 20px;
    }

    .site-search-inner {
        padding: 18px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--oxblood);
        transition: max-height .3s ease;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 20px 18px;
    }

    .primary-nav ul li {
        border-top: 1px solid rgba(243, 237, 228, .12);
    }

    .primary-nav ul li a {
        display: block;
        padding: 15px 0;
    }

    body.nav-open .primary-nav {
        max-height: 70vh;
        overflow-y: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    footer,
    .statement {
        padding-left: 20px;
        padding-right: 20px;
    }

    /*
    Section gutters tighten on mobile.
    */

    .section-head,
    .tile-grid,
    .bestseller-grid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .trust-strip {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pd-size-options {
        gap: 7px;
    }

    .pd-size-option {
        min-width: 40px;
        height: 36px;
        padding: 0 10px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 650px) {

    /*
    Category tiles, bestsellers, and trust strip stack to a
    single column on small mobile.
    */

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

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

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-tiles {
        padding: 45px 0 30px;
    }

    .bestsellers {
        padding: 40px 0 60px;
    }


    /*
    Amazon CTA.
    */

    .amazon-cta {
        padding: 50px 20px;
    }


    /*
    Shop.
    */

    .shop-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px 60px;
    }

    .page-band {
        padding: 42px 20px;
    }


    /*
    Product page.
    */

    .pd-layout {
        padding-bottom: 60px;
    }

    .pd-feature-list {
        grid-template-columns: 1fr;
    }

    .pd-identifiers {
        flex-direction: column;
        gap: 16px;
    }


    /*
    Related products.
    */

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

    .related-head {
        padding-left: 20px;
        padding-right: 20px;
    }


    /*
    Statement.
    */

    .statement {
        padding-top: 80px;
        padding-bottom: 80px;
    }


    /*
    Footer.
    */

    footer {
        padding-top: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .header-row {
        height: 68px;
    }

    .header-social a {
        width: 28px;
        height: 28px;
    }

    .header-social svg {
        width: 15px;
        height: 15px;
    }

    .site-logo img {
        height: 32px;
    }

    .site-logo-text {
        font-size: 19px;
    }

    .site-search-form input[type="search"] {
        font-size: 16px;
    }

    .pill {
        padding: 11px 17px;
        font-size: 9.5px;
    }
}


/* =========================================================
   ACCESSIBILITY / FOCUS
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}