/* assets/css/app.css - Updated */
@import url('variables.css');

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
}

:root {
    --header-height: 100px;
    --top-bar-height: 33px;
    /* One duration/easing for header + all inner controls (links, buttons, logo) on sticky; must be defined or transitions are invalid. */
    --header-sticky-transition: var(--transition-base);
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-default);
    background-color: var(--color-bg-default);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-bg-default);
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0 0 var(--space-4);
    font-weight: var(--font-weight-regular);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

p {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.icon {
    fill: currentColor;
}

.header-actions__search i,
.header-actions__cart .mobile-only,
.social-link i {
    font-size: var(--font-size-md);
}

.mobile-nav__close i {
    font-size: var(--font-size-xl);
}

.mobile-only {
    display: none;
}

.top-bar__container,
.site-header__container {
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.top-bar__container {
    background-color: transparent;
}

.site-header.is-sticky .top-bar__container {
    background-color: transparent;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* --- Top Bar --- */
.top-bar {
    width: 100%;
    color: inherit;
    background-color: transparent;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 10;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 0.875rem 0;
    color: var(--color-text-white);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--header-sticky-transition), color var(--header-sticky-transition), border-color var(--header-sticky-transition), box-shadow var(--header-sticky-transition), padding var(--header-sticky-transition);
}

.site-header.is-sticky,
.site-header.search-active {
    background-color: var(--color-bg-default);
    color: var(--color-text-black);
    padding: 0.875rem 0; /* Match original padding to prevent "pushing up" jump */
    border-bottom-color: var(--color-border);
}

.site-header.is-sticky .site-branding img,
.site-header.search-active .site-branding img {
    filter: none;
}

/* Header Theme Overrides: Dark on light backgrounds (Shop, Categories, Single Product) */
.woocommerce-shop .site-header:not(.is-sticky):not(.search-active),
.archive.post-type-archive-product .site-header:not(.is-sticky):not(.search-active),
.tax-product_cat .site-header:not(.is-sticky):not(.search-active),
.tax-product_tag .site-header:not(.is-sticky):not(.search-active),
.single-product .site-header:not(.is-sticky):not(.search-active) {
    color: var(--color-text-black);
}

.single-product .site-header:not(.is-sticky):not(.search-active) .main-navigation {
    color: var(--color-text-white);
}

.woocommerce-shop .site-header:not(.is-sticky):not(.search-active) .site-branding img,
.archive.post-type-archive-product .site-header:not(.is-sticky):not(.search-active) .site-branding img,
.tax-product_cat .site-header:not(.is-sticky):not(.search-active) .site-branding img,
.tax-product_tag .site-header:not(.is-sticky):not(.search-active) .site-branding img {
    filter: none;
}

.single-product .site-header:not(.is-sticky):not(.search-active) .site-branding img {
    filter: brightness(0) invert(1);
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.site-branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-branding img {
    max-width: 140px;
    filter: brightness(0) invert(1);
    transition: filter var(--header-sticky-transition);
}

.site-branding img:hover {
    filter: none;
}

/* Nav Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.desktop-nav-wrapper ul {
    display: flex;
    gap: 15px;
}

.desktop-nav-wrapper ul li a {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
    /* Only opacity: color comes from .site-header (no second color transition on inherit = same speed as top bar / logo) */
    transition: opacity var(--header-sticky-transition);
}

.desktop-nav-wrapper ul li a:hover,
.desktop-nav-wrapper ul li a:focus-visible {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: var(--space-2);
    transition: opacity var(--header-sticky-transition);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions__item a,
.header-actions__item button {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
    /* Only opacity: sticky text/icon color tracks .site-header; links avoid global `a` color transition. */
    transition: opacity var(--header-sticky-transition);
}

.header-actions__item button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-actions__item a:hover,
.header-actions__item button:hover {
    opacity: 0.7;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--color-text-white);
    text-align: center;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__bg-image,
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: var(--space-12);
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
}

.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 8rem);
    margin: 0;
    font-weight: 400;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
    line-height: var(--line-height-tight);
}

.hero__subtitle {
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    margin: 0;
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-white);
    max-width: 500px;
}

.btn-shop-now {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--color-text-white);
    padding-bottom: var(--space-2);
    color: var(--color-text-white);
}

.btn-shop-now:hover {
    opacity: 0.7;
}
/* --- Mobile Nav Slide-out --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Must stack above .site-header (z-index: 2000) or the drawer appears only below the sticky header. */
    z-index: 2100;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-nav.is-active {
    visibility: visible;
}

.mobile-nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: var(--transition-base);
}

.mobile-nav.is-active .mobile-nav__overlay {
    opacity: 1;
}

.mobile-nav__content {
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background-color: var(--color-bg-default);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    padding: var(--space-10) var(--space-6) var(--space-4);
    color: var(--color-text-black);
}

.mobile-nav.is-active .mobile-nav__content {
    left: 0;
}

.mobile-nav__header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--space-8);
}

.mobile-nav__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-nav__body {
    flex: 1;
    overflow-y: auto;
}

.mobile-navigation ul li {
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-navigation ul li a {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav__secondary {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-dark);
}

.mobile-secondary-menu li {
    margin-bottom: var(--space-4);
}

.mobile-secondary-menu li a {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav__footer {
    margin-top: auto;
    padding-top: var(--space-4);
}

.mobile-socials {
    display: flex;
    gap: var(--space-6);
}

.social-link i {
    color: var(--color-text-black);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        width: 24px;
        height: 18px;
        position: relative;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        display: block;
        width: 24px;
        height: 1.5px;
        background-color: currentColor;
        position: absolute;
        /* No transition: lines follow button currentColor in lockstep with header (avoids lag vs menu text) */
        transition: none;
    }
    
    .hamburger {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger::before {
        top: -7px;
    }
    
    .hamburger::after {
        bottom: -7px;
    }

    .desktop-nav-wrapper,
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }
    
    .site-header {
        top: 0;
        padding: var(--space-2) 0;
    }
    
    .site-branding img {
        max-width: 100px;
    }

    .top-bar {
        font-size: 9px;
    }

}

/* --- Site Footer --- */
.site-footer {
    background-color: var(--color-bg-default);
    color: var(--color-text-black);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.site-footer .footer-main__inner,
.site-footer,
.site-footer .footer-bottom__bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Footer Info Bar */
.footer-info-bar {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
}

.footer-info-bar__inner {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
}

.footer-info-bar__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 500;
    text-transform: uppercase;
}

.footer-info-bar__item i {
    font-size: 14px;
}

/* Footer Main */
.footer-main {
    padding: 0;
    border-bottom: 1px solid var(--color-border);
}

.footer-main__inner {
    display: flex;
    gap: var(--space-12);
}

.footer-main__links {
    padding: var(--space-12) 0;
    flex: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    border-right: 1px solid var(--color-border);
}

.footer-links-col ul li {
    margin-bottom: var(--space-4);
}

.footer-links-col ul li a {
    text-transform: uppercase;
    font-weight: 500;
}

.footer-links-col ul li a:hover {
    opacity: 0.7;
}

/* Footer column toggles: hidden on desktop, full menus visible */
.footer-links-col__toggle {
    display: none;
}

.footer-links-col__title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.footer-links-col__icon {
    display: block;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.25s ease;
}

.footer-links-col__panel {
    display: block;
}

.footer-links-col__panel-inner {
    padding: 0;
}

.footer-main__newsletter {
    padding: var(--space-12) 0;
    flex: 1;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-primary);
    font-size: 24px;
    margin-bottom: var(--space-4);
    font-style: italic;
}

.newsletter-title span {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: var(--space-1);
}

.newsletter-desc {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: var(--space-8);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--color-border-dark);
    max-width: 300px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--space-3) 0;
    font-size: 11px;
    outline: none;
}

.newsletter-form button {
    background: #e1e0d7;
    border: none;
    padding: var(--space-2) var(--space-4);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--color-border-dark);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-4) 0 var(--space-4);
}

.footer-bottom__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom__payment {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    font-size: 24px;
    color: #a0a0a0;
}

.footer-bottom__payment-item {
    display: flex;
    align-items: center;
    line-height: 0;
}

.footer-bottom__payment-img {
    display: block;
    max-width: 88px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.payment-placeholder {
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
}

.payment-placeholder .diamond {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
}

.footer-bottom__copyright {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main__inner {
        padding: 0 !important;
    }

    .footer-info-bar__inner {
        flex-wrap: wrap;
        gap: var(--space-6);
    }
    
    .footer-main__inner {
        flex-direction: column;
    }
    
    .footer-main__links {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--space-12);
    }
    
    .footer-main__newsletter {
        padding: var(--space-12) 0 !important;
    }
    
    .footer-bottom__bar {
        flex-direction: column;
        gap: var(--space-6);
    }

    .footer-bottom {
        padding: var(--space-4) 0 !important;
    }
}

@media (max-width: 768px) {
    /* Info bar: 2×2 grid with dividers, icon above label */
    .footer-info-bar {
        padding: var(--space-4) 0;
    }

    .site-footer .footer-info-bar .footer-info-bar__inner {
        max-width: 100%;
    }

    .footer-info-bar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        background: var(--color-border);
        box-sizing: border-box;
    }

    .footer-info-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        width: auto;
        min-height: 5.5rem;
        margin: 0;
        padding: var(--space-6) var(--space-3);
        text-align: center;
        background: var(--color-bg-default);
        font-size: 9px;
        line-height: 1.3;
    }

    .footer-info-bar__item i {
        font-size: 18px;
        color: var(--color-text-muted);
    }

    .footer-info-bar__item span {
        font-family: var(--font-body);
        font-weight: 500;
    }

    /* Footer menus: accordion row layout */
    .footer-main__links {
        display: block;
        width: 100%;
        padding: 0;
    }

    .footer-links-col {
        border-bottom: 1px solid var(--color-border-dark);
    }

    .footer-links-col:last-child {
        border-bottom: none;
    }

    .footer-links-col__toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-4);
        margin: 0;
        padding: var(--space-4) 0;
        text-align: left;
        color: var(--color-text-black);
        background: none;
        border: none;
        font-family: var(--font-body);
        font-size: 11px;
        letter-spacing: 0.04em;
        line-height: 1.2;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .footer-links-col__toggle:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    .footer-links-col__toggle .footer-links-col__title {
        flex: 1;
    }

    .footer-links-col__panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.35s ease;
    }

    .footer-links-col.is-open .footer-links-col__panel {
        grid-template-rows: 1fr;
    }

    .footer-links-col__panel-inner {
        min-height: 0;
        overflow: hidden;
    }

    .footer-links-col.is-open .footer-links-col__panel-inner {
        padding-bottom: var(--space-2);
    }

    .footer-links-col__menu {
        padding-bottom: var(--space-2);
    }

    .footer-links-col.is-open .footer-links-col__icon {
        transform: rotate(45deg);
    }

    .footer-main__inner {
        gap: 0;
    }

    .footer-main__newsletter {
        width: 100%;
        max-width: 100%;
        padding: var(--space-10) var(--space-4) var(--space-12);
    }

    .newsletter-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .newsletter-title span {
        margin-left: var(--space-2);
    }

    .newsletter-desc {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.5;
        color: var(--color-text-muted);
        margin-bottom: var(--space-8);
    }

    .footer-main__newsletter .wpcf7,
    .footer-main__newsletter .wpcf7-form {
        max-width: 100%;
    }

    .newsletter-form {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form input {
        flex: 1;
        min-width: 0;
    }

    .newsletter-form button {
        flex-shrink: 0;
    }
}

.search-drawer .site-branding img {
    filter: none;
}

/* --- Search Drawer --- */
.search-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 90vh;
    z-index: 5;
    background-color: var(--color-bg-default);
    color: var(--color-text-black);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    transform: translateY(-10px);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
}

.search-drawer.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.search-drawer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 4;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    pointer-events: none;
}

.site-header.search-active + .search-drawer__overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: var(--drawer-cart-max-width);
    height: 100%;
    z-index: var(--z-modal);
    background-color: var(--color-bg-cream);
    color: var(--color-text-black);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform var(--transition-slow), visibility var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.cart-drawer.is-active {
    visibility: visible;
    transform: translateX(0);
}

.cart-drawer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-dark);
    z-index: var(--z-overlay);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    pointer-events: none;
}

.cart-drawer__overlay.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border-soft);
}

.cart-drawer__title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    margin: 0;
}

.cart-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-xl);
    padding: 0;
    color: var(--color-text-black);
}

.cart-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
}

.cart-drawer__content.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

/* Mini Cart Item Styling */
.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mini_cart_item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    position: relative;
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.mini_cart_item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-cart-item__image {
    width: var(--drawer-cart-image-width);
    flex-shrink: 0;
}

.mini-cart-item__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1.7;
}

.mini-cart-item__details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-cart-item__name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    margin-bottom: var(--space-1);
    letter-spacing: 0.05em;
    display: block;
    line-height: var(--line-height-tight);
}


.mini-cart-item__details .variation {
    margin: 0 0 var(--space-2);
    padding: 0;
    list-style: none;
    font-size: var(--font-size-xs);
    color: var(--color-text-subtle);
}

.mini-cart-item__details .variation dt,
.mini-cart-item__details .variation dd {
    display: inline;
    margin: 0;
}

.mini-cart-item__details .variation dt {
    font-weight: var(--font-weight-medium);
}

.mini-cart-item__details .variation dd {
    margin-right: var(--space-2);
}

.mini-cart-item__price {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-6);
}

.mini-cart-item__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-cart-item__quantity .quantity {
    display: flex;
    align-items: center;
    background: var(--color-bg-muted);
    padding: var(--space-1);
    margin-bottom: 0;
}

.mini-cart-item__quantity .qty-btn {
    width: var(--space-8);
    height: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-md);
    color: var(--color-text-black);
}

.mini-cart-item__quantity input.qty {
    width: var(--space-10);
    border: none;
    background: none;
    text-align: center;
    font-size: var(--font-size-sm);
    padding: 0;
}

.mini-cart-item__remove {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-black);
    border-bottom: 1px solid var(--color-text-black);
    letter-spacing: 0.05em;
}

/* Footer & Buttons */
.woocommerce-mini-cart__footer {
    border-top: 1px solid var(--color-border-faint);
    background-color: var(--color-bg-cream);
    padding-top: var(--space-6);
}

.woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.woocommerce-mini-cart__buttons {
    margin: 0;
}

.woocommerce-mini-cart__buttons .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-5);
    background: var(--color-text-black);
    color: var(--color-text-white);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    border: 1px solid var(--color-text-black);
    font-size: var(--font-size-xs);
}

.woocommerce-mini-cart__buttons .button:hover {
    background: transparent;
    color: var(--color-text-black);
    border: 1px solid var(--color-text-black);
}

.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: var(--space-10) 0;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-drawer__body {
    padding: var(--space-8) 0;
}

.search-drawer__container {
    padding: 0 var(--space-6);
    margin: 0 auto;
    width: 100%;
}

.search-drawer__form {
    margin-bottom: var(--space-8);
}

.search-drawer__input-wrapper {
    position: relative;
    border-bottom: 1px solid var(--color-border-dark);
}

.search-drawer__input {
    width: 100%;
    border: none;
    background: transparent;
    padding: var(--space-4) 40px var(--space-4) 0;
    font-size: var(--font-size-base);
    font-family: var(--font-secondary);
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-drawer__submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-lg);
    color: var(--color-text-black);
}

.search-drawer__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.search-drawer__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    color: var(--color-text-black);
    text-transform: uppercase;
    font-family: var(--font-body);
}

.search-drawer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.search-drawer__tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-black);
    text-decoration: none;
    text-transform: capitalize;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.search-drawer__tag:hover {
    border-bottom-color: var(--color-text-black);
}

/* Results Grid */
.search-drawer__results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-2);
}

.search-drawer__product {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.search-drawer__product-image {
    margin-bottom: var(--space-4);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.search-drawer__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-drawer__product-image .placeholder-img {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-light);
}

.search-drawer__img--primary {
    opacity: 1;
}

.search-drawer__img--secondary {
    opacity: 0;
}

.search-drawer__product:has(.search-drawer__img--secondary):hover .search-drawer__img--primary {
    opacity: 0;
}

.search-drawer__product:has(.search-drawer__img--secondary):hover .search-drawer__img--secondary {
    opacity: 1;
}

.search-drawer__product-info {
    text-align: left;
}

.search-drawer__product-brand {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-drawer__product-name {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.search-drawer__product-price {
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .search-drawer__results-grid {
        grid-template-columns: repeat(5, minmax(0, 170px));
        gap: var(--space-6) var(--space-4);
        justify-content: start;
    }
}

@media (min-width: 1024px) {
    .search-drawer__body {
        padding: var(--space-10) 0;
    }
}

/* --- Product Gallery Section --- */
.product-gallery {
    /* Horizontal padding so the first/last cards (and .product-gallery__info) align with the page gutter, not the viewport edge */
    padding: var(--space-12) var(--space-4);
    background-color: var(--color-bg-default);
}

@media (min-width: 768px) {
    .product-gallery {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

.product-gallery__nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-10);
}

.product-gallery__tabs {
    display: flex;
    gap: var(--space-8);
}

.product-gallery__tab-link {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-black);
    padding-bottom: 4px;
    border-bottom: 1.5px solid transparent;
}

.product-gallery__tab.is-active .product-gallery__tab-link {
    border-bottom-color: var(--color-text-black);
}

.product-gallery__carousel-wrapper {
    position: relative;
    width: 100%;
}

.product-gallery__carousel {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding-bottom: var(--space-12);
}

.product-gallery__carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.product-gallery__carousel.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.product-gallery__empty {
    flex: 0 0 100%;
    text-align: center;
    font-size: 11px;
    color: var(--color-text-muted);
    margin: 0;
    padding: var(--space-8) var(--space-4);
}

.product-gallery__item {
    display: flex;
    flex-direction: column;
}

.product-gallery__carousel .product-gallery__item {
    flex: 0 0 25%;
    scroll-snap-align: start;
}

.product-gallery__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-gallery__link:hover {
    color: inherit;
    opacity: 1;
}

.product-gallery__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.product-gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__img--primary {
    opacity: 1;
}

.product-gallery__img--secondary {
    opacity: 0;
}

.product-gallery__link:has(.product-gallery__img--secondary):hover .product-gallery__img--primary {
    opacity: 0;
}

.product-gallery__link:has(.product-gallery__img--secondary):hover .product-gallery__img--secondary {
    opacity: 1;
}

.product-gallery__info {
    padding: 0;
}

.product-gallery__info-main {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    align-items: baseline;
    margin-bottom: 2px;
}

.product-gallery__name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.product-gallery__price {
    font-size: 12px;
    font-weight: 400;
}

.product-gallery__desc {
    font-size: 10px;
    color: var(--color-text-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0;
}

.product-gallery__scrollbar {
    height: 1px;
    background-color: var(--color-border);
    width: 80px;
    margin: 0 auto;
    position: relative;
}

.product-gallery__scrollbar-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--color-text-black);
    width: 25%;
    transition: left 0.1s ease-out;
}

@media (max-width: 1200px) {
    .product-gallery__carousel .product-gallery__item {
        flex: 0 0 33.33%;
    }
}

@media (max-width: 768px) {
    .product-gallery__carousel .product-gallery__item {
        flex: 0 0 85%;
    }
    .product-gallery__tabs {
        gap: var(--space-4);
        /* Horizontal gutter from .product-gallery */
        padding: 0;
        overflow-x: auto;
        width: 100%;
        justify-content: center;
    }
    .product-gallery__nav {
        justify-content: flex-start;
    }
}

/* --- Homepage promotional banner (below product gallery) --- */
.home-banner {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    color: var(--color-text-white);
    overflow: hidden;
}

.home-banner--no-image {
    background-color: var(--color-secondary);
    color: var(--color-text-black);
    min-height: 0;
}

.home-banner--no-image .home-banner__title,
.home-banner--no-image .home-banner__description {
    color: var(--color-text-black);
}

.home-banner--no-image .home-banner__cta {
    color: var(--color-text-black);
    border-bottom-color: var(--color-text-black);
}

.home-banner__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    background: color-mix(in srgb, var(--color-text-black) 45%, transparent);
}

.home-banner__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding: var(--space-10) var(--space-6);
    box-sizing: border-box;
}

.home-banner__content {
    max-width: var(--home-banner-content-max);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.home-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(var(--font-size-2xl), 5vw, calc(var(--font-size-2xl) * 1.35));
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-tight);
    margin: 0;
    color: inherit;
    letter-spacing: -0.02em;
}

.home-banner--no-image .home-banner__title {
    font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-2xl));
}

.home-banner__description {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-loose);
    margin: 0;
    color: inherit;
}

@media (min-width: 768px) {
    .home-banner__description {
        font-size: var(--font-size-md);
    }
}

.home-banner__action {
    margin: 0;
}

.home-banner__cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-base);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--color-text-white);
    border-bottom: 1px solid var(--color-text-white);
    padding-bottom: var(--space-2);
    transition: opacity var(--transition-base);
}

.home-banner__cta:hover {
    opacity: 0.7;
}

@media (max-width: 767px) {
    .home-banner__overlay {
        display: block;
    }

    .home-banner__content {
        max-width: none;
        align-items: center;
        text-align: center;
    }
}

/* --- Homepage newsletter / loyalty banner (above footer) --- */
.home-newsletter {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background-color: var(--color-bg-cream);
    color: var(--home-newsletter-title-color);
}

.home-newsletter--no-image {
    min-height: 0;
}

.home-newsletter__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-newsletter__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
}

.home-newsletter__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    pointer-events: none;
    /*background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-bg-cream) 94%, transparent) 0%,
        color-mix(in srgb, var(--color-bg-cream) 55%, transparent) 42%,
        transparent 72%
    );*/
}

.home-newsletter__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding: var(--space-10) var(--space-6);
    box-sizing: border-box;
}

.home-newsletter__content {
    max-width: var(--home-newsletter-content-max);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.home-newsletter__title {
    font-family: var(--font-heading);
    font-size: clamp(var(--font-size-xl), 4vw, calc(var(--font-size-2xl) * 1.15));
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-tight);
    margin: 0;
    color: var(--home-newsletter-title-color);
    letter-spacing: -0.02em;
}

.home-newsletter__description {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-loose);
    margin: 0;
    color: var(--home-newsletter-body-color);
}

@media (min-width: 768px) {
    .home-newsletter {
        min-height: 300px;
    }
    .home-newsletter__description {
        font-size: var(--font-size-md);
    }
}

.home-newsletter__action {
    margin: 0;
}

.home-newsletter__cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-base);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--home-newsletter-cta-color);
    border-bottom: 1px solid var(--home-newsletter-cta-color);
    padding-bottom: var(--space-2);
    transition: opacity var(--transition-base);
}

.home-newsletter__cta:hover {
    opacity: 0.65;
}

@media (max-width: 767px) {
    .home-newsletter__overlay {
        display: block;
    }

    .home-newsletter__content {
        max-width: none;
        align-items: center;
        text-align: center;
    }
}

/* --- Homepage collections & categories (editorial grid rows) --- */
.home-collections,
.home-categories {
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 var(--space-10);
}

.home-collections__header,
.home-categories__header {
    max-width: 1400px;
    margin: 0 auto var(--space-8);
    padding: 0;
}

.home-collections__section-title,
.home-categories__section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-tight);
    margin: 0;
    color: var(--color-text-black);
    text-align: center;
    letter-spacing: -0.02em;
}

.home-collections__grid,
.home-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.home-collections__item,
.home-categories__item {
    display: flex;
    flex-direction: column;
}

.home-collections__media,
.home-categories__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.home-collections__img,
.home-categories__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-collections__body,
.home-categories__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    text-align: left;
}

.home-collections__title,
.home-categories__title {
    font-family: var(--font-heading);
    font-size: clamp(var(--font-size-lg), 2.5vw, var(--font-size-xl));
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-tight);
    margin: 0;
    color: var(--color-text-black);
    letter-spacing: -0.02em;
}

.home-collections__subtext,
.home-categories__subtext {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    margin: 0;
    color: var(--color-text-black);
}

.home-collections__action,
.home-categories__action {
    margin: var(--space-2) 0 0;
}

.home-collections__link,
.home-categories__link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-base);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--color-text-black);
    border-bottom: 1px solid var(--color-text-black);
    padding-bottom: var(--space-2);
    transition: opacity var(--transition-base);
}

.home-collections__link:hover,
.home-categories__link:hover {
    opacity: 0.65;
}

@media (max-width: 900px) {
    .home-collections__grid,
    .home-categories__grid {
        grid-template-columns: 1fr;
    }

    .home-collections__item,
    .home-categories__item {
        border-right: 1px solid var(--color-border);
    }
}

/* --- Shop Page --- */

.shop-header {
    padding: var(--space-12) 0 var(--space-8);
    text-align: center;
    margin-top: var(--space-16);
}

.shop-header__container {
    max-width: 100%;
    margin: 0;
    padding: 0 var(--space-12);
}

.shop-header__title {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: var(--space-8);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.shop-categories {
    margin-bottom: 0;
}

.shop-categories__list {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-categories__list::-webkit-scrollbar {
    display: none;
}

.shop-categories__item {
    flex: 0 0 auto;
    width: 160px;
}

.shop-categories__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-black);
    transition: opacity var(--transition-base);
}

.shop-categories__link:hover {
    opacity: 0.8;
}

.shop-categories--has-active .shop-categories__item:not(.shop-categories__item--active) .shop-categories__link {
    opacity: 0.3;
}

.shop-categories--has-active .shop-categories__item--active .shop-categories__link,
.shop-categories--has-active .shop-categories__item .shop-categories__link:hover {
    opacity: 1;
}

.shop-categories__image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: var(--space-4);
    overflow: hidden;
    background-color: #f5f5f5;
    transition: transform var(--transition-base);
}


.shop-categories__item--active .shop-categories__image-wrapper {
    outline: 1px solid var(--color-text-black);
    outline-offset: -1px;
}

.shop-categories__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-categories__name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-black);
    margin-top: var(--space-4);
}

.shop-categories__scrollbar {
    height: 1px;
    background-color: var(--color-border);
    width: 160px;
    margin: var(--space-8) auto 0;
    position: relative;
    overflow: hidden;
}

.shop-categories__scrollbar-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--color-text-black);
    width: 33.333%;
    transition: left 0.1s ease-out;
}

@media (max-width: 768px) {
    .shop-header {
        padding: var(--space-8) 0 var(--space-6);
        margin-top: var(--header-height);
    }

    .shop-header__container {
        padding: 0 var(--space-4);
    }

    .shop-header__title {
        font-size: 24px;
        margin-bottom: var(--space-6);
    }

    .shop-categories__list {
        gap: var(--space-2);
        padding: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .shop-categories__item {
        width: calc(33.333% - 6px);
        flex: 0 0 calc(33.333% - 6px);
    }

    .shop-categories__image-wrapper {
        aspect-ratio: 1 / 1.25;
        margin-bottom: 0;
    }

    .shop-categories__name {
        font-size: 10px;
        margin-top: var(--space-3);
    }
}

.shop-filters {
    padding: var(--space-3) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.shop-filters__container {
    max-width: 100%;
    margin: 0;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.shop-filters__left {
    display: flex;
    justify-content: flex-start;
}

.shop-filters__center {
    display: flex;
    justify-content: center;
}

.shop-filters__right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-4);
}

.shop-filters__trigger {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.shop-filters__count {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-black);
}

.shop-filters__sort select {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding-right: 12px;
}

.shop-filters__view {
    display: flex;
    gap: 8px;
    align-items: center;
}

.shop-filters__view-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    gap: 2px;
}

.shop-filters__view-btn span {
    display: block;
    width: 3px;
    height: 12px;
    background-color: var(--color-border);
}

.shop-filters__view-btn--active span {
    background-color: var(--color-text-black);
}

.shop-filters__view-btn--grid-3 span {
    width: 4px;
}

.shop-filters__view-btn--grid-4 span {
    width: 3px;
}

/* --- Filters Modal --- */
.filters-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background-color: var(--color-bg-default);
    color: var(--color-text-black);
    z-index: 2200;
    visibility: hidden;
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.filters-drawer.is-active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.filters-drawer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 23, 32, 0.4); /* Based on --color-text-black */
    z-index: 2150;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    backdrop-filter: blur(2px);
}

.filters-drawer__overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.filters-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-cream);
}

.filters-drawer__title {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-black);
}

.filters-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: var(--space-2);
    color: var(--color-text-black);
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.filters-drawer__close:hover {
    opacity: 1;
}

.filters-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
}

.filters-drawer__section {
    margin-bottom: var(--space-8);
}

.filters-drawer__section-title {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}

.filters-drawer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.filters-drawer__item {
    margin-bottom: 0;
}

.filters-drawer__item a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-black);
    text-decoration: none;
    background-color: var(--color-bg-cream);
    border: 1px solid var(--color-border);
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.filters-drawer__item:hover a {
    border-color: var(--color-text-black);
}

.filters-drawer__item.is-active a {
    background-color: var(--color-text-black);
    color: var(--color-text-white);
    border-color: var(--color-text-black);
}

.filters-drawer__indicator {
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.filters-drawer__section--widgets .widget {
    margin-bottom: var(--space-8);
}

.filters-drawer__section--widgets .widget-title {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-2);
}

.filters-drawer__section--widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.filters-drawer__section--widgets ul li {
    padding: 0;
}

.filters-drawer__section--widgets ul li a {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-bg-cream);
    border: 1px solid var(--color-border);
    color: var(--color-text-black);
    text-decoration: none;
    font-size: 13px;
}

.filters-drawer__section--widgets .woocommerce-widget-layered-nav-list__item--chosen a {
    background-color: var(--color-text-black);
    color: var(--color-text-white);
    border-color: var(--color-text-black);
}

.shop-main-content {
    max-width: 100%;
    margin: 0;
    padding: 0 0 var(--space-12);
}

.shop-main-content ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: none;
}

.shop-main-content ul.products .product-gallery__item {
    padding: 0;
    flex: none;
    width: auto;
    border: none;
}

.shop-main-content ul.products .product-gallery__item:nth-child(4n) {
    border: none;
}

.shop-main-content ul.products .product-gallery__image-wrapper {
    margin-bottom: 0;
}

.shop-main-content ul.products .product-gallery__info {
    padding: var(--space-3) var(--space-2);
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shop-main-content ul.products .product-gallery__info-main {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: 2px;
}

.shop-main-content ul.products .product-gallery__name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-main-content ul.products .product-gallery__price {
    font-size: 11px;
    font-weight: 400;
}

.shop-main-content ul.products .product-gallery__desc {
    font-size: 9px;
    text-align: left;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 0 center;
    background-size: 8px auto;
    padding-right: 15px;
    border: none;
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .shop-main-content ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-main-content ul.products .product-gallery__item {
        border-right: none;
    }

    .shop-main-content ul.products .product-gallery__item:nth-child(3n) {
        border-right: none;
    }

    .shop-main-content ul.products .product-gallery__item:nth-child(4n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .shop-filters__container {
        grid-template-columns: 1fr 1fr;
        row-gap: var(--space-4);
    }
    
    .shop-filters__center {
        grid-column: 1 / span 2;
        order: 3;
    }

    .shop-main-content ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-main-content ul.products .product-gallery__item {
        border-right: none;
    }

    .shop-main-content ul.products .product-gallery__item:nth-child(2n) {
        border-right: none;
    }

    .shop-main-content ul.products .product-gallery__item:nth-child(3n) {
        border-right: none;
    }
}


/* Single Product Page Custom Styles */
.single-product-container {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

.product-main-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 0;
    align-items: start;
}

@media (max-width: 1024px) {
    .product-main-layout {
        grid-template-columns: 1fr;
    }
}

/* Gallery Side */
.product-gallery-side {
    padding: 0;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.product-gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-gallery-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Info Side */
.product-info-side {
    background-color: var(--color-bg-default);
    padding: var(--space-12) var(--space-8);
    position: sticky;
    top: 80px; /* Adjust based on header height */
}

@media (max-width: 1024px) {
    .product-info-side {
        position: static;
        padding: var(--space-8) var(--space-6);
    }
}

.product-info-header {
    margin-bottom: var(--space-8);
}

.product-brand {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
    color: var(--color-text-black);
}

.single-product-container .product-brand {
    display: none;
}

.product-title {
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    margin-bottom: var(--space-2);
    text-transform: none;
}

.product-price-wrapper {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

/* Selection Area */
.product-selection-area {
    margin-bottom: var(--space-10);
}

/* Variations styling */
.single-product-container .variations {
    width: 100%;
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
}

.single-product-container .variations tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.single-product-container .variations tr {
    display: block;
}

.single-product-container .variations td {
    padding: 0;
    display: block;
    line-height: 1;
}

.single-product-container .variations label {
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    margin-bottom: var(--space-4);
    display: block;
    color: #888;
}

.selected-variation-label {
    color: var(--color-text-black);
    margin-left: var(--space-1);
    font-weight: 400;
}

.custom-variation-select {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.custom-variation-select.is-color {
    gap: var(--space-4);
}

.variation-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), opacity var(--transition-base);
}

/* Color Swatches */
.is-color .variation-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
}

.is-color .variation-button::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: var(--color-text-black);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.is-color .variation-button.is-active::after {
    opacity: 1;
}

/* Size Buttons */
.is-size .variation-button {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-black);
    padding: 2px 0;
    min-width: 32px;
    text-align: center;
}

.is-size .variation-button.is-active {
    font-weight: 700;
    text-decoration: underline;
}

/* Quantity Styling */
.quantity {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-4);
}

.qty-styled {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-text-black);
    width: fit-content;
}

.qty-styled input.qty {
    width: 50px !important;
    border: none !important;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 14px;
    padding: 0;
    background: transparent;
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.qty-styled input.qty::-webkit-outer-spin-button,
.qty-styled input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    width: 40px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-black);
}

.qty-btn:hover {
    opacity: 0.7;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.single-product-container .single_add_to_cart_button {
    width: 100%;
    background: transparent;
    color: var(--color-text-black);
    border: 1px solid var(--color-text-black);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    margin-bottom: var(--space-2);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.single-product-container .single_add_to_cart_button:hover {
    background: var(--color-text-black);
    color: white;
}

.reset_variations {
    display: none !important;
}

/* Accordion */
.product-accordion {
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-10);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-4) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    text-align: left;
}

.accordion-header::after {
    content: '+';
    font-size: 16px;
}

.accordion-item.is-open .accordion-header::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.accordion-item.is-open .accordion-content {
    max-height: 1000px;
    padding-bottom: var(--space-4);
}

.product-description-short {
    font-style: italic;
    margin-bottom: var(--space-4);
}

/* Customers Also Viewed */
.customers-also-viewed {
    padding: var(--space-16) var(--space-4);
    background-color: var(--color-bg-default);
}

.customers-also-viewed .section-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-12);
}

.customers-also-viewed .products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 1200px) {
    .customers-also-viewed .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .customers-also-viewed .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure product grid items match shop style */
.customers-also-viewed .product-gallery__item {
    border: none !important;
}


/* Product Page Header Overrides */
@media (max-width: 768px) {
    .single-product .site-header:not(.is-sticky):not(.search-active) {
        background-color: transparent;
        border-bottom: none;
        color: var(--color-text-white);
    }
    
    .single-product .site-header:not(.is-sticky):not(.search-active) .site-branding img {
        filter: brightness(0) invert(1);
    }

    /* Ensure hamburger is also white */
    .single-product .site-header:not(.is-sticky):not(.search-active) .menu-toggle .hamburger,
    .single-product .site-header:not(.is-sticky):not(.search-active) .menu-toggle .hamburger::before,
    .single-product .site-header:not(.is-sticky):not(.search-active) .menu-toggle .hamburger::after {
        background-color: var(--color-text-white);
    }
}

/* Specific color for the top bar text on product pages desktop (non-sticky) */
.single-product .site-header:not(.is-sticky):not(.search-active) .top-bar {
    color: var(--color-text-white);
}


/* --- Sewear Custom Checkout --- */

.woocommerce-checkout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.checkout-column-left {
    flex: 1;
    padding: 40px 60px 40px 0;
    background: #fff;
}

.checkout-column-right {
    width: 42%;
    padding: 40px 0 40px 60px;
    background: #fafafa;
    border-left: 1px solid #e1e1e1;
}

/* Header & Breadcrumbs */
.checkout-header-custom {
    margin-bottom: 40px;
}

.checkout-logo {
    margin-bottom: 20px;
}

.checkout-logo img {
    max-height: 40px;
    width: auto;
}

.checkout-breadcrumbs {
    font-size: 12px;
    color: #707070;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    font-size: 10px;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

.breadcrumb-item a {
    text-decoration: none;
    color: inherit;
}

/* Form Styles */
.woocommerce-checkout h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #333;
}

.sewear-style-field {
    margin-bottom: 12px !important;
}

.woocommerce-checkout .form-row {
    padding: 0;
    margin: 0 0 15px;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}

.woocommerce-checkout .form-row input.input-text:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Column 1 & 2 layout (Billing/Shipping) */
.customer-details {
    margin-bottom: 40px;
}

/* Order Summary Sidebar */
.order-summary-sidebar {
    position: sticky;
    top: 20px;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table thead {
    display: none; /* Custom style hides table head */
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    padding: 15px 0;
    border-top: 1px solid rgba(175, 175, 175, 0.34);
    text-align: left;
    font-weight: 400;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table tr:first-child td {
    border-top: none;
}

.product-thumbnail {
    position: relative;
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-right: 15px;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product-quantity {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(114, 114, 114, 0.9);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.product-name {
    display: flex;
    align-items: center;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: 500;
    color: #333;
}

.product-total {
    text-align: right !important;
    font-weight: 500;
}

/* Totals */
.order-summary-content tfoot th {
    font-weight: 400;
    color: #555;
}

.order-summary-content tfoot .order-total th,
.order-summary-content tfoot .order-total td {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #e1e1e1;
    padding-top: 20px;
}

/* Payment Section */
.checkout-payment-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e1e1e1;
}

.woocommerce-checkout-payment {
    background: #fff;
}

.payment-methods {
    list-style: none;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
}

.payment-methods li {
    padding: 15px;
    border-bottom: 1px solid #d9d9d9;
    background: #fafafa;
}

.payment-methods li:last-child {
    border-bottom: none;
}

.payment-methods li input {
    margin-right: 10px;
}

.payment-methods li label {
    font-weight: 500;
    cursor: pointer;
}

.payment-box {
    padding: 15px;
    background: #fff;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #d9d9d9;
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

#place_order:hover {
    background: var(--color-primary-dark);
}

.wp-block-woocommerce-checkout-order-summary-block {
    background-color: var(--color-text-white);
    scroll-margin-top: var(--space-4);
}

/* WooCommerce Blocks checkout place-order button */
.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
    background: transparent;
    color: var(--color-text-black);
    border: 1px solid var(--color-text-black);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:hover {
    background: var(--color-text-black);
    color: var(--color-text-white);
}

.wc-block-components-sidebar-layout {
    padding-inline: var(--space-6);
}

/* Responsive */
@media (max-width: 992px) {
    .wp-block-woocommerce-checkout-order-summary-block {
        background-color: var(--color-bg-default);
    }
    .woocommerce-checkout {
        flex-direction: column-reverse;
    }

    .checkout-column-left,
    .checkout-column-right {
        width: 100%;
        padding: 20px;
    }

    .checkout-column-right {
        background: #fff;
        border-left: none;
        border-bottom: 1px solid #e1e1e1;
    }

    .wc-block-components-sidebar-layout {
        padding-inline: var(--space-4);
    }
}


/* Coupon Form Custom Style */
.checkout-sidebar-coupon {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

.coupon-form-custom {
    display: flex;
    gap: 10px;
}

.coupon-form-custom .input-text {
    flex: 1;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    font-size: 14px;
}

.coupon-form-custom .apply-coupon-button {
    padding: 0 20px;
    background: #e1e1e1;
    color: #333;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.coupon-form-custom .apply-coupon-button:hover {
    background: #d1d1d1;
}

/* Page Checkout Minimal Template */
body.sewear-checkout-page {
    background: #fff;
}

.checkout-footer {
    padding: 40px 0;
    border-top: 1px solid #e1e1e1;
    font-size: 12px;
    color: #707070;
}

.checkout-footer-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.checkout-footer-nav a {
    color: inherit;
    text-decoration: none;
}

.checkout-footer-nav a:hover {
    text-decoration: underline;
}

/* Fix for WooCommerce messages */
.woocommerce-error, 
.woocommerce-message, 
.woocommerce-info {
    list-style: none;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.woocommerce-error {
    background: #fff1f1;
    color: #d0021b;
    border: 1px solid #d0021b;
}

.woocommerce-info {
    background: #f0f7ff;
    color: #0052cc;
    border: 1px solid #0052cc;
}


.customer-details .col-1,
.customer-details .col-2 {
    width: 100%;
    margin-bottom: 30px;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4%;
}

.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row {
    width: 100%;
}

.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-first,
.woocommerce-shipping-fields__field-wrapper .form-row-last {
    width: 48%;
}

/* Checkbox and radio styling */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
}

.woocommerce-checkout label.checkbox {
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
}


/* --- Updated Centered Custom Checkout --- */

.checkout-page-wrapper {
    max-width: 1000px; /* Narrower for centered look */
    margin: 0 auto;
    background: #fff;
    padding: var(--space-16);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.woocommerce-checkout {
    display: block; /* Stacked layout */
}

.checkout-column-left,
.checkout-column-right {
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.checkout-column-right {
    margin-top: 40px;
    padding-top: 40px !important;
    border-top: 1px solid #e1e1e1 !important;
}

/* Hide the custom checkout header logo/breadcrumbs since we have site header now */
.checkout-header-custom {
    display: none;
}

/* Adjustments for centered layout */
.order-summary-sidebar {
    position: static; /* No longer sticky */
}

.checkout-payment-wrapper {
    margin-top: 30px;
}

/* Ensure the form takes full width of the centered container */
.woocommerce-checkout .customer-details {
    display: block;
}

.woocommerce-checkout .col-1, 
.woocommerce-checkout .col-2 {
    float: none;
    width: 100%;
}


/* --- Custom Style Summary Top --- */

.checkout-summary-top {
    margin-bottom: 30px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background: #fafafa;
    overflow: hidden;
}

.summary-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #fff;
}

.summary-toggle .toggle-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--color-primary);
}

.summary-toggle .total-price {
    font-weight: 600;
    font-size: 16px;
}

.summary-content-dropdown {
    padding: 20px;
    border-top: 1px solid #e1e1e1;
}

/* Ensure the main column is also centered and clean */
.checkout-column-main {
    max-width: 100%;
}

.checkout-column-main h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Site header/footer centering fixes if needed */

/* --- Final Centering Refinements --- */

.checkout-centered-content {
    max-width: 1200px;
    margin: var(--space-16) auto 0;
}

.checkout-page-wrapper {
    box-shadow: none; /* Removed shadow for flatter look */
    border: none;
    padding: 0 var(--space-16);
    max-width: 800px; /* Even narrower for that centered focus */
}

.summary-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.checkout-column-main .customer-details h3 {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-8);
    border: none;
    padding: 0;
}

.woocommerce-checkout .form-row label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
    display: block;
}

/* Center the site footer links if needed for checkout page */
.sewear-checkout-page .site-footer {
    text-align: center;
}


/* --- Checkout & Account Header Inversion & Page Width --- */

/* Invert Header on Checkout & Account Pages (Sticky Look) */
.woocommerce-checkout .site-header:not(.is-sticky):not(.search-active),
.woocommerce-account .site-header:not(.is-sticky):not(.search-active),
.sewear-checkout-page .site-header:not(.is-sticky):not(.search-active) {
    background-color: var(--color-bg-default) !important;
    color: var(--color-text-black) !important;
    border-bottom: 1px solid var(--color-border) !important;
}

.woocommerce-checkout .site-header:not(.is-sticky):not(.search-active) a,
.woocommerce-checkout .site-header:not(.is-sticky):not(.search-active) .main-navigation a,
.woocommerce-checkout .site-header:not(.is-sticky):not(.search-active) .header-actions__link,
.woocommerce-account .site-header:not(.is-sticky):not(.search-active) a,
.woocommerce-account .site-header:not(.is-sticky):not(.search-active) .main-navigation a,
.woocommerce-account .site-header:not(.is-sticky):not(.search-active) .header-actions__link,
.sewear-checkout-page .site-header:not(.is-sticky):not(.search-active) a,
.sewear-checkout-page .site-header:not(.is-sticky):not(.search-active) .main-navigation a,
.sewear-checkout-page .site-header:not(.is-sticky):not(.search-active) .header-actions__link {
    color: var(--color-text-black) !important;
}

.woocommerce-checkout .site-header:not(.is-sticky):not(.search-active) .site-branding img,
.woocommerce-account .site-header:not(.is-sticky):not(.search-active) .site-branding img,
.sewear-checkout-page .site-header:not(.is-sticky):not(.search-active) .site-branding img {
    filter: none !important; /* Original logo color */
}

/* Ensure header icons (cart, search, etc.) are black */
.woocommerce-checkout .site-header:not(.is-sticky):not(.search-active) .header-actions__link i,
.woocommerce-account .site-header:not(.is-sticky):not(.search-active) .header-actions__link i,
.sewear-checkout-page .site-header:not(.is-sticky):not(.search-active) .header-actions__link i {
    color: var(--color-text-black) !important;
}

/* Centered Page Layout with Max Width */
.sewear-checkout-page .site-main {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sewear-checkout-page .checkout-centered-content {
    background-color: var(--color-bg-default);
    display: flex;
    justify-content: center;
    padding: var(--space-16) 0;
    margin: 0 auto;
}

.sewear-checkout-page .checkout-page-wrapper {
    width: 100%;
    max-width: 1000px; /* Increased from 600px to give more room while staying centered */
    margin: 0 auto;
    padding: 0 var(--space-16);
}

/* Hide top bar on checkout & account if it's too busy */
.sewear-checkout-page .top-bar,
.woocommerce-account .top-bar {
    display: none;
}


/* Hamburger inversion for mobile on checkout & account */
.sewear-checkout-page .menu-toggle .hamburger,
.sewear-checkout-page .menu-toggle .hamburger::before,
.sewear-checkout-page .menu-toggle .hamburger::after,
.woocommerce-account .menu-toggle .hamburger,
.woocommerce-account .menu-toggle .hamburger::before,
.woocommerce-account .menu-toggle .hamburger::after {
    background-color: var(--color-text-black) !important;
}

/* Adjust breadcrumbs if they were still visible */
.sewear-checkout-page .checkout-breadcrumbs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    font-family: var(--font-secondary);
}

/* Account Page - Shopify Inspired Style */
.account-centered-content {
    background-color: var(--color-bg-default);
    min-height: 60vh;
}

.account-container {
    max-width: 1200px;
    margin: var(--space-16) auto;
    padding: 0 var(--space-8);
}

@media (max-width: 768px) {
    .account-container {
        margin: var(--space-12) auto;
        padding: 0 var(--space-4);
    }
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-12);
    border-bottom: 1px solid var(--color-border-faint);
    padding-bottom: var(--space-6);
}

.account-title {
    font-size: var(--font-size-2xl);
    font-family: var(--font-primary);
    margin: 0;
    font-weight: var(--font-weight-regular);
}

.account-logout-link {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    font-family: var(--font-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-logout-link:hover {
    color: var(--color-text-black);
    text-decoration: underline;
}

.account-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-16);
}

@media (max-width: 1024px) {
    .account-layout {
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .account-header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }
}

.account-main-title, 
.account-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
    color: var(--color-text-black);
}

.account-orders-table-wrapper {
    width: 100%;
}

.account-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.account-orders-table th {
    text-align: left;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-text-black);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.account-orders-table td {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-border-faint);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.account-order-row a {
    color: var(--color-text-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-order-row a:hover {
    text-decoration: none;
}

.account-details-content {
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

.account-customer-name {
    margin-bottom: var(--space-4);
    color: var(--color-text-black);
    font-weight: var(--font-weight-regular);
}

.account-default-address {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    font-style: normal;
    white-space: pre-line;
}

.account-view-addresses-wrapper,
.account-edit-profile-wrapper {
    margin-top: var(--space-3);
}

.account-view-addresses-link,
.account-edit-profile-link {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: var(--font-size-xs);
    transition: color var(--transition-fast);
}

.account-view-addresses-link:hover,
.account-edit-profile-link:hover {
    color: var(--color-text-black);
    text-decoration: none;
}

.account-no-orders,
.account-no-address {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* My Account endpoint navigation */
.woocommerce-account .account-endpoints-nav {
    display: block;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-faint);
}

.woocommerce-account .account-endpoints-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-6);
}

.woocommerce-account .account-endpoints-nav li {
    margin: 0;
}

.woocommerce-account .account-endpoints-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.woocommerce-account .account-endpoints-nav a:hover {
    color: var(--color-text-black);
}

.woocommerce-account .account-endpoints-nav .is-active a,
.woocommerce-account .account-endpoints-nav a[aria-current="page"] {
    color: var(--color-text-black);
    text-decoration: underline;
    text-underline-offset: var(--space-1);
}

@media (max-width: 768px) {
    .woocommerce-account .account-endpoints-nav {
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-4);
    }

    .woocommerce-account .account-endpoints-nav ul {
        gap: var(--space-3) var(--space-4);
    }
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
    margin-bottom: var(--space-8);
    font-size: var(--font-size-sm);
}

/* WooCommerce Login/Register Forms */
.woocommerce-account .u-columns.col2-set {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-16);
    max-width: 1000px;
    margin: var(--space-6) auto 0;
    padding: var(--space-12) 0;
}

@media (max-width: 900px) {
    .woocommerce-account .u-columns.col2-set {
        flex-direction: column;
        align-items: center;
        max-width: 450px;
    }
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1;
    width: 100% !important;
    float: none !important;
}

.woocommerce-form-login,
.woocommerce-form-register {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    padding: var(--space-8) 0;
}

.woocommerce-account h2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-regular);
}

.woocommerce-form-login__title,
.woocommerce-form-register__title {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    text-align: center;
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-regular);
}

.woocommerce-form-login .form-row-first,
.woocommerce-form-login .form-row-last,
.woocommerce-form-register .form-row-first,
.woocommerce-form-register .form-row-last {
    width: 100% !important;
    float: none !important;
}

.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.woocommerce-form-login .woocommerce-form-login__rememberme input {
    width: auto;
    margin: 0;
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--font-size-xs);
}

.woocommerce-LostPassword a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-LostPassword a:hover {
    color: var(--color-text-black);
}

/* WooCommerce Forms styling */
.woocommerce-account .form-row {
    margin-bottom: var(--space-6);
}

.woocommerce-account label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
    color: var(--color-text-black);
}

.woocommerce-account input.input-text,
.woocommerce-account select,
.woocommerce-account textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    background-color: transparent;
    transition: border-color var(--transition-fast);
}

.woocommerce-account input.input-text:focus,
.woocommerce-account select:focus,
.woocommerce-account textarea:focus {
    outline: none;
    border-color: var(--color-text-black);
}

/* Password Visibility Toggle */
.woocommerce-account .password-input {
    position: relative;
    display: block;
}

.woocommerce-account .password-input input.input-text {
    padding-right: var(--space-12);
}

.woocommerce-account .show-password-input {
    position: absolute;
    top: 50%;
    right: var(--space-4);
    transform: translateY(-50%);
    width: var(--space-6);
    height: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    text-indent: -9999px;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.woocommerce-account .show-password-input::after {
    content: "\f06e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: var(--font-size-sm);
    line-height: 1;
    text-indent: 0;
}

.woocommerce-account .show-password-input:hover,
.woocommerce-account .show-password-input:focus {
    color: var(--color-text-black);
}

.woocommerce-account .show-password-input.display-password::after {
    content: "\f070";
}

.woocommerce-account button.button {
    background-color: var(--color-text-black);
    color: white;
    padding: var(--space-4) var(--space-8);
    border: none;
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.woocommerce-account button.button:hover {
    opacity: 0.8;
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
    width: 100%;
    margin-top: var(--space-4);
}

/* Responsive Table */
@media (max-width: 600px) {
    .account-orders-table thead {
        display: none;
    }
    
    .account-orders-table tr {
        display: block;
        padding: var(--space-6) 0;
        border-bottom: 1px solid var(--color-border-faint);
    }
    
    .account-orders-table td {
        display: flex;
        justify-content: space-between;
        padding: var(--space-2) 0;
        border-bottom: none;
        text-align: right;
    }
    
    .account-orders-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.1em;
        color: var(--color-text-black);
    }
}

/* WooCommerce Order Received (Thank You) Page */
.woocommerce-order-received .woocommerce {
    max-width: 900px;
    margin: var(--space-12) auto 0;
    padding: 0 var(--space-6) var(--space-12);
}

.woocommerce-order-received .woocommerce-notice--success.woocommerce-thankyou-order-received {
    margin: 0 0 var(--space-8);
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    color: var(--color-text-black);
    font-size: var(--font-size-sm);
}

.woocommerce-order-received .woocommerce-order-overview {
    list-style: none;
    margin: 0 0 var(--space-10);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-6);
}

.woocommerce-order-received .woocommerce-order-overview li {
    margin: 0;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    margin-top: var(--space-2);
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-text-black);
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    margin-top: var(--space-8);
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    margin-bottom: var(--space-5);
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-black);
}

.woocommerce-order-received .woocommerce-table--order-details,
.woocommerce-order-received .woocommerce-table--customer-details,
.woocommerce-order-received .woocommerce-customer-details address {
    width: 100%;
    border: 1px solid var(--color-border);
    border-collapse: collapse;
    background-color: var(--color-bg-light);
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td,
.woocommerce-order-received .woocommerce-table--customer-details th,
.woocommerce-order-received .woocommerce-table--customer-details td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-black);
    text-align: left;
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--customer-details th {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    font-weight: var(--font-weight-semibold);
}

.woocommerce-order-received .woocommerce-customer-details address {
    margin: 0;
    padding: var(--space-5);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-loose);
    font-style: normal;
    color: var(--color-text-black);
}

.woocommerce-order-received .woocommerce-order-details a,
.woocommerce-order-received .woocommerce-customer-details a {
    color: var(--color-text-black);
    text-decoration: underline;
    text-underline-offset: var(--space-1);
}

.woocommerce-order-received .woocommerce-order-details a:hover,
.woocommerce-order-received .woocommerce-customer-details a:hover {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .woocommerce-order-received .woocommerce {
        margin-top: var(--space-8);
        padding: 0 var(--space-4) var(--space-8);
    }

    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce-order-received .woocommerce-table--order-details th,
    .woocommerce-order-received .woocommerce-table--order-details td,
    .woocommerce-order-received .woocommerce-table--customer-details th,
    .woocommerce-order-received .woocommerce-table--customer-details td {
        padding: var(--space-3) var(--space-4);
    }
}

