/* ==========================================================================
   Mana Servis theme stylesheet
   1. Tokens  2. Fonts  3. Base  4. Components  5. Header/footer  6. Home
   7. Archive  8. Single product  9. Pages  10. WooCommerce (cart, checkout, account, notices, forms)
   ========================================================================== */

/* 1. Tokens (from the design handoff) ------------------------------------ */
:root {
  /* Surfaces (darkest → lightest) */
  --ms-bg-footer:      #0a0806; /* footer */
  --ms-bg-header:      #0b0907; /* solid header, mobile menu, dropdowns */
  --ms-bg-page:        #0e0b09; /* page background, hero fade target */
  --ms-bg-raised:      #120e0b; /* announcement bar, card frame fill */
  --ms-bg-control:     #130f0c; /* pills, small buttons, sort select */
  --ms-bg-hover:       #1a140f; /* dropdown item hover */
  --ms-bg-outer:       #050403; /* body behind the page (only if boxed) */

  /* Lines */
  --ms-line-subtle:    #1c1610;
  --ms-line:           #241c14; /* header/section dividers, accordion rules */
  --ms-line-strong:    #3a2f22; /* pills, footer top border, sidebar heading rule */
  --ms-line-frame:     #4a3b28; /* product card frame, outline buttons, dropdown border */
  --ms-line-ornament:  #5a4930; /* ornament rules, secondary CTA border, cart button border */
  --ms-line-frame-lg:  #6a5434; /* single-product image outer frame */

  /* Gold (accent) */
  --ms-gold:           #d2ae66; /* logo, prices, links, icons, diamonds */
  --ms-gold-light:     #ecd39a; /* link hover */
  --ms-gold-deep:      #b9894a; /* hover borders, primary button border */

  /* Blood red (primary action) */
  --ms-red:            #7c2323; /* primary button, "Novo" badge, active pill */
  --ms-red-hover:      #8e2a2a; /* primary hover, cart count badge */

  /* Text */
  --ms-text-strong:    #f1e7d2; /* hero + page titles, hover text */
  --ms-text-on-red:    #f3e7cf;
  --ms-text:           #ebe2d0; /* body headings, nav, product names */
  --ms-text-soft:      #e3d3b0; /* secondary CTA / cart button text */
  --ms-text-pill:      #d9cba9; /* pills, dropdown items, sort select */
  --ms-text-body:      #c9b894; /* paragraphs, announcement bar, footer contact */
  --ms-text-muted:     #a89a83; /* subtitles, breadcrumb links, sidebar items */
  --ms-text-faint:     #8a7c66; /* breadcrumb separators, meta, counts */
  --ms-text-ghost:     #5f533f; /* copyright line, image placeholder label */

  /* Status */
  --ms-stock-text:     #b8c79a;
  --ms-stock-mark:     #8fa36a;

  /* Type families */
  --ms-font-logo:    'UnifrakturMaguntia', serif;            /* logo only */
  --ms-font-display: 'IM Fell English', Georgia, serif;       /* hero/page titles, prices */
  --ms-font-caps:    'IM Fell English SC', Georgia, serif;    /* nav, buttons, section headings, labels */
  --ms-font-body:    'EB Garamond', Georgia, serif;           /* everything else */

  /* Layout */
  --ms-container: 1184px;   /* incl. 32px side padding → 1120px content */
  --ms-gutter: 32px;        /* desktop side padding */
  --ms-gutter-m: 16px;      /* mobile side padding */
  --ms-header-h: 88px;      /* desktop */
  --ms-header-h-m: 64px;    /* mobile (44px buttons + 10px padding) */

  /* Shapes */
  --ms-arch-outer: 50% 50% 6px 6px / 28% 28% 6px 6px;   /* product card frame */
  --ms-arch-inner: 50% 50% 3px 3px / 28% 28% 3px 3px;   /* product card image */
  --ms-arch-pdp-1: 50% 50% 8px 8px / 30% 30% 8px 8px;   /* PDP outer frame */
  --ms-arch-pdp-2: 50% 50% 5px 5px / 30% 30% 5px 5px;   /* PDP middle frame */
  --ms-arch-pdp-3: 50% 50% 3px 3px / 30% 30% 3px 3px;   /* PDP image */
  --ms-pill-radius: 20px;

  --ms-shadow-pop: 0 20px 40px rgba(0,0,0,.6);           /* dropdowns */

  /* Motion */
  --ms-hero-fade: 1.6s;     /* crossfade duration */
  --ms-hero-interval: 5s;   /* autoplay interval */
  --ms-chevron: .25s;       /* accordion chevron rotation */
}

/* 2. Fonts (self-hosted, Latin + Latin Extended) ---------------------------- */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/eb-garamond-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/eb-garamond-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/eb-garamond-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/eb-garamond-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/eb-garamond-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/eb-garamond-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/eb-garamond-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/eb-garamond-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IM Fell English'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/im-fell-english-400.woff2) format('woff2'); }
@font-face { font-family: 'IM Fell English'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/im-fell-english-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'IM Fell English SC'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/im-fell-english-sc-400.woff2) format('woff2'); }
@font-face { font-family: 'UnifrakturMaguntia'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/unifrakturmaguntia-400.woff2) format('woff2'); }

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ms-bg-page);
  color: var(--ms-text-body);
  font-family: var(--ms-font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.ms-locked { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ms-text); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--ms-gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ms-gold-light); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ms-gold); outline-offset: 3px; }
::selection { background: var(--ms-red); color: var(--ms-text-on-red); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ms-skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px;
  background: var(--ms-bg-header); border: 1px solid var(--ms-gold-deep); color: var(--ms-gold);
}
.ms-skip-link:focus { top: 16px; }
[hidden] { display: none !important; }

/* 4. Components -------------------------------------------------------------- */
.ms-logo { display: block; flex: none; line-height: 0; }
.ms-logo img { width: auto; height: 68px; }
a.ms-logo { transition: opacity .2s; }
a.ms-logo:hover { opacity: .85; }

/* Diamond (filled) */
.ms-diamond { display: inline-block; flex: none; width: 7px; height: 7px; background: var(--ms-gold); transform: rotate(45deg); }

/* Chevron */
.ms-chevron {
  display: inline-block; flex: none; width: 6px; height: 6px;
  border-right: 1px solid var(--ms-gold); border-bottom: 1px solid var(--ms-gold);
  transform: rotate(45deg); transition: transform var(--ms-chevron);
}
.ms-chevron--sm { width: 5px; height: 5px; margin: 0 0 4px 10px; opacity: .7; }

/* Divider ornament */
.ms-divider { display: flex; align-items: center; gap: 10px; width: 200px; max-width: 100%; }
.ms-divider span { flex: 1; height: 1px; background: var(--ms-line-ornament); }
.ms-divider i { flex: none; width: 8px; height: 8px; border: 1px solid var(--ms-gold); transform: rotate(45deg); }
.ms-divider--hero { width: 260px; }
.ms-divider--pdp { width: 180px; }
.ms-divider--pdp i { width: 7px; height: 7px; }

/* Section heading */
.ms-section-heading { display: flex; flex-direction: column; align-items: center; align-self: stretch; gap: 10px; text-align: center; }
.ms-section-heading__row { display: flex; align-items: center; gap: 16px; width: 100%; }
.ms-section-heading__line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--ms-line-ornament)); }
.ms-section-heading__line:last-child { background: linear-gradient(to left, transparent, var(--ms-line-ornament)); }
.ms-section-heading__title { font-family: var(--ms-font-caps); font-size: 34px; line-height: 1.1; letter-spacing: .04em; color: var(--ms-text); }
.ms-section-heading__row .ms-diamond { margin-top: -5px; }
.ms-section-heading__sub { font-style: italic; font-size: 17px; color: var(--ms-text-muted); }
.ms-section-heading--related .ms-section-heading__title { font-size: 30px; }

/* Buttons */
.ms-btn,
.woocommerce .button:not(.ms-add),
.wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ms-line-frame); border-radius: 0;
  background: transparent; color: var(--ms-gold);
  font-family: var(--ms-font-caps); font-size: 17px; line-height: 1.1; letter-spacing: .1em;
  text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.ms-btn:hover,
.woocommerce .button:not(.ms-add):hover,
.wp-element-button:hover { border-color: var(--ms-gold-deep); color: var(--ms-gold-light); }
.ms-btn--outline { width: 260px; max-width: 100%; }
.ms-btn--primary,
.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce a.checkout-button,
.woocommerce #place_order,
.single_add_to_cart_button {
  background: var(--ms-red); border-color: var(--ms-gold-deep); color: var(--ms-text-on-red);
  font-size: 19px; letter-spacing: .08em;
}
.ms-btn--primary:hover,
.woocommerce .button.alt:hover,
.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover,
.single_add_to_cart_button:hover { background: var(--ms-red-hover); color: var(--ms-text-on-red); border-color: var(--ms-gold-deep); }
.ms-btn--secondary { background: rgba(14, 11, 9, .5); border-color: var(--ms-line-ornament); color: var(--ms-text-soft); font-size: 19px; letter-spacing: .08em; }
.ms-btn--secondary:hover { border-color: var(--ms-gold-deep); color: var(--ms-text-strong); }
.woocommerce .button:disabled,
.woocommerce .button.disabled { opacity: .5; cursor: not-allowed; }
[aria-busy="true"], .loading { opacity: .6; }

/* Pills */
.ms-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-pills--center { justify-content: center; }
.ms-pill {
  display: inline-flex; align-items: center; flex: none; height: 40px; padding: 0 18px;
  border: 1px solid var(--ms-line-strong); border-radius: var(--ms-pill-radius);
  background: var(--ms-bg-control); color: var(--ms-text-pill); font-size: 16px; white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.ms-pill:hover { border-color: var(--ms-gold-deep); color: var(--ms-text-pill); }
.ms-pill.is-active { background: var(--ms-red); border-color: var(--ms-gold-deep); color: var(--ms-text-on-red); }

/* Badge */
.ms-badge {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 1px 12px 2px; border: 1px solid var(--ms-gold-deep);
  background: var(--ms-red); color: var(--ms-text-on-red);
  font-family: var(--ms-font-caps); font-size: 13px; letter-spacing: .1em; white-space: nowrap;
}
.ms-badge--soldout { background: var(--ms-line); border-color: var(--ms-line-frame); color: var(--ms-text-muted); }

/* Breadcrumbs */
.ms-breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; list-style: none; font-size: 15px; color: var(--ms-gold); }
.ms-breadcrumbs--left ol { justify-content: flex-start; }
.ms-breadcrumbs a { color: var(--ms-text-muted); }
.ms-breadcrumbs a:hover { color: var(--ms-gold-light); }
.ms-breadcrumbs__sep { color: var(--ms-text-faint); }

/* Product grid + card */
ul.products {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; width: 100%;
}
.ms-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ms-card__frame {
  display: block; padding: 6px; border: 1px solid var(--ms-line-frame); border-radius: var(--ms-arch-outer);
  background: var(--ms-bg-raised); transition: border-color .2s;
}
.ms-card:hover .ms-card__frame,
.ms-card__frame:hover { border-color: var(--ms-gold-deep); }
.ms-card__img {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--ms-arch-inner); overflow: hidden;
  background: repeating-linear-gradient(135deg, #1b1611 0 8px, #141009 8px 16px);
}
.ms-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ms-card__name { font-family: var(--ms-font-body); font-size: 17px; line-height: 1.25; min-height: 2.5em; text-wrap: pretty; }
.ms-card__name a { color: var(--ms-text); }
.ms-card__name a:hover { color: var(--ms-gold-light); }
.ms-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ms-card__price { font-family: var(--ms-font-display); font-size: 22px; line-height: 1; color: var(--ms-gold); white-space: nowrap; }

/* Prices (Woo markup: <del> regular, <ins> sale) */
.price del { color: var(--ms-text-faint); font-size: .7em; margin-right: 6px; text-decoration-thickness: 1px; }
.price ins { text-decoration: none; }
.woocommerce-Price-currencySymbol { margin-left: .05em; }

/* Card add button */
.ms-add {
  display: inline-flex; align-items: center; justify-content: center; flex: none; height: 40px; padding: 0 14px;
  border: 1px solid var(--ms-line-frame); background: var(--ms-bg-control); color: var(--ms-gold);
  font-family: var(--ms-font-caps); font-size: 15px; letter-spacing: .06em; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.ms-add:hover, .ms-add.is-added { background: var(--ms-red); border-color: var(--ms-gold-deep); color: var(--ms-text-on-red); }
.ms-add__icon { display: none; font-family: var(--ms-font-body); font-size: 22px; line-height: 1; }
.ms-add--icon { width: 40px; padding: 0; }
.ms-add--icon .ms-add__text { display: none; }
.ms-add--icon .ms-add__icon { display: block; }
.ms-add--icon.is-added .ms-add__icon { font-size: 15px; }
.added_to_cart { display: none !important; }

/* Toolbar + sorting */
.ms-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); }
.ms-toolbar__count { font-size: 16px; color: var(--ms-text-muted); }
.woocommerce-ordering { position: relative; margin: 0; }
.woocommerce-ordering::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1px solid var(--ms-gold); border-bottom: 1px solid var(--ms-gold); transform: rotate(45deg); pointer-events: none;
}
.ms-select,
.woocommerce-ordering select,
.woocommerce .variations select {
  appearance: none; -webkit-appearance: none; height: 40px; padding: 0 40px 0 14px;
  border: 1px solid var(--ms-line-strong); border-radius: 0; background: var(--ms-bg-control); color: var(--ms-text-pill);
  font-family: var(--ms-font-body); font-size: 16px; cursor: pointer;
}
.woocommerce-ordering select:hover { border-color: var(--ms-gold-deep); }

/* Load more */
.ms-loadmore { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
.ms-loadmore__caption { font-size: 15px; color: var(--ms-text-faint); }
.ms-js .ms-pagination { display: none; }
.ms-pagination ul { display: flex; gap: 6px; list-style: none; }
.ms-pagination a, .ms-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--ms-line-strong); color: var(--ms-gold); }
.ms-pagination .current { background: var(--ms-red); border-color: var(--ms-gold-deep); color: var(--ms-text-on-red); }

/* Empty state */
.ms-empty { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 48px 16px 96px; text-align: center; }
.ms-empty__text { font-style: italic; font-size: 19px; color: var(--ms-text-muted); }

/* 5. Header / drawer / footer -------------------------------------------------- */
.ms-header { position: relative; z-index: 50; background: var(--ms-bg-header); border-bottom: 1px solid var(--ms-line); }
.ms-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--ms-container); height: var(--ms-header-h); margin-inline: auto; padding-inline: var(--ms-gutter);
}
.ms-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; }
.ms-header--overlay .ms-header__inner { position: relative; }
.ms-header--overlay .ms-header__inner::after {
  content: ''; position: absolute; left: var(--ms-gutter); right: var(--ms-gutter); bottom: 0; height: 1px; background: rgba(90, 73, 48, .45);
}

.ms-nav__list { display: flex; gap: 8px; list-style: none; }
.ms-nav__item { position: relative; }
.ms-nav__link {
  display: flex; align-items: center; height: var(--ms-header-h); padding: 0 16px;
  font-family: var(--ms-font-caps); font-size: 19px; letter-spacing: .04em; color: var(--ms-text);
}
.ms-nav__link:hover { color: var(--ms-gold-light); }
.ms-nav__item.is-current > .ms-nav__link { color: var(--ms-gold); }
.ms-dropdown {
  position: absolute; top: 86px; left: 50%; width: 240px; padding: 10px 0;
  background: var(--ms-bg-header); border: 1px solid var(--ms-line-frame); box-shadow: var(--ms-shadow-pop);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.ms-nav__item.has-children:hover > .ms-dropdown,
.ms-nav__item.has-children:focus-within > .ms-dropdown,
.ms-nav__item.is-open > .ms-dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
/* Close delay when the pointer leaves: theme.js keeps .is-open for ~150 ms. Esc sets .is-dismissed. */
.ms-nav__item.is-dismissed > .ms-dropdown { opacity: 0; visibility: hidden; }
.ms-dropdown__list { list-style: none; }
.ms-dropdown__link { display: flex; align-items: center; height: 44px; padding: 0 22px; font-size: 17px; color: var(--ms-text-pill); transition: background-color .15s, color .15s; }
.ms-dropdown__link:hover, .ms-dropdown__link:focus-visible { background: var(--ms-bg-hover); color: var(--ms-text-strong); }
.ms-dropdown__link.is-current { color: var(--ms-gold); }

.ms-cart-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  border: 1px solid var(--ms-line-ornament); background: var(--ms-bg-header);
  font-family: var(--ms-font-caps); font-size: 16px; letter-spacing: .06em; color: var(--ms-text-soft);
  transition: border-color .2s;
}
.ms-header--overlay .ms-cart-btn { background: rgba(14, 11, 9, .5); }
.ms-cart-btn:hover { border-color: var(--ms-gold-deep); color: var(--ms-text-strong); }
.ms-cart-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ms-red-hover);
  color: var(--ms-text-on-red); font-family: var(--ms-font-body); font-size: 13px; line-height: 20px; text-align: center; letter-spacing: 0;
}

.ms-icon-btn {
  display: none; position: relative; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ms-gold); cursor: pointer;
}
.ms-hamburger { flex-direction: column; align-items: flex-start; gap: 5px; padding-left: 11px; }
.ms-hamburger span { display: block; width: 22px; height: 1px; background: var(--ms-gold); }
.ms-hamburger span:last-child { width: 14px; }
.ms-cart-count--icon { position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; font-size: 11px; line-height: 17px; }

/* Off-canvas menu */
.ms-drawer {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: var(--ms-bg-header); overflow-y: auto; overscroll-behavior: contain;
}
.ms-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--ms-line); }
.ms-drawer__top .ms-logo img { height: 44px; }
.ms-drawer__close { display: flex; font-family: var(--ms-font-body); font-size: 30px; line-height: 1; }
.ms-drawer__spacer { width: 44px; }
.ms-drawer__nav { flex: 1; }
.ms-drawer__list { list-style: none; }
.ms-drawer__item { border-bottom: 1px solid var(--ms-line); }
.ms-drawer__link,
.ms-drawer__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 16px 24px;
  border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--ms-font-caps); font-size: 24px; line-height: 1.1; color: var(--ms-text);
}
.ms-drawer__item.is-current > .ms-drawer__link,
.ms-drawer__item.is-current > .ms-drawer__toggle { color: var(--ms-gold); }
.ms-drawer__toggle .ms-chevron { margin: -4px 4px 0 0; }
.ms-drawer__toggle[aria-expanded="true"] .ms-chevron { transform: rotate(-135deg); margin-top: 4px; }
.ms-drawer__sub { list-style: none; margin: 0 24px 16px 28px; padding: 6px 0 10px 18px; border-left: 1px solid var(--ms-line-strong); }
.ms-drawer__sublink { display: flex; align-items: center; min-height: 44px; font-size: 18px; color: var(--ms-text-body); }
.ms-drawer__sublink.is-current { color: var(--ms-gold); }
.ms-drawer__cart .ms-drawer-cart-count { font-family: var(--ms-font-body); font-size: 16px; color: var(--ms-gold); }
.ms-drawer__contact { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-top: 1px solid var(--ms-line); font-size: 15px; color: var(--ms-text-muted); }

/* Footer */
.ms-footer { border-top: 1px solid var(--ms-line-strong); background: var(--ms-bg-footer); }
.ms-footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px;
  max-width: var(--ms-container); margin-inline: auto; padding: 56px var(--ms-gutter) 40px;
}
.ms-footer__col { display: flex; flex-direction: column; gap: 12px; }
.ms-footer__contact { gap: 20px; }
.ms-footer .ms-logo img { height: 80px; }
.ms-footer__lines { display: flex; flex-direction: column; gap: 4px; font-size: 17px; color: var(--ms-text-body); }
.ms-footer__heading { font-family: var(--ms-font-caps); font-size: 19px; color: var(--ms-text); }
.ms-footer__text { font-size: 16px; color: var(--ms-text-muted); }
.ms-footer__text--mobile, .ms-footer__mobile-divider { display: none; }
.ms-footer__links { display: flex; flex-direction: column; gap: 8px; list-style: none; font-size: 16px; }
.ms-footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--ms-container); margin-inline: auto;
  padding: 18px var(--ms-gutter) 26px; border-top: 1px solid var(--ms-line-subtle);
  font-family: var(--ms-font-caps); font-size: 12px; letter-spacing: .08em; color: var(--ms-text-ghost);
}

.ms-footer__credit { display: block; flex: none; opacity: .45; transition: opacity .2s; }
.ms-footer__credit:hover, .ms-footer__credit:focus-visible { opacity: .9; }
.ms-footer__credit img { width: 150px; height: auto; }

/* 6. Home ---------------------------------------------------------------------- */
.ms-hero { position: relative; height: 640px; overflow: hidden; background: var(--ms-bg-page); }
.ms-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--ms-hero-fade) ease; }
.ms-hero__slide.is-active { opacity: 1; }
.ms-hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 30%); }
.ms-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 11, 9, 0), var(--ms-bg-page)) bottom / 100% 280px no-repeat,
    radial-gradient(ellipse at 50% 35%, rgba(14, 11, 9, 0) 0%, rgba(14, 11, 9, .5) 55%, rgba(14, 11, 9, .92) 100%);
}
.ms-hero__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 18px; padding: 0 40px 64px; text-align: center;
}
.ms-hero__kicker { font-family: var(--ms-font-caps); font-size: 17px; letter-spacing: .34em; color: var(--ms-text-muted); }
.ms-hero__title { font-family: var(--ms-font-display); font-size: 80px; line-height: 1; color: var(--ms-text-strong); text-wrap: balance; }
.ms-hero__ctas { display: flex; gap: 14px; margin-top: 4px; }
.ms-hero__ctas .ms-btn { width: 230px; height: 52px; }
.ms-hero__dots { display: flex; gap: 4px; }
.ms-hero__dot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.ms-hero__dot i { width: 8px; height: 8px; border: 1px solid var(--ms-gold); transform: rotate(45deg); transition: background-color .3s; }
.ms-hero__dot[aria-current="true"] i { background: var(--ms-gold); }

.ms-announcement {
  padding: 16px var(--ms-gutter); border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line);
  background: var(--ms-bg-raised); text-align: center; font-size: 17px; font-style: italic; color: var(--ms-text-body);
}

.ms-home-section {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  max-width: var(--ms-container); margin-inline: auto; padding: 80px var(--ms-gutter) 0;
}
.ms-announcement + .ms-home-section, .ms-hero + .ms-home-section { padding-top: 72px; }
.ms-home-section:last-child { padding-bottom: 96px; }

/* 7. Archive ------------------------------------------------------------------- */
.ms-page-hero {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 72px var(--ms-gutter) 56px; text-align: center;
  background: linear-gradient(to bottom, rgba(14, 11, 9, .5), var(--ms-bg-page)), var(--ms-hero-img) center 40% / cover no-repeat;
}
.ms-page-hero__title { font-family: var(--ms-font-display); font-size: 64px; line-height: 1; color: var(--ms-text-strong); text-wrap: balance; }
.ms-page-hero__note { font-style: italic; font-size: 17px; color: var(--ms-text-muted); max-width: 640px; }
.ms-page-hero__note p + p { margin-top: .5em; }

.ms-archive {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start;
  max-width: var(--ms-container); margin-inline: auto; padding: 0 var(--ms-gutter) 72px;
}
.ms-archive__main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ms-archive ul.products { gap: 36px 24px; }
.ms-archive .ms-card__name { font-size: 16px; }
.ms-archive .ms-card__price { font-size: 21px; }
.ms-archive__pills { display: none; }
.ms-sidebar { display: flex; flex-direction: column; gap: 28px; }
.ms-sidebar__title { padding-bottom: 12px; border-bottom: 1px solid var(--ms-line-strong); font-family: var(--ms-font-caps); font-size: 20px; }
.ms-sidebar__title a { color: var(--ms-text); }
.ms-sidebar__title a:hover, .ms-sidebar__title a[aria-current] { color: var(--ms-gold); }
.ms-sidebar__list { list-style: none; margin-top: 8px; }
.ms-sidebar__link { display: flex; align-items: center; gap: 10px; height: 40px; font-size: 17px; color: var(--ms-text-muted); }
.ms-sidebar__link i { flex: none; width: 5px; height: 5px; transform: rotate(45deg); background: transparent; }
.ms-sidebar__link:hover { color: var(--ms-gold-light); }
.ms-sidebar__link.is-current { color: var(--ms-gold); }
.ms-sidebar__link.is-current i { background: var(--ms-gold); }

/* 8. Single product ------------------------------------------------------------ */
.ms-pdp-crumbs { max-width: var(--ms-container); margin-inline: auto; padding: 24px var(--ms-gutter) 0; }
.single-product div.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  max-width: var(--ms-container); margin-inline: auto; padding: 32px var(--ms-gutter) 0;
}
.single-product .woocommerce-notices-wrapper { max-width: var(--ms-container); margin-inline: auto; padding-inline: var(--ms-gutter); }
.ms-pdp-media { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 40px; background: radial-gradient(ellipse at 50% 45%, #2a1712 0%, var(--ms-bg-page) 68%); }
.ms-pdp-frame { width: 100%; max-width: 444px; padding: 8px; border: 1px solid var(--ms-line-frame-lg); border-radius: var(--ms-arch-pdp-1); }
.ms-pdp-frame__mid { padding: 5px; border: 1px solid var(--ms-line-strong); border-radius: var(--ms-arch-pdp-2); }
.ms-pdp-frame__img { aspect-ratio: 1 / 1.12; border-radius: var(--ms-arch-pdp-3); overflow: hidden; background: #fff; }
.ms-pdp-frame__img a, .ms-pdp-frame__img img { display: block; width: 100%; height: 100%; }
.ms-pdp-frame__img img { object-fit: cover; }
.ms-pdp-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.ms-pdp-thumb { width: 64px; padding: 3px; border: 1px solid var(--ms-line-frame); border-radius: var(--ms-arch-outer); background: var(--ms-bg-raised); cursor: pointer; }
.ms-pdp-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ms-arch-inner); }
.ms-pdp-thumb.is-active, .ms-pdp-thumb:hover { border-color: var(--ms-gold); }

.single-product .summary { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ms-pdp-label { font-family: var(--ms-font-caps); font-size: 15px; letter-spacing: .22em; color: var(--ms-text-muted); }
.single-product .product_title { font-family: var(--ms-font-display); font-size: 52px; line-height: 1.04; color: var(--ms-text-strong); text-wrap: balance; }
.ms-pdp-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.ms-pdp-price { font-family: var(--ms-font-display); font-size: 40px; line-height: 1; color: var(--ms-gold); }
.ms-stock { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ms-stock-text); }
.ms-stock i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--ms-stock-mark); }
.ms-stock--out { color: var(--ms-text-muted); }
.ms-stock--out i { background: transparent; border: 1px solid var(--ms-text-muted); }
.ms-stock--backorder { color: var(--ms-gold); }
.ms-stock--backorder i { background: var(--ms-gold); }
.ms-tax-note { margin-top: -10px; font-style: italic; font-size: 15px; color: var(--ms-text-faint); }

.single-product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.single-product form.cart .single_add_to_cart_button { width: 280px; height: 56px; font-size: 20px; }
.single-product form.variations_form { flex-direction: column; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.single-product .variations { border-collapse: collapse; }
.single-product .variations th { padding: 0 16px 8px 0; text-align: left; font-family: var(--ms-font-caps); font-weight: 400; font-size: 15px; color: var(--ms-text-muted); }
.single-product .variations td { padding: 0 0 8px; }
.reset_variations { margin-left: 12px; font-size: 15px; }

.ms-qty { display: inline-flex; align-items: center; height: 56px; border: 1px solid var(--ms-line-frame); }
.ms-qty__btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 54px; padding: 0; border: 0; background: none; color: var(--ms-gold); font-family: var(--ms-font-body); font-size: 24px; cursor: pointer; }
.ms-qty__btn:disabled { color: var(--ms-text-ghost); cursor: default; }
.ms-qty__input {
  width: 48px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ms-text); text-align: center;
  font-family: var(--ms-font-body); font-size: 19px; -moz-appearance: textfield; appearance: textfield;
}
.ms-qty__input::-webkit-outer-spin-button, .ms-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ms-qty--static { padding: 0 20px; }
.woocommerce .ms-qty input.ms-qty__input { width: 48px; min-height: 0; height: 100%; padding: 0; border: 0; background: transparent; font-size: 19px; text-align: center; }
.ms-js .woocommerce .ms-qty input.ms-qty__input { width: 32px; }

.ms-info { margin-top: 8px; border-top: 1px solid var(--ms-line); }
.ms-info__block { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--ms-line); }
.ms-info__title { font-family: var(--ms-font-caps); font-size: 19px; color: var(--ms-text); }
.ms-info__body { font-size: 17px; line-height: 1.5; color: var(--ms-text-body); }
.ms-info__body p + p { margin-top: .6em; }

.ms-related {
  display: flex; flex-direction: column; gap: 32px;
  max-width: var(--ms-container); margin-inline: auto; padding: 88px var(--ms-gutter) 80px;
}

/* Image lightbox (native <dialog>) */
.ms-lightbox { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 1px solid var(--ms-line-frame-lg); background: #fff; }
.ms-lightbox::backdrop { background: rgba(5, 4, 3, .88); }
.ms-lightbox img { max-height: 90vh; width: auto; margin: auto; }
.ms-lightbox__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid var(--ms-line-frame);
  background: var(--ms-bg-header); color: var(--ms-gold); font-size: 28px; line-height: 1; cursor: pointer;
}

/* 9. Pages ---------------------------------------------------------------------- */
.ms-page { max-width: var(--ms-container); margin-inline: auto; padding: 8px var(--ms-gutter) 96px; }
.ms-page--text .ms-content { max-width: 760px; margin-inline: auto; }
.ms-content { font-size: 17px; line-height: 1.6; color: var(--ms-text-body); }
.ms-content > * + * { margin-top: 1em; }
.ms-content h2 { margin-top: 1.6em; font-family: var(--ms-font-caps); font-size: 26px; color: var(--ms-text); }
.ms-content h3 { margin-top: 1.4em; font-family: var(--ms-font-caps); font-size: 21px; color: var(--ms-text); }
.ms-content ul, .ms-content ol { padding-left: 1.3em; }
.ms-content a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ms-content blockquote { margin-inline: 0; padding-left: 20px; border-left: 1px solid var(--ms-gold-deep); font-style: italic; }
.ms-downloads { list-style: none; padding: 0 !important; columns: 2; column-gap: 40px; }
.ms-downloads li { break-inside: avoid; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 7px 0; border-bottom: 1px solid var(--ms-line); }
/* Set icon: any inline image, whatever width the editor gave it. */
.ms-downloads img { flex: none; width: 24px !important; height: 24px; object-fit: contain; }
/* File-type label from the link target, so editors only add icon + linked name. */
.ms-downloads a[href]::after { display: inline-block; margin-left: 8px; font-family: var(--ms-font-caps); font-size: 12px; letter-spacing: .1em; color: var(--ms-text-faint); }
.ms-downloads a[href$=".xls" i]::after { content: "XLS"; }
.ms-downloads a[href$=".xlsx" i]::after { content: "XLSX"; }
.ms-downloads a[href$=".csv" i]::after { content: "CSV"; }
.ms-downloads a[href$=".pdf" i]::after { content: "PDF"; }
.ms-downloads a[href$=".rtf" i]::after { content: "RTF"; }
.ms-downloads a[href$=".doc" i]::after { content: "DOC"; }
.ms-downloads a[href$=".docx" i]::after { content: "DOCX"; }
.ms-downloads a[href$=".txt" i]::after { content: "TXT"; }
.ms-downloads a[href$=".zip" i]::after { content: "ZIP"; }
.ms-post-list { list-style: none; max-width: 760px; margin-inline: auto; }
.ms-post-list li { padding: 24px 0; border-bottom: 1px solid var(--ms-line); }
.ms-post-list__title { font-family: var(--ms-font-display); font-size: 28px; }

/* 10. WooCommerce: notices, forms, tables, cart, checkout, account ---------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-noreviews, .wc-block-components-notice-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 24px; padding: 16px 20px; list-style: none;
  background: var(--ms-bg-raised); border: 1px solid var(--ms-line); border-left: 1px solid var(--ms-gold);
  color: var(--ms-text-body); font-size: 16px;
}
.woocommerce-message:focus, .woocommerce-error:focus, .woocommerce-info:focus, .woocommerce-notices-wrapper:focus { outline: none; }
.woocommerce-error { border-left-color: var(--ms-red-hover); flex-direction: column; align-items: flex-start; }
.woocommerce-info { border-left-color: var(--ms-text-faint); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; font-size: 15px; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { content: none; }
.woocommerce-store-notice, p.demo_store { display: none !important; }

/* Forms */
.woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label, .woocommerce form label {
  font-family: var(--ms-font-caps); font-size: 15px; letter-spacing: .04em; color: var(--ms-text-muted);
}
.woocommerce form .form-row .required { color: var(--ms-gold); text-decoration: none; border: 0; }
.woocommerce form .form-row label.checkbox, .woocommerce form label.woocommerce-form__label-for-checkbox {
  display: flex; align-items: center; gap: 10px; font-family: var(--ms-font-body); font-size: 16px; letter-spacing: 0; color: var(--ms-text-body); cursor: pointer;
}
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .woocommerce form .form-row input.input-text,
.woocommerce-cart table.cart td.actions .coupon .input-text, .ms-content input[type="text"], .ms-content input[type="email"], .ms-content textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--ms-line-strong); border-radius: 0; background: var(--ms-bg-control); color: var(--ms-text);
  font-family: var(--ms-font-body); font-size: 17px; line-height: 1.3; transition: border-color .15s;
}
.woocommerce textarea { min-height: 110px; }
/* Show/hide password toggle (button added by Woo's woocommerce.js; its icon font isn't loaded). */
.password-input { position: relative; display: block; }
.password-input input { padding-right: 52px; }
.show-password-input {
  position: absolute; top: 2px; right: 2px; bottom: 2px; width: 44px; padding: 0; border: 0; cursor: pointer;
  background: var(--ms-gold); opacity: .7;
  -webkit-mask: var(--ms-eye) center / 20px no-repeat; mask: var(--ms-eye) center / 20px no-repeat;
  --ms-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M1.5 12S5.5 5 12 5s10.5 7 10.5 7-4 7-10.5 7S1.5 12 1.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.show-password-input:hover, .show-password-input.display-password { opacity: 1; }
.show-password-input.display-password {
  --ms-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M1.5 12S5.5 5 12 5s10.5 7 10.5 7-4 7-10.5 7S1.5 12 1.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { outline: none; border-color: var(--ms-gold-deep); }
.woocommerce input[type="checkbox"], .woocommerce input[type="radio"] { accent-color: var(--ms-red); width: 18px; height: 18px; margin: 0; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--ms-red-hover); }
/* Only Slovenia is allowed: Woo renders a one-option select; show it as plain text. */
.woocommerce form .form-row select.country_to_state--single { appearance: none; background: none; border: 0; padding: 0; height: auto; pointer-events: none; color: var(--ms-text); }
.ms-email-mismatch { font-size: 14px; color: var(--ms-red-hover); }
.woocommerce form .form-row .description, .woocommerce-password-hint { font-size: 14px; color: var(--ms-text-muted); }
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce .form-row-first, .woocommerce .form-row-last { width: calc(50% - 8px); }
.woocommerce .woocommerce-billing-fields__field-wrapper, .woocommerce .woocommerce-shipping-fields__field-wrapper,
.woocommerce .woocommerce-address-fields__field-wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; }
.woocommerce .form-row-wide, .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last) { width: 100%; }
.ms-page--shop .ms-content h2, .ms-page--shop .ms-content h3, #order_review_heading, .cart_totals h2, .woocommerce-column__title, .woocommerce-order-details__title {
  margin: 0 0 18px; font-family: var(--ms-font-caps); font-size: 26px; letter-spacing: .02em; color: var(--ms-text);
}
.select2-container .select2-selection--single { height: 48px; border: 1px solid var(--ms-line-strong); border-radius: 0; background: var(--ms-bg-control); }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; color: var(--ms-text); }
.select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.select2-dropdown { border-color: var(--ms-line-frame); border-radius: 0; background: var(--ms-bg-header); color: var(--ms-text-pill); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ms-bg-hover); color: var(--ms-text-strong); }
.select2-search--dropdown .select2-search__field { background: var(--ms-bg-control); border-color: var(--ms-line-strong); color: var(--ms-text); }
.woocommerce form .form-row .woocommerce-input-wrapper strong { color: var(--ms-text); font-weight: 400; }

/* Tables */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: 17px; }
.woocommerce table.shop_table th {
  padding: 12px 10px; border-bottom: 1px solid var(--ms-line-strong); text-align: left;
  font-family: var(--ms-font-caps); font-weight: 400; font-size: 15px; letter-spacing: .06em; color: var(--ms-text-muted);
}
.woocommerce table.shop_table td { padding: 14px 10px; border-bottom: 1px solid var(--ms-line); vertical-align: middle; color: var(--ms-text-body); }
.woocommerce table.shop_table tfoot th, .woocommerce table.shop_table tfoot td { border-bottom: 1px solid var(--ms-line); }
.woocommerce table.shop_table .amount { font-family: var(--ms-font-display); color: var(--ms-gold); font-size: 19px; }
.woocommerce table.shop_table .order-total .amount { font-size: 26px; }
.woocommerce table.shop_table .product-name a { color: var(--ms-text); }
.woocommerce table.shop_table .product-name a:hover { color: var(--ms-gold-light); }
.woocommerce table.shop_table img { width: 64px; border: 1px solid var(--ms-line-frame); border-radius: var(--ms-arch-outer); padding: 3px; background: var(--ms-bg-raised); }
.woocommerce a.remove {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--ms-line-strong); color: var(--ms-text-muted) !important; font-size: 20px; line-height: 1;
}
.woocommerce a.remove:hover { border-color: var(--ms-red-hover); color: var(--ms-text-strong) !important; background: var(--ms-red); }
.woocommerce-shipping-methods { list-style: none; }
#shipping_method li { display: flex; align-items: center; gap: 8px; }

/* Cart */
.woocommerce-cart .ms-content, .woocommerce-checkout .ms-content, .woocommerce-account .ms-content { font-size: 17px; }
.woocommerce-cart-form .ms-qty { height: 48px; }
.woocommerce-cart-form .ms-qty__btn { width: 40px; height: 46px; font-size: 22px; }
.woocommerce-cart table.cart td.actions { padding-top: 20px; }
.woocommerce-cart table.cart td.actions .coupon { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 200px; }
.woocommerce-cart table.cart td.actions > .button { float: right; }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 48px; }
.cart_totals { width: 100%; max-width: 460px; }
.cart_totals th { width: 38%; }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; height: 56px; }
.cart-empty.woocommerce-info { justify-content: center; border-left-color: var(--ms-line); font-style: italic; font-size: 19px; color: var(--ms-text-muted); }
.return-to-shop { display: flex; justify-content: center; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: 15px; color: var(--ms-text-muted); }

/* Checkout */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 56px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup, .woocommerce-checkout form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
.woocommerce-checkout #customer_details.col2-set { display: block; }
.woocommerce-checkout #customer_details .col-2 { margin-top: 24px; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 2; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 3; padding: 24px; border: 1px solid var(--ms-line-frame); background: var(--ms-bg-raised); }
.woocommerce-checkout .woocommerce-form-coupon-toggle, .woocommerce-checkout .woocommerce-form-login-toggle { margin-bottom: 0; }
.woocommerce-checkout form.checkout_coupon, .woocommerce form.woocommerce-form-login.login { margin: 0 0 24px; padding: 20px; border: 1px solid var(--ms-line); background: var(--ms-bg-raised); }
#payment ul.payment_methods { list-style: none; margin: 20px 0; border-top: 1px solid var(--ms-line); }
#payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--ms-line); }
#payment ul.payment_methods li > label { display: inline; margin-left: 8px; font-family: var(--ms-font-caps); font-size: 18px; color: var(--ms-text); cursor: pointer; }
#payment ul.payment_methods li input { vertical-align: -3px; }
#payment .payment_box { margin-top: 10px; padding: 12px 16px; background: var(--ms-bg-control); font-size: 15px; color: var(--ms-text-muted); }
#payment .place-order { display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; }
#payment #place_order { width: 100%; height: 56px; }
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { font-size: 14px; color: var(--ms-text-muted); }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--ms-text-muted); font-weight: 400; }
.blockUI.blockOverlay { background: rgba(14, 11, 9, .6) !important; }

/* Order received / order details */
.woocommerce-order { display: flex; flex-direction: column; gap: 32px; }
.woocommerce-thankyou-order-received { padding: 20px; border: 1px solid var(--ms-line-frame); border-left-color: var(--ms-gold); background: var(--ms-bg-raised); font-family: var(--ms-font-display); font-size: 24px; color: var(--ms-text-strong); }
ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 0; list-style: none; border: 1px solid var(--ms-line); }
ul.woocommerce-order-overview li { flex: 1 1 160px; padding: 14px 18px; border-right: 1px solid var(--ms-line); font-family: var(--ms-font-caps); font-size: 14px; letter-spacing: .06em; color: var(--ms-text-muted); }
ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-family: var(--ms-font-body); font-weight: 400; font-size: 17px; letter-spacing: 0; color: var(--ms-text); }
.woocommerce-bacs-bank-details .wc-bacs-bank-details { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.woocommerce-customer-details address { padding: 18px; border: 1px solid var(--ms-line); font-style: normal; line-height: 1.6; }

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-MyAccount-navigation ul { list-style: none; border-top: 1px solid var(--ms-line-strong); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ms-line); }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; color: var(--ms-text-muted); }
.woocommerce-MyAccount-navigation a::before { content: ''; flex: none; width: 5px; height: 5px; transform: rotate(45deg); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--ms-gold); }
.woocommerce-MyAccount-navigation .is-active a::before { background: var(--ms-gold); }
.woocommerce-MyAccount-content > * + * { margin-top: 1em; }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password { padding: 28px; border: 1px solid var(--ms-line); background: var(--ms-bg-raised); }
.woocommerce-form-login__rememberme { margin-bottom: 12px; }
.woocommerce-LostPassword { margin-top: 12px; font-size: 15px; }

/* Responsive ------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .ms-header__inner { height: var(--ms-header-h-m); padding: 10px 12px; gap: 8px; }
  .ms-header .ms-logo img { height: 48px; }
  .ms-nav, .ms-cart-btn { display: none; }
  .ms-icon-btn { display: inline-flex; }
  .ms-header--overlay .ms-header__inner::after { left: 0; right: 0; }

  .ms-archive { grid-template-columns: minmax(0, 1fr); padding: 0 0 56px; }
  .ms-sidebar { display: none; }
  .ms-archive__pills { display: flex; }
  .ms-archive__main { gap: 0; }
  .ms-archive__main > .ms-toolbar, .ms-archive__main > .woocommerce-notices-wrapper { margin-inline: 0; padding-inline: 16px; }
  .ms-archive__main > ul.products { padding: 22px 16px 12px; }
  .ms-archive__main > .ms-loadmore { padding: 18px 16px 0; }
  .ms-archive__pills { padding: 0 16px 18px; }

  ul.products, .ms-archive ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .ms-pdp-media { padding: 18px 28px 0; }
  .ms-pdp-frame { max-width: 480px; }
  .single-product .summary { padding: 26px 20px 8px; gap: 14px; }
  .woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
  .woocommerce-checkout #order_review_heading { margin-top: 32px; }
  .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .ms-header .ms-logo img { height: 48px; }
  .ms-section-heading__row { gap: 12px; }
  .ms-section-heading__title { font-size: 26px; }
  .ms-section-heading--related .ms-section-heading__title { font-size: 22px; }
  .ms-section-heading__row .ms-diamond { margin-top: -5px; }
.ms-section-heading__sub { font-size: 15px; }
  .ms-diamond { width: 6px; height: 6px; }
  .ms-divider { width: 140px; }
  .ms-divider--hero, .ms-divider--pdp { width: 180px; }

  ul.products, .ms-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .ms-card { gap: 10px; }
  .ms-card__frame { padding: 5px; }
  .ms-card__name, .ms-archive .ms-card__name { font-size: 15px; }
  .ms-card__price, .ms-archive .ms-card__price { font-size: 19px; }
  .ms-badge { bottom: 8px; font-size: 12px; }
  .ms-add { width: 44px; height: 44px; padding: 0; }
  .ms-add .ms-add__text { display: none; }
  .ms-add .ms-add__icon { display: block; }
  .ms-add.is-added .ms-add__icon { font-size: 15px; }
  .ms-btn--outline { width: 100%; font-size: 16px; }

  .ms-pills--scroll, .ms-home-section .ms-pills {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ms-pills--scroll::-webkit-scrollbar, .ms-home-section .ms-pills::-webkit-scrollbar { display: none; }
  .ms-home-section .ms-pills { align-self: stretch; margin: 0 -16px; padding: 0 16px; }
  .ms-pill { padding: 0 16px; font-size: 15px; }

  .ms-hero { height: 600px; }
  .ms-hero__slide img { object-position: var(--pos-m, 50% 20%); }
  .ms-hero__shade {
    background:
      linear-gradient(to bottom, rgba(14, 11, 9, 0), var(--ms-bg-page)) bottom / 100% 300px no-repeat,
      radial-gradient(ellipse at 50% 30%, rgba(14, 11, 9, 0) 0%, rgba(14, 11, 9, .55) 60%, rgba(14, 11, 9, .92) 100%);
  }
  .ms-hero__content { gap: 14px; padding: 0 16px 30px; }
  .ms-hero__kicker { font-size: 14px; letter-spacing: .28em; }
  .ms-hero__title { font-size: 42px; line-height: 1.02; }
  .ms-hero__ctas { align-self: stretch; gap: 14px; }
  .ms-hero__ctas .ms-btn { flex: 1; width: auto; height: 48px; padding: 0 10px; font-size: 16px; }
  .ms-hero__dot i { width: 7px; height: 7px; }
  .ms-announcement { padding: 14px 20px; font-size: 15px; }

  .ms-home-section, .ms-announcement + .ms-home-section, .ms-hero + .ms-home-section { gap: 22px; padding: 44px 16px 0; }
  .ms-home-section:last-child { padding-bottom: 56px; }

  .ms-page-hero { gap: 10px; padding: 34px 20px 26px; background: linear-gradient(to bottom, rgba(14, 11, 9, .55), var(--ms-bg-page)), var(--ms-hero-img) center 35% / cover no-repeat; }
  .ms-page-hero__title { font-size: 44px; }
  .ms-page-hero__note { font-size: 15px; }
  .ms-breadcrumbs ol { gap: 4px 6px; font-size: 14px; }
  .ms-toolbar__count { font-size: 15px; }

  .ms-pdp-crumbs { padding: 14px 16px 0; }
  /* Mobile PDP breadcrumb ends at the category. */
  .single-product .ms-pdp-crumbs li:nth-last-child(-n + 2) { display: none; }
  .single-product .ms-pdp-crumbs li:nth-last-child(3) a { color: var(--ms-gold); }
  .ms-pdp-frame { padding: 7px; }
  .ms-pdp-frame__mid { padding: 4px; }
  .ms-pdp-media { background: radial-gradient(ellipse at 50% 40%, #2a1712 0%, var(--ms-bg-page) 65%); }
  .single-product .product_title { font-size: 32px; line-height: 1.08; }
  .ms-pdp-label { font-size: 14px; letter-spacing: .2em; }
  .ms-divider--pdp { display: none; }
  .ms-pdp-price-row { justify-content: space-between; }
  .ms-pdp-price { font-size: 30px; }
  .ms-stock { font-size: 15px; }
  .ms-tax-note { font-size: 14px; }
  .single-product form.cart { gap: 10px; flex-wrap: nowrap; }
  .single-product form.variations_form, .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
  .single-product form.cart .single_add_to_cart_button { flex: 1; width: auto; height: 52px; font-size: 18px; }
  .ms-qty { height: 52px; }
  .ms-qty__btn { width: 44px; height: 50px; font-size: 22px; }
  .woocommerce .ms-qty input.ms-qty__input { font-size: 18px; }
  .ms-info { margin-top: 16px; }
  .ms-info__body { font-size: 16px; }
  .ms-related { gap: 22px; padding: 40px 16px 12px; }
  .ms-related ul.products > li:nth-child(n + 3) { display: none; }
  .single-product .ms-related { padding-bottom: 48px; }

  .ms-footer__grid { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 32px 24px 16px; text-align: center; }
  .ms-footer__col { align-items: center; }
  .ms-footer__contact { gap: 12px; }
  .ms-footer .ms-logo img { height: 64px; }
  .ms-footer__lines { font-size: 15px; color: var(--ms-text-body); }
  .ms-footer__mobile-divider { display: flex; align-items: center; gap: 10px; width: 140px; }
  .ms-footer__mobile-divider span { flex: 1; height: 1px; background: var(--ms-line-strong); }
  .ms-footer__mobile-divider i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--ms-line-ornament); }
  .ms-footer__heading { display: none; }
  .ms-footer__text--desktop { display: none; }
  .ms-footer__text--mobile { display: block; max-width: 300px; font-size: 14px; }
  .ms-footer__links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 15px; }
  .ms-footer__bar { flex-direction: column; justify-content: center; gap: 14px; padding: 0 24px 26px; border-top: 0; font-size: 11px; }
  .ms-footer__vat { display: none; }

  .ms-page { padding: 8px 16px 64px; }
  .ms-downloads { columns: 1; }
  .woocommerce .col2-set, .woocommerce-Addresses, .woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; }
  .woocommerce .form-row-first, .woocommerce .form-row-last { width: 100%; }

  /* Cart table → stacked rows */
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--ms-line); }
  .woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .woocommerce table.shop_table_responsive td::before { content: attr(data-title); font-family: var(--ms-font-caps); font-size: 14px; color: var(--ms-text-muted); text-align: left; }
  .woocommerce table.shop_table_responsive td.product-remove::before, .woocommerce table.shop_table_responsive td.product-thumbnail::before, .woocommerce table.shop_table_responsive td.actions::before { content: none; }
  .woocommerce table.shop_table_responsive td.product-thumbnail { justify-content: center; }
  .woocommerce-cart table.cart td.actions { flex-direction: column; align-items: stretch; }
  .woocommerce-cart table.cart td.actions .coupon { display: flex; }
  .woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
  .woocommerce-cart table.cart td.actions > .button { float: none; width: 100%; }
  .cart-collaterals { margin-top: 32px; }
  .woocommerce-checkout #order_review { padding: 16px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ms-related ul.products > li:nth-child(4) { display: none; }
  .ms-related ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
