/* Cigar Mafia HK storefront (shop.cigarmafiahk.com). Loaded only on the shop host. */
:root {
  --cmhk-gold: #c9a35b;
  --cmhk-gold-dark: #a8843f;
  --cmhk-gold-soft: #faf5ea;
  --cmhk-navy: #001444;
  --cmhk-ink: #14161c;
  --cmhk-dark: #111;
  --cmhk-muted: #6b6f78;
  --cmhk-line: #e7e1d4;
  --cmhk-bg: #fff;
  --cmhk-card: #fff;
  --cmhk-img-bg: #f6f3ee;
  --cmhk-radius: 6px;
}

.cmhk-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
[lang="zh-Hant"] { font-family: inherit; }

/* ---------- Buttons ---------- */
.cmhk-btn, .woocommerce .cmhk-btn {
  display: inline-block; padding: 12px 22px; border-radius: 3px; border: 1px solid var(--cmhk-gold);
  background: var(--cmhk-gold); color: var(--cmhk-dark) !important; font-weight: 600; letter-spacing: .02em;
  text-decoration: none !important; cursor: pointer; transition: background .15s, color .15s; font-size: 15px; line-height: 1.3;
}
.cmhk-btn:hover { background: var(--cmhk-gold-dark); border-color: var(--cmhk-gold-dark); }
.cmhk-btn.cmhk-btn--ghost, button.cmhk-btn.cmhk-btn--ghost { background: transparent !important; color: var(--cmhk-gold) !important; }
.cmhk-btn.cmhk-btn--ghost:hover, button.cmhk-btn.cmhk-btn--ghost:hover { background: var(--cmhk-gold) !important; color: var(--cmhk-dark) !important; }
button.cmhk-btn { background: var(--cmhk-gold); box-shadow: none; text-transform: none; }

/* ---------- Shop header (replaces the www Elementor header on the shop host) ---------- */
.cmhk-shophead { position: relative; z-index: 50; font-family: inherit; }
.cmhk-shophead a { text-decoration: none; }
.cmhk-topstrip { background: #000; color: rgba(255,255,255,.75); font-size: 12.5px; letter-spacing: .03em; }
.cmhk-topstrip__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.cmhk-topstrip a { color: rgba(255,255,255,.8); }
.cmhk-topstrip a:hover { color: var(--cmhk-gold); }
.cmhk-topstrip__msg span { color: var(--cmhk-gold); }
.cmhk-topstrip__links { display: flex; align-items: center; gap: 16px; }
.cmhk-topstrip__links .cmhk-icon { width: 16px; height: 16px; display: block; }

.cmhk-mainhead { background: #111; border-bottom: 1px solid rgba(201,163,91,.25); }
.cmhk-mainhead__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 100px; }
.cmhk-mainhead__inner > .cmhk-brandmark { justify-self: center; }
.cmhk-mainhead__inner > .cmhk-mainhead__user { justify-self: end; }
.cmhk-brandmark { display: flex; align-items: center; gap: 12px; flex: none; color: #fff; }
.cmhk-brandmark img { width: 64px; height: 64px; object-fit: contain; border-radius: 4px; }
.cmhk-brandmark__text { display: flex; flex-direction: column; line-height: 1.05; }
.cmhk-brandmark__name { color: var(--cmhk-gold); font-size: 25px; font-weight: 700; letter-spacing: .01em; }
.cmhk-brandmark__sub { color: #fff; font-size: 19px; font-style: italic; font-weight: 500; letter-spacing: .04em; }
.cmhk-brandmark__tag { margin-top: 6px; align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cmhk-dark); background: var(--cmhk-gold); padding: 2px 7px; border-radius: 2px; }
.cmhk-search { position: relative; width: 100%; max-width: 400px; margin: 0; display: flex; align-items: center; height: 42px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; transition: border-color .15s, background .15s, box-shadow .15s; }
.cmhk-search:hover { border-color: rgba(255,255,255,.3); }
.cmhk-search:focus-within { background: rgba(255,255,255,.11); border-color: var(--cmhk-gold); box-shadow: 0 0 0 3px rgba(201,163,91,.18); }
.cmhk-search input[type="search"] { flex: 1 1 auto; order: 2; border: 0 !important; padding: 0 18px 0 4px !important; height: 100%; font-size: 14.5px; min-width: 0; background: transparent !important; color: #fff; box-shadow: none !important; margin: 0; border-radius: 0; outline: none; }
.cmhk-search input[type="search"]::placeholder { color: rgba(255,255,255,.5); }
.cmhk-search input[type="search"]::-webkit-search-cancel-button { filter: invert(1) opacity(.5); cursor: pointer; }
.cmhk-search button[type="submit"]:not(.cmhk-suggest__all) { order: 1; flex: 0 0 auto; border: 0; background: none !important; color: var(--cmhk-gold); padding: 0 8px 0 16px; height: 100%; cursor: pointer; display: flex; align-items: center; border-radius: 999px 0 0 999px; box-shadow: none; }
.cmhk-search button[type="submit"]:not(.cmhk-suggest__all):hover { color: #fff; }
.cmhk-search .cmhk-icon { width: 18px; height: 18px; }

/* live search results */
.cmhk-suggest { position: absolute; z-index: 1000; top: calc(100% + 8px); left: 0; width: max(100%, 460px); max-height: min(70vh, 560px); overflow-y: auto; background: #fff; color: var(--cmhk-ink); border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 6px; }
.cmhk-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 7px; color: var(--cmhk-ink) !important; text-decoration: none; }
.cmhk-suggest a:hover, .cmhk-suggest a.is-active { background: var(--cmhk-gold-soft); }
.cmhk-suggest__brand { flex-wrap: wrap; gap: 4px 8px !important; }
.cmhk-suggest__brand strong { font-size: 15px; }
.cmhk-suggest__brand span[lang] { color: var(--cmhk-gold-dark); }
.cmhk-suggest__brand em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--cmhk-muted); }
.cmhk-suggest__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cmhk-gold-dark); background: var(--cmhk-gold-soft); padding: 2px 7px; border-radius: 999px; }
.cmhk-suggest__img { flex: 0 0 84px; height: 52px; padding: 4px 6px; border-radius: 6px; background: var(--cmhk-img-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cmhk-suggest__img img { width: 100%; height: 100%; object-fit: contain; }
.cmhk-suggest__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cmhk-suggest__txt strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmhk-suggest__zh { font-size: 13px; color: var(--cmhk-gold-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmhk-suggest__meta { font-size: 12px; color: var(--cmhk-muted); }
.cmhk-suggest__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cmhk-suggest__side b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.cmhk-suggest__side i { font-style: normal; font-size: 11.5px; color: #8a1f1f; white-space: nowrap; }
.cmhk-suggest .is-out .cmhk-suggest__img img { opacity: .5; }
.cmhk-suggest__empty { padding: 16px 12px; color: var(--cmhk-muted); font-size: 14px; }
.cmhk-suggest__all { display: block; width: 100%; margin-top: 4px; padding: 11px 10px !important; border: 0; border-top: 1px solid var(--cmhk-line); background: none !important; color: var(--cmhk-gold-dark) !important; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; border-radius: 0 0 7px 7px; box-shadow: none; text-transform: none; }
.cmhk-suggest__all:hover { background: var(--cmhk-gold-soft) !important; }
@media (max-width: 700px) {
  .cmhk-search input[type="search"] { font-size: 16px; } /* < 16px makes iPhones zoom in on focus */
  .cmhk-suggest { width: 100%; max-height: 60vh; max-height: 60dvh; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .cmhk-suggest a { gap: 10px; padding: 9px 8px; }
  .cmhk-suggest__img { flex-basis: 60px; height: 42px; padding: 3px 4px; }
  .cmhk-suggest__txt strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
  .cmhk-suggest__zh { white-space: normal; font-size: 12.5px; }
  .cmhk-suggest__side b { font-size: 13.5px; }
  .cmhk-suggest__all { padding: 13px 10px !important; }
}
.cmhk-mainhead__user { display: flex; align-items: center; gap: 18px; flex: none; }
.cmhk-mainhead__user > a { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cmhk-mainhead__user > a span[lang] { color: var(--cmhk-gold); font-weight: 500; }
.cmhk-mainhead__user > a:hover { color: var(--cmhk-gold); }
.cmhk-mainhead__user .cmhk-icon { width: 22px; height: 22px; }
.cmhk-icon { flex: none; }
.cmhk-cart-count { background: var(--cmhk-gold); color: var(--cmhk-dark); border-radius: 999px; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.cmhk-cart-count.is-empty { background: rgba(255,255,255,.2); color: #fff; }

/* Category nav */
.cmhk-storebar { background: var(--cmhk-navy); color: #fff; border-bottom: 2px solid var(--cmhk-gold); }
.cmhk-storebar a { color: #fff; text-decoration: none; }
.cmhk-storebar__menu { display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cmhk-storebar__menu > li > a, .cmhk-storebar__drop summary {
  display: block; padding: 15px 16px; font-weight: 600; font-size: 14px; letter-spacing: .05em; white-space: nowrap; cursor: pointer; color: #fff; text-transform: uppercase;
}
.cmhk-storebar__menu span[lang] { color: var(--cmhk-gold); font-weight: 500; margin-left: 3px; text-transform: none; letter-spacing: .02em; }
.cmhk-storebar__menu > li > a:hover, .cmhk-storebar__menu > li > a[aria-current], .cmhk-storebar__drop summary:hover, .cmhk-storebar__drop summary[aria-current] { color: var(--cmhk-gold); }
.cmhk-storebar__menu > li > a[aria-current], .cmhk-storebar__drop summary[aria-current] { box-shadow: inset 0 -3px 0 var(--cmhk-gold); }
.cmhk-storebar__drop summary { list-style: none; }
.cmhk-storebar__drop summary::-webkit-details-marker { display: none; }
.cmhk-storebar__drop summary::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: var(--cmhk-gold); transform: translateY(2px); }
.cmhk-storebar__drop details[open] summary { color: var(--cmhk-gold); }
.cmhk-storebar .cmhk-wrap { position: relative; }
.cmhk-megamenu {
  position: absolute; left: 16px; right: 16px; top: 100%; margin-top: 2px; background: #0b0d12; border: 1px solid rgba(201,163,91,.35);
  border-top: 2px solid var(--cmhk-gold); padding: 26px 28px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; box-shadow: 0 24px 50px rgba(0,0,0,.45); z-index: 60;
}
.cmhk-megamenu__title { color: var(--cmhk-gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }
.cmhk-megamenu__title span { letter-spacing: .05em; color: rgba(255,255,255,.7); }
.cmhk-megamenu__links { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.08); padding-right: 24px; }
.cmhk-megamenu__links a { padding: 8px 0; font-size: 14.5px; font-weight: 600; }
.cmhk-megamenu__links a span { color: rgba(255,255,255,.55); font-weight: 400; }
.cmhk-megamenu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.cmhk-megamenu__grid a { padding: 9px 4px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.cmhk-megamenu__grid a span { color: var(--cmhk-gold); margin-left: 4px; }
.cmhk-megamenu a:hover { color: var(--cmhk-gold); }

/* ---------- Shop footer (replaces the www Elementor footer on the shop host) ---------- */
.cmhk-shopfoot { background: #0b0d12; color: rgba(255,255,255,.75); border-top: 2px solid var(--cmhk-gold); margin-top: 48px; font-size: 14px; }
.cmhk-shopfoot a { color: rgba(255,255,255,.8); text-decoration: none; }
.cmhk-shopfoot a:hover { color: var(--cmhk-gold); }
.cmhk-shopfoot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.cmhk-shopfoot__about p { margin: 16px 0; line-height: 1.7; max-width: 340px; }
.cmhk-shopfoot__about p span { color: rgba(255,255,255,.6); }
.cmhk-shopfoot__about p.cmhk-shopfoot__source { margin-top: -6px; font-size: 13px; color: rgba(255,255,255,.85); }
.cmhk-shopfoot__social { display: inline-flex; align-items: center; gap: 8px; color: var(--cmhk-gold) !important; font-weight: 600; }
.cmhk-shopfoot h3 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 14px; }
.cmhk-shopfoot h3 span { color: var(--cmhk-gold); text-transform: none; letter-spacing: .02em; margin-left: 4px; }
.cmhk-shopfoot ul { list-style: none; margin: 0; padding: 0; }
.cmhk-shopfoot li { margin: 0 0 9px; padding: 0; }
.cmhk-shopfoot li span[lang] { color: rgba(255,255,255,.55); }
.cmhk-shopfoot__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.cmhk-shopfoot__pay-label { font-size: 13px; color: rgba(255,255,255,.65); }
.cmhk-shopfoot__pay-label span[lang] { color: var(--cmhk-gold); }
.cmhk-payicons { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cmhk-payicons li { margin: 0; padding: 0; line-height: 0; }
.cmhk-payicons img { width: 48px; height: 30px; border-radius: 4px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.cmhk-shopfoot__bottom { background: #000; font-size: 12.5px; color: rgba(255,255,255,.6); }
.cmhk-shopfoot__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.cmhk-shopfoot__bottom span[lang] { color: var(--cmhk-gold); }
.cmhk-shopfoot__bottom-inner { align-items: center; }
.cmhk-shopfoot__legal, .cmhk-shopfoot__warn { line-height: 1.7; }
.cmhk-shopfoot__warn { text-align: right; }
@media (max-width: 700px) { .cmhk-shopfoot__warn { text-align: left; } }
footer#colophon.elementor-footer-credits { padding: 0; margin: 0; background: none; }

/* ---------- Hero ---------- */
.cmhk-hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,163,91,.28), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(0,20,68,.9), transparent 60%),
    linear-gradient(135deg, #0b0d12 0%, #151922 60%, #001444 100%);
  color: #fff; padding: 72px 0 80px; border-bottom: 1px solid rgba(201,163,91,.35);
}
.cmhk-hero__inner { max-width: 1240px; }
.cmhk-hero__eyebrow { color: var(--cmhk-gold); text-transform: uppercase; letter-spacing: .25em; font-size: 12px; font-weight: 700; margin: 0 0 14px; }
.cmhk-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); line-height: 1.12; margin: 0 0 18px; font-weight: 700; max-width: 760px; }
.cmhk-hero h1 span { display: block; color: var(--cmhk-gold); font-weight: 600; margin-top: 6px; }
.cmhk-hero__lead { font-size: 18px; color: rgba(255,255,255,.85); margin: 0 0 28px; max-width: 620px; }
.cmhk-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- Home carousel ---------- */
.cmhk-carousel { position: relative; background: #0b0d12; border-bottom: 1px solid rgba(201,163,91,.35); }
.cmhk-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.cmhk-carousel__track::-webkit-scrollbar { display: none; }
.cmhk-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; height: clamp(360px, 33.33vw, 600px); overflow: hidden; }
.cmhk-slide__inner { display: flex; align-items: center; width: 100%; height: 100%; color: #fff !important; text-decoration: none !important; position: relative; }
.cmhk-slide--text {
  background:
    var(--cmhk-tile-img, none) right 6% center / min(46%, 640px) auto no-repeat,
    radial-gradient(ellipse at 78% 30%, rgba(201,163,91,.3), transparent 55%),
    linear-gradient(135deg, #0b0d12 0%, #151922 55%, #001444 100%);
}
.cmhk-slide--image picture, .cmhk-slide--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmhk-slide--image .cmhk-slide__content { position: relative; z-index: 1; }
.cmhk-slide--image .cmhk-slide__inner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,7,12,.75) 0%, rgba(5,7,12,.2) 60%, transparent 100%); pointer-events: none; }
.cmhk-slide__content { display: flex; flex-direction: column; align-items: flex-start; width: 100%; z-index: 2; position: relative; }
@media (min-width: 601px) { .cmhk-carousel .cmhk-slide__content { padding-left: 80px; padding-right: 80px; } }
.cmhk-slide__title { display: block; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; font-weight: 700; color: #fff; max-width: 640px; margin: 0 0 16px; }
.cmhk-slide__title span { display: block; color: var(--cmhk-gold); font-weight: 600; margin-top: 6px; }
.cmhk-slide__text { display: block; font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 0 26px; line-height: 1.55; }
.cmhk-slide__inner:hover .cmhk-btn { background: var(--cmhk-gold-dark); border-color: var(--cmhk-gold-dark); }
.cmhk-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201,163,91,.6);
  background: rgba(11,13,18,.55); color: var(--cmhk-gold); font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
}
.cmhk-carousel__arrow:hover { background: var(--cmhk-gold); color: var(--cmhk-dark); }
.cmhk-carousel__arrow--prev { left: 16px; }
.cmhk-carousel__arrow--next { right: 16px; }
.cmhk-carousel__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.cmhk-carousel__dots button { width: 28px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s, width .2s; }
.cmhk-carousel__dots button[aria-current] { background: var(--cmhk-gold); width: 44px; }

/* ---------- Archive banner ---------- */
.cmhk-banner { background: linear-gradient(135deg, #0b0d12, #001444); color: #fff; padding: 36px 0; border-bottom: 1px solid rgba(201,163,91,.35); }
.cmhk-banner h1 { color: #fff; margin: 4px 0 8px; font-size: clamp(26px, 4vw, 38px); }
.cmhk-banner h1 span { color: var(--cmhk-gold); margin-left: 8px; }
.cmhk-banner__crumb, .cmhk-banner__count { color: rgba(255,255,255,.7); font-size: 13px; margin: 0; letter-spacing: .03em; }
.cmhk-banner__crumb a { color: var(--cmhk-gold); text-decoration: none; }
.cmhk-banner__desc { color: rgba(255,255,255,.85); max-width: 760px; margin-bottom: 8px; }

/* ---------- Sections ---------- */
.cmhk-section { padding: 48px 0 8px; }
.cmhk-section--brands { background: var(--cmhk-img-bg); padding-bottom: 48px; margin-top: 32px; }
.cmhk-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--cmhk-line); margin: 0 0 24px; padding-bottom: 12px; position: relative; scroll-margin-top: 80px; }
.cmhk-section-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--cmhk-gold); }
.cmhk-section-title h2 { margin: 0; font-size: 24px; color: var(--cmhk-navy); font-weight: 700; letter-spacing: .01em; }
.cmhk-section-title h2 span { color: var(--cmhk-gold-dark); font-weight: 600; margin-left: 6px; }
.cmhk-section-title a { color: var(--cmhk-gold-dark); font-weight: 600; text-decoration: none; font-size: 14px; }
.cmhk-section-title a:hover { color: var(--cmhk-navy); }
.woocommerce-products-header + .cmhk-section-title, .cmhk-section-title#cmhk-all { margin-top: 16px; }

.cmhk-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cmhk-brand-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 108px; padding: 16px 10px;
  background: #fff; border: 1px solid var(--cmhk-line); border-radius: var(--cmhk-radius); text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cmhk-brand-tile:hover { border-color: var(--cmhk-gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,20,68,.08); }
.cmhk-brand-tile__name { color: var(--cmhk-navy); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.cmhk-brand-tile__zh { color: var(--cmhk-gold-dark); font-size: 15px; }
.cmhk-brand-tile__count { color: var(--cmhk-muted); font-size: 12px; }

/* ---------- Shop by origin ---------- */
.cmhk-origin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cmhk-origin {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 28px; border-radius: var(--cmhk-radius); overflow: hidden;
  color: #fff !important; text-decoration: none !important; isolation: isolate; border: 1px solid rgba(201,163,91,.35);
  background: linear-gradient(180deg, rgba(11,13,18,0) 35%, rgba(11,13,18,.9) 78%), var(--cmhk-tile-img, none) center 18% / 82% auto no-repeat, radial-gradient(ellipse at 70% 20%, rgba(201,163,91,.22), transparent 60%), linear-gradient(135deg, #151922, #001444);
  transition: transform .2s, box-shadow .2s;
}
.cmhk-origin:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,20,68,.25); }
.cmhk-origin__zh { color: var(--cmhk-gold); font-size: 30px; font-weight: 700; line-height: 1.2; }
.cmhk-origin__en { font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-top: 2px; }
.cmhk-origin__meta { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 8px; }
.cmhk-origin__cta { align-self: flex-start; margin-top: 16px; border: 1px solid var(--cmhk-gold); color: var(--cmhk-gold); padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: .04em; border-radius: 2px; transition: background .15s, color .15s; }
.cmhk-origin:hover .cmhk-origin__cta { background: var(--cmhk-gold); color: var(--cmhk-dark); }

/* ---------- Trending collections ---------- */
.cmhk-collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cmhk-collection { display: flex; flex-direction: column; background: #0b0d12; border-radius: var(--cmhk-radius); overflow: hidden; text-decoration: none !important; border: 1px solid rgba(201,163,91,.25); transition: transform .2s, box-shadow .2s; }
.cmhk-collection:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,20,68,.2); }
.cmhk-collection__img { display: block; aspect-ratio: 16 / 10; background: var(--cmhk-tile-img, none) center / contain no-repeat, var(--cmhk-img-bg); }
.cmhk-collection__body { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 18px; position: relative; }
.cmhk-collection__name { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.cmhk-collection__zh { color: var(--cmhk-gold); font-size: 15px; }
.cmhk-collection__meta { color: rgba(255,255,255,.6); font-size: 12.5px; }
.cmhk-collection__badge { position: absolute; right: 16px; top: -14px; background: var(--cmhk-gold); color: var(--cmhk-dark); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.cmhk-collection__badge span { font-weight: 600; }

/* ---------- Product grid + cards ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 0 0 32px !important; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; clear: none !important; display: flex; flex-direction: column;
  background: var(--cmhk-card); border: 1px solid var(--cmhk-line); border-radius: var(--cmhk-radius); overflow: hidden; padding: 0 !important; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce ul.products li.product:hover { border-color: var(--cmhk-gold); box-shadow: 0 10px 28px rgba(0,20,68,.08); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: inherit; text-decoration: none; padding: 0 0 4px; flex: 1 1 auto; }
.woocommerce ul.products li.product a img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--cmhk-img-bg); margin: 0 0 12px !important; padding: 12px; box-sizing: border-box; box-shadow: none !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important; line-height: 1.35; font-weight: 700; color: var(--cmhk-navy); padding: 0 14px !important; margin: 0 0 4px !important;
}
.cmhk-card__zh { color: var(--cmhk-gold-dark); font-size: 14px; line-height: 1.4; margin: 0 14px 4px; }
.cmhk-card__specs { color: var(--cmhk-muted); font-size: 12.5px; margin: 0 14px 6px; letter-spacing: .02em; }
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product .archive-product-categories { display: none !important; }

.cmhk-packs { border-top: 1px solid var(--cmhk-line); margin-top: auto; }
.cmhk-pack { padding: 10px 14px 12px; display: grid; gap: 6px; }
.cmhk-pack + .cmhk-pack { border-top: 1px dashed var(--cmhk-line); }
.cmhk-pack__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cmhk-pack__label { font-size: 13px; font-weight: 600; color: var(--cmhk-ink); }
.cmhk-pack__label span { color: var(--cmhk-muted); font-weight: 500; }
.cmhk-pack__price { font-size: 17px; font-weight: 700; color: var(--cmhk-navy); white-space: nowrap; }
.cmhk-pack__price .woocommerce-Price-currencySymbol { font-size: .75em; margin-right: 1px; }
.cmhk-stock { display: inline-block; justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; }
.cmhk-stock.is-in { color: #7a5d22; background: var(--cmhk-gold-soft); border: 1px solid rgba(201,163,91,.55); }
.cmhk-stock.is-out { color: var(--cmhk-muted); background: #f1f1f2; border: 1px solid #e2e2e5; }
.cmhk-pack__buy { display: flex; gap: 8px; align-items: stretch; }
.cmhk-qty, .woocommerce .cmhk-qty {
  width: 58px !important; flex: none; padding: 6px 4px !important; text-align: center; border: 1px solid var(--cmhk-line) !important; border-radius: 3px; font-size: 14px; height: auto !important; margin: 0 !important; background: #fff;
}
.woocommerce ul.products li.product .cmhk-add, .woocommerce .cmhk-add {
  flex: 1 1 auto; margin: 0 !important; text-align: center; background: var(--cmhk-gold) !important; color: var(--cmhk-dark) !important; border: 0; border-radius: 3px;
  font-weight: 700; font-size: 13.5px; padding: 9px 10px !important; line-height: 1.2; text-transform: none; letter-spacing: .02em;
}
.woocommerce ul.products li.product .cmhk-add:hover { background: var(--cmhk-gold-dark) !important; }
.woocommerce ul.products li.product .cmhk-add.loading { opacity: .6; }
.woocommerce ul.products li.product .cmhk-add.added::after { margin-left: 6px; }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; font-size: 13px; color: var(--cmhk-gold-dark); font-weight: 600; padding-top: 2px; }

/* Shop toolbar */
.woocommerce .woocommerce-result-count { color: var(--cmhk-muted); font-size: 13px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--cmhk-line); border-radius: 3px; padding: 6px 10px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border: 1px solid var(--cmhk-line); border-radius: 3px; min-width: 36px; padding: 8px; color: var(--cmhk-navy); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--cmhk-navy); color: #fff; border-color: var(--cmhk-navy); }

/* No photo yet */
.cmhk-nophoto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; aspect-ratio: 1 / 1; width: 100%;
  padding: 18px; box-sizing: border-box; margin: 0 0 12px; color: var(--cmhk-gold);
  background: radial-gradient(ellipse at 50% 35%, rgba(201,163,91,.18), transparent 65%), linear-gradient(160deg, #151922, #0b0d12 60%, #001444);
}
.cmhk-nophoto__cigar { width: 78%; height: auto; margin-bottom: 10px; }
.cmhk-nophoto__brand { color: var(--cmhk-gold); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.cmhk-nophoto__vitola { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.3; }
.cmhk-nophoto__note { color: rgba(255,255,255,.55); font-size: 11.5px; margin-top: 6px; letter-spacing: .03em; }
.single-product .cmhk-nophoto { aspect-ratio: 4 / 3; border-radius: var(--cmhk-radius); }
.single-product .cmhk-nophoto__vitola { font-size: 24px; }

/* ---------- Product page ---------- */
.single-product div.product .product_title { color: var(--cmhk-navy); font-weight: 700; font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.cmhk-single__zh { color: var(--cmhk-gold-dark); font-size: 19px; margin: 0 0 14px; }
.single-product div.product p.price, .single-product div.product span.price { color: var(--cmhk-navy) !important; font-size: 26px !important; font-weight: 700; }
.single-product div.product .woocommerce-product-gallery__image img { background: var(--cmhk-img-bg); }
.cmhk-specs { margin: 18px 0 22px; border-top: 1px solid var(--cmhk-line); }
.cmhk-specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--cmhk-line); font-size: 14.5px; }
.cmhk-specs dt { color: var(--cmhk-muted); font-weight: 600; margin: 0; }
.cmhk-specs dt span { font-weight: 500; }
.cmhk-specs dd { margin: 0; color: var(--cmhk-ink); }
.cmhk-specs dd span { color: var(--cmhk-muted); }
.cmhk-specs a { color: var(--cmhk-navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cmhk-gold); text-underline-offset: 3px; }
.single-product div.product .stock { font-weight: 700; color: #7a5d22 !important; }
.single-product div.product .stock.out-of-stock { color: var(--cmhk-muted) !important; }
.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 20px; }
.single-product div.product form.cart.variations_form { display: block; }
.single-product div.product form.cart .quantity .qty { height: 46px; width: 70px; border: 1px solid var(--cmhk-line); border-radius: 3px; }
.single-product div.product form.cart .single_add_to_cart_button {
  background: var(--cmhk-gold) !important; color: var(--cmhk-dark) !important; font-weight: 700; padding: 0 26px; min-height: 46px; border-radius: 3px; border: 0; letter-spacing: .02em;
}
.single-product div.product form.cart .single_add_to_cart_button:hover { background: var(--cmhk-gold-dark) !important; }
.single-product div.product table.variations { margin-bottom: 12px; }
.single-product div.product table.variations th.label label { color: var(--cmhk-navy); font-weight: 700; }
.single-product div.product table.variations select { border: 1px solid var(--cmhk-line); border-radius: 3px; padding: 8px 10px; min-width: 220px; }
.single-product div.product .woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; }
.single-product div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--cmhk-line); }
.single-product div.product .woocommerce-tabs ul.tabs::before { display: none; }
.single-product div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 18px 0 0 !important; padding: 0 !important; }
.single-product div.product .woocommerce-tabs ul.tabs li::before, .single-product div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product div.product .woocommerce-tabs ul.tabs li a { color: var(--cmhk-muted); font-weight: 700; padding: 10px 0 !important; }
.single-product div.product .woocommerce-tabs ul.tabs li.active a { color: var(--cmhk-navy); box-shadow: inset 0 -3px 0 var(--cmhk-gold); }
.single-product .woocommerce-Tabs-panel .cmhk-zh-name { display: none; }
.single-product .woocommerce-Tabs-panel > h2:first-child { display: none; }
.single-product .woocommerce-Tabs-panel p { line-height: 1.75; }
.single-product .related.products > h2, .single-product .upsells.products > h2 { color: var(--cmhk-navy); font-size: 22px; border-bottom: 1px solid var(--cmhk-line); padding-bottom: 10px; margin-bottom: 20px; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb { color: var(--cmhk-muted); font-size: 13px; margin: 18px 0; }
.woocommerce .woocommerce-breadcrumb a { color: var(--cmhk-gold-dark); }

/* Cart / checkout accents */
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--cmhk-gold) !important; color: var(--cmhk-dark) !important; border-color: var(--cmhk-gold) !important; font-weight: 700;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover { background: var(--cmhk-gold-dark) !important; }

/* ---------- Age confirmation ---------- */
html.cmhk-age-open, html.cmhk-age-open body { overflow: hidden; }
.cmhk-age { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,7,12,.92); backdrop-filter: blur(6px); }
.cmhk-age__box {
  background: linear-gradient(160deg, #0b0d12, #001444); color: #fff; border: 1px solid rgba(201,163,91,.55); border-top: 3px solid var(--cmhk-gold);
  border-radius: 8px; max-width: 520px; width: 100%; padding: 36px 28px 26px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.cmhk-age__box h2 { color: #fff; font-size: 26px; margin: 0 0 12px; line-height: 1.25; }
.cmhk-age__box h2 span { display: block; color: var(--cmhk-gold); font-size: 22px; margin-top: 4px; }
.cmhk-age__box p { color: rgba(255,255,255,.82); margin: 0 0 22px; line-height: 1.6; }
.cmhk-age__buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cmhk-age__denied { color: #f0c987 !important; }
.cmhk-age__warn { font-size: 12px; color: rgba(255,255,255,.55) !important; margin: 0 !important; letter-spacing: .03em; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .cmhk-topstrip__msg { display: none; }
  .cmhk-mainhead__inner { display: flex; flex-wrap: wrap; gap: 12px 16px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .cmhk-storebar__menu { justify-content: flex-start; }
  .cmhk-storebar__menu > li > a, .cmhk-storebar__drop summary { text-transform: none; letter-spacing: .02em; }
  .cmhk-megamenu { grid-template-columns: 1fr; gap: 16px; padding: 18px; max-height: 65vh; overflow-y: auto; }
  .cmhk-megamenu__links { border-right: 0; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 12px; }
  .cmhk-megamenu__grid { grid-template-columns: repeat(2, 1fr); }
  .cmhk-collection-grid { grid-template-columns: repeat(2, 1fr); }
  .cmhk-brandmark img { width: 48px; height: 48px; }
  .cmhk-brandmark__name { font-size: 20px; }
  .cmhk-brandmark__sub { font-size: 15px; }
  .cmhk-brandmark__tag { display: none; }
  .cmhk-mainhead__user { margin-left: auto; }
  .cmhk-mainhead__user > a > span:not(.cmhk-cart-count) { display: none; }
  .cmhk-search { order: 3; flex: 1 1 100%; max-width: none; }
  .cmhk-storebar__menu { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 8px; }
  .cmhk-storebar__menu::-webkit-scrollbar { display: none; }
  .cmhk-storebar__menu > li > a, .cmhk-storebar__drop summary { padding: 12px 10px; }
  .cmhk-storebar .cmhk-wrap { position: static; }
  .cmhk-shopfoot__grid { grid-template-columns: 1fr 1fr; }
  .cmhk-shopfoot__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cmhk-slide { height: 480px; }
  /* text slides: cigar on top, text right under it (no fixed height, no empty gap) */
  .cmhk-slide--text { height: auto; background-position: center 22px, center, center; background-size: 88% auto, auto, auto; }
  .cmhk-slide--text .cmhk-slide__inner { align-items: flex-start; height: auto; padding-top: 128px; padding-bottom: 52px; }
  .cmhk-slide--image .cmhk-slide__inner { align-items: flex-end; padding-bottom: 56px; }
  .cmhk-slide--image .cmhk-slide__inner::before { background: linear-gradient(0deg, rgba(5,7,12,.8) 0%, rgba(5,7,12,.2) 55%, transparent 100%); }
  .cmhk-slide__text { font-size: 15px; margin-bottom: 18px; }
  .cmhk-carousel__arrow { display: none; }
  .cmhk-hero { padding: 44px 0 50px; }
  .cmhk-hero__lead { font-size: 16px; }
  .cmhk-hero__cta .cmhk-btn { flex: 1 1 100%; text-align: center; }
  .cmhk-section { padding-top: 32px; }
  .cmhk-section-title h2 { font-size: 20px; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; padding: 0 10px !important; }
  .cmhk-card__zh, .cmhk-card__specs { margin-left: 10px; margin-right: 10px; }
  .cmhk-card__zh { font-size: 13px; }
  .cmhk-pack { padding: 8px 10px 10px; }
  .cmhk-pack__head { flex-direction: column; gap: 2px; }
  .cmhk-pack__price { font-size: 16px; }
  .cmhk-qty, .woocommerce .cmhk-qty { width: 46px !important; }
  .cmhk-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cmhk-collection-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cmhk-collection__name { font-size: 15px; }
  .cmhk-collection__badge { position: static; align-self: flex-start; margin-top: 6px; }
  /* photo on top, text below it (on phones the photo used to sit behind the title) */
  .cmhk-origin { min-height: 0; padding: 112px 20px 22px; background: var(--cmhk-tile-img, none) center 20px / min(88%, 420px) auto no-repeat, radial-gradient(ellipse at 70% 20%, rgba(201,163,91,.22), transparent 60%), linear-gradient(135deg, #151922, #001444); }
  .cmhk-origin__zh { font-size: 24px; }
  .cmhk-specs > div { grid-template-columns: 1fr 1.4fr; }
  .cmhk-age__box { padding: 28px 18px 20px; }
  .cmhk-age__box h2 { font-size: 22px; }
}

/* ---------- Views: home (landing) / brands have no product list; /cigars/ lines up with the sections ---------- */
.cmhk-view-home .main-container, .cmhk-view-brands .main-container { display: none !important; }
.cmhk-shop .main-container { width: auto; max-width: 1240px; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.cmhk-shop .main-container > .row { margin-left: 0; margin-right: 0; }
.cmhk-shop .main-container article.col-md-12 { padding-left: 0; padding-right: 0; }
.cmhk-view-brands .cmhk-section--brands { background: transparent; padding-top: 8px; }
.cmhk-collection__img { background-origin: content-box; padding: 18px 24px; box-sizing: border-box; }

/* ---------- Rails: one row of 4, the rest scrolls sideways (New Arrivals, Trending) ---------- */
.cmhk-section-title__end { display: inline-flex; align-items: center; gap: 14px; }
.cmhk-rail__nav { display: inline-flex; gap: 6px; }
.cmhk-rail__btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cmhk-gold); background: #fff; color: var(--cmhk-gold-dark); font-size: 20px; line-height: 1; padding: 0 0 2px; cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.cmhk-rail__btn:hover:not([disabled]) { background: var(--cmhk-gold); color: #111; }
.cmhk-rail__btn[disabled] { opacity: .35; cursor: default; }
.cmhk-rail.is-static .cmhk-rail__nav { display: none; }
.cmhk-rail .woocommerce ul.products, .cmhk-rail .cmhk-collection-grid {
  display: grid !important; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.cmhk-rail .woocommerce ul.products::-webkit-scrollbar, .cmhk-rail .cmhk-collection-grid::-webkit-scrollbar { display: none; }
.cmhk-rail ul.products > li, .cmhk-rail .cmhk-collection { scroll-snap-align: start; }
.cmhk-rail .cmhk-collection-grid { grid-auto-columns: calc((100% - 40px) / 3); } /* Trending keeps 3 per view */
.cmhk-rail .cmhk-collection:hover { transform: none; }
/* WooCommerce → Shop Layout sets how many cards are visible at once (computers only; tablets/phones below) */
@media (min-width: 992px) { .cmhk-rail[style*="--cmhk-pv"] .woocommerce ul.products, .cmhk-rail[style*="--cmhk-pv"] .cmhk-collection-grid { grid-auto-columns: calc((100% - (var(--cmhk-pv) - 1) * 20px) / var(--cmhk-pv)); } }
@media (max-width: 991px) { .cmhk-rail .woocommerce ul.products, .cmhk-rail .cmhk-collection-grid { grid-auto-columns: calc((100% - 20px) / 2.3); } }
@media (max-width: 600px) { .cmhk-rail .woocommerce ul.products, .cmhk-rail .cmhk-collection-grid { grid-auto-columns: 68%; gap: 14px; } .cmhk-rail__btn { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .cmhk-rail .woocommerce ul.products, .cmhk-rail .cmhk-collection-grid { scroll-behavior: auto; } }

/* Brand logos (Products → Brands → Thumbnail) */
.cmhk-brand-tile__logo { display: flex; align-items: center; justify-content: center; height: 100px; margin-bottom: 10px; }
.cmhk-brand-tile__logo img { max-height: 100px; max-width: 88%; width: auto; height: auto; object-fit: contain; }
.cmhk-brand-tile.has-logo .cmhk-brand-tile__name { font-size: 13px; }

/* Brand page banner: description on the left, large logo card on the right */
.cmhk-banner__body { display: flex; gap: 40px; align-items: center; justify-content: space-between; margin-top: 10px; }
.cmhk-banner__text { min-width: 0; flex: 1 1 auto; }
.cmhk-banner__logo {
  order: 2; flex: 0 0 auto; width: 340px; height: 240px; box-sizing: border-box; padding: 26px;
  display: flex; align-items: center; justify-content: center;
  background: #f6f1e6; border: 1px solid var(--cmhk-gold); border-radius: 0;
  box-shadow: inset 0 0 0 6px #f6f1e6, inset 0 0 0 7px var(--cmhk-gold); /* cigar-box label: gold double rule */
}
/* The logo files have white backgrounds: multiply lets the cream show through instead of a white box. */
.cmhk-banner__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.cmhk-banner__desc p { margin: 0 0 8px; line-height: 1.7; font-size: 15px; }
.cmhk-banner__desc p + p { color: rgba(255,255,255,.72); }
@media (max-width: 991px) { .cmhk-banner__logo { width: 260px; height: 190px; } .cmhk-banner__body { gap: 28px; } }
@media (max-width: 700px) {
  .cmhk-banner__body { flex-direction: column; align-items: stretch; gap: 18px; }
  .cmhk-banner__logo { order: 0; width: 100%; max-width: 320px; height: 200px; align-self: center; }
}

/* Dropdown brand grid with logos (same cream label as the brand page) */
.cmhk-megamenu__grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.cmhk-megamenu__grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border-bottom: 0; text-align: center; }
.cmhk-megamenu__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 84px; overflow: hidden; box-sizing: border-box; padding: 8px;
  background: #f6f1e6; border: 1px solid rgba(201,163,91,.55); transition: border-color .15s; }
.cmhk-megamenu__logo img { max-width: 100%; max-height: 66px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.cmhk-megamenu__grid a:hover .cmhk-megamenu__logo { border-color: var(--cmhk-gold); box-shadow: inset 0 0 0 1px var(--cmhk-gold); }
.cmhk-megamenu__name { font-size: 12.5px; line-height: 1.35; }
.cmhk-megamenu__name span { display: block; margin-left: 0 !important; font-size: 12px; }
.cmhk-megamenu__grid a:not(.has-logo) .cmhk-megamenu__name { padding: 10px 0; }
@media (max-width: 991px) { .cmhk-megamenu__grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; } }

/* ---------- Product gallery: one 4:3 frame for stick, box and open-box photos ---------- */
.single-product div.product .woocommerce-product-gallery__image > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--cmhk-img-bg); overflow: hidden; }
.single-product div.product .woocommerce-product-gallery__image > a > img { width: 100% !important; height: 100% !important; object-fit: contain; }
.single-product div.product .woocommerce-product-gallery .flex-viewport { height: auto !important; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 8px; margin-top: 8px !important; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 84px !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; background: var(--cmhk-img-bg); border: 1px solid transparent; padding: 4px; box-sizing: border-box; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { border-color: var(--cmhk-gold); }

/* ---------- My Account ---------- */
/* slim title band on My Account, Cart and Checkout (replaces Futurio's grey band) */
.woocommerce-account .full-head-img, .woocommerce-cart .full-head-img, .woocommerce-checkout .full-head-img { background: var(--cmhk-gold-soft) !important; border-bottom: 1px solid var(--cmhk-line); padding: 26px 0 22px !important; min-height: 0 !important; }
.woocommerce-account .full-head-img::after, .woocommerce-cart .full-head-img::after, .woocommerce-checkout .full-head-img::after { display: none !important; }
.woocommerce-account .full-head-img .single-title, .woocommerce-cart .full-head-img .single-title, .woocommerce-checkout .full-head-img .single-title { color: var(--cmhk-ink) !important; font-size: 30px; margin: 0 auto; text-shadow: none; }
.woocommerce-account .full-head-img .single-title::after, .woocommerce-cart .full-head-img .single-title::after, .woocommerce-checkout .full-head-img .single-title::after { content: "我的帳戶"; display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--cmhk-gold-dark); letter-spacing: .08em; }
.woocommerce-cart .full-head-img .single-title::after { content: "購物車"; }
.woocommerce-checkout .full-head-img .single-title::after { content: "結帳"; }
.woocommerce-order-received .full-head-img .single-title::after { content: "訂單已收到"; }
.woocommerce-account .woocommerce { display: flex; gap: 32px; align-items: flex-start; margin: 34px 0 50px; }
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation { flex: 0 0 240px; width: auto; float: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 6px 0; background: var(--cmhk-ink); border-radius: var(--cmhk-radius); border: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0 !important; background: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 20px; color: #e9e4d8 !important; font-size: 15px; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--cmhk-gold) !important; background: rgba(255,255,255,.04); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--cmhk-gold) !important; background: rgba(201,163,91,.12); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid rgba(255,255,255,.1) !important; margin-top: 6px !important; padding-top: 6px !important; }
.woocommerce-account .woocommerce-MyAccount-content { flex: 1 1 auto; min-width: 0; width: auto; float: none; }
.woocommerce-account .woocommerce-MyAccount-content h2, .woocommerce-account .woocommerce-MyAccount-content h3 { color: var(--cmhk-ink); }
.woocommerce-account .woocommerce-MyAccount-content .button, .woocommerce-account .woocommerce-form-login .button, .woocommerce-account .woocommerce-ResetPassword .button {
  background: var(--cmhk-gold) !important; color: var(--cmhk-dark) !important; border: 1px solid var(--cmhk-gold); border-radius: 3px; font-weight: 600; text-transform: none; box-shadow: none; }
.woocommerce-account .woocommerce-MyAccount-content .button:hover, .woocommerce-account .woocommerce-form-login .button:hover { background: var(--cmhk-gold-dark) !important; }
.woocommerce-account .woocommerce-MyAccount-content input.input-text, .woocommerce-account .woocommerce-MyAccount-content select, .woocommerce-account .woocommerce-form-login input.input-text {
  border: 1px solid var(--cmhk-line); border-radius: 3px; padding: 10px 12px; background: #fff; }
.woocommerce-account input.input-text:focus { border-color: var(--cmhk-gold); outline: none; box-shadow: 0 0 0 2px rgba(201,163,91,.25); }
.woocommerce-account table.shop_table { border: 1px solid var(--cmhk-line); border-radius: var(--cmhk-radius); border-collapse: separate; overflow: hidden; }
.woocommerce-account table.shop_table th { background: var(--cmhk-gold-soft); }
.woocommerce-account .woocommerce-Address { border: 1px solid var(--cmhk-line); border-radius: var(--cmhk-radius); padding: 18px 20px; }

/* dashboard */
.cmhk-account-hello h2 { margin: 0 0 4px; font-size: 24px; }
.cmhk-account-card strong span[lang] { display: block; margin: 2px 0 0 !important; font-size: 14px; }
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.cmhk-btn):not(.cmhk-account-card), .woocommerce-account .woocommerce-LostPassword a { color: var(--cmhk-gold-dark); }
.cmhk-account-hello h2 span[lang], .cmhk-account-dash h3 span[lang], .cmhk-account-card strong span[lang] { color: var(--cmhk-gold-dark); font-weight: 500; margin-left: 4px; }
.cmhk-account-hello p { color: var(--cmhk-muted); margin: 0 0 22px; }
.cmhk-account-recent { border: 1px solid var(--cmhk-line); border-radius: var(--cmhk-radius); padding: 18px 20px; margin-bottom: 22px; }
.cmhk-account-recent h3 { margin: 0 0 12px; font-size: 17px; }
.cmhk-account-orders { list-style: none; margin: 0 0 10px; padding: 0; }
.cmhk-account-orders li a { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--cmhk-line); color: var(--cmhk-ink); text-decoration: none; }
.cmhk-account-orders li:first-child a { border-top: 0; }
.cmhk-account-orders li a:hover strong { color: var(--cmhk-gold-dark); }
.cmhk-account-orders__total { font-weight: 600; text-align: right; }
.cmhk-status { padding: 2px 9px; border-radius: 999px; font-size: 12.5px; background: #eee; color: #444; }
.cmhk-status--processing { background: #fff3d6; color: #8a5a00; }
.cmhk-status--completed { background: #e3f3e6; color: #1d6b32; }
.cmhk-status--on-hold, .cmhk-status--pending { background: #eef1f6; color: #3c4a63; }
.cmhk-status--cancelled, .cmhk-status--refunded, .cmhk-status--failed { background: #f8e5e5; color: #8a1f1f; }
.cmhk-account-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: var(--cmhk-muted); margin: 0; }
.cmhk-account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.cmhk-account-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--cmhk-line); border-radius: var(--cmhk-radius); color: var(--cmhk-ink) !important; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cmhk-account-card .cmhk-icon { width: 26px; height: 26px; color: var(--cmhk-gold-dark); margin-bottom: 4px; }
.cmhk-account-card strong { font-size: 15.5px; }
.cmhk-account-card > span { color: var(--cmhk-muted); font-size: 13.5px; line-height: 1.5; }
.cmhk-account-card:hover { border-color: var(--cmhk-gold); box-shadow: 0 4px 14px rgba(0,0,0,.06); }

/* logged-out: log-in form */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 440px; margin: 40px auto 60px; }
.woocommerce-account .woocommerce-form-login, .woocommerce-account .woocommerce-ResetPassword { border: 1px solid var(--cmhk-line) !important; border-top: 3px solid var(--cmhk-gold) !important; border-radius: var(--cmhk-radius); padding: 26px 28px !important; margin: 0 !important; background: #fff; }
.woocommerce-account:not(.logged-in) .woocommerce > h2 { text-align: center; font-size: 26px; margin-bottom: 16px; }
.woocommerce-account:not(.logged-in) .woocommerce > h2::after { content: " · 登入"; color: var(--cmhk-gold-dark); font-weight: 500; }
.woocommerce-account .woocommerce-form-login .button { width: 100%; padding: 12px; margin-top: 8px; }
.woocommerce-account .woocommerce-form-login__rememberme { display: block; margin: 4px 0 6px; }
.woocommerce-account .woocommerce-LostPassword { text-align: center; margin-top: 14px; }
.cmhk-account-turnstile { margin: 6px 0 10px; }

@media (max-width: 782px) {
  .woocommerce-account .woocommerce { flex-direction: column; gap: 20px; margin-top: 22px; }
  .woocommerce-account .woocommerce-MyAccount-navigation { flex: none; width: 100%; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
  .woocommerce-account .woocommerce-MyAccount-navigation li a { white-space: nowrap; border-bottom: 3px solid transparent; padding: 12px 14px; }
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { border-bottom-color: var(--cmhk-gold); }
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { border-top: 0 !important; margin: 0 !important; padding: 0 !important; }
  .cmhk-account-orders li a { grid-template-columns: 1fr auto; }
  .cmhk-account-orders li a > span:nth-child(2) { grid-column: 1; font-size: 13px; color: var(--cmhk-muted); }
}
