/* ============ Tokens ============ */
:root {
    color-scheme: light;
    --md-navy: #171717;
    --md-foam: #FFFFFF;
    --md-yellow: #FFFF00;
    --md-yellow-dark: #E6E600;
    --md-coral: #FF6B4A;
    --md-teal: #1B7A72;
    --md-sand: #F2F1EE;
    --md-ink: #171717;
    --md-line: #E9E8E4;

    --md-display: 'Inter', sans-serif;
    --md-body: 'Inter', sans-serif;

    --md-max: 1320px;
    --md-header-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--md-body);
    color: var(--md-ink);
    background: var(--md-foam);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3 {
    font-family: var(--md-display);
    font-weight: 800;
    margin: 0 0 .5em;
    letter-spacing: -0.02em;
}

:focus-visible { outline: 2px solid var(--md-yellow-dark); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   MOBILE-FIRST BASE STYLES (this is what phones see by default)
   ===================================================================== */

/* ---- Promo/announcement bar ---- */
.md-promo {
    background: var(--md-yellow);
    color: var(--md-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 40px 10px 16px;
    position: relative;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}
.md-promo__text { color: var(--md-ink); text-decoration: none; }
a.md-promo__text:hover { text-decoration: underline; }
.md-promo__close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--md-ink);
    padding: 4px 8px;
}

/* ============ WooCommerce: shop/category archive grid ============ */
.md-woo-wrap { max-width: var(--md-max); margin: 0 auto; padding: 0 16px 56px; }
.md-woo-wrap .page-title { font-size: 26px; color: var(--md-navy); padding: 28px 0 16px; }
.md-woo-wrap ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.md-woo-wrap ul.products li.product { list-style: none; margin: 0; padding: 0; }
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    max-width: var(--md-max);
    margin: 16px auto;
    padding: 14px 18px;
    background: var(--md-sand);
    border-radius: 8px;
    font-size: 14px;
    list-style: none;
}
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message a.wc-forward {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 !important;
}

/* ============ WooCommerce: single product page ============ */
.woocommerce div.product {
    max-width: var(--md-max);
    margin: 0 auto;
    padding: 0 0 48px;
}
.woocommerce div.product .summary.entry-summary { padding: 4px 16px 40px; }
.woocommerce div.product .product_title { font-size: 22px; color: var(--md-navy); margin-bottom: 10px; }
.woocommerce div.product p.price {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
}
.woocommerce div.product p.price del { color: #999; font-weight: 500; font-size: 15px; margin-right: 8px; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #55524b; font-size: 14px; margin-bottom: 18px; }
.woocommerce div.product form.cart { margin-bottom: 20px; }
.woocommerce div.product .variations { width: 100%; margin-bottom: 14px; }
.woocommerce div.product .variations label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #55524b; }
.woocommerce div.product .variations select {
    width: 100%; padding: 13px 14px; border: 1px solid var(--md-line); border-radius: 8px;
    font-size: 16px; background: #fff; font-family: var(--md-body);
}
.woocommerce div.product .quantity input {
    width: 64px; padding: 13px 10px; border: 1px solid var(--md-line); border-radius: 8px; font-size: 15px;
}
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product button.button {
    background: var(--md-yellow) !important;
    color: var(--md-ink) !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: var(--md-display) !important;
    font-weight: 700 !important;
    padding: 15px 24px !important;
    cursor: pointer;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--md-yellow-dark) !important; }
.woocommerce-tabs { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--md-line); padding-left: 16px; padding-right: 16px; font-size: 14px; line-height: 1.6; color: #3d3b35; }
.woocommerce-tabs ul.tabs { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 20px; }
.woocommerce-tabs ul.tabs li { font-weight: 600; cursor: pointer; }
.related.products { padding: 0 16px; margin-top: 40px; }
.related.products > h2 { font-size: 21px; color: var(--md-navy); margin-bottom: 16px; }
.related.products ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; }

/* ============ WooCommerce: cart & checkout ============ */
.md-cart-page, .md-checkout-page { padding: 0 16px 60px; }
.md-cart-page .page-title, .md-checkout-page .page-title { font-size: 26px; color: var(--md-navy); padding: 28px 0 20px; }

.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--md-line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table td.product-thumbnail,
.woocommerce table.shop_table td.product-thumbnail a {
    width: 80px !important;
}
.woocommerce table.shop_table img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: contain !important;
    display: block !important;
    background: var(--md-sand);
    border-radius: 6px;
    padding: 4px;
    box-sizing: border-box;
}
.woocommerce td.product-remove a { color: #999; font-size: 20px; text-decoration: none; }

.woocommerce .quantity .qty {
    width: 60px; padding: 10px; border: 1px solid var(--md-line); border-radius: 6px; font-size: 15px; text-align: center;
}

.woocommerce .coupon { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.woocommerce .coupon .input-text { padding: 12px; border: 1px solid var(--md-line); border-radius: 6px; font-size: 15px; }
.woocommerce .coupon button { flex-shrink: 0; }

/* ---- Cart item cards (replaces the default multi-column table) ---- */
.md-cart-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.md-cart-item { display: flex; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--md-line); }
.md-cart-item__img {
    flex: 0 0 auto; width: 84px; height: 84px; background: var(--md-sand);
    border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.md-cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.md-cart-item__body { flex: 1; min-width: 0; }
.md-cart-item__name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.md-cart-item__name a { color: var(--md-ink); text-decoration: none; }
.md-cart-item__meta dl.variation { margin: 2px 0 10px; font-size: 13px; color: #726f66; }
.md-cart-item__meta dl.variation dt, .md-cart-item__meta dl.variation dd { display: inline; margin: 0; }
.md-cart-item__meta dl.variation dt { font-weight: 500; }
.md-cart-item__meta dl.variation dt::after { content: ": "; }
.md-cart-item__meta dl.variation dd p { display: inline; margin: 0; }
.md-cart-item__meta dl.variation > dt:not(:first-child)::before { content: "\A"; white-space: pre; }

.md-cart-item__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.md-cart-item__price { margin-left: auto; font-weight: 600; font-size: 15px; }

.md-qty-stepper {
    display: inline-flex; align-items: center; border: 1px solid var(--md-line);
    border-radius: 999px; overflow: hidden; height: 34px;
}
.md-qty-btn {
    background: none; border: none; width: 32px; height: 34px; font-size: 16px;
    cursor: pointer; color: var(--md-ink); line-height: 1;
}
.md-qty-stepper input.qty {
    width: 34px; text-align: center; border: none; border-left: 1px solid var(--md-line);
    border-right: 1px solid var(--md-line); height: 34px; font-size: 14px; -moz-appearance: textfield;
}
.md-qty-stepper input.qty::-webkit-outer-spin-button,
.md-qty-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.md-cart-item__remove {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; color: #8a8578; flex-shrink: 0;
}
.md-cart-item__remove:hover { color: #c0392b; background: var(--md-sand); }

.md-cart-update-row { margin: 0 0 24px; }

.cart_totals, .woocommerce-checkout-review-order {
    background: var(--md-sand);
    border-radius: 8px;
    padding: 20px;
    margin-top: 8px;
}
.cart_totals h2, .woocommerce-checkout-review-order h3 { font-size: 18px; color: var(--md-navy); margin: 0 0 14px; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td,
.woocommerce-checkout-review-order table.shop_table th, .woocommerce-checkout-review-order table.shop_table td {
    border-bottom: 1px solid rgba(20,33,61,0.08);
}
.cart_totals .order-total .amount, .woocommerce-checkout-review-order .order-total .amount { font-weight: 700; font-size: 18px; }

.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; text-align: center; display: block; }

.woocommerce #payment, .woocommerce-checkout-review-order { background: var(--md-sand); border-radius: 8px; padding: 16px; margin-top: 16px; }

.woocommerce .button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #place_order {
    background: var(--md-yellow) !important;
    color: var(--md-ink) !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: var(--md-display) !important;
    font-weight: 700 !important;
    padding: 14px 22px !important;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce #place_order:hover { background: var(--md-yellow-dark) !important; }

/* Secondary/utility actions: quieter outline style, not the loud primary yellow.
   Primary actions (Add to Cart, Proceed to Checkout, Place Order) keep the yellow. */
.woocommerce button[name="apply_coupon"],
.woocommerce button[name="update_cart"],
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
    background: #fff !important;
    color: var(--md-navy) !important;
    border: 2px solid var(--md-navy) !important;
}
.woocommerce button[name="apply_coupon"]:hover,
.woocommerce button[name="update_cart"]:hover,
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward:hover {
    background: var(--md-navy) !important;
    color: #fff !important;
}

.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #55524b; margin-bottom: 6px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
    padding: 12px; border: 1px solid var(--md-line); border-radius: 6px; font-size: 15px; width: 100%; box-sizing: border-box;
}

/* Checkout's default two-column billing/order-review layout */
.woocommerce-checkout .col2-set { display: block; }
.woocommerce-checkout #order_review_heading { font-size: 18px; color: var(--md-navy); margin: 28px 0 14px; }

/* ---- Header / nav ---- */
.md-header {
    background: var(--md-navy);
    color: var(--md-foam);
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--md-header-h);
}

.md-header__inner {
    max-width: var(--md-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.md-logo { display: flex; align-items: center; }
.md-logo img { max-height: 34px; width: auto; display: block; }
.md-logo--text {
    font-family: var(--md-display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.02em;
    color: var(--md-yellow);
}

.md-header__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.md-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--md-foam);
}
.md-cart-link__count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--md-yellow);
    color: var(--md-ink);
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Hamburger button — visible on mobile, hidden on desktop */
.md-menu-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.md-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--md-foam);
    transition: transform .2s, opacity .2s;
}
.md-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.md-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.md-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav: full-width dropdown panel, closed by default */
.md-nav {
    position: fixed;
    top: var(--md-header-h);
    left: 0;
    right: 0;
    background: var(--md-navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.md-nav.is-open { max-height: 400px; }
.md-nav__list {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 20px;
}
.md-nav__list a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(250,248,243,0.1);
}

/* ---- Hero ---- */
.md-hero { max-width: var(--md-max); margin: 0 auto; padding: 32px 16px 28px; }
.md-hero__title { font-size: 34px; color: var(--md-navy); line-height: 1.05; }
.md-hero__sub { font-size: 15px; color: #55524b; }

/* ---- Category tiles: stacked on mobile ---- */
.md-categories {
    max-width: var(--md-max);
    margin: 0 auto;
    padding: 0 16px 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.md-cat-tile { position: relative; display: block; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--md-sand); }
.md-cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.md-cat-tile__name { position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: var(--md-display); font-weight: 700; font-size: 18px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }

/* ---- Section heading ---- */
.md-section-heading { max-width: var(--md-max); margin: 0 auto; padding: 0 16px 16px; }
.md-section-heading h2 { font-size: 21px; color: var(--md-navy); }

/* ---- Product grid: 2-up on mobile ---- */
.md-grid {
    max-width: var(--md-max);
    margin: 0 auto;
    padding: 0 16px 56px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.md-card { display: block; background: transparent; border-radius: 4px; overflow: hidden; border: none; }
.md-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--md-sand); }
.md-card__body { padding: 10px 12px 14px; }
.md-card__name { font-size: 13px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.md-card__price { font-size: 14px; font-weight: 700; margin: 0; }
.md-card__price--was { text-decoration: line-through; color: #999; font-weight: 500; margin-right: 6px; font-size: 12px; }
.md-card__price--soon { color: #999; font-weight: 500; }

.md-price__usd { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: #8a8578; vertical-align: middle; margin-left: 2px; }

/* ---- Category page ---- */
.md-category-header { max-width: var(--md-max); margin: 0 auto; padding: 28px 16px 16px; }
.md-category-header h1 { color: var(--md-navy); font-size: 26px; }

/* ---- Product page: single column, gallery full-bleed on top ---- */
.md-product {
    max-width: var(--md-max);
    margin: 0 auto;
    padding: 0 0 48px;
    display: block;
}

.md-product__gallery { padding: 0; }

.md-product__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--md-sand);
    overflow: hidden;
}
.md-product__mainmedia {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.md-product__mainmedia.is-active { opacity: 1; pointer-events: auto; }

.md-product__thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.md-product__thumb {
    flex: 0 0 auto;
    width: 58px; height: 58px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: var(--md-sand);
    cursor: pointer;
    position: relative;
}
.md-product__thumb img, .md-product__thumb video { width: 100%; height: 100%; object-fit: cover; }
.md-product__thumb.is-active { border-color: var(--md-yellow); }
.md-product__thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; background: rgba(20,33,61,.35); }

.md-product__info { padding: 4px 16px 100px; } /* bottom padding clears the sticky buy bar */
.md-product__name { font-size: 22px; color: var(--md-navy); }
.md-product__price { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.md-product__price--was { text-decoration: line-through; color: #999; font-weight: 500; margin-right: 8px; font-size: 15px; }
.md-product__summary { color: #55524b; font-size: 14px; margin-bottom: 18px; }
.md-product__field { margin-bottom: 14px; }
.md-product__field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; color: #55524b; }
.md-product__field select {
    width: 100%; padding: 13px 14px; border: 1px solid var(--md-line); border-radius: 8px;
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
    background: #fff; font-family: var(--md-body);
}

.md-buy-btn {
    width: 100%; padding: 15px; background: var(--md-yellow); color: var(--md-ink); border: none;
    border-radius: 8px; font-family: var(--md-display); font-weight: 700; font-size: 15px;
    cursor: pointer; margin-top: 6px;
}
.md-buy-btn:disabled { background: #cfcabf; cursor: not-allowed; }
.md-buy-error { color: #c0392b; font-size: 13px; margin-top: 10px; }

.md-product__description { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--md-line); font-size: 14px; line-height: 1.6; color: #3d3b35; }
.md-product__features { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.md-product__features li { font-size: 13px; padding-left: 16px; position: relative; color: #3d3b35; }
.md-product__features li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--md-teal); }

/* Sticky mobile buy bar — hidden on desktop */
.md-mobile-buybar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--md-line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 40;
    box-shadow: 0 -6px 16px rgba(20,33,61,0.08);
}
.md-mobile-buybar__price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.md-mobile-buybar__btn { margin-top: 0; }

/* ---- Order confirmation / generic ---- */
.md-confirm { max-width: 520px; margin: 0 auto; padding: 60px 16px; text-align: center; }
.md-confirm h1 { color: var(--md-navy); font-size: 26px; }
.md-confirm__amount { font-size: 19px; font-weight: 700; margin: 16px 0; }
.md-generic { max-width: 760px; margin: 0 auto; padding: 40px 16px 60px; }
.md-generic h1 { color: var(--md-navy); font-size: 26px; }

/* ---- Footer ---- */
.md-footer { background: var(--md-navy); color: rgba(250,248,243,0.75); margin-top: 40px; }
.md-footer__inner { max-width: var(--md-max); margin: 0 auto; padding: 36px 16px; }
.md-footer__brand { font-family: var(--md-display); color: var(--md-foam); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.md-footer__tag { font-size: 13px; margin-bottom: 14px; }
.md-footer__copy { font-size: 12px; opacity: 0.6; }


/* =====================================================================
   TABLET ENHANCEMENTS — 640px and up
   ===================================================================== */
@media (min-width: 640px) {
    .md-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 24px 64px; }
    .md-categories { grid-template-columns: repeat(3, 1fr); padding: 0 24px 48px; gap: 16px; }
    .md-cat-tile { aspect-ratio: 4/5; }
    .md-hero { padding: 48px 24px 32px; }
    .md-hero__title { font-size: 46px; }
    .md-header__inner { padding: 0 24px; }
}


/* =====================================================================
   DESKTOP ENHANCEMENTS — 1000px and up
   (nav goes horizontal, hamburger disappears, product page goes 2-column)
   ===================================================================== */
@media (min-width: 1000px) {
    :root { --md-header-h: 74px; }

    .md-menu-btn { display: none; }

    .md-nav {
        position: static;
        max-height: none;
        overflow: visible;
        background: none;
    }
    .md-nav__list {
        flex-direction: row;
        gap: 28px;
        padding: 0;
    }
    .md-nav__list a {
        padding: 0;
        border-bottom: none;
        font-size: 14px;
        opacity: 0.88;
    }
    .md-nav__list a:hover { opacity: 1; }

    .md-hero { padding: 64px 24px 40px; }
    .md-hero__title { font-size: clamp(46px, 6vw, 64px); }
    .md-hero__sub { font-size: 17px; max-width: 480px; }

    .md-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 0 32px 100px; }
    .md-card:hover .md-card__img { transform: scale(1.03); }
    .md-card__img { transition: transform 0.4s ease; }
    .md-card__body { padding: 14px 16px 18px; }
    .md-card__name { font-size: 15px; }
    .md-card__price { font-size: 16px; }

    .md-cat-tile img { transition: transform 0.4s ease; }
    .md-cat-tile:hover img { transform: scale(1.04); }
    .md-section-heading h2 { font-size: 24px; }

    .md-category-header { padding: 48px 24px 24px; }
    .md-category-header h1 { font-size: 32px; }

    /* Product page becomes a 2-column layout with sticky gallery */
    .md-product {
        padding: 40px 24px 100px;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 56px;
        align-items: flex-start;
    }
    .md-product__gallery { position: sticky; top: calc(var(--md-header-h) + 24px); }
    .md-product__main { border-radius: 12px; }
    .md-product__thumbs { padding: 14px 0 0; overflow: visible; flex-wrap: wrap; }
    .md-product__thumb { width: 72px; height: 72px; }
    .md-product__info { padding: 0; }
    .md-product__name { font-size: 30px; }
    .md-product__price { font-size: 24px; }
    .md-product__summary { font-size: 15px; margin-bottom: 24px; }
    .md-buy-btn { font-size: 16px; padding: 16px; }
    .md-buy-btn:hover { background: var(--md-yellow-dark); }

    /* No need for the sticky mobile bar once the button is always visible in the column */
    .md-mobile-buybar { display: none; }

    .md-footer__inner { padding: 48px 24px; }
    .md-footer__brand { font-size: 18px; }

    /* WooCommerce desktop layout */
    .md-woo-wrap { padding: 0 24px 80px; }
    .md-woo-wrap .page-title { font-size: 32px; padding: 48px 0 24px; }
    .md-woo-wrap ul.products { grid-template-columns: repeat(4, 1fr); gap: 32px; }

    .woocommerce div.product {
        padding: 40px 24px 100px;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 56px;
        align-items: flex-start;
    }
    .woocommerce div.product .md-product__gallery { position: sticky; top: calc(var(--md-header-h) + 24px); }
    .woocommerce div.product .summary.entry-summary { padding: 0; }
    .woocommerce div.product .product_title { font-size: 30px; }
    .woocommerce div.product p.price { font-size: 24px; }
    .woocommerce-tabs, .related.products { grid-column: 1 / -1; padding-left: 0; padding-right: 0; }
    .related.products ul.products { grid-template-columns: repeat(4, 1fr); gap: 24px; }

    /* Cart page: items table + totals sidebar side by side */
    .md-cart-page, .md-checkout-page { padding: 0 24px 80px; }
    .md-cart-page .page-title, .md-checkout-page .page-title { font-size: 32px; padding: 48px 0 24px; }

    .woocommerce-cart-form, .cart_totals { vertical-align: top; }
    .woocommerce form.woocommerce-cart-form { display: inline-block; width: 64%; vertical-align: top; }
    .cart_totals { display: inline-block; width: 32%; margin-left: 4%; vertical-align: top; }

    /* Checkout page: billing details + order review side by side */
    .woocommerce-checkout .col2-set { display: flex; gap: 48px; align-items: flex-start; }
    .woocommerce-checkout .col2-set .col-1 { flex: 1.3; }
    .woocommerce-checkout .col2-set .col-2 { flex: 1; }
}
