/*
Theme Name: Materiel Theme
Theme URI: https://materieltbilisi.com/
Author: Materiel
Author URI: https://materieltbilisi.com/
Description: Minimal fashion e-commerce theme for Materiel Tbilisi. WooCommerce-ready, with a fully Customizer-controlled homepage (announcement bar, hero, product sections, footer).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: materiel
Tags: e-commerce, woocommerce, fashion, minimal, custom-colors, custom-menu, featured-images
WC requires at least: 6.0
WC tested up to: 9.0
*/

/* =========================================================
   1. Variables & Reset
   ========================================================= */
:root {
    --mat-black: #000000;
    --mat-text: #111111;
    --mat-white: #ffffff;
    --mat-grey: #777777;
    --mat-line: #e5e5e5;
    --mat-bg: #ffffff;
    --mat-font: "Noto Sans", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
    --mat-tracking: 0.12em;
    --mat-container: 1400px;
    --mat-header-h: 90px;
}

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

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

body {
    margin: 0;
    font-family: var(--mat-font);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--mat-text);
    background: var(--mat-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.65; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}

.mat-container {
    max-width: var(--mat-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   2. Buttons
   ========================================================= */
.mat-btn {
    display: inline-block;
    padding: 14px 60px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--mat-tracking);
    text-transform: uppercase;
    text-align: center;
    border: 1px solid var(--mat-black);
    background: var(--mat-black);
    color: var(--mat-white);
    transition: background .2s, color .2s, opacity .2s;
}
.mat-btn:hover { opacity: 1; background: #222; }

.mat-btn--outline {
    background: transparent;
    color: var(--mat-black);
}
.mat-btn--outline:hover { background: var(--mat-black); color: var(--mat-white); opacity: 1; }

/* =========================================================
   3. Announcement bar
   ========================================================= */
.mat-announcement {
    background: var(--mat-black);
    color: var(--mat-white);
    text-align: center;
    font-size: 11px;
    letter-spacing: var(--mat-tracking);
    padding: 9px 16px;
    text-transform: none;
}

/* =========================================================
   4. Header
   ========================================================= */
.mat-header {
    position: relative;
    z-index: 50;
    width: 100%;
    min-height: var(--mat-header-h);
    display: flex;
    align-items: center;
    background: var(--mat-white);
    color: var(--mat-black);
    transition: background .3s ease, color .3s ease;
}
.mat-header__inner {
    width: 100%;
    max-width: var(--mat-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.mat-header__col { flex: 1; display: flex; align-items: center; }
.mat-header__col--center { justify-content: center; flex: 0 0 auto; }
.mat-header__col--right { justify-content: flex-end; gap: 26px; }

.mat-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}
.mat-logo img { max-height: 34px; width: auto; }

.mat-menu-toggle {
    position: relative;
    background: none; border: 0; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 22px;
    color: inherit;
}
.mat-menu-toggle .mat-icon {
    display: block;
    transition: opacity .28s ease, transform .38s cubic-bezier(.2, .7, .2, 1);
}
.mat-menu-toggle .mat-icon line {
    stroke: currentColor;
    stroke-width: 1.5;
    shape-rendering: crispEdges;
    vector-effect: non-scaling-stroke;
}
/* Burger is always black, even over the hero */
.mat-menu-toggle .mat-icon--burger line { stroke: var(--mat-black); }
/* Stack burger + close and crossfade/rotate between them. */
.mat-menu-toggle .mat-icon--close {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg) scale(.5);
    opacity: 0;
}
.mat-menu-toggle .mat-icon--close line { shape-rendering: geometricPrecision; }
.mat-menu-toggle.is-active .mat-icon--burger { opacity: 0; transform: rotate(90deg) scale(.5); }
.mat-menu-toggle.is-active .mat-icon--close { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }

.mat-header__search {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: inherit;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--mat-tracking);
    text-transform: capitalize;
}

.mat-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.mat-cart svg { width: 20px; height: 20px; stroke-width: 1.7; }
.mat-cart__count {
    position: absolute;
    top: -8px; right: -10px;
    font-size: 10px;
    min-width: 16px; height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: var(--mat-black);
    color: var(--mat-white);
    padding: 0 4px;
}

/* Header wrapper: sticky, anchors the mega menu / search dropdowns */
.mat-header-wrap {
    position: sticky;
    top: 0;
    z-index: 60;
}

/* Transparent header overlaying the hero (front page, at top) */
.mat-header--overlay {
    background: transparent;
    color: var(--mat-white);
}
.mat-header--overlay .mat-cart__count {
    background: var(--mat-white);
    color: var(--mat-black);
}
/* On scroll, or when a dropdown is open, the overlay header goes solid white */
.mat-front.mat-scrolled .mat-header--overlay,
.mat-front.mat-menu-open .mat-header--overlay,
.mat-front.mat-search-open .mat-header--overlay {
    background: var(--mat-white);
    color: var(--mat-black);
}
.mat-front.mat-scrolled .mat-header--overlay .mat-cart__count,
.mat-front.mat-menu-open .mat-header--overlay .mat-cart__count,
.mat-front.mat-search-open .mat-header--overlay .mat-cart__count {
    background: var(--mat-black);
    color: var(--mat-white);
}
/* Front page: hide the centred logo over the hero; reveal it once the
   header turns solid (burger menu open, search open, or on scroll). */
.mat-front .mat-header--overlay .mat-logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}
.mat-front.mat-scrolled .mat-header--overlay .mat-logo,
.mat-front.mat-menu-open .mat-header--overlay .mat-logo,
.mat-front.mat-search-open .mat-header--overlay .mat-logo {
    opacity: 1;
    visibility: visible;
}

/* Hero overlay (menu closed): make Search read as bold white and the
   cart icon thicker so both stand out clearly over the hero image. */
.mat-header--overlay .mat-header__search { font-weight: 700; }
.mat-header--overlay .mat-cart svg { stroke-width: 2; }

/* Burger menu open (also search open / scrolled): Search and cart become
   fully solid black and bold — no faint hairline / thin label. */
body.mat-menu-open .mat-header__search,
body.mat-search-open .mat-header__search { color: var(--mat-black); font-weight: 700; }
body.mat-menu-open .mat-cart,
body.mat-search-open .mat-cart { color: var(--mat-black); }
body.mat-menu-open .mat-cart svg,
body.mat-search-open .mat-cart svg { stroke-width: 2; }

/* Search dropdown */
.mat-searchbar {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--mat-white);
    color: var(--mat-black);
    border-bottom: 1px solid var(--mat-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .32s ease, transform .38s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .4s;
}
.mat-searchbar.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .32s ease, transform .38s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.mat-searchbar__form {
    max-width: var(--mat-container);
    margin: 0 auto;
    padding: 40px 20px 44px;
}
.mat-searchbar__input {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border: 0;
    border-bottom: 1px solid var(--mat-black);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.04em;
    padding: 10px 2px;
    color: var(--mat-black);
    text-align: left;
}
.mat-searchbar__input:focus { outline: none; }
.mat-searchbar__input::placeholder {
    color: var(--mat-black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 1;
}

/* =========================================================
   5. Mega menu (full-width dropdown)
   ========================================================= */
.mat-megamenu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--mat-white);
    color: var(--mat-black);
    border-bottom: 1px solid var(--mat-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .38s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .46s;
}
.mat-megamenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .38s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.mat-megamenu__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--mat-container);
    margin: 0 auto;
    padding: 30px 20px 60px;
}
/* Gentle rise + fade-in of the menu content once the panel opens. */
.mat-megamenu__cols,
.mat-megamenu__feature {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.mat-megamenu.is-open .mat-megamenu__cols { transition-delay: .08s; opacity: 1; transform: translateY(0); }
.mat-megamenu.is-open .mat-megamenu__feature { transition-delay: .16s; opacity: 1; transform: translateY(0); }
.mat-megamenu__cols { flex: 1; }
.mat-megamenu__feature { flex: 0 0 320px; }
.mat-megamenu__feature img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; }

/* Top-level items become fixed-width columns packed to the left */
ul.mat-mega {
    display: flex;
    gap: 46px;
    align-items: flex-start;
    flex-wrap: nowrap;
}
ul.mat-mega > li {
    flex: 0 0 108px;
    width: 108px;
}
ul.mat-mega > li > a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    display: block;
    margin-bottom: 18px;
}
ul.mat-mega .sub-menu { display: block; }
ul.mat-mega .sub-menu li { margin-bottom: 12px; }
ul.mat-mega .sub-menu a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    color: #5b4a2f; /* warm link tone seen on the live site */
}
ul.mat-mega .sub-menu a:hover { color: var(--mat-black); opacity: 1; }

.mat-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 50;
    opacity: 0; visibility: hidden;
    transition: opacity .3s;
}
.mat-nav-overlay.is-open { opacity: 1; visibility: visible; }

/* =========================================================
   6. Hero
   ========================================================= */
.mat-hero {
    position: relative;
    margin-top: calc(-1 * var(--mat-header-h)); /* tuck exactly under the sticky header */
    color: var(--mat-white);
    text-align: center;
    line-height: 0;
}
/* Show the full banner at its natural ratio: no crop, no empty space below */
.mat-hero__bg {
    display: block;
    width: 100%;
    height: auto;
}
.mat-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 60px 48px 72px;
    line-height: 1.6;
    box-sizing: border-box;
}
.mat-hero__inner {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}
/* Horizontal position */
.mat-hero--h-left   { justify-content: flex-start; }
.mat-hero--h-left   .mat-hero__inner { align-items: flex-start; text-align: left; }
.mat-hero--h-center { justify-content: center; }
.mat-hero--h-center .mat-hero__inner { align-items: center; text-align: center; }
.mat-hero--h-right  { justify-content: flex-end; }
.mat-hero--h-right  .mat-hero__inner { align-items: flex-end; text-align: right; }
/* Vertical position */
.mat-hero--v-top    { align-items: flex-start; }
.mat-hero--v-center { align-items: center; }
.mat-hero--v-bottom { align-items: flex-end; }
.mat-hero__title {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0 0 44px;
}
/* "MATERIEL  pre-fall 2025 landed" — brand spaced, gap, then lighter tail */
.mat-hero__title .brand {
    font-weight: 400;
    letter-spacing: 0.42em;
    margin-right: 0.7em;
    text-transform: uppercase;
}
.mat-hero__title .accent { font-weight: 700; }
.mat-hero__title em { font-style: italic; }

/* =========================================================
   7. Product sections
   ========================================================= */
.mat-section { padding: 70px 0; }
.mat-section__title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 50px;
}

.mat-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px;
}
.mat-product { text-align: left; }
.mat-product__img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 16px;
}
/* Slow, gentle crossfade between the two images. NOTE: the opacity
   transition must live on this rule (`.mat-product__img img`) — it has the
   highest specificity, so a transition declared only on the hover image
   would be overridden and the swap would snap instantly. */
.mat-product__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .55s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}
.mat-product { display: block; }
.mat-product:hover { opacity: 1; } /* don't let the global a:hover dim the card */
.mat-product:hover .mat-product__img img { transform: scale(1.04); }
/* Second image stacked on top, hidden until hover. */
.mat-product__img-hover {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
}
.mat-product:hover .mat-product__img-hover { opacity: 1; }
.mat-product__badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--mat-black); color: #fff;
    font-size: 9px; letter-spacing: var(--mat-tracking);
    padding: 4px 8px; text-transform: uppercase;
}
.mat-product__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 7px;
    line-height: 1.4;
}
.mat-product__price {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mat-text);
}
.mat-product__price del { color: var(--mat-grey); margin-right: 6px; font-weight: 400; }
.mat-product__price ins { text-decoration: none; }

.mat-section__cta { text-align: center; margin-top: 48px; }
.mat-section__cta .mat-btn { min-width: 280px; }

.mat-empty { text-align:center; color: var(--mat-grey); grid-column: 1 / -1; padding: 30px; }

/* =========================================================
   8. Wordmark band
   ========================================================= */
.mat-wordmark {
    padding: 80px 0 50px;
}
/* Letters spread edge-to-edge across the 1400px box so they align with the footer */
.mat-wordmark__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    line-height: 0.9;
}
.mat-wordmark__row span {
    font-weight: 700;
    font-size: clamp(40px, 13vw, 230px);
    text-transform: uppercase;
    line-height: 0.9;
}
.mat-wordmark__space { flex: 0 0 4%; }

/* =========================================================
   9. Footer
   ========================================================= */
.mat-footer {
    padding: 30px 0 80px;
    font-size: 14px;
    letter-spacing: 0;
}
.mat-footer a { font-weight: 500; }
.mat-footer__inner {
    max-width: var(--mat-container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.mat-footer__nav { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; flex: 1; }
.mat-footer__social { display: flex; gap: 22px; }
.mat-search { display: flex; align-items: baseline; gap: 14px; }
.mat-search__label { font-weight: 600; }
.mat-footer__search input[type="search"] {
    border: 0;
    border-bottom: 1px solid var(--mat-black);
    padding: 3px 4px;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0;
    width: 200px;
    background: transparent;
}
.mat-footer__search input:focus { outline: none; }

/* =========================================================
   10. Generic page / posts / shop
   ========================================================= */
.mat-page { padding: 70px 0; min-height: 50vh; }
.mat-page__title { font-size: 26px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 30px; text-align: center; }
.mat-content p { margin: 0 0 1.2em; }

/* WooCommerce light alignment with theme */
.woocommerce, .woocommerce-page { padding: 0 0 70px; }

/* WooCommerce notices — neutral black accent (no green/blue tint). */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--mat-black) !important;
    background-color: #f6f6f6;
    color: var(--mat-black);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--mat-black) !important; }
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button) {
    color: var(--mat-black);
    text-underline-offset: 3px;
}
.woocommerce .button, .woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce input.button {
    background: var(--mat-black) !important;
    color: #fff !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: var(--mat-tracking);
    font-size: 11px;
    font-weight: 700;
    padding: 12px 26px;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price { color: var(--mat-text); }
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =========================================================
   10b. About & Contact pages
   ========================================================= */
.mat-page { padding-top: 56px; }
.mat-section-heading {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 36px;
}

/* About */
.mat-about {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) minmax(0, 460px);
    gap: 40px;
    align-items: start;
}
.mat-about__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.mat-about__body { font-size: 14px; line-height: 1.85; max-width: 520px; }
.mat-about__body h1, .mat-about__body h2, .mat-about__body h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 22px;
}
.mat-about__media img { width: 100%; height: auto; display: block; }

/* Contact */
/* Center the contact block within the MATERIEL wordmark width */
.mat-contact-page .mat-section-heading {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.mat-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}
.mat-contact__form { max-width: 420px; }
.mat-form input,
.mat-form textarea {
    display: block;
    width: 100%;
    border: 1px solid #cfcfcf;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    color: var(--mat-text);
}
.mat-form input:focus,
.mat-form textarea:focus { outline: none; border-color: var(--mat-black); }
.mat-form textarea { resize: vertical; min-height: 120px; }
.mat-form .mat-btn { margin-top: 6px; cursor: pointer; padding: 13px 34px; }
.mat-form-notice { font-size: 13px; padding: 10px 0; }
.mat-form-notice--ok { color: #157347; }
.mat-form-notice--err { color: #b02a37; }

.mat-contact__item { margin-bottom: 26px; }
.mat-contact__item h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}
.mat-contact__item a { color: #5b4a2f; font-size: 14px; }
.mat-contact__item a:hover { color: var(--mat-black); opacity: 1; }

/* =========================================================
   10c. Single product page
   ========================================================= */
.mat-product-single { display: block; }
.mat-product-single__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 90px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 0;
}

/* Pull the product section higher up — trim the large top whitespace. */
.single-product .mat-page { padding-top: 18px; }

/* Gallery navigation arrows, sitting in the gaps either side of the image */
.mat-product-single__gallery { position: relative; }
.mat-product-single__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    background: none; border: 0; padding: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.mat-product-single__arrow[hidden] { display: none; }
.mat-product-single__arrow::before {
    content: '';
    width: 16px; height: 16px;
    border-right: 2px solid var(--mat-black);
    border-bottom: 2px solid var(--mat-black);
}
.mat-product-single__arrow--next { right: -52px; }
.mat-product-single__arrow--next::before { transform: rotate(-45deg); margin-left: -4px; }
.mat-product-single__arrow--prev { left: -52px; }
.mat-product-single__arrow--prev::before { transform: rotate(135deg); margin-right: -4px; }

/* Gallery (neutralise WooCommerce floats) */
.mat-product-single .woocommerce-product-gallery,
.mat-product-single .images {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.mat-product-single__gallery img { width: 100%; height: auto; display: block; }
/* Keep WooCommerce's gallery zoom trigger under the header / mega menu */
.woocommerce-product-gallery__trigger { z-index: 1 !important; }
.mat-product-single .flex-viewport { margin-bottom: 0; }
/* Hide the gallery thumbnails entirely — navigation is via the arrows only. */
.mat-product-single .flex-control-thumbs { display: none !important; }

/* Summary */
.mat-product-single__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}
.mat-product-single__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}
.mat-product-single__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.mat-product-single__price ins { order: 1; text-decoration: none; }
.mat-product-single__price del { order: 2; color: #9a9a9a; font-weight: 400; }
.mat-product-single__sale {
    color: #8a6d3b;
    font-size: 13px;
    margin: 10px 0 0;
}

/* Sizes — evenly spread across the column, selected one boxed */
.mat-sizes { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 18px; margin: 30px 0 12px; }
.mat-size {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--mat-black);
}
.mat-size.is-active { border-color: var(--mat-black); color: var(--mat-black); }
.mat-size-guide {
    display: inline-block;
    font-size: 13px;
    color: #8a6d3b;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 26px;
}

/* Add to cart */
.mat-product-single__cart form.cart { display: block; margin: 0 0 12px; }
.mat-product-single__cart form.cart::before,
.mat-product-single__cart form.cart::after { content: none !important; }
/* Variable products: the custom size buttons drive the variation, so hide
   WooCommerce's native dropdown, its reset link and duplicate price block. */
.mat-product-single .variations,
.mat-product-single .reset_variations,
.mat-product-single .single_variation { display: none !important; }
.mat-product-single .single_variation_wrap { margin: 0; }
.mat-product-single .quantity {
    display: inline-flex !important;
    float: none !important;
    align-items: stretch;
    height: 50px;
    border: 1px solid #cfcfcf;
    margin: 0 0 16px !important;
}
.mat-product-single .quantity input.qty {
    width: 72px;
    height: 100%;
    border: 0;
    border-left: 1px solid #cfcfcf;
    border-right: 1px solid #cfcfcf;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    -moz-appearance: textfield;
}
.mat-product-single .quantity input.qty::-webkit-outer-spin-button,
.mat-product-single .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mat-qty-btn {
    width: 42px;
    border: 0;
    background: #fff;
    font-size: 18px;
    line-height: 1;
    color: var(--mat-black);
}
.mat-product-single .quantity .mat-qty-btn { width: 48px; height: 100%; border: 0; }
.mat-product-single__cart .single_add_to_cart_button.button {
    display: block !important;
    width: 100% !important;
    float: none !important;
    background: #fff !important;
    color: var(--mat-black) !important;
    border: 1px solid var(--mat-black) !important;
    border-radius: 0 !important;
    padding: 17px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: var(--mat-tracking) !important;
    text-transform: uppercase !important;
    transition: background .2s, color .2s;
}
.mat-product-single__cart .single_add_to_cart_button.button:hover {
    background: var(--mat-black) !important;
    color: #fff !important;
}

/* Accordions */
.mat-accordions { margin-top: 18px; border-top: 1px solid var(--mat-line); }
.mat-acc { border-bottom: 1px solid var(--mat-line); }
.mat-acc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 2px;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mat-acc__head::-webkit-details-marker { display: none; }
.mat-acc__chev {
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--mat-black);
    border-bottom: 1.5px solid var(--mat-black);
    transform: rotate(-45deg);
    transition: transform .25s ease;
    flex: 0 0 auto;
    margin-right: 4px;
}
.mat-acc[open] .mat-acc__chev { transform: rotate(45deg); }
.mat-acc__body { padding: 0 2px 22px; font-size: 14px; line-height: 1.8; color: #333; }
.mat-acc__body p { margin: 0 0 1em; }

/* Related / recently viewed rows */
.mat-section--row { padding: 50px 0 10px; }
.mat-section__title--left {
    text-align: left;
    font-size: 15px;
    letter-spacing: 0.06em;
    margin-bottom: 28px;
}
.mat-products-wrap { position: relative; }

/* Horizontal carousel for related / recently viewed */
.mat-products--carousel {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.mat-products--carousel::-webkit-scrollbar { display: none; }
.mat-products--carousel .mat-product {
    flex: 0 0 calc((100% - 4 * 26px) / 5);
    scroll-snap-align: start;
}
.mat-row-arrow {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: #fff;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.mat-row-arrow::before {
    content: '';
    width: 12px; height: 12px;
    border-right: 2px solid var(--mat-black);
    border-bottom: 2px solid var(--mat-black);
}
.mat-row-arrow--next { right: -12px; }
.mat-row-arrow--next::before { transform: rotate(-45deg); margin-left: -3px; }
.mat-row-arrow--prev { left: -12px; }
.mat-row-arrow--prev::before { transform: rotate(135deg); margin-right: -3px; }
.mat-row-arrow[hidden] { display: none; }

/* =========================================================
   10e. Shop / catalog archive
   ========================================================= */
.mat-page .page-title,
.woocommerce-products-header__title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    margin: 0 0 22px;
}
.woocommerce-ordering.mat-ordering {
    display: flex;
    align-items: center;
    gap: 7px;
    float: none;
    margin: 0 0 38px;
    font-size: 14px;
}
.mat-ordering__label { color: var(--mat-text); }
.mat-ordering select.orderby {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--mat-black);
    cursor: pointer;
    padding: 0 20px 0 2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}
.mat-ordering select.orderby:focus { outline: none; }

/* Pagination */
.woocommerce-pagination { margin-top: 50px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 4px; list-style: none; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: block;
    min-width: 38px;
    padding: 8px 10px;
    border: 1px solid var(--mat-line);
    font-size: 13px;
    text-align: center;
}
.woocommerce-pagination ul li span.current { background: var(--mat-black); color: #fff; border-color: var(--mat-black); }

/* =========================================================
   10d. Cart drawer
   ========================================================= */
.mat-cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 190;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease;
}
.mat-cart-overlay.is-open { opacity: 1; visibility: visible; }

.mat-cart-drawer {
    position: fixed; top: 0; right: 0;
    height: 100vh;
    width: 410px; max-width: 90vw;
    background: #fff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -6px 0 36px rgba(0,0,0,.08);
}
.mat-cart-drawer.is-open { transform: translateX(0); }
.mat-cart-drawer__close {
    position: absolute; top: 12px; right: 16px;
    z-index: 3;
    background: none; border: 0;
    font-size: 26px; line-height: 1; color: var(--mat-black);
}
.mat-cart-drawer__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.mat-cart-bar {
    padding: 22px 30px;
    border-bottom: 1px solid var(--mat-line);
    color: #9a8b6e;
    font-size: 14px;
}
.mat-cart-bar .woocommerce-Price-amount { color: inherit; }

.mat-cart-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mat-cart-items { flex: 1 1 auto; overflow-y: auto; padding: 26px 30px; }
.mat-cart-item {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 18px;
    margin-bottom: 26px;
}
.mat-cart-item__img { width: 84px; }
.mat-cart-item__img img { width: 100%; height: auto; display: block; }
.mat-cart-item__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.mat-cart-item__size { font-size: 13px; color: #666; margin-bottom: 8px; }
.mat-cart-item__price { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.mat-cart-qty { display: inline-flex; border: 1px solid #cfcfcf; }
.mat-cart-qty .mat-qty-btn { width: 34px; height: 34px; font-size: 16px; border: 0; background: #fff; }
.mat-cart-qty .mat-qty-btn:first-child { border-right: 1px solid #cfcfcf; }
.mat-cart-qty .mat-qty-btn:last-child { border-left: 1px solid #cfcfcf; }
.mat-cart-qty__input {
    width: 40px; border: 0; text-align: center;
    font-family: inherit; font-size: 14px; background: #fff;
}
.mat-cart-item__remove {
    background: none; border: 0; padding: 0;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--mat-black);
    align-self: flex-start;
    white-space: nowrap;
}

.mat-cart-foot { border-top: 1px solid var(--mat-line); padding: 22px 30px; }
.mat-cart-note-toggle {
    background: none; border: 0; padding: 0;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    text-decoration: underline; text-underline-offset: 3px;
    color: var(--mat-black);
}
.mat-cart-note { width: 100%; margin-top: 12px; border: 1px solid #cfcfcf; padding: 10px; font-family: inherit; font-size: 13px; }
.mat-cart-foot__note { color: #9a8b6e; font-size: 13px; margin: 12px 0 16px; }
.mat-cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    background: var(--mat-black);
    color: #fff;
    padding: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.mat-cart-checkout:hover { opacity: 1; background: #222; color: #fff; }
.mat-cart-checkout__dot { opacity: .6; }

/* =========================================================
   10f. Document pages (Stockists, Returns, Privacy, Terms)
   ========================================================= */
.mat-doc { padding: 30px 0 56px; }
.mat-doc__inner {
    max-width: 1129px;
    margin: 0 auto;
    padding: 0 24px;
}
.mat-doc__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    margin: 0 0 26px;
}

/* Legal / policy copy */
.mat-legal { max-width: 860px; }
.mat-legal p {
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 20px;
}
.mat-legal strong { font-weight: 700; }
.mat-legal ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.mat-legal li {
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    padding-left: 20px;
    margin-bottom: 10px;
}
.mat-legal li::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--mat-black);
    border-radius: 50%;
}
.mat-legal a {
    color: var(--mat-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Stockists accordion */
.mat-stockist { border-bottom: 1px solid var(--mat-black); }
.mat-stockist__group { border-top: 1px solid var(--mat-black); }
.mat-stockist__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 8px 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}
.mat-stockist__heading::-webkit-details-marker { display: none; }
.mat-stockist__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}
.mat-stockist__icon svg { transition: transform .3s ease-in-out; }
.mat-stockist__group[open] .mat-stockist__icon svg { transform: rotate(90deg); }
.mat-stockist__content { padding-bottom: 10px; }
.mat-stockist__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 50px;
    row-gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mat-stockist__list li {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mat-black);
}
.mat-stockist__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 7px;
}
.mat-stockist__address,
.mat-stockist__url { font-size: 14px; line-height: 1.5; }
.mat-stockist__url {
    align-self: flex-start;
    color: var(--mat-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 992px) {
    .mat-stockist__list { grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 30px; }
}
@media (max-width: 768px) {
    .mat-stockist__list { grid-template-columns: repeat(2, 1fr); }
    .mat-stockist__heading { font-size: 18px; }
}
@media (max-width: 520px) {
    .mat-stockist__list { grid-template-columns: 1fr; }
}

/* =========================================================
   10f-b. Collections grid
   ========================================================= */
.mat-collections-page { padding-top: 20px; }
.mat-collections-intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.mat-collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 56px;
    max-width: 940px;
    margin: 0 auto;
}
.mat-collection-card { display: block; text-align: center; }
.mat-collection-card:hover { opacity: 1; }
.mat-collection-card__img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 18px;
}
.mat-collection-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2, .6, .2, 1);
}
.mat-collection-card:hover .mat-collection-card__img img { transform: scale(1.04); }
.mat-collection-card__title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.mat-collection-card__link {
    display: inline-block;
    font-size: 12px;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 680px) {
    .mat-collections-grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }
}

/* =========================================================
   10f-c. Collection lookbook
   ========================================================= */
.mat-lookbook { padding: 0; }

.mat-lookbook__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
}
.mat-lookbook__hero { overflow: hidden; background: #f4f4f4; }
.mat-lookbook__hero img,
.mat-lookbook__hero-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: cover;
    display: block;
}
.mat-lookbook__info {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
}
.mat-lookbook__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 28px;
}
.mat-lookbook__credits { margin: 0; }
.mat-lookbook__credits dt {
    font-size: 13px;
    font-weight: 700;
    margin: 22px 0 6px;
}
.mat-lookbook__credits dt:first-child { margin-top: 0; }
.mat-lookbook__credits dd {
    margin: 0;
    font-size: 13px;
    font-style: italic;
    color: #333;
    line-height: 1.7;
}

/* Inline button — outlined, in normal flow between the credits and gallery. */
.mat-lookbook__shop {
    display: block;
    text-align: center;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    transition: background .25s, color .25s;
}
.mat-lookbook__shop:hover { background: #111; color: #fff; opacity: 1; }

/* Floating solid-black bar — JS reveals it once the inline button has scrolled
   out of view, and hides it again at the end of the gallery. */
.mat-lookbook__shopbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 30;
    text-align: center;
    padding: 20px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}
.mat-lookbook__shopbar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}
.mat-lookbook__shopbar:hover { background: #000; color: #fff; opacity: 1; }

.mat-lookbook__grid {
    display: grid;
    grid-template-columns: repeat(var(--mat-cols, 4), 1fr);
    gap: 4px;
}

/* Editorial: the first image of every 7 is tall (spans 2 rows on the left),
   the rest fill the block — the live lookbook rhythm. Row height scales with
   the column count so cells stay roughly landscape. */
.mat-lookbook__grid--editorial {
    grid-auto-rows: calc(92vw / var(--mat-cols, 4));
    grid-auto-flow: dense;
}
.mat-lookbook__grid--editorial .mat-lookbook__cell:nth-child(7n + 1) { grid-row: span 2; }

/* Even grid: equal portrait cells, side by side in the order added. */
.mat-lookbook__grid--grid .mat-lookbook__cell { aspect-ratio: 3 / 4; }

.mat-lookbook__cell {
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
    background: #f4f4f4;
    cursor: pointer;
}
.mat-lookbook__cell img,
.mat-lookbook__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(.2, .6, .2, 1);
}

/* Dark hover wash — fades in/out so it glides from one image to the next. */
.mat-lookbook__cell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.25s linear;
    pointer-events: none;
}
.mat-lookbook__cell:hover::after { opacity: 1; }
.mat-lookbook__cell:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
    .mat-lookbook__top { grid-template-columns: 1fr; }
    .mat-lookbook__info { padding: 32px 24px; }
    .mat-lookbook__grid { grid-template-columns: repeat(2, 1fr); }
    .mat-lookbook__grid--editorial { grid-auto-rows: 42vw; }
    .mat-lookbook__grid--editorial .mat-lookbook__cell:nth-child(7n + 1) { grid-row: auto; }
}
@media (max-width: 520px) {
    .mat-lookbook__grid { grid-template-columns: 1fr; }
    .mat-lookbook__grid--editorial { grid-auto-rows: auto; }
    .mat-lookbook__grid--editorial .mat-lookbook__cell { aspect-ratio: 3 / 4; }
}

/* Lightbox */
body.mat-lb-open { overflow: hidden; }
.mat-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.92);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mat-lb.is-open { display: flex; opacity: 1; }
.mat-lb__stage {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mat-lb__img {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}
.mat-lb__close,
.mat-lb__nav {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.mat-lb__close:hover,
.mat-lb__nav:hover { opacity: 1; }
.mat-lb__close { top: 22px; right: 28px; font-size: 34px; }
.mat-lb__nav { top: 50%; transform: translateY(-50%); font-size: 56px; padding: 0 22px; }
.mat-lb__prev { left: 8px; }
.mat-lb__next { right: 8px; }
@media (max-width: 520px) {
    .mat-lb__nav { font-size: 40px; padding: 0 10px; }
}

/* =========================================================
   10g. Cart page
   ========================================================= */
.mat-shop-flow { padding-top: 30px; }
.mat-cart-page { padding-bottom: 60px; }
.mat-cart-page .mat-doc__title { margin-bottom: 22px; }

.mat-cart-ship {
    color: #b0906b;
    font-size: 13px;
    letter-spacing: .02em;
    margin: 0 0 16px;
}

.mat-ct { width: 100%; }
.mat-ct__head,
.mat-ct__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 170px;
    align-items: center;
    column-gap: 20px;
}
.mat-ct__head {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mat-black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}
.mat-ct__c-qty { text-align: center; }
.mat-ct__c-total { text-align: right; }

.mat-ct__row {
    padding: 30px 0;
    border-bottom: 1px solid var(--mat-black);
}
.mat-ct__product { display: flex; gap: 28px; align-items: flex-start; }
.mat-ct__img { flex: 0 0 120px; width: 120px; display: block; }
.mat-ct__img img { width: 100%; height: auto; display: block; }
.mat-ct__info { padding-top: 4px; }
.mat-ct__name {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mat-black);
    margin-bottom: 10px;
}
.mat-ct__size { font-size: 13px; color: var(--mat-black); margin-bottom: 8px; }
.mat-ct__price { font-size: 13px; color: #9a9a9a; }
.mat-ct__remove {
    display: inline-block;
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: .04em;
    color: #9a9a9a;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0;
    transition: opacity .2s ease;
}
.mat-ct__row:hover .mat-ct__remove,
.mat-ct__remove:focus { opacity: 1; }

.mat-ct__qty { display: flex; justify-content: center; }
.mat-ct__qty .mat-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfcfcf;
}
.mat-ct__qty .mat-qty-btn {
    width: 38px; height: 40px;
    background: #fff; border: 0;
    font-size: 16px; line-height: 1;
    color: var(--mat-black);
    cursor: pointer;
}
.mat-ct__qty .mat-qty__input,
.mat-ct__qty input.qty {
    width: 46px; height: 40px;
    border: 0;
    border-left: 1px solid #cfcfcf;
    border-right: 1px solid #cfcfcf;
    text-align: center;
    background: #fff;
    font-family: inherit; font-size: 14px;
    -moz-appearance: textfield;
}
.mat-ct__qty input::-webkit-outer-spin-button,
.mat-ct__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mat-ct__total { text-align: right; font-size: 14px; font-weight: 700; }

/* Hide WooCommerce's update button — the stepper auto-submits. */
.mat-ct__update {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0; padding: 0; margin: -1px;
}

/* Order note */
.mat-cart-note-block { margin-top: 56px; }
.mat-cart-note__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.mat-cart-note__field {
    width: 100%;
    min-height: 96px;
    border: 1px solid #cfcfcf;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--mat-black);
    resize: vertical;
}
.mat-cart-note__field:focus { outline: none; border-color: var(--mat-black); }

/* Total + taxes row */
.mat-cart-foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0 18px;
}
.mat-cart-foot__total { font-size: 14px; font-weight: 700; }
.mat-cart-foot__taxes { font-size: 13px; color: #b0906b; }

/* Checkout button */
.mat-cart-checkout-btn {
    display: block;
    width: 100%;
    background: var(--mat-black);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.mat-cart-checkout-btn:hover { background: #222; color: #fff; }

@media (max-width: 760px) {
    .mat-ct__head { display: none; }
    .mat-ct__row {
        grid-template-columns: 96px 1fr;
        grid-template-areas: "img info" "img qty" "img total";
        column-gap: 18px;
        row-gap: 12px;
        align-items: start;
    }
    .mat-ct__product { display: contents; }
    .mat-ct__img { grid-area: img; flex: 0 0 96px; width: 96px; }
    .mat-ct__info { grid-area: info; }
    .mat-ct__qty { grid-area: qty; justify-content: flex-start; }
    .mat-ct__total { grid-area: total; text-align: left; }
    .mat-ct__remove { opacity: 1; }
    .mat-cart-foot-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .mat-products { grid-template-columns: repeat(3, 1fr); }
    .mat-products--carousel .mat-product { flex: 0 0 calc((100% - 2 * 26px) / 3); }
}
@media (max-width: 900px) {
    :root { --mat-header-h: 68px; }
    .mat-container { padding: 0 24px; }
    .mat-header__inner { padding: 0 24px; }
    .mat-megamenu__inner { padding: 24px 24px 40px; }
    .mat-megamenu__feature { display: none; }
    .mat-searchbar__form { padding: 22px 24px 26px; }
    ul.mat-mega { flex-wrap: wrap; gap: 24px 30px; }
    ul.mat-mega > li { flex: 0 0 40%; width: auto; }
    .mat-footer { padding: 16px 0 56px; }
    .mat-wordmark { padding: 50px 0 36px; }
    .mat-product-single__grid { grid-template-columns: 1fr; gap: 30px; max-width: 520px; }
    .mat-product-single__arrow { display: none; }
    .mat-about { grid-template-columns: 1fr; gap: 26px; }
    .mat-about__media { order: -1; }
    .mat-contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
    .mat-products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .mat-products--carousel .mat-product { flex: 0 0 46%; }
    .mat-section { padding: 48px 0; }
    .mat-footer__inner { flex-direction: column; text-align: center; }
    .mat-header__col--center { flex: 1; }
    .mat-logo { font-size: 16px; letter-spacing: 0.25em; }
    .mat-megamenu { max-height: 80vh; overflow-y: auto; }
    .mat-hero__title { font-size: 18px; }
    .mat-hero__content { padding: 36px 24px 44px; }
}

/* =========================================================
   12. Reduced motion — honour the OS "reduce motion" setting
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
