/* ==========================================================================
   Vietnam Wooden Ships — clone of hoatayviet.net (homepage)
   Vanilla HTML/CSS/JS. All values extracted from the original computed styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --c-primary:        #0056a8;   /* links, section rules, cart badge outline */
  --c-primary-dark:   #003eaa;   /* header bottom bar, section title chip     */
  --c-secondary:      #e3411f;   /* "DANH MỤC SẢN PHẨM" block                 */
  --c-accent:         #ffeba4;   /* nav hover / active                        */
  --c-cta:            #ef4a0e;   /* add-to-cart / checkout                    */
  --c-success:        #81d742;
  --c-alert:          #ea3a3c;

  /* Neutrals */
  --c-text:           #333;
  --c-heading:        #111;
  --c-muted:          #555;
  --c-topbar-bg:      #eee;
  --c-header-bg:      #fff;
  --c-line:           #ececec;
  --c-line-soft:      #ddd;

  /* Footer */
  --c-footer-bg:      #001a38;
  --c-footer-bottom:  #00000a;
  --c-ribbon-a:       #001a38;   /* .vi-left-title fold, left edge   */
  --c-ribbon-b:       #0d3279;   /* .vi-left-title fold, bottom edge */

  /* Type */
  --f-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --f-head: "Roboto Condensed", "Roboto", Arial, sans-serif;

  /* Layout */
  --container:       1140px;   /* .container / .row            */
  --container-sm:    1122.5px; /* .row-small                   */
  --gutter:          15px;     /* .container side padding      */
  --gutter-sm:       5px;      /* .row-small > .col            */

  /* Header metrics */
  --h-topbar:        30px;     /* min-height; grows with content to 36px */
  --h-main:          100px;
  --h-main-sm:       70px;
  --h-bottom:        44px;

  /* Motion */
  --t-fast:  .2s;
  --t-base:  .3s;
  --t-slow:  .6s;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { background-color: var(--c-footer-bottom); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--c-heading);
  margin: 0 0 .5em;
  line-height: 1.3;
}

a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-heading); }

img { max-width: 100%; height: auto; display: block; border: 0; }
ul { list-style: none; margin: 0; padding: 0; }
p  { margin: 0 0 1em; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.125em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Flatsome visibility utilities. Breakpoints: small <=549, medium 550-849, large >=850 */
@media (max-width: 849px) { .hide-for-medium { display: none !important; } }
@media (min-width: 850px) { .show-for-medium { display: none !important; } }
@media (max-width: 549px) { .hide-for-small  { display: none !important; } }
@media (min-width: 550px) { .show-for-small  { display: none !important; } }

/* --------------------------------------------------------------------------
   3. Header shell + sticky
   -------------------------------------------------------------------------- */
.header { position: relative; width: 100%; z-index: 30; }

.header-wrapper {
  width: 100%;
  z-index: 30;
  position: relative;
  background-color: var(--c-header-bg);
  transition: background-color var(--t-base), opacity var(--t-base);
}

/* Flatsome: .stuck => fixed, and every .hide-for-sticky element collapses,
   leaving only the blue bottom bar on screen. */
.header-wrapper.stuck {
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, .15);
  animation: stuckMoveDown .6s;
}
.header-wrapper.stuck .hide-for-sticky { display: none; }

@keyframes stuckMoveDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Shared flex row used by all three header bands */
.header-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-col { display: flex; align-items: center; max-height: 100%; }
.header-col.is-grow { flex: 1; }

/* --- 3a. Top bar ---------------------------------------------------------- */
.header-top {
  display: flex;
  align-items: center;
  min-height: var(--h-topbar);
  background-color: var(--c-topbar-bg);
  position: relative;
  z-index: 11;
  font-size: 14px;
}

.topbar-nav { display: flex; align-items: center; }
.topbar-nav > li { position: relative; margin: 0 .7em; }
.topbar-nav > li:first-child { margin-left: 0; }
.topbar-nav > li:last-child  { margin-right: 0; }

/* nav-divided: a hairline before every item except the first */
.topbar-nav > li + li::before {
  content: "";
  position: absolute;
  top: 50%; left: -1em;
  width: 1px; height: 15px;
  margin-top: -7px;
  border-left: 1px solid rgba(0, 0, 0, .1);
}

.topbar-nav a,
.topbar-nav .topbar-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 22.4px;
}
.topbar-nav a:hover { color: var(--c-heading); }
.topbar-nav .icon { font-size: 14px; opacity: .85; }

.lang-toggle {
  font-family: var(--f-head);
  font-size: 16px;
  line-height: 25.6px;   /* this link is what makes the top bar 36px tall */
  color: var(--c-muted);
  cursor: pointer;
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
}
.lang-toggle:hover { color: var(--c-heading); }

/* --- 3b. Main bar (logo / search / cart) ---------------------------------- */
.header-main {
  height: var(--h-main);
  position: relative;
  z-index: 10;
}
.header-main .header-row { height: 100%; }

.logo { width: 200px; flex: none; }
.logo a { display: block; color: var(--c-primary); }
.logo img { max-height: var(--h-main); width: auto; }
@media (max-width: 549px) { .logo { width: unset; } }

.header-search { flex: 1; padding-left: 30px; }
.searchform {
  display: flex;
  align-items: center;
  width: 81%;
  position: relative;
}
.searchform > * { flex: none; }

.search-cats,
.search-field {
  height: 40px;
  border: 1px solid rgba(0, 0, 0, .09);
  background-color: rgba(0, 0, 0, .03);
  border-radius: 0;
  padding: 0 10.2px;
  font-size: 13.6px;
  color: var(--c-text);
  outline: 0;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.search-cats { width: 80px; flex: none; margin-right: 4px; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 6px;
  padding-right: 26px; cursor: pointer; }
.search-field { width: calc(100% - 87px); flex: none; padding-right: 48px; }
.search-field::placeholder { color: #999; opacity: 1; }
.search-cats:focus,
.search-field:focus { border-color: var(--c-primary); background-color: #fff; }

.search-submit {
  width: 42px; height: 34px;
  margin-left: -44px;
  align-self: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 12px;
  color: var(--c-heading);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--t-fast);
  z-index: 1;
}
.search-submit:hover { color: var(--c-primary); }
.search-submit .icon { font-size: 16px; }

.header-tools { display: flex; align-items: center; }
.header-tools > li { position: relative; display: flex; align-items: center; height: 44px; }
.header-tools > li.header-divider { height: 30px; align-self: center; }
.header-tools > li.account-item { margin-right: 7px; }
.header-tools > li.cart-item { margin-left: 7px; }

.account-link { display: inline-flex; align-items: center; padding: 10px 0; width: 20px; }
.account-link .icon { width: 20px; height: 24px; }

.header-divider {
  border-left: 1px solid rgba(0, 0, 0, .1);
  width: 1px;
  height: 30px;
  margin: 0 7.5px;
}

.cart-link {
  display: inline-flex; align-items: center;
  padding: 5px 0;
  color: var(--c-heading);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cart-link { padding: 10px 0; }
.cart-link:hover { color: var(--c-primary); }

/* basket glyph + count bubble ([data-icon-label="0"] hides the bubble) */
.cart-glyph { position: relative; margin-left: 5px; display: inline-flex; }
.cart-glyph .icon { width: 23px; height: 24px; }
.cart-glyph[data-icon-label]::after {
  content: attr(data-icon-label);
  position: absolute;
  top: -10px; right: -10px;
  min-width: 17px; height: 17px;
  padding-inline: 2px;
  border-radius: 99px;
  background-color: var(--c-cta);
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, .3);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  letter-spacing: -.5px;
  text-align: center;
  opacity: .9;
  z-index: 1;
}
.cart-glyph[data-icon-label="0"]::after { display: none; }

/* The little outlined basket badge (::after draws the handle) */
.cart-icon { display: inline-block; position: relative; font-size: .66em; }
.cart-icon strong {
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  border-radius: 0;
  font-weight: 700;
  font-family: Helvetica, Arial, sans-serif;
  margin: .3em 0;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  width: 2.2em; height: 2.2em;
  font-size: 1em; line-height: 1.9em;
  transition: background-color var(--t-base), color var(--t-base);
}
.cart-icon strong::after {
  content: " ";
  position: absolute;
  bottom: 100%; left: 50%;
  margin-left: -7px;
  width: 14px; height: 8px;
  border: 2px solid var(--c-primary);
  border-bottom: 0;
  border-top-left-radius: 99px;
  border-top-right-radius: 99px;
  transition: height .1s ease-out;
  pointer-events: none;
}
.cart-icon:hover strong { background-color: var(--c-primary); color: #fff; }
.cart-icon:hover strong::after { height: 10px; }


/* --- 3c. Bottom bar: mega menu + main nav + phone ------------------------- */
.header-bottom {
  display: flex;
  align-items: center;
  min-height: var(--h-bottom);
  background-color: var(--c-primary-dark);
  position: relative;
  z-index: 9;
}

/* The three columns: 25% / auto centre / 1fr right */
.header-bottom .header-row > .nav-left   { width: 25%; padding-right: 5px; margin-left: -2px; flex: none; }
.header-bottom .header-row > .nav-center { flex: none; }
.header-bottom .header-row > .nav-right  { flex: 1; justify-content: flex-end; }

/* -- Mega menu (vertical product categories) ------------------------------- */
.mega-menu { width: 100%; background: var(--c-secondary); position: relative; }

.mega-menu-title {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 0 10px 15px;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .02em;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.mega-menu-title .icon { font-size: 15px; }

.mega-menu-list {
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 1px solid var(--c-line-soft);
  background: #fff;
  display: none;
  z-index: 8;
}
/* On the home page the list is permanently open under the button… */
body.is-home .mega-menu-list { display: block; }
/* …but once the header sticks it collapses back into a real dropdown. */
.header-wrapper.stuck .mega-menu-list { margin-top: 0; display: none; }
.mega-menu-list.is-open { display: block !important; }

.mega-menu-list > li { position: relative; }
.mega-menu-list a {
  display: block;
  padding: 7px 15px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mega-menu-list li:hover > a { background: #f5f5f5; }
.mega-menu-list li + li > a { border-top: 1px solid #f1f1f1; }

/* -- Main nav -------------------------------------------------------------- */
.main-nav { display: flex; align-items: center; }
.main-nav > li { position: relative; margin: 0 9px; }
.main-nav > li:first-child { margin-left: 0; }
.main-nav > li:last-child  { margin-right: 0; }

.main-nav > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  margin-right: 7px;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  transition: color var(--t-fast);
}
.main-nav > li:first-child > a { margin-left: 15px; }
.main-nav > li > a:hover,
.main-nav > li.is-active > a,
.main-nav > li.is-open > a { color: var(--c-accent); }
.main-nav > li > a .icon { width: 11px; height: 19px; margin-left: 3.2px; }

/* Dropdown under "HƯỚNG DẪN" */
.nav-dropdown {
  position: absolute;
  top: 100%; left: -99999px;
  min-width: 260px;
  max-height: 0;
  padding: 20px;
  margin: 0;
  opacity: 0;
  z-index: 9;
  background-color: #fff;
  border: 2px solid #fff;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
  color: #777;
  text-align: left;
  transition: opacity .25s;
}
.main-nav > li.is-open > .nav-dropdown {
  left: -15px;
  max-height: none;
  opacity: 1;
}
.nav-dropdown > li > a {
  display: block;
  margin: 0 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-muted);
}
.nav-dropdown > li:last-child > a { border-bottom: 0; }
.nav-dropdown > li > a:hover { color: var(--c-primary); }

/* little white arrow above the open dropdown */
.main-nav > li.has-dropdown::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 50%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-bottom-color: #fff;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity .25s;
}
.main-nav > li.has-dropdown.is-open::after { opacity: 1; }

/* -- Header phone ---------------------------------------------------------- */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0 9px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 25.6px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  transition: color var(--t-fast);
}
.header-phone:hover { color: #fff; }
.header-phone .icon { font-size: 16px; }

/* -- Mobile bar ------------------------------------------------------------ */
.burger,
.cart-toggle {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  background: none;
  border: 0;
  color: var(--c-primary-dark);
  font-size: 20px;
}
.burger .icon      { width: 25px; height: 30px; }
.cart-toggle .icon { width: 23px; height: 24px; }

/* --------------------------------------------------------------------------
   4. Grid (Flatsome .row / .col subset)
   -------------------------------------------------------------------------- */
.row {
  display: flex;
  flex-flow: row wrap;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.row-small { max-width: var(--container-sm); margin-inline: auto; }
.row-small > .col { padding: 0 var(--gutter-sm) 10px; margin-bottom: 0; }

.col { position: relative; margin: 0; padding: 0 var(--gutter) 30px; width: 100%; }

/* A row nested inside a column pulls back over the column gutter, so its
   children line up with the outer grid (Flatsome does the same). */
.col > .row-small { margin-inline: calc(var(--gutter-sm) * -1); max-width: none; width: auto; }

.gap { display: block; height: 10px; }

/* Product grids: 2 up by default, 4 up from 850px (matches small-columns-2 /
   large-columns-4 on the original). */
.grid-products > .col { max-width: 50%; flex-basis: 50%; }
@media (min-width: 850px) { .grid-products > .col { max-width: 25%; } }

/* Hero split: 25 / 75 from 550px, stacked below. */
.col-3 { max-width: 100%; flex-basis: 100%; }
.col-9 { max-width: 100%; flex-basis: 100%; }
@media (min-width: 550px) {
  .col-3 { max-width: 25%; flex-basis: 25%; }
  .col-9 { max-width: 75%; flex-basis: 75%; }
}

/* --------------------------------------------------------------------------
   5. Hero slider
   -------------------------------------------------------------------------- */
.hero-row { padding-top: 0; }

.slider {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform var(--t-slow) cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.slider.is-dragging .slider-track { transition: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  padding-top: 300px;             /* the original banner height */
  background-color: #fff;
}
.slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 45% 68%;   /* from the original banner CSS */
  background-repeat: no-repeat;
}
.slide .slide-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(190, 190, 190, .2);
}

/* Arrows — hidden until the slider is hovered, then eased in */
.slider-arrow {
  position: absolute;
  top: 10%; bottom: 10%;
  width: 36px;
  padding: 0; margin: 0;
  background: none;
  border: 0;
  color: #fff;
  opacity: 0;
  z-index: 2;
  transition: opacity var(--t-base), transform var(--t-base);
}
.slider-arrow.prev { left: 2%;  transform: translateX(20%); }
.slider-arrow.next { right: 2%; transform: translateX(-20%); }
.slider:hover .slider-arrow { opacity: .7; transform: translateX(0) !important; }
.slider-arrow:hover { opacity: 1; }

.slider-arrow .icon {
  width: 36px; height: 36px;
  padding: 20%;
  border: 2px solid currentColor;
  border-radius: 100%;
  fill: currentColor;
  transition: background-color var(--t-base), border-color var(--t-base), fill var(--t-base);
}
.slider-arrow:hover .icon {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  fill: #fff !important;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 15px; left: 20%; right: 20%;
  padding: 0; margin: 0;
  text-align: center;
  line-height: 1;
  z-index: 2;
}
.slider-dots button {
  display: inline-block;
  width: 12px; height: 12px;
  margin: 0 5px; padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: none;
  opacity: .4;
  transition: opacity var(--t-base), background-color var(--t-base);
}
.slider-dots button:hover { opacity: .7; }
.slider-dots button[aria-selected="true"] { background-color: #fff; opacity: 1; }

@media (max-width: 549px) { .slider-arrow { display: none; } }

/* --------------------------------------------------------------------------
   6. Section header (the blue ribbon)
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  min-height: 52px;
  border-bottom: 1px solid var(--c-primary);
}

.section-title {
  position: relative;
  margin: 0;
  padding: 3px 10px;
  width: auto;
  flex: none;
  background: var(--c-primary-dark);
  color: #fff;
  font-size: 18px;
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.6;
}
.section-title a { color: #fff; }
.section-title a:hover { color: var(--c-accent); }
/* the folded-ribbon tail */
.section-title::after {
  content: "";
  position: absolute;
  top: 0; left: 100%;
  border: 18px solid transparent;
  border-left-color: var(--c-ribbon-a);
  border-bottom-color: var(--c-ribbon-b);
}

.section-links {
  text-align: right;
  padding-top: 32px;      /* matches the original's 51px-tall link block */
  font-size: 14px;
  line-height: 19px;
  color: var(--c-muted);
}
.section-links a { color: var(--c-muted); font-size: 14px; margin-left: 15px; }
.section-links a:first-child { margin-left: 0; }
.section-links a:hover { color: var(--c-primary); }

@media (max-width: 549px) {
  .section-head { flex-direction: column; align-items: stretch; gap: 0; }
  .section-title { align-self: flex-start; }
  .section-links { text-align: left; padding-top: 8px; padding-bottom: 6px; }
  .section-head { min-height: 0; }
  .section-links a { margin-left: 0; margin-right: 12px; }
}

/* --------------------------------------------------------------------------
   7. Product card
   -------------------------------------------------------------------------- */
.product-card { position: relative; width: 100%; }

.product-media {
  position: relative;
  overflow: hidden;
  padding-top: 100%;            /* square, like .image-cover */
  background-position: 50% 50%;
  background-size: cover;
}
.product-media > a { display: block; }

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: opacity var(--t-slow), transform var(--t-slow), filter var(--t-slow);
}

/* second photo, revealed on hover */
.product-media .img-back { opacity: 0; z-index: 1; }
.product-card:hover .img-back { opacity: 1; }

/* the little basket button that slides up from the bottom edge */
.product-tools {
  position: absolute;
  left: 10px; bottom: 0;
  margin: 5px;
  z-index: 2;
  opacity: 0;
  transform: translateY(100%) translateZ(0);
  transition: opacity .5s, transform var(--t-base);
}
.product-card:hover .product-tools { opacity: 1; transform: translateY(0) translateZ(0); }
.product-tools .cart-icon strong { background-color: #fff; }

.product-body { padding: 9.8px 10px; text-align: center; font-size: 14px; }
.product-name {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.product-name a { color: var(--c-primary); }
.product-name a:hover { color: var(--c-heading); }
.product-price { color: var(--c-cta); font-weight: 700; font-size: 14px; }

@media (max-width: 549px) {
  .product-body { font-size: 85%; }
  .product-tools { opacity: 1; transform: none; }   /* touch: always visible */
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.footer-widgets {
  background-color: var(--c-footer-bg);
  font-size: 14px;
  color: #fff;
  padding-top: 25px;
}
.footer-widgets .row { display: flex; flex-flow: row wrap; }
.footer-widgets .widget { padding: 0 var(--gutter); margin-bottom: 25px; width: 100%; }
@media (min-width: 850px) { .footer-widgets .widget { width: 33.3333%; max-width: 33.3333%; } }

.widget-title {
  color: #fff;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}
.is-divider {
  height: 3px; width: 30px;
  display: block;
  margin: .66em auto 1em;
  background-color: #000;
}
.footer-widgets .textwidget { padding-top: 6px; }
.footer-widgets p { margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.footer-widgets .icon { margin-top: .35em; flex: none; opacity: .9; }
.footer-widgets a { color: #fff; }
.footer-widgets a:hover { color: #08c; }
.footer-widgets .muted { color: var(--c-text); }   /* faithful to the original */

.footer-map { width: 100%; height: 150px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   9. Floating widgets
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--c-heading);
  opacity: 0;
  pointer-events: none;
  transform: translateY(30%);
  transition: opacity var(--t-base), transform var(--t-base), background-color var(--t-base);
  z-index: 40;
}
.back-to-top.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
@media (max-width: 849px) { .back-to-top { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .header-wrapper.stuck { animation: none; }
  .slider-track { transition: none; }
}

/* --------------------------------------------------------------------------
   10. Mobile off-canvas menu
   -------------------------------------------------------------------------- */
.offcanvas-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  z-index: 90;
}
.offcanvas-backdrop.is-open { opacity: 1; pointer-events: auto; }

.offcanvas {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 260px; max-width: 85vw;
  background: #fff;
  z-index: 91;
  transform: translateX(-100%);
  transition: transform var(--t-base) ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.offcanvas.is-open { transform: translateX(0); }
.offcanvas[hidden] { display: block; }   /* animated, not display-toggled */

.offcanvas-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px;
  background: var(--c-primary-dark);
  color: #fff;
}
.offcanvas-head strong { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.offcanvas-close { background: none; border: 0; color: #fff; font-size: 18px; padding: 4px; line-height: 1; }

.offcanvas .searchform { width: 100%; padding: 12px 15px; }

.offcanvas-nav > li > a,
.offcanvas-nav .sub > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.offcanvas-nav > li > a:hover { color: var(--c-primary); background: #f7f7f7; }
.offcanvas-nav .sub { display: none; background: #fafafa; }
.offcanvas-nav li.is-open > .sub { display: block; }
.offcanvas-nav .sub > li > a { padding-left: 28px; text-transform: none; font-weight: 400; }
.offcanvas-nav .toggle-sub {
  background: none; border: 0; padding: 4px 6px; color: inherit; line-height: 1;
  transition: transform var(--t-fast);
}
.offcanvas-nav li.is-open > a .toggle-sub { transform: rotate(180deg); }
.offcanvas-nav .label-cat { background: var(--c-secondary); color: #fff; }

body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   11. Inner pages (category listing + product detail)
   -------------------------------------------------------------------------- */
.page-wrap { padding: 20px 0 40px; }

.breadcrumb { font-size: 13px; color: var(--c-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { margin: 0 6px; opacity: .5; }

.product-detail { display: flex; flex-flow: row wrap; }
.product-detail .gallery-col { width: 100%; padding: 0 var(--gutter) 20px; }
.product-detail .info-col    { width: 100%; padding: 0 var(--gutter) 20px; }
@media (min-width: 850px) {
  .product-detail .gallery-col { width: 41.6667%; }
  .product-detail .info-col    { width: 58.3333%; }
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: #fff;
}
.gallery-main { aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Zoom button + lightbox */
.gallery-zoom {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); border-radius: 0;
  background: rgba(255,255,255,.92); color: #333; cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.gallery-zoom:hover { color: var(--c-primary); border-color: var(--c-primary); }

body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88);
}
.lightbox.is-open { display: flex; }
.lb-figure { margin: 0; width: min(86vw, 900px); text-align: center; }
.lb-stage { width: 100%; height: min(62vh, 640px); background: #fff; display: flex; align-items: center; justify-content: center; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lb-thumbs { display: flex; gap: 6px; justify-content: center; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; }
.lb-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; background: #fff; border: 2px solid transparent; opacity: .6; cursor: pointer; transition: opacity var(--t-fast), border-color var(--t-fast); }
.lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--c-primary); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-count { color: #fff; font-size: 14px; margin-top: 10px; }
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.15); transition: background var(--t-fast);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; font-size: 28px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 24px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 549px) {
  .lb-nav { width: 36px; height: 52px; }
  .lb-figure { width: 100vw; }
  .lb-stage { height: 50vh; }
}

.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gallery-thumbs button {
  width: 68px; height: 68px; padding: 0;
  border: 1px solid var(--c-line);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.gallery-thumbs button:hover { border-color: var(--c-primary); }
.gallery-thumbs button[aria-selected="true"] { border-color: var(--c-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-detail h1 { font-size: 24px; margin-bottom: .3em; }
.product-detail .is-divider { margin-left: 0; background-color: rgba(0,0,0,.1); }

.spec-list { margin: 0 0 18px; }
.spec-list div { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--c-line); }
.spec-list dt { flex: none; width: 130px; color: var(--c-muted); }
.spec-list dd { margin: 0; font-weight: 700; color: var(--c-heading); }

.btn-buy {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 10px 26px;
  background: var(--c-cta);
  color: #fff !important;
  border-radius: 3px;
  transition: filter var(--t-fast), transform var(--t-fast);
}
.btn-buy strong { font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.btn-buy span   { font-size: 12px; opacity: .9; font-weight: 400; }
.btn-buy:hover  { filter: brightness(1.08); transform: translateY(-1px); }

.product-meta { margin-top: 16px; font-size: 14px; color: var(--c-muted); }
.product-desc { margin-top: 26px; }
.product-desc img { margin: 12px 0; }

.empty-note { padding: 40px 0; color: var(--c-muted); }

/* --- Language switcher ---------------------------------------------------- */
.lang-switch { position: relative; }
.lang-menu {
  position: absolute; top: 100%; right: 0; left: auto;
  min-width: 140px; margin: 0; padding: 8px 0;
  list-style: none;
  background: #fff;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden;
  transition: opacity .2s;
  z-index: 30;
}
.lang-switch.is-open > .lang-menu { opacity: 1; visibility: visible; }
.lang-menu li { margin: 0; }
.lang-menu li::before { display: none; }
.lang-menu a {
  display: block; width: 100%; padding: 7px 20px;
  text-align: left; text-decoration: none;
  font-size: 14px; color: var(--c-muted);
}
.lang-menu a:hover { color: var(--c-primary); }
.lang-menu a[aria-current="true"] { color: var(--c-primary); font-weight: 700; }
.offcanvas-lang { display: flex; gap: 8px; padding: 12px 15px; }
.offcanvas-lang a {
  flex: 1; padding: 8px; background: #fff; text-align: center; text-decoration: none;
  border: 1px solid var(--c-line); color: var(--c-muted);
}
.offcanvas-lang a[aria-current="true"] { border-color: var(--c-primary); color: var(--c-primary); font-weight: 700; }

/* --- Cart & checkout ------------------------------------------------------ */
.buy-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 6px 0 4px; }
.qty-box { display: inline-flex; border: 1px solid var(--c-line-soft); border-radius: 3px; background: #fff; }
.qty-box button { width: 34px; background: #f7f7f7; border: 0; font-size: 18px; cursor: pointer; color: var(--c-muted); }
.qty-box button:hover { background: #eee; }
.qty-box input { width: 48px; border: 0; text-align: center; font: inherit; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-cart, .btn-checkout {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--c-primary); color: #fff !important;
  font: 700 15px var(--f-head); text-transform: uppercase; letter-spacing: .02em;
}
.btn-cart:hover, .btn-checkout:hover { filter: brightness(1.1); }
.btn-checkout { width: 100%; background: var(--c-cta); margin-top: 12px; padding: 13px; }
.added-note { margin-top: 10px; font-size: 14px; color: #2a7a1c; }
.added-note a { text-decoration: underline; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; margin: 10px 0 40px; }
@media (max-width: 849px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cart-thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 3px; background: #f3f3f3; }
.cart-name { font-weight: 700; color: var(--c-heading); }
.cart-unit { font-size: 14px; color: var(--c-muted); margin: 3px 0; }
@media (max-width: 549px) {
  .cart-row { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-thumb img { width: 64px; height: 64px; }
  .cart-row .qty-box { grid-column: 2; justify-self: start; }
  .cart-row .cart-remove { grid-column: 2; justify-self: start; }
}

.cart-summary { padding: 20px; border: 1px solid var(--c-line-soft); border-radius: 3px; background: #fafafa; }
.cart-summary h2 { margin: 0 0 12px; font: 700 18px var(--f-head); text-transform: uppercase; }
.cart-summary dl { margin: 0; }
.cart-summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-line); }
.cart-summary dt { color: var(--c-muted); }
.cart-summary dd { margin: 0; text-align: right; }
.cart-summary .total { font-weight: 700; font-size: 17px; border-bottom: 0; }
.cart-summary .muted { font-size: 13px; color: var(--c-muted); margin: 10px 0 0; }
.link-continue { display: block; margin-top: 12px; text-align: center; font-size: 14px; text-decoration: underline; }
.order-lines { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--c-line-soft); }

.checkout fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.checkout legend { margin-bottom: 12px; padding: 0; font: 700 18px var(--f-head); text-transform: uppercase; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-line-soft); border-radius: 3px; font: inherit; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--c-alert); }
.field-error { margin: 4px 0 0; min-height: 0; font-size: 13px; color: var(--c-alert); }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 10px; border: 1px solid var(--c-line-soft); border-radius: 3px; cursor: pointer; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.pay-option input { margin-top: 4px; }
.pay-option small { display: block; margin-top: 2px; color: var(--c-muted); }
.order-done { max-width: 560px; margin: 10px auto 50px; padding: 26px; text-align: center; border: 1px solid var(--c-line-soft); border-radius: 3px; }
.order-done h2 { color: #2a7a1c; margin-top: 0; }
.order-done .btn-cart { margin-top: 18px; }

/* --- Header refinement ----------------------------------------------------
   Navy top bar, solid search bar, visible account/cart controls, a nav with
   an accent underline, and a call-to-action phone button. */

/* top bar */
.header-top { background-color: var(--c-footer-bg); }
.topbar-nav a,
.topbar-nav .topbar-text,
.lang-toggle { color: rgba(255, 255, 255, .82); }
.topbar-nav a:hover,
.lang-toggle:hover { color: #fff; }
.topbar-nav > li + li::before { border-left-color: rgba(255, 255, 255, .2); }
.topbar-nav .icon { color: var(--c-accent); opacity: 1; }

/* search: one joined bar, blue submit */
.searchform { width: 92%; box-shadow: 0 0 0 0 rgba(0, 86, 168, 0); transition: box-shadow var(--t-fast); }
.searchform:focus-within { box-shadow: 0 0 0 4px rgba(0, 86, 168, .16); }
.search-cats, .search-field {
  height: 46px;
  border: 2px solid var(--c-primary);
  background-color: #fff;
  font-size: 14.5px;
}
.search-cats { width: 118px; margin-right: 0; border-right: 1px solid var(--c-line-soft);
  font-weight: 700; color: var(--c-primary); }
.search-field { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 14px; border-left: 0; border-right: 0; }
.search-cats:focus, .search-field:focus { border-color: var(--c-primary); background-color: #fff; }
.search-submit {
  width: 56px; height: 46px; margin-left: 0;
  background: var(--c-primary); border: 2px solid var(--c-primary);
  color: #fff; padding: 0;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.search-submit:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.search-submit .icon { font-size: 19px; }

/* account + cart */
.header-tools > li.account-item { margin-right: 4px; }
.account-link {
  width: 44px; height: 44px; padding: 0; justify-content: center;
  color: var(--c-heading); border-radius: 50%;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.account-link:hover { background: #f1f5fa; color: var(--c-primary); }
.account-link .icon { width: 22px; height: 24px; }
.header-divider { display: none; }
.cart-link {
  gap: 12px; padding: 7px 16px 7px 14px;
  border: 2px solid var(--c-primary); border-radius: 3px;
  color: var(--c-primary);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.cart-link:hover { background: var(--c-primary); color: #fff; }
.cart-glyph { color: inherit; margin-left: 0; }
.cart-glyph[data-icon-label]::after { opacity: 1; top: -12px; right: -12px; }
.cart-price { font-size: 14px; }
.burger, .cart-toggle { color: var(--c-primary-dark); position: relative; }

/* bottom bar + nav */
.header-bottom { box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.mega-menu-title { padding-block: 13px; font-size: 15.5px; transition: background-color var(--t-fast); }
.mega-menu-title:hover { background: rgba(0, 0, 0, .12); }
.mega-menu-list { box-shadow: 0 10px 24px rgba(0, 20, 60, .16); }
.mega-menu-list a { padding-left: 15px; transition: background-color var(--t-fast), color var(--t-fast), padding-left var(--t-fast); }
.mega-menu-list li:hover > a { background: #eef4fb; color: var(--c-secondary); padding-left: 21px; }

.main-nav > li { margin: 0 4px; }
.main-nav > li:first-child > a { margin-left: 0; }
.main-nav > li > a {
  position: relative; margin-right: 0; padding: 15px 12px;
  font-size: 15.5px; letter-spacing: .04em;
}
.main-nav > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px;
  height: 3px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.main-nav > li > a:hover::after,
.main-nav > li.is-active > a::after,
.main-nav > li.is-open > a::after { transform: scaleX(1); }

.header-phone {
  gap: 8px; padding: 8px 18px; margin: 5px 0;
  background: var(--c-cta); color: #fff; border-radius: 3px;
  font-size: 15px; line-height: 22px;
  transition: filter var(--t-fast), transform var(--t-fast);
}
.header-phone:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* compact cart in the bar once the header is stuck (top/main bars hidden) */
.nav-cart { display: none; align-items: center; margin-left: 14px; padding: 8px; color: #fff; }
.nav-cart .cart-glyph { color: #fff; }
.header-wrapper.stuck .nav-cart { display: inline-flex; }
.nav-cart:hover { color: var(--c-accent); }
@media (prefers-reduced-motion: reduce) {
  .main-nav > li > a::after, .header-phone { transition: none; }
}

/* --- Home page: bolder hero, section heads, product cards ------------------ */

/* hero: taller, navy gradient floor, a caption that carries the slide */
.slide { padding-top: 420px; }
.slide .slide-bg { background-position: 50% 62%; }
.slide .slide-overlay {
  background: linear-gradient(to top, rgba(0, 26, 56, .86) 0%, rgba(0, 26, 56, .38) 34%, rgba(0, 26, 56, 0) 62%);
}
.slide-caption {
  position: absolute; left: 28px; right: 28px; bottom: 54px; z-index: 1;
  margin: 0; max-width: 24ch;
  font: 700 clamp(24px, 2.5vw, 34px)/1.08 var(--f-head);
  text-transform: uppercase; letter-spacing: .01em; text-wrap: balance;
  color: #fff; text-shadow: 0 2px 18px rgba(0, 20, 50, .45);
}
.slide-caption::before {
  content: ""; display: block; width: 56px; height: 5px; margin-bottom: 14px;
  background: var(--c-accent);
}
.slide[aria-hidden="false"] .slide-caption { animation: capIn .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slider-dots { left: 28px; right: auto; bottom: 22px; text-align: left; }
.slider-dots button { width: 12px; height: 12px; margin: 0 6px 0 0; border-color: #fff; transition: width var(--t-base), opacity var(--t-base), background-color var(--t-base); }
.slider-dots button[aria-selected="true"] { width: 34px; border-radius: 99px; }
@media (max-width: 549px) {
  .slide { padding-top: 280px; }
  .slide-caption { left: 16px; right: 16px; bottom: 44px; font-size: 24px; }
  .slider-dots { left: 16px; bottom: 16px; }
}

/* section rhythm: alternate full-bleed tinted bands */
.is-home section.row { padding-block: 34px 18px; }
.is-home section.row:nth-of-type(odd) {
  background: #eef3f9;
  box-shadow: 0 0 0 100vmax #eef3f9;
  clip-path: inset(0 -100vmax);
}

/* section heads: bigger ribbon, links as chips */
.section-head { min-height: 0; align-items: center; border-bottom: 3px solid var(--c-primary-dark); padding-bottom: 0; }
.section-title { padding: 6px 22px 6px 18px; font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.35; }
.section-title::after { border-width: 22px; }
.section-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 0; }
.section-links a {
  margin: 0; padding: 5px 13px; border: 1px solid var(--c-line-soft); border-radius: 99px;
  background: #fff; font-size: 13.5px; font-weight: 700; color: var(--c-primary-dark);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.section-links a:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
@media (max-width: 549px) {
  .section-head { align-items: stretch; }
  .section-links { justify-content: flex-start; padding: 12px 0; }
}

/* product cards: framed, lift on hover, orange rule draws in */
.grid-products { row-gap: 10px; }
.product-card {
  background: #fff; border: 1px solid var(--c-line-soft); overflow: hidden;
  transition: transform var(--t-base) cubic-bezier(.2, .8, .2, 1), box-shadow var(--t-base);
}
.product-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--c-cta); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(0, 26, 56, .18); }
.product-card:hover::after { transform: scaleX(1); }
.product-media img { transition: opacity var(--t-slow), transform .7s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover .product-media img:not(.img-back) { transform: scale(1.05); }
.product-body { padding: 14px 12px 16px; }
.product-name { margin: 0; font: 700 16px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .03em; text-wrap: balance; }
.product-name a { color: var(--c-primary-dark); }
.product-name a:hover { color: var(--c-cta); }
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card::after, .product-media img, .slider-dots button { transition: none; }
  .slide[aria-hidden="false"] .slide-caption { animation: none; }
  .product-card:hover { transform: none; }
}

/* card "+" is now a real add-to-cart button */
button.cart-icon { background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; }
.cart-icon.is-added strong { background-color: var(--c-primary); color: #fff; }
.cart-icon.is-added strong::after { border-color: var(--c-primary); }
.cart-icon:focus-visible strong { outline: 2px solid var(--c-cta); outline-offset: 2px; }
.product-card:focus-within .product-tools { opacity: 1; transform: translateY(0); }
.cart-glyph.bump { animation: bump .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .cart-glyph.bump { animation: none; } }

/* `display` rules on components (grid/flex) must never defeat [hidden] */
[hidden] { display: none !important; }

/* empty cart / checkout state */
.empty-cart { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 16px 72px; margin: 10px 0 40px; background: #eef3f9; border-radius: 3px; }
.empty-cart-icon { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 20px; border-radius: 50%; background: #fff; color: var(--c-primary); box-shadow: 0 8px 22px rgba(0, 26, 56, .1); }
.empty-cart-icon .icon { width: 44px; height: 44px; }
.empty-cart-title { margin: 0; font: 700 clamp(22px, 3vw, 30px)/1.2 var(--f-head); text-transform: uppercase; color: var(--c-primary-dark); }
.empty-cart-sub { margin: 8px 0 24px; color: var(--c-muted); }

/* QR payment panel: code on the left, bank details on the right */
.qr-panel {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 18px; margin-top: 4px; text-align: left;
  border: 1px solid var(--c-line-soft); border-radius: 3px; background: #f6f9fd;
}
.qr-code { padding: 10px; background: #fff; border: 1px solid var(--c-line-soft); border-radius: 3px; line-height: 0; }
.qr-code img { display: block; width: 190px; height: 190px; max-width: 100%; }
.bank-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.bank-info > div { display: contents; }
.bank-info dt { color: var(--c-muted); font-size: 14px; }
.bank-info dd { margin: 0; font-weight: 700; color: var(--c-heading); overflow-wrap: anywhere; }
.qr-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--c-line-soft); font-size: 13px; color: var(--c-muted); }
.order-done .qr-panel { margin: 18px 0 0; }
@media (max-width: 549px) {
  .qr-panel { grid-template-columns: 1fr; justify-items: center; }
  .qr-details { width: 100%; }
}

/* remove control: bare trash icon, no frame or padding */
.cart-remove {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--c-muted);
  transition: color var(--t-fast);
}
.cart-remove .icon { font-size: 22px; }
.cart-remove:hover { color: var(--c-alert); }
.cart-remove:focus-visible { outline: 2px solid var(--c-alert); outline-offset: 2px; }

/* --- Language menu links (must out-rank the navy top bar's `.topbar-nav a`) - */
.topbar-nav .lang-menu a {
  display: block; width: 100%; padding: 7px 20px;
  color: var(--c-muted); font-size: 14px; line-height: 22.4px;
}
.topbar-nav .lang-menu a:hover { color: var(--c-primary); }
.topbar-nav .lang-menu a[aria-current="true"] { color: var(--c-primary); font-weight: 700; }

/* --- Language flags --------------------------------------------------------- */
.topbar-nav .lang-menu a,
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; padding: 8px 20px;
}
.lang-menu { min-width: 160px; }
.lang-menu img.flag,
.offcanvas-lang img.flag {
  display: block; flex: none;
  width: 22px; height: 15px; max-width: none;
  object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
.offcanvas-lang a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* --- About page ------------------------------------------------------------- */
.about-lead { max-width: 760px; margin-bottom: 32px; }
.about-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.about-big { font-family: var(--f-head); font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--c-heading); margin: 0 0 16px; }
.about-section { margin-top: 36px; }
.about-section h2 { font-size: 22px; margin-bottom: .3em; }
.about-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 700px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.about-card { padding: 22px 20px; background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-primary); }
.about-card h3 { font-size: 17px; margin: 0 0 8px; }
.about-card p { margin: 0; color: var(--c-muted); }
.about-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.about-cats li { margin: 0; }
.about-cats li::before { display: none; }
.about-cats a { display: block; padding: 8px 16px; border: 1px solid var(--c-line); background: #fff; color: var(--c-heading); text-decoration: none; }
.about-cats a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.about-contact { padding: 24px; background: #f7f7f7; border: 1px solid var(--c-line); }
.about-contact p { margin: 0 0 6px; }
.about-contact .btn-cart { display: inline-block; margin-top: 12px; }

/* --- News page -------------------------------------------------------------- */
.news-intro { max-width: 680px; color: var(--c-muted); margin-bottom: 22px; }
.news-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 950px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); overflow: hidden; transition: box-shadow var(--t-fast); }
.news-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
.news-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f3f3; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.news-tag { align-self: flex-start; margin-bottom: 8px; padding: 2px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--c-primary); }
.news-body h3 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; }
.news-body h3 a { color: var(--c-heading); text-decoration: none; }
.news-body h3 a:hover { color: var(--c-primary); }
.news-body p { margin: 0 0 12px; color: var(--c-muted); font-size: 14px; }
.news-more { margin-top: auto; font-weight: 700; font-size: 14px; text-decoration: none; }
.news-cta { margin-top: 32px; padding: 18px 20px; background: #f7f7f7; border: 1px solid var(--c-line); }

/* --- Contact + guide pages -------------------------------------------------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: 20px; background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-primary); }
.contact-card h3 { font-size: 16px; margin: 0 0 8px; }
.contact-card p { margin: 0 0 4px; overflow-wrap: anywhere; }
.check-list { margin: 12px 0 18px; }
.check-list li { position: relative; margin: 0 0 8px; padding-left: 26px; }
.check-list li::before { content: "✓"; display: block; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--c-primary); }
.btn-alt { margin-left: 8px; background: var(--c-heading); }
.contact-map { width: 100%; height: 360px; border: 0; margin-top: 14px; }
.about-grid.two { grid-template-columns: 1fr; }
@media (min-width: 700px) { .about-grid.two { grid-template-columns: repeat(2, 1fr); } }
.steps { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: none; }
.steps li { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--c-line); }
.steps li::before { display: none; }
.step-no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 16px; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--c-muted); }

/* ==========================================================================
   News article (/tin-tuc/<slug>/) — built by scripts/build_news.py
   ========================================================================== */
.article-wrap { max-width: 860px; }
.article-head { margin-bottom: 18px; }
.article-head .news-tag { display: inline-block; margin-bottom: 10px; }
.article-head h1 { font-size: 30px; line-height: 1.25; margin: 0 0 10px; color: var(--c-heading); }
@media (max-width: 549px) { .article-head h1 { font-size: 24px; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; font-size: 14px; color: var(--c-muted); }
.article-cover { margin: 0 0 24px; }
.article-cover figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.article-cover figcaption .credit { display: block; margin-top: 2px; font-size: 12px; color: #888; }
.article-cover figcaption .credit a { color: inherit; }
.article-cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }

.toc { margin: 0 0 28px; padding: 16px 20px; background: #f6f8fb; border-left: 4px solid var(--c-primary); }
.toc-title { margin: 0 0 8px; font-weight: 700; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .03em; color: var(--c-heading); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--c-primary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article-body { font-size: 17px; line-height: 1.75; color: var(--c-text); }
.article-body > * + * { margin-top: 1em; }
.article-body p { margin: 0; }
.article-body .lead { font-size: 19px; line-height: 1.65; color: var(--c-heading); }
.article-body h2 { margin: 1.9em 0 .6em; font-size: 25px; line-height: 1.3; color: var(--c-heading); scroll-margin-top: 90px; }
.article-body h3 { margin: 1.5em 0 .4em; font-size: 20px; line-height: 1.35; color: var(--c-heading); scroll-margin-top: 90px; }
.article-body a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--c-primary-dark); }
.article-body ul, .article-body ol { margin: 0; padding-left: 24px; }
.article-body li + li { margin-top: .4em; }
.article-body blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--c-line-soft); color: var(--c-muted); font-style: italic; }
.article-body figure { margin: 1.6em 0; }
.article-body figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; margin: 0 auto; background: #f3f3f3; }
.article-body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.article-body figcaption .credit { display: block; margin-top: 2px; font-size: 12px; color: #888; }
.article-body figcaption .credit a { color: inherit; }
.article-body .callout { padding: 16px 20px; background: #fff8e1; border-left: 4px solid #f0b400; }
.article-body .callout > * + * { margin-top: .6em; }

.article-body .article-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
@media (min-width: 700px) { .article-body .article-table { display: table; } }
.article-table th, .article-table td { padding: 10px 12px; border: 1px solid var(--c-line-soft); text-align: left; vertical-align: top; }
.article-table thead th { background: var(--c-primary-dark); color: #fff; font-weight: 700; }
.article-table tbody tr:nth-child(even) td { background: #fafafa; }

.article-body .faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--c-line-soft); background: #fff; }
.faq summary { padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--c-heading); list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--c-primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 14px; }

.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.related-title { margin: 0 0 18px; font-size: 22px; color: var(--c-heading); }
