/* ==========================================================================
   Handeco theme — warm, earthy, handmade
   Loaded after OpenCart's default stylesheet, so every rule below can
   override it. Sections: tokens · base · buttons/forms · header · hero ·
   home sections · product cards · listing pages · product page · account &
   checkout skin · footer · responsive.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --cream:      #FBF6EC;   /* page background */
  --paper:      #F4EBDB;   /* alt sections, image placeholders */
  --sand:       #E6D8C0;   /* borders, dividers */
  --ink:        #3A2D25;   /* body text, footer background */
  --ink-soft:   #75645A;   /* secondary text */
  --clay:       #B4583A;   /* primary action (terracotta) */
  --clay-dark:  #96452B;
  --sage:       #5D877F;   /* brand green */
  --sage-dark:  #46685F;
  --sage-soft:  #DCE6DF;
  --gold:       #C49A55;   /* from the logo */
  --blush:      #EBD2C3;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand:    'Caveat', 'Segoe Script', cursive;

  --radius:    14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(58, 45, 37, .06);
  --shadow:    0 14px 40px -14px rgba(58, 45, 37, .28);
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --header-h:  84px;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .26  0 0 0 0 .16  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--clay); color: #fff; }
a { color: var(--clay); transition: color .2s; }
a:hover, a:focus { color: var(--clay-dark); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }
hr { border-top-color: var(--sand); }
.container { width: 100%; max-width: 1240px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 767px) { .container { padding-left: 16px; padding-right: 16px; } }
.sr-only-focusable:focus { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sage);
}
.lead { font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- 3. Buttons & forms ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 11px 26px;
  border-width: 2px;
  text-shadow: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 34px; font-size: 1rem; border-radius: 999px; }
.btn-sm, .btn-xs { border-radius: 999px; padding: 6px 16px; }
.btn-primary, .btn-primary.disabled, .btn-primary[disabled] {
  background: var(--clay); border-color: var(--clay); color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  background: var(--clay-dark); border-color: var(--clay-dark); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(180, 88, 58, .8);
}
.btn-default, .btn-inverse {
  background: transparent; border-color: var(--ink); color: var(--ink);
}
.btn-default:hover, .btn-default:focus, .btn-default:active,
.btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active {
  background: var(--ink); border-color: var(--ink); color: var(--cream);
}
.btn-danger { background: #a8402a; border-color: #a8402a; }
.btn-info   { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-info:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.btn-success { background: var(--sage); border-color: var(--sage); }
.btn-link { color: var(--clay); border: 0; }

.link-arrow { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow i { transition: transform .25s var(--ease); margin-left: 4px; }
.link-arrow:hover { color: var(--clay); }
.link-arrow:hover i { transform: translateX(5px); }

.form-control, select.form-control, textarea.form-control, input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number] {
  background-color: #fffdf8;
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  height: 46px;
  color: var(--ink);
  box-shadow: none;
  font-size: 15px;
  padding: 8px 16px;
}
textarea.form-control { height: auto; }
.form-control:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(93, 135, 127, .18);
  background-color: #fff;
}
.input-group-addon { background: var(--paper); border: 1.5px solid var(--sand); border-radius: 12px; color: var(--ink-soft); }
label, .control-label { font-weight: 700; color: var(--ink); }
.form-group.required .control-label:before, .required .control-label:before { color: var(--clay); }
.checkbox label, .radio label { font-weight: 400; }
input[type=checkbox], input[type=radio] { accent-color: var(--clay); }
.has-error .form-control { border-color: #c0432e; }
.text-danger { color: #b3402a; }

/* ---------- 4. Top bar & header ---------- */
.topbar { background: var(--ink); color: #f0e4d1; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar-msg { margin: 0; text-align: center; flex: 1; letter-spacing: .02em; }
.topbar-side { display: flex; align-items: center; min-width: 160px; }
.topbar-right { justify-content: flex-end; }
.topbar a, .topbar .btn-link, .topbar button { color: #f0e4d1; font-size: .82rem; padding: 0 8px; }
.topbar a:hover, .topbar .btn-link:hover { color: #fff; }
.topbar .pull-left { float: none !important; }
.topbar .dropdown-menu { font-size: .85rem; }
.topbar .dropdown-menu button { color: var(--ink); padding: 8px 16px; text-align: left; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251, 246, 236, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck { border-bottom-color: var(--sand); box-shadow: 0 6px 24px -16px rgba(58, 45, 37, .35); }
.header-inner { display: flex; align-items: center; gap: 36px; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 62px; width: auto; transition: height .25s var(--ease); }
.site-header.is-stuck .brand img { height: 52px; }

.nav-toggle, .nav-close, .nav-panel-head { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 10px;
  background: transparent; border: 0; border-radius: 999px;
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.icon-btn:hover, .icon-btn:focus, .open > .icon-btn { background: var(--paper); color: var(--clay); outline: 0; }
.icon-btn-sm { min-width: 28px; height: 28px; font-size: 13px; }
#cart-total { font-family: var(--font-body); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
#cart-total .fa { font-size: 18px; }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header-actions .dropdown { position: relative; }
#cart.btn-group, #cart { float: none; margin: 0; }

.dropdown-menu {
  background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; margin-top: 10px; min-width: 190px;
}
.dropdown-menu > li > a { padding: 9px 14px; border-radius: 8px; color: var(--ink); }
.dropdown-menu > li > a:hover { background: var(--paper); color: var(--clay); }
.dropdown-menu .divider { background: var(--sand); margin: 6px 0; }

/* Primary navigation (desktop) */
.site-nav { flex: 1; }
.nav-list { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 10px 20px; border-radius: 999px;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 500;
  color: var(--ink); position: relative;
}
.nav-link:after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: 5px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-item:hover > .nav-link, .nav-link:focus { color: var(--clay); }
.nav-item:hover > .nav-link:after { transform: scaleX(1); }
.sub-toggle { display: none; }
.sub-list {
  list-style: none; margin: 0; padding: 10px; position: absolute; left: 50%; top: 100%;
  min-width: 220px; transform: translate(-50%, 8px);
  background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-item:hover > .sub-list, .nav-item:focus-within > .sub-list { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-list a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); }
.sub-list a:hover { background: var(--paper); color: var(--clay); }
.sub-all a { color: var(--clay); font-weight: 700; margin-top: 4px; border-top: 1px dashed var(--sand); border-radius: 0 0 8px 8px; }

/* Search drawer */
.search-panel { border-top: 1px solid var(--sand); background: var(--cream); padding: 16px 0 20px; }
.search-panel[hidden] { display: none; }
.search-panel #search { max-width: 640px; margin: 0 auto; }
.search-panel #search .form-control { height: 52px; border-radius: 999px 0 0 999px; padding-left: 24px; font-size: 16px; }
.search-panel #search .btn { height: 52px; border-radius: 0 999px 999px 0; padding: 0 26px; background: var(--ink); border-color: var(--ink); color: var(--cream); }
.search-panel #search .btn:hover { background: var(--clay); border-color: var(--clay); }

/* Mini cart */
.cart-menu .dropdown-menu { width: 360px; padding: 18px; }
.mini-cart { width: 100%; margin: 0; }
.mini-cart td { vertical-align: top; padding: 10px 0; border-top: 1px dashed var(--sand); }
.mini-cart tr:first-child td { border-top: 0; padding-top: 0; }
.mini-cart .mc-img { width: 64px; }
.mini-cart .mc-img img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; }
.mini-cart .mc-info { padding: 0 10px; line-height: 1.35; }
.mini-cart .mc-info a { font-family: var(--font-display); font-size: 1rem; color: var(--ink); display: block; }
.mini-cart small { display: block; color: var(--ink-soft); font-size: .8rem; }
.mini-cart .mc-qty { display: block; margin-top: 4px; font-weight: 700; font-size: .9rem; }
.mc-totals { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 12px; }
.mc-totals table { width: 100%; margin-bottom: 14px; }
.mc-totals td { padding: 3px 0; font-size: .92rem; }
.mc-totals tr:last-child td { font-weight: 800; font-size: 1.05rem; }
.mc-actions { display: flex; gap: 10px; }
.mc-actions .btn { flex: 1; padding: 10px 12px; }
.mc-empty { margin: 8px 0; text-align: center; color: var(--ink-soft); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 40px; }
.hero-copy .eyebrow { font-size: 1.8rem; margin-bottom: 14px; }
.hero-copy h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; margin: 0 0 22px; }
.hero-copy h1:after {
  content: ''; display: block; width: 150px; height: 14px; margin-top: 16px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14' fill='none'><path d='M3 9c18-8 30 4 48-2s30-3 46 0 36-5 50-2' stroke='%23C49A55' stroke-width='3' stroke-linecap='round'/></svg>");
}
.hero-copy .lead { max-width: 30em; font-size: 1.18rem; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }

.hero-art { position: relative; height: 580px; }
.hero-art .blob { position: absolute; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; z-index: 0; }
.blob-sage { width: 62%; height: 70%; left: 20%; top: 4%; background: var(--sage-soft); }
.blob-clay { width: 34%; height: 34%; right: 2%; bottom: 0; background: var(--blush); }
.arch {
  position: absolute; z-index: 1; overflow: hidden; background: var(--paper);
  border-radius: 999px 999px 22px 22px; border: 7px solid var(--cream);
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-1 { left: 28%; top: 0; width: 46%; height: 80%; }
.arch-2 { left: 0; bottom: 2%; width: 33%; height: 50%; border-radius: 22px 22px 999px 999px; }
.arch-3 { right: 0; bottom: 10%; width: 31%; height: 46%; }
.stamp {
  position: absolute; z-index: 2; left: 20%; top: 6%;
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--clay); color: #fff; transform: rotate(-12deg);
  font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.05; font-weight: 600;
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 7px var(--clay);
}

/* Values strip */
.values { background: var(--sage); color: #fff; }
.values-inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; font-weight: 700; letter-spacing: .03em; }
.values .fa { margin-right: 8px; color: #F2E3BF; }
.values .dot { width: 6px; height: 6px; border-radius: 50%; background: #F2E3BF; opacity: .7; }

/* ---------- 6. Home sections ---------- */
.home-section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin: 8px 0 0; }
.cats { background: var(--paper); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); color: var(--ink); box-shadow: var(--shadow-sm); }
.cat-tile:nth-child(2) { margin-top: 36px; }
.cat-tile:nth-child(3) { margin-top: 0; }
.cat-img, .cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-img img { object-fit: cover; transition: transform .7s var(--ease); }
.cat-tile:hover .cat-img img { transform: scale(1.06); }
.cat-label {
  position: absolute; left: 16px; right: 74px; bottom: 16px;
  background: var(--cream); border-radius: 24px; padding: 0 20px;
  display: flex; flex-direction: column; justify-content: center; height: 48px; line-height: 1.1;
}
.cat-label strong { font-family: var(--font-display); font-size: 18px; font-weight: 500; text-align: center; }
.cat-label small { color: var(--ink-soft); font-size: .85rem; }
.cat-go {
  position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--clay); color: #fff; font-size: 18px; transition: transform .3s var(--ease), background .2s;
}
.cat-tile:hover .cat-go { transform: rotate(-35deg); background: var(--clay-dark); }
.cat-tile:hover { color: var(--ink); }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fffdf8; }
.story-img img { width: 100%; display: block; mix-blend-mode: multiply; }
.story-copy h2 { margin: 6px 0 18px; }
.story-copy .lead { margin-bottom: 26px; }

.end-cta { background: var(--ink); color: #f0e4d1; text-align: center; padding: 76px 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: 24px; }
.end-cta h2 { color: #fff; margin: 0 0 14px; }
.end-cta p { max-width: 36em; margin: 0 auto 28px; color: #d8c8b2; font-size: 1.08rem; }
.end-cta .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.end-cta .btn-primary:hover { background: #d8ac66; border-color: #d8ac66; }

/* ---------- 7. Product cards (shared by every listing & module) ---------- */
.product-grid { display: flex; flex-wrap: wrap; }
.product-grid > [class*='col-'] { display: flex; }
.product-layout { margin-bottom: 14px; }
.product-thumb {
  position: relative; display: flex; flex-direction: column; width: 100%;
  border: 0; background: transparent; margin-bottom: 14px; overflow: visible;
}
.product-thumb .image {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--paper); aspect-ratio: 4 / 5; text-align: left;
}
.product-thumb .image > a { display: block; width: 100%; height: 100%; opacity: 1 !important; }
.product-thumb .image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .6s var(--ease), opacity .45s; }
.product-thumb .image .img-hover { opacity: 0; }
.product-thumb:hover .image .img-hover { opacity: 1; }
.product-thumb:hover .image .img-main { transform: scale(1.04); }
.product-thumb .caption { padding: 14px 4px 6px; min-height: 0; flex: 1; text-align: left; }
.product-thumb .caption h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; line-height: 1.3; }
.product-thumb .caption h4 a { color: var(--ink); }
.product-thumb .caption h4 a:hover { color: var(--clay); }
.product-thumb .caption p { margin: 0 0 4px; }
.product-thumb .price { font-weight: 700; font-size: 1rem; color: var(--ink); }
.product-thumb .price-new { color: var(--clay); }
.product-thumb .price-old { color: var(--ink-soft); font-weight: 400; text-decoration: line-through; font-size: .9em; margin-left: 4px; }
.product-thumb .price-tax { display: none; }
.product-thumb .rating { margin: 2px 0; }
.product-thumb .button-group {
  display: flex; gap: 8px; padding: 6px 0 0; border: 0; background: transparent; overflow: visible;
}
.product-thumb .button-group button {
  float: none; width: auto; flex: 1; border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font-weight: 700; font-size: .86rem; padding: 9px 12px; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s;
}
.product-thumb .button-group button + button { flex: none; width: 40px; padding: 9px 0; border-color: var(--sand); color: var(--ink-soft); }
.product-thumb .button-group button:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.product-thumb .button-group button .fa { margin-right: 4px; }
.product-thumb .button-group button + button .fa { margin: 0; }
.badge-sale {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--clay); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.product-thumb .wish {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(251, 246, 236, .92); color: var(--ink); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .25s var(--ease), color .2s, background .2s;
}
.product-thumb:hover .wish, .product-thumb .wish:focus { opacity: 1; transform: none; }
.product-thumb .wish:hover { color: #fff; background: var(--clay); }
@media (hover: none) { .product-thumb .wish { opacity: 1; transform: none; } }

/* Neutralise OpenCart's list-view mode */
.product-list.product-layout .product-thumb .image { float: none; width: 100%; }
.product-list.product-layout .product-thumb > div:not(.image) { margin: 0; }

/* ---------- 8. Listing pages ---------- */
.page-wrap { padding-bottom: 20px; }
.breadcrumb { background: transparent; padding: 22px 0 6px; margin: 0; font-size: .86rem; color: var(--ink-soft); }
.breadcrumb > li + li:before { content: '›'; color: var(--gold); padding: 0 8px 0 4px; font-size: 1.1em; }
.breadcrumb > li > a { color: var(--ink-soft); }
.breadcrumb > li > a:hover { color: var(--clay); }
.page-head { text-align: center; padding: 14px 0 22px; }
.page-head h1 { margin: 0; }
.page-head h1:after { content: ''; display: block; width: 64px; height: 3px; background: var(--gold); border-radius: 2px; margin: 16px auto 0; }
.page-lead { max-width: 44em; margin: 16px auto 0; color: var(--ink-soft); }
.pill-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.pill {
  padding: 8px 20px; border: 1.5px solid var(--sand); border-radius: 999px; background: #fffdf8;
  color: var(--ink); font-weight: 600; font-size: .92rem; transition: all .2s;
}
.pill:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); padding: 12px 0; margin-bottom: 28px; }
.toolbar-controls { display: flex; align-items: center; gap: 10px; }
.toolbar-controls label { margin: 0; font-weight: 600; color: var(--ink-soft); font-size: .88rem; }
.toolbar-controls .form-control { height: 38px; width: auto; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.toolbar-compare { color: var(--ink-soft); font-size: .88rem; }
.pager-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pager-results { color: var(--ink-soft); font-size: .88rem; }
.pagination { margin: 0; }
.pagination > li > a, .pagination > li > span {
  border: 1.5px solid var(--sand); background: #fffdf8; color: var(--ink); margin: 0 3px; border-radius: 999px !important; min-width: 40px; text-align: center; font-weight: 700;
}
.pagination > li > a:hover { background: var(--paper); color: var(--clay); border-color: var(--gold); }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.empty-note { text-align: center; padding: 40px 0 20px; color: var(--ink-soft); }

/* ---------- 9. Product page (default template, re-skinned) ---------- */
#product-product h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 14px; }
#product-product .thumbnails { margin: 0; padding: 0; list-style: none; }
#product-product .thumbnails > li { list-style: none; }
#product-product .thumbnail {
  background: var(--paper); border: 0; border-radius: var(--radius-lg); padding: 0; overflow: hidden; margin-bottom: 14px;
}
#product-product .thumbnail img { width: 100%; }
#product-product .image-additional { width: 22%; padding: 0 5px; }
#product-product .image-additional .thumbnail { border-radius: var(--radius); }
#product-product .btn-group .btn { border-radius: 999px; }
#product-product ul.list-unstyled { color: var(--ink-soft); }
#product-product ul.list-unstyled a { color: var(--clay); font-weight: 600; }
#product-product h2 { font-family: var(--font-display); font-size: 2rem; color: var(--ink); margin: 14px 0; }
#product-product h3 { font-size: 1.15rem; }
#product-product .price-old, #product-product ul.list-unstyled li s { color: var(--ink-soft); }
#button-cart { padding: 15px 40px; font-size: 1.05rem; }
#product-product .rating .fa-star, #product-product .rating .fa-star-o { color: var(--gold); }
.rating .fa-star { color: var(--gold); }
.rating .fa-star-o { color: #cdb892; }
.rating .fa-stack { width: 1.2em; }
.nav-tabs { border-bottom: 2px solid var(--sand); margin-bottom: 20px; }
.nav-tabs > li > a { border: 0; border-radius: 0; color: var(--ink-soft); font-weight: 700; margin-right: 18px; padding: 10px 2px; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background: transparent; border: 0; border-bottom: 3px solid var(--clay); color: var(--ink); margin-bottom: -2px; }
.nav-tabs > li > a:hover { background: transparent; border: 0; color: var(--clay); }
.tab-content { padding-bottom: 12px; }
#tab-description { line-height: 1.8; }
#product-product h3.section-title, .product-related-title { text-align: center; }
.well { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: none; }

/* ---------- 10. Account, cart, checkout skin ---------- */
.container > .row > #content > h1, #content > h1, #content > h2 { margin-top: 18px; }
.table { color: var(--ink); }
.table > thead > tr > th, .table > thead > tr > td { background: var(--paper); border-bottom: 2px solid var(--sand); font-weight: 700; }
.table > tbody > tr > td, .table > tfoot > tr > td { border-top: 1px solid var(--sand); vertical-align: middle; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border-color: var(--sand); }
.table-striped > tbody > tr:nth-of-type(odd) { background: rgba(244, 235, 219, .5); }
.table-hover > tbody > tr:hover { background: var(--paper); }
.img-thumbnail { background: var(--paper); border: 1px solid var(--sand); border-radius: 10px; }
.panel { background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: none; }
.panel-default > .panel-heading { background: var(--paper); border-color: var(--sand); border-radius: var(--radius) var(--radius) 0 0; }
.panel-title { font-family: var(--font-display); font-weight: 500; }
.panel-title a { color: var(--ink); }
.alert { border-radius: var(--radius); border: 0; }
.alert-success { background: var(--sage-soft); color: var(--sage-dark); }
.alert-danger { background: #f6ddd5; color: #8c3320; }
.alert-info { background: #f6ebd0; color: #7a5a1c; }
.alert-warning { background: #fbe0a8; color: #7a4a05; }
.list-group-item { background: transparent; border-color: var(--sand); color: var(--ink); }
.list-group-item.active, .list-group-item.active:hover { background: var(--ink); border-color: var(--ink); }
a.list-group-item:hover { background: var(--paper); color: var(--clay); }
.list-group { border-radius: var(--radius); overflow: hidden; }
#content .buttons { margin: 24px 0; }
.modal-content { border-radius: var(--radius-lg); border: 0; background: var(--cream); }
.modal-header { border-bottom-color: var(--sand); }
.nav-pills > li.active > a { background: var(--ink); }
legend { font-family: var(--font-display); border-bottom-color: var(--sand); color: var(--ink); }
#column-left, #column-right { margin-bottom: 24px; }
.btn-group > .btn { border-radius: 999px; }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--ink); color: #d8c8b2; margin-top: 0; }
.end-cta + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand img { height: 84px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 24em; margin: 0 0 8px; }
.hand-note { font-family: var(--font-hand); font-size: 1.5rem; color: var(--gold); }
.site-footer h5 { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin: 0 0 16px; font-weight: 500; }
.site-footer ul { margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #d8c8b2; }
.site-footer a:hover { color: var(--gold); }
.contact-list .fa { width: 20px; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .84rem; color: #a8957f; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1199px) {
  .header-inner { gap: 20px; }
  .nav-link { padding: 10px 14px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .header-inner { gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .brand img, .site-header.is-stuck .brand img { height: 48px; }
  .header-actions { margin-left: auto; }
  .topbar-side { display: none; }

  .site-nav {
    position: fixed; z-index: 1102; top: 0; bottom: 0; left: 0; width: min(86vw, 360px);
    background: var(--cream); overflow-y: auto; padding: 0 22px 32px;
    transform: translateX(-102%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  body.nav-open .site-nav { transform: none; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 1101; background: rgba(58, 45, 37, .5);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav-panel-head { align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--sand); margin-bottom: 8px; }
  .nav-panel-head img { height: 50px; }
  .nav-close { display: inline-flex; }
  .nav-list { display: block; }
  .nav-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--sand); }
  .nav-link { flex: 1; padding: 16px 0; font-size: 1.4rem; border-radius: 0; }
  .nav-link:after { display: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; font-size: 22px; color: var(--ink); }
  .sub-toggle i { transition: transform .25s; }
  .nav-item.sub-open .sub-toggle i { transform: rotate(180deg); }
  .sub-list { position: static; display: none; width: 100%; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px 8px; }
  .nav-item.sub-open .sub-list { display: block; }
  .nav-item:hover > .sub-list { transform: none; }

  .hero { padding: 28px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { height: 420px; max-width: 520px; margin: 0 auto; width: 100%; }
  .home-section { padding: 60px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .topbar-msg { font-size: .76rem; padding: 6px 0; line-height: 1.35; }
  .cat-grid { grid-template-columns: 1fr; gap: 18px; }
  .cat-tile, .cat-tile:nth-child(2) { margin-top: 0; aspect-ratio: 5 / 4; }
  .hero-art { height: 340px; }
  .stamp { width: 82px; height: 82px; font-size: 1.1rem; }
  .values-inner { gap: 10px 18px; font-size: .88rem; }
  .values .dot { display: none; }
  .cart-menu .dropdown-menu { width: min(92vw, 360px); position: fixed; left: 4vw; right: 4vw; top: 70px; width: auto; }
  .product-thumb .caption h4 { font-size: 1rem; }
  .product-thumb .button-group button { font-size: .8rem; padding: 8px 6px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-controls { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .end-cta { padding: 56px 0; }
  #button-cart { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 13. Fixes: container clearfix inside flex/grid, burger icon ---------- */
.hero-grid:before, .hero-grid:after, .story-grid:before, .story-grid:after,
.footer-grid:before, .footer-grid:after, .header-inner:before, .header-inner:after,
.topbar-inner:before, .topbar-inner:after, .values-inner:before, .values-inner:after,
.footer-bottom .container:before, .footer-bottom .container:after { content: none; display: none; }

.nav-toggle, .nav-close, .nav-panel-head { display: none; }
.burger { position: relative; display: block; width: 22px; height: 16px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 7px; }
.burger i:nth-child(3) { top: 14px; }
@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .nav-close { display: inline-flex; }
  .nav-panel-head { display: flex; }
}

/* ---------- 14. Warm photo treatment: white photo backgrounds melt into the paper tone ---------- */
.product-thumb .image img, .arch img, #product-product .thumbnail img, #product-product .image-additional img { mix-blend-mode: multiply; }
.cat-img { background: var(--paper); }
.brand img { height: 70px; }
.site-header.is-stuck .brand img { height: 56px; }
@media (max-width: 991px) { .brand img, .site-header.is-stuck .brand img { height: 52px; } }
.product-thumb .caption, .product-layout .product-thumb .caption { min-height: 0 !important; }

/* Breadcrumb: drop OpenCart's boxed arrows */
.breadcrumb { border: 0; margin: 0; padding: 22px 0 6px; }
.breadcrumb > li { padding: 0; text-shadow: none; }
.breadcrumb > li:after { display: none; }
.breadcrumb > li + li:before { content: '›'; padding: 0 9px 0 5px; }
.breadcrumb i { font-size: 14px; }

/* Mini cart: undo OpenCart's fixed-width inner blocks */
#cart .dropdown-menu { min-width: 0; width: 360px; max-width: 92vw; background: #fffdf8; right: 0; left: auto; }
#cart .dropdown-menu li > div { min-width: 0; padding: 0; }
#cart .dropdown-menu li { padding: 0; }
#cart .dropdown-menu li + li { margin-top: 0; }
#cart .dropdown-menu table { margin-bottom: 0; }
#cart .dropdown-menu .mc-totals table { margin-bottom: 14px; }

@media (max-width: 991px) {
  .brand { position: static; transform: none; margin-right: auto; margin-left: 4px; }
  .header-actions { margin-left: 0; }
  .header-actions .icon-btn { min-width: 38px; padding: 0 6px; }
}

@media (max-width: 991px) {
  /* backdrop-filter would make the fixed off-canvas nav relative to the header */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); }
}

/* ---------- 15. Hand-drawn botanical accents (SVG, drawn for this theme) ---------- */
.hero .container { position: relative; z-index: 1; }
.hero:before, .hero:after, .story:before, .cats:after {
  content: ''; position: absolute; pointer-events: none; background: no-repeat center / contain; z-index: 0;
}
.hero:before { left: -34px; bottom: -30px; width: 190px; height: 300px; background-image: url('../image/sprig-sage.svg'); transform: rotate(18deg); opacity: .7; }
.hero:after  { right: 36%; top: 18px; width: 120px; height: 190px; background-image: url('../image/sprig-gold.svg'); transform: rotate(-24deg); opacity: .65; }
.story { position: relative; overflow: hidden; }
.story:before { right: -30px; top: 10px; width: 200px; height: 310px; background-image: url('../image/sprig-clay.svg'); transform: rotate(-14deg); opacity: .5; }
.story .container { position: relative; z-index: 1; }
.cats { position: relative; overflow: hidden; }
.cats:after { left: -36px; top: 24px; width: 160px; height: 250px; background-image: url('../image/sprig-gold.svg'); transform: rotate(20deg) scaleX(-1); opacity: .55; }
.cats .container { position: relative; z-index: 1; }
@media (max-width: 767px) { .hero:after, .cats:after { display: none; } .hero:before { width: 120px; height: 190px; } }

/* ---------- 16. Round 2 tweaks ---------- */
/* Header: same paper as the page. Transparent at the top so it is seamless with the hero; paper + texture once stuck. */
:root { --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .26  0 0 0 0 .16  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.site-header, .site-header.is-stuck { -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header { background: transparent; }
.site-header.is-stuck { background-color: var(--cream); background-image: var(--noise); }
@media (max-width: 991px) {
  .site-header { background: transparent; }
  .site-header.is-stuck { background-color: var(--cream); background-image: var(--noise); }
}

/* Hero sprigs: one matching pair, upright, same size, sitting on the bottom edge of the hero */
.hero:before, .hero:after {
  top: auto; bottom: 0; width: 120px; height: 190px; opacity: .75;
}
.hero:before { left: 14px; right: auto; transform: none; background-image: url('../image/sprig-sage.svg'); }
.hero:after  { right: 14px; left: auto; transform: scaleX(-1); background-image: url('../image/sprig-gold.svg'); }
@media (max-width: 767px) { .hero:before, .hero:after { width: 80px; height: 126px; display: block; } }

/* Category section: craft doodles instead of leaves, on the right */
.story:before { display: none; }
.cats:after {
  left: auto; right: max(16px, calc(50% - 620px)); top: 34px; width: 210px; height: 210px;
  background-image: url('../image/doodles-craft.svg'); transform: none; opacity: .95;
}
@media (max-width: 1100px) { .cats:after { width: 130px; height: 130px; top: 18px; right: 12px; } }
@media (max-width: 767px)  { .cats:after { display: none; } }

/* ---------- 17. Round 3: restore original sprig placement; earthy scene for the category section ---------- */
.hero:before { top: auto; left: -34px; bottom: -30px; right: auto; width: 190px; height: 300px; transform: rotate(18deg); opacity: .7; }
.hero:after  { top: 18px; bottom: auto; right: 36%; left: auto; width: 120px; height: 190px; transform: rotate(-24deg); opacity: .65; }
@media (max-width: 767px) { .hero:before { width: 120px; height: 190px; } .hero:after { display: none; } }
.cats:after { width: 230px; height: 230px; top: 20px; background-image: url('../image/craft-scene.svg'); }
@media (max-width: 1100px) { .cats:after { width: 140px; height: 140px; top: 14px; } }
.cats:after { width: 170px; height: 170px; top: 14px; right: max(24px, calc(50% - 596px)); }
@media (max-width: 1100px) { .cats:after { width: 120px; height: 120px; top: 10px; right: 18px; } }

/* ---------- 18. Round 4: larger handwritten headlines ---------- */
.eyebrow { font-size: 2.1rem; }
.hero-copy .eyebrow { font-size: 2.5rem; margin-bottom: 10px; }
.section-head .eyebrow { margin-bottom: 2px; }
@media (max-width: 767px) { .eyebrow { font-size: 1.8rem; } .hero-copy .eyebrow { font-size: 2.1rem; } }

/* ---------- 19. Round 5: product slider + split illustrations ---------- */
.slider { position: relative; }
.slider-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding: 4px 0 8px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider .slide { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; margin-bottom: 0; min-width: 0; }
.slider .slide .product-thumb { margin-bottom: 0; }
.slider-btn {
  position: absolute; z-index: 3; top: 34%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
  box-shadow: 0 8px 22px -6px rgba(58, 45, 37, .4);
  transition: background .2s, color .2s, opacity .2s, transform .25s var(--ease);
}
.slider-btn.prev { left: -26px; }
.slider-btn.next { right: -26px; }
.slider-btn:hover { background: var(--clay); color: #fff; transform: translateY(-50%) scale(1.06); }
.slider-btn:focus { outline: 0; box-shadow: 0 0 0 4px rgba(93, 135, 127, .35), 0 8px 22px -6px rgba(58, 45, 37, .4); }
.slider-btn:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 1300px) { .slider-btn.prev { left: 8px; } .slider-btn.next { right: 8px; } }
@media (max-width: 991px) { .slider .slide { flex-basis: calc((100% - 48px) / 3); } }
@media (max-width: 767px) {
  .slider-track { gap: 14px; }
  .slider .slide { flex-basis: calc((100% - 14px) / 2); }
  .slider-btn { width: 42px; height: 42px; font-size: 24px; }
}

/* Shop by category: palette (top-right) and necklace (bottom-left) */
.cats { padding-bottom: 128px; }
.cats:after {
  width: 200px; height: 148px; top: 18px; right: max(24px, calc(50% - 596px));
  background-image: url('../image/art-palette.svg');
}
.cats:before {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
  width: 220px; height: 108px; bottom: 14px; left: max(24px, calc(50% - 596px));
  background: no-repeat center / contain url('../image/jewelry-necklace.svg');
}
@media (max-width: 1100px) {
  .cats { padding-bottom: 100px; }
  .cats:after { width: 130px; height: 96px; top: 12px; right: 16px; }
  .cats:before { width: 150px; height: 74px; bottom: 12px; left: 16px; }
}
@media (max-width: 767px) { .cats:before { display: none; } .cats { padding-bottom: 60px; } }

/* ---------- 20. Round 6: hover fix + soft animated shapes ---------- */
/* Hover: crossfade instead of stacking two multiplied photos on top of each other */
.product-thumb .image a { isolation: isolate; }
.product-thumb .image .img-main { transition: transform .6s var(--ease), opacity .4s ease; }
.product-thumb:hover .image a:has(.img-hover) .img-main { opacity: 0; }
.product-thumb .image .img-hover { transition: transform .6s var(--ease), opacity .4s ease; }
.product-thumb:hover .image a:has(.img-hover) .img-hover { transform: scale(1.04); }

/* Retire the line drawings */
.cats:before, .cats:after { display: none !important; }

/* Soft, slowly moving shapes (paint washes, arches) */
@keyframes hd-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -14px, 0) rotate(3deg); } }
@keyframes hd-drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(10px, 8px, 0); } }
@keyframes hd-morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
  33%      { border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%; }
  66%      { border-radius: 52% 48% 62% 38% / 42% 60% 40% 58%; }
}
@keyframes hd-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco span, .deco i { position: absolute; display: block; }

/* top-right: three overlapping watercolour washes */
.deco-tr { top: 28px; right: max(24px, calc(50% - 596px)); width: 210px; height: 170px; }
.deco-tr span { mix-blend-mode: multiply; opacity: .9; animation: hd-morph 11s ease-in-out infinite, hd-float 8s ease-in-out infinite; }
.deco-tr .w1 { left: 0;    top: 30px; width: 112px; height: 112px; background: #E9C9B8; }
.deco-tr .w2 { left: 70px; top: 0;    width: 100px; height: 100px; background: #BCD3CA; animation-delay: -3s, -2s; animation-duration: 13s, 9s; }
.deco-tr .w3 { left: 50px; top: 62px; width: 92px;  height: 92px;  background: #EAD08F; animation-delay: -6s, -4s; animation-duration: 12s, 10s; }
.deco-tr .ring { right: 4px; top: 70px; width: 30px; height: 30px; border: 2px solid var(--gold); border-radius: 50%; animation: hd-drift 7s ease-in-out infinite; }
.deco-tr .dot  { right: 52px; top: 8px; width: 9px; height: 9px; background: var(--clay); border-radius: 50%; opacity: .7; animation: hd-float 6s ease-in-out infinite -2s; }

/* bottom-left: a pair of soft arches echoing the hero */
.deco-bl { bottom: 18px; left: max(24px, calc(50% - 596px)); width: 200px; height: 120px; }
.deco-bl .arch-a { left: 0; bottom: 0; width: 84px; height: 112px; background: #EBD2C3; border-radius: 999px 999px 0 0; mix-blend-mode: multiply; animation: hd-breathe 9s ease-in-out infinite; transform-origin: 50% 100%; }
.deco-bl .arch-b { left: 58px; bottom: 0; width: 84px; height: 112px; border: 2px solid var(--sage); border-bottom: 0; border-radius: 999px 999px 0 0; animation: hd-breathe 9s ease-in-out infinite -4.5s; transform-origin: 50% 100%; }
.deco-bl .orb { left: 128px; bottom: 6px; width: 52px; height: 52px; border-radius: 50%; background: #C9DAD3; mix-blend-mode: multiply; animation: hd-float 7s ease-in-out infinite -1s; }
.deco-bl .dot { left: 104px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: .8; animation: hd-drift 6s ease-in-out infinite; }

@media (max-width: 1100px) { .deco { transform: scale(.7); } .deco-tr { transform-origin: top right; right: 16px; top: 14px; } .deco-bl { transform-origin: bottom left; left: 16px; bottom: 10px; } }
@media (max-width: 767px) { .deco { display: none; } }
@media (prefers-reduced-motion: reduce) { .deco *, .deco span, .deco i { animation: none !important; } }
.product-thumb .image a { background: var(--paper); }

/* ---------- 21. Decoration palette: greens, gold, beige, brown ---------- */
.deco-tr .w1 { background: #E2D0AE; }                 /* beige */
.deco-tr .w2 { background: #A9C4B4; }                 /* soft green */
.deco-tr .w3 { background: #E0BE74; }                 /* gold */
.deco-tr .ring { border-color: #8C6B3F; }             /* brown */
.deco-tr .dot  { background: #5D877F; opacity: .8; }  /* deep green */
.deco-bl .arch-a { background: #E2D0AE; }             /* beige */
.deco-bl .arch-b { border-color: #8C6B3F; }           /* brown outline */
.deco-bl .orb    { background: #A9C4B4; }             /* soft green */
.deco-bl .dot    { background: #C49A55; }             /* gold */

/* ---------- 22. Decoration placement: washes -> top-right of "Fresh from the studio"; arches -> top-left of "Shop by category" ---------- */
.new { position: relative; }
.new .container { position: relative; z-index: 1; }
.deco-bl { top: 28px; bottom: auto; }
@media (max-width: 1100px) { .deco-bl { top: 14px; bottom: auto; transform-origin: top left; } }

/* Hero centre arch: real photo, no paper-blend (keeps skin tones true) */
.arch-1 img { mix-blend-mode: normal; object-position: 50% 42%; }
.arch-3 img { mix-blend-mode: normal; object-position: 50% 12%; }
.arch-1 img { object-position: 42% 38%; }
.arch-2 img { mix-blend-mode: normal; object-position: 50% 22%; }

/* ---------- 23. Language & currency live in the header, beside search ---------- */
.locale { display: flex; align-items: center; margin-right: 6px; padding-right: 8px; border-right: 1px solid var(--sand); }
.locale .pull-left { float: none !important; }
.locale .btn-group { position: relative; }
.locale .btn-link {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 8px; border: 0; border-radius: 999px;
  color: var(--ink); font-size: .84rem; font-weight: 700; text-decoration: none; background: transparent;
}
.locale .btn-link:hover, .locale .open > .btn-link { background: var(--paper); color: var(--clay); }
.locale .btn-link img { width: 18px; height: auto; border-radius: 2px; }
.locale .btn-link .hidden-xs, .locale .btn-link .hidden-sm, .locale .btn-link .hidden-md { display: none !important; }  /* "Language"/"Currency" words */
.locale .btn-link .fa-caret-down { font-size: .8rem; opacity: .6; }
.locale .dropdown-menu { right: 0; left: auto; min-width: 170px; }
.locale .dropdown-menu .btn-link { width: 100%; justify-content: flex-start; height: auto; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: .9rem; }
@media (max-width: 575px) { .locale { display: none; } .site-nav .locale { display: flex; border: 0; padding: 18px 0 0; margin: 0; } }

/* ---------- 24. Category pills behave like a filter bar ---------- */
.pill { text-decoration: none; }
.pill.active, .pill.active:hover, .pill.active:focus { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pill:focus { outline: 0; }
.pill:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* ---------- 25. Partners: 5 logos, the centre one in colour, endless slide ---------- */
.partners { padding: 56px 0 84px; }
.partners-title { text-align: center; margin: 0 0 22px; }
.logo-carousel { --per: 5; }
.logo-viewport {
  overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.logo-track { display: flex; will-change: transform; }
.logo-track.is-animating { transition: transform .75s cubic-bezier(.45, .05, .25, 1); }
.logo-item { flex: 0 0 calc(100% / var(--per)); padding: 0 clamp(10px, 2.2vw, 30px); display: flex; align-items: center; justify-content: center; }
.logo-item a, .logo-item img { display: block; width: 100%; }
.logo-item img {
  max-height: 110px; object-fit: contain; mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.05); opacity: .55; transform: scale(.92);
  transition: filter .6s ease, opacity .6s ease, transform .6s var(--ease);
}
/* the logo in the middle is shown exactly like a hovered one */
.logo-item.is-center img, .logo-item:hover img { filter: none; opacity: 1; transform: scale(1.12); }
@media (max-width: 767px) { .partners { padding: 40px 0 56px; } .logo-item img { max-height: 90px; } }
@media (max-width: 575px) { .logo-carousel { --per: 3; } }

/* ---------- 26. Footer: centred logo block, smaller type ---------- */
.site-footer { font-size: .84rem; line-height: 1.55; }
.footer-grid { padding-top: 48px; padding-bottom: 42px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.footer-brand img { height: 74px; margin: 0 auto 8px; }
.footer-brand .hand-note { font-size: 1.3rem; line-height: 1.2; margin: 0 0 6px; }
.footer-brand .copyright { margin: 0; font-size: .76rem; color: #a8957f; letter-spacing: .02em; }
.site-footer h5 { font-size: 1rem; margin-bottom: 12px; }
.site-footer li { margin-bottom: 7px; }
.contact-list .fa { width: 18px; }
@media (max-width: 991px) { .footer-brand { grid-column: 1 / -1; padding-bottom: 6px; } }
/* the page's root font-size is 10px, so use px here */
.site-footer { font-size: 13.5px; line-height: 1.55; }
.site-footer h5 { font-size: 15.5px; }
.footer-brand .hand-note { font-size: 21px; }
.footer-brand .copyright { font-size: 12px; }
.site-footer { border-top: 0; margin-top: 0; padding-top: 0; }
.end-cta + .site-footer { margin-top: -1px; }   /* hide the hairline seam between the two dark blocks */

/* ---------- 27. "Looking for something special?" = its own card; copyright strip at the very bottom ---------- */
.end-cta { background: transparent; border-radius: 0; margin-top: 0; padding: 8px 0 88px; text-align: center; color: inherit; }
.end-cta .cta-card {
  position: relative; overflow: hidden; background: var(--sage); color: #f3ecdc;
  border-radius: var(--radius-lg); padding: 64px 28px; box-shadow: var(--shadow);
}
.end-cta .cta-card:before, .end-cta .cta-card:after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; background: rgba(251, 246, 236, .08); }
.end-cta .cta-card:before { width: 280px; height: 280px; left: -90px; top: -110px; }
.end-cta .cta-card:after  { width: 220px; height: 220px; right: -60px; bottom: -90px; }
.end-cta .cta-card > * { position: relative; z-index: 1; }
.end-cta h2 { color: #fff; margin: 0 0 12px; }
.end-cta p { max-width: 36em; margin: 0 auto 26px; color: #e6efe9; font-size: 16px; }
.end-cta .btn-primary { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.end-cta .btn-primary:hover { background: #fff; border-color: #fff; color: var(--clay-dark); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.end-cta + .site-footer { margin-top: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; text-align: center; font-size: 12px; color: #a8957f; letter-spacing: .02em; }
.footer-bottom .container { display: block; text-align: center; }
@media (max-width: 767px) { .end-cta { padding: 4px 0 56px; } .end-cta .cta-card { padding: 44px 20px; } }


/* ---------- 28. Sticky header: the menu must not move. The logo shrinks on scroll, so give it a fixed-width slot;
   the menu is centred between the logo slot and the icons and therefore stays put. ---------- */
@media (min-width: 992px) {
  .brand { flex: 0 0 96px; width: 96px; }
  .brand img { max-width: 100%; }
  .site-nav, .site-header.is-stuck .site-nav { transform: none; transition: none; }
}

/* ---------- 29. Stores & payment methods, then the logo divider that leads into the footer ---------- */
.info-strip { padding: 8px 0 8px; }
.info-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px 64px; align-items: start; }
.info-grid:before, .info-grid:after { content: none; display: none; }
.info-block h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 16px; color: var(--ink); }
.store-list { margin: 0; }
.store-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.store-list .fa { flex: none; width: 20px; margin-top: 3px; font-size: 17px; color: var(--clay); text-align: center; }
.store-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.store-list a:hover { color: var(--clay); }
.pay-icons { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; }
.pay-icons img { height: 42px; width: auto; }

.logo-divider { padding: 36px 0 44px; }
.logo-divider .container { display: flex; align-items: center; gap: 30px; }
.logo-divider .container:before, .logo-divider .container:after { content: none; display: none; }
.logo-divider .line { flex: 1; height: 1px; background: var(--ink); opacity: .55; }
.logo-divider img { height: 92px; width: auto; flex: none; }
@media (max-width: 767px) {
  .info-grid { grid-template-columns: 1fr; gap: 28px; }
  .logo-divider { padding: 28px 0 32px; }
  .logo-divider img { height: 68px; }
  .logo-divider .container { gap: 18px; }
}

/* ---------- 30. Stores & payments live in the dark footer; the tagline sits under the divider logo ---------- */
.logo-divider { padding: 36px 0 62px; }
.logo-divider .container { align-items: center; }
.divider-brand { position: relative; display: block; flex: none; line-height: 0; }
.divider-brand img { display: block; height: 92px; width: auto; }
.divider-note {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 8px;
  white-space: nowrap; font-family: var(--font-hand); font-size: 24px; line-height: 1; font-weight: 600; color: #8C6B3F;
}
@media (max-width: 767px) { .logo-divider { padding: 28px 0 52px; } .divider-brand img { height: 68px; } .divider-note { font-size: 21px; } }

.footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; }
.footer-info .store-list { margin: 0 0 6px; }
.site-footer .store-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.5; color: #d8c8b2; }
.site-footer .store-list .fa { flex: none; width: 18px; margin-top: 2px; font-size: 15px; color: var(--gold); text-align: center; }
.site-footer .store-list a { color: #d8c8b2; text-decoration: underline; text-decoration-color: rgba(196, 154, 85, .6); text-underline-offset: 3px; }
.site-footer .store-list a:hover { color: var(--gold); }
.footer-info .pay-title { margin-top: 24px; }
.footer-info .pay-icons { display: inline-flex; align-items: center; gap: 16px; padding: 9px 16px; background: var(--cream); border-radius: 14px; }
.footer-info .pay-icons img { height: 30px; width: auto; }
@media (max-width: 991px) { .footer-info { grid-column: 1 / -1; } }

/* ---------- 31. Footer shares the page background; only the copyright strip stays dark ---------- */
.site-footer { background: transparent; color: var(--ink); }
.logo-divider { padding-bottom: 58px; }
.footer-grid { padding-top: 12px; }
.site-footer h5 { color: var(--ink); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--clay); }
.site-footer li { color: var(--ink); }
.site-footer .store-list li { color: var(--ink); }
.site-footer .store-list .fa, .contact-list .fa { color: var(--clay); }
.site-footer .store-list a { color: var(--ink); text-decoration-color: var(--gold); }
.site-footer .store-list a:hover { color: var(--clay); }
.footer-info .pay-icons { padding: 0; background: transparent; border-radius: 0; gap: 20px; }
.footer-info .pay-icons img { height: 36px; }
.footer-bottom { background: var(--ink); border-top: 0; color: #cdbda5; margin-top: 8px; padding: 16px 0; }
.logo-divider { padding-bottom: 76px; }
@media (max-width: 767px) { .logo-divider { padding-bottom: 66px; } }

/* ---------- 32. Social icons (Facebook, Instagram ...) ---------- */
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.site-footer .social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font-size: 17px; line-height: 1;
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.site-footer .social-links a:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }

/* ---------- 33. "The story of Handeco" page + plain information pages ---------- */
.rich-text { max-width: 820px; margin: 8px auto 0; font-size: 16px; line-height: 1.85; }
.rich-text h2, .rich-text h3 { margin: 1.6em 0 .5em; }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--radius); }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin: 0 0 1em; }
.rich-text a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.story-hero { padding-bottom: 72px; }
.story-hero .hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.story-hero .arch-2 img { mix-blend-mode: multiply; object-position: 50% 40%; }
.story-hero .arch-3 img { object-position: 45% 40%; }
.story-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.story-tags li { padding: 7px 18px; border: 1.5px solid var(--sand); border-radius: 999px; background: #fffdf8; font-weight: 700; font-size: 14px; color: var(--ink); }

.story-path { background: var(--paper); position: relative; overflow: hidden; }
.steps { position: relative; max-width: 1000px; margin: 0 auto; padding: 0; }
.steps:before { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 2px dashed #c9b48c; transform: translateX(-1px); }
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 76px; margin-bottom: 34px; }
.step:last-child { margin-bottom: 0; }
.step-no {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; background: var(--clay); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-size: 32px; font-weight: 600; line-height: 1; padding-bottom: 4px;
  box-shadow: 0 0 0 7px var(--paper);
}
.step:nth-child(even) .step-no { background: var(--sage); }
.step-card {
  position: relative; background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius-lg);
  padding: 28px 32px 30px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step:nth-child(odd) .step-card  { grid-column: 1; text-align: right; }
.step:nth-child(even) .step-card { grid-column: 2; }
.step-card h3 { margin: 0 0 10px; font-size: 1.5rem; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.step-art { display: block; width: 76px; height: auto; margin-top: 16px; animation: hd-float 7s ease-in-out infinite; }
.step:nth-child(odd) .step-art { margin-left: auto; }

.story-trip .section-sub { margin: 10px auto 0; max-width: 34em; color: var(--ink-soft); }
.story-page .end-cta { padding-top: 24px; }

@media (max-width: 991px) {
  .steps:before { left: 27px; transform: none; }
  .step { grid-template-columns: 1fr; }
  .step-no { left: 27px; }
  .step:nth-child(odd) .step-card, .step:nth-child(even) .step-card { grid-column: 1; text-align: left; margin-left: 76px; }
  .step:nth-child(odd) .step-art { margin-left: 0; }
}
@media (max-width: 575px) {
  .step-card { padding: 22px 22px 24px; }
  .step:nth-child(odd) .step-card, .step:nth-child(even) .step-card { margin-left: 68px; }
}
@media (prefers-reduced-motion: reduce) { .step-art { animation: none; } }
.step:nth-child(odd) .step-card { text-align: left; }
.step:nth-child(odd) .step-art { margin-left: 0; }

/* ---------- 34. Story page, simplified: plain heading + timeline + quiet closing line ---------- */
.story-simple .story-head { padding-bottom: 8px; }
.story-simple .story-head .eyebrow { margin-bottom: 8px; }
.story-simple .page-lead { max-width: 40em; font-size: 17px; line-height: 1.75; }
.story-simple .steps { margin-top: 48px; }
.story-simple .step-no { box-shadow: 0 0 0 7px var(--cream); }
.story-simple .step-card { box-shadow: none; }
.story-simple .step-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.story-end { text-align: center; max-width: 36em; margin: 72px auto 8px; padding-top: 44px; border-top: 1px dashed #c9b48c; }
.story-end h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; }
.story-end p { margin: 0 0 22px; color: var(--ink-soft); }
.story-simple .steps { margin-top: 36px; }

/* ---------- 35. Story page: centred numbers + gentle motion ---------- */
.story-simple { position: relative; overflow: hidden; }
.story-simple .container { position: relative; z-index: 1; }

/* numbers: serif figures sit truly centred in the circle */
.step-no { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; padding: 0; font-variant-numeric: lining-nums; letter-spacing: 0; }
.step-no:after {                                   /* soft pulsing ring */
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--clay);
  opacity: 0; animation: hd-ping 3.6s ease-out infinite;
}
.step:nth-child(even) .step-no:after { border-color: var(--sage); animation-delay: 1.2s; }
.step:nth-child(3) .step-no:after { animation-delay: .6s; }
.step:nth-child(4) .step-no:after { animation-delay: 1.8s; }
@keyframes hd-ping { 0% { transform: scale(.85); opacity: .65; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

/* the title underline draws itself */
.story-simple .page-head h1:after { width: 0; animation: hd-draw .9s .25s var(--ease) forwards; }
@keyframes hd-draw { to { width: 64px; } }

/* the timeline fills in as you scroll (--p is set by theme.js) */
.steps:after {
  content: ''; position: absolute; left: 50%; top: 10px; width: 3px; border-radius: 2px; transform: translateX(-1.5px);
  height: calc(var(--p, 0) * (100% - 20px)); background: linear-gradient(var(--clay), var(--gold)); transition: height .12s linear;
}

/* cards slide in when they reach the viewport */
.step.reveal { opacity: 0; transition: opacity .7s ease, transform .85s var(--ease); }
.step.reveal:nth-child(odd)  { transform: translate(-28px, 16px); }
.step.reveal:nth-child(even) { transform: translate(28px, 16px); }
.step.reveal.in-view { opacity: 1; transform: none; }

/* the bauble sways on its hanger */
.step-art { transform-origin: 50% 0; animation: hd-sway 5.5s ease-in-out infinite; }
@keyframes hd-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* floating shapes in the margins */
.deco-story-a { top: 130px; right: max(10px, calc(50% - 640px)); }
.deco-story-b { top: 46%; bottom: auto; left: max(10px, calc(50% - 650px)); }
@media (max-width: 1100px) { .deco-story-a, .deco-story-b { display: none; } }

@media (max-width: 991px) {
  .steps:after { left: 27px; transform: none; }
  .step.reveal:nth-child(odd), .step.reveal:nth-child(even) { transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) {
  .step-no:after, .step-art { animation: none; }
  .story-simple .page-head h1:after { animation: none; width: 64px; }
  .step.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 36. Story page: one illustration beside each card (not inside it), each with its own motion ---------- */
.story-simple .deco { display: none; }
.step { align-items: center; }
.step-card { grid-row: 1; }
.step-side { grid-row: 1; display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.step:nth-child(odd) .step-side  { grid-column: 2; }
.step:nth-child(even) .step-side { grid-column: 1; }
.step-side svg { width: min(220px, 100%); height: auto; overflow: visible; }
.step-side svg.side-bauble { width: 120px; }

.step.reveal .step-side { opacity: 0; transform: scale(.82); transition: opacity .9s .3s ease, transform 1.1s .3s var(--ease); }
.step.reveal.in-view .step-side { opacity: 1; transform: none; }

.anim-cloud      { animation: hd-cloud 12s ease-in-out infinite alternate; }
.anim-cloud.slow { animation-duration: 17s; animation-delay: -6s; }
.anim-flag       { transform-origin: 0 50%; animation: hd-flag 2.4s ease-in-out infinite; }
.anim-sway-soft  { transform-origin: 50% 100%; animation: hd-tree 6s ease-in-out infinite; }
.anim-sway       { transform-origin: 50% 0; animation: hd-sway 5.5s ease-in-out infinite; }
.anim-brush      { transform-origin: 50% 50%; animation: hd-wiggle 4.2s ease-in-out infinite; }
.anim-pencil     { transform-origin: 50% 50%; animation: hd-wiggle 4.2s ease-in-out infinite reverse; }
.anim-beat       { transform-origin: 50% 50%; animation: hd-beat 1.9s ease-in-out infinite; }
.anim-twinkle    { transform-origin: 50% 50%; animation: hd-twinkle 2.8s ease-in-out infinite; }
.anim-twinkle.d2 { animation-delay: .9s; }
.anim-twinkle.d3 { animation-delay: 1.8s; }
.anim-bob        { animation: hd-bob 3.4s ease-in-out infinite; }
.anim-bob.d2     { animation-delay: .55s; }
.anim-bob.d3     { animation-delay: 1.1s; }

@keyframes hd-cloud   { from { transform: translateX(-6px); } to { transform: translateX(22px); } }
@keyframes hd-flag    { 0%, 100% { transform: scaleX(1) skewY(0deg); } 50% { transform: scaleX(.78) skewY(6deg); } }
@keyframes hd-tree    { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes hd-wiggle  { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes hd-beat    { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.16); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 56% { transform: scale(1); } }
@keyframes hd-twinkle { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .45; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes hd-bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 991px) { .step-side { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .step-side * { animation: none !important; }
  .step.reveal .step-side { opacity: 1; transform: none; transition: none; }
}
.anim-cloud, .anim-flag, .anim-sway-soft, .anim-sway, .anim-brush, .anim-pencil, .anim-beat, .anim-twinkle, .anim-bob { transform-box: fill-box; }
/* story illustrations: a little smaller */
.step-side svg { width: min(170px, 100%); }
.step-side svg.side-bauble { width: 92px; }


/* the logo's brush tail pulls the image's centre to the right of the ring: shift it so the RING is centred on the page */
.divider-brand img { transform: translateX(13.18%); }

/* ---------- 37. Logo divider: equal space above the logo and below the tagline ---------- */
.end-cta { padding-bottom: 12px; }
.logo-divider { padding-top: 72px; padding-bottom: 104px; }   /* 12 + 72 above = 84px; below: 104 - 32 (tagline) + 12 = 84px */
@media (max-width: 767px) {
  .end-cta { padding-bottom: 8px; }
  .logo-divider { padding-top: 64px; padding-bottom: 88px; }
}

/* ---------- 38. No leftover focus outline after a mouse click (keyboard users still get a ring) ---------- */
a:focus:not(:focus-visible), button:focus:not(:focus-visible), .logo-item a:focus:not(:focus-visible) { outline: 0; box-shadow: none; }
.logo-item a:focus { outline: 0; }
.logo-item a:focus-visible { outline: 2px solid var(--sage); outline-offset: 6px; border-radius: 10px; }
.hero .arch-3 img { object-position: 46% 30%; }

/* ---------- 39. Partner logos: a little smaller ---------- */
.logo-item { padding: 0 clamp(16px, 3.8vw, 56px); }
.logo-item img { max-height: 84px; }
@media (max-width: 767px) { .logo-item img { max-height: 66px; } }

/* ---------- 40. Partners: no flicker on the centred logo ---------- */
.logo-track.is-jumping .logo-item img { transition: none !important; }
.logo-item img { mix-blend-mode: normal; backface-visibility: hidden; will-change: filter, opacity, transform; }

/* ---------- 41. Footer columns on tablet / phone (must come after the desktop 4-column rule) ---------- */
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-info { grid-column: 1 / -1; } }
@media (max-width: 575px)  { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* cart page: design thumbnails are 240px wide; show them at a tidy size */
#checkout-cart .table img.img-thumbnail { width: 84px; height: auto; max-width: none; background: transparent; border: 0; padding: 0; }
.mini-cart .mc-img img { object-fit: contain; background: transparent; }

/* product cards: centred title + price, price in the accent colour */
.product-thumb .caption { text-align: center; }
.product-thumb .caption h4 { text-align: center; }
.product-thumb .price { color: var(--clay); font-size: 1.1rem; }
.product-thumb .price-old { color: var(--ink-soft); margin-left: 6px; }

/* sub menu: smaller type */
.sub-list a { font-size: 14px; padding: 8px 14px; }
.sub-all a { font-size: 13px; }
.sub-all a { display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.sub-all a .fa { font-size: 12px; line-height: 1; position: relative; top: 0; transition: transform .25s var(--ease); }
.sub-all a:hover .fa { transform: translateX(3px); }

/* product page: smaller main picture, wider details column */
@media (min-width: 768px) {
  #product-product #content > .row > .col-sm-8 { width: 48%; }
  #product-product #content > .row > .col-sm-4 { width: 52%; padding-left: 36px; }
}
#product-product .thumbnails { max-width: 440px; }
#product-product .thumbnails .thumbnail { margin-bottom: 14px; }
#product-product .thumbnails .thumbnail img { max-width: 100%; height: auto; }
#product-product .image-additional { width: 82px; }

/* product page: wishlist / compare buttons get breathing room */
#product-product .btn-group { display: flex; gap: 12px; margin: 0 0 20px; }
#product-product .btn-group > .btn { border-radius: 999px; padding: 11px 26px; margin: 0; float: none; }

/* product page: rating line (stars + "0 recenzii / Spune-ți opinia") */
#product-product .rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 16px 0 18px; }
#product-product .rating > p { display: flex; align-items: center; gap: 2px; margin: 0; }
#product-product .rating .fa-stack { margin: 0 1px; }
#product-product .rating a { font-size: 14px; }
#product-product .rating hr { display: none; }
#product-product .rating .fa-stack:last-of-type { margin-right: 12px; }
#product-product .rating > p { gap: 0; }
#product-product .rating > p > a:first-of-type { margin-right: 6px; }
#product-product .rating > p > a:last-of-type { margin-left: 6px; }

/* product page: "Other products that might interest you" */
.hd-more { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--sand); }
.hd-more > h3 { margin: 0 0 22px; text-align: center; }

/* ==========================================================================
   TYPE SCALE (one place to tune the site's font sizes)
   The page root is 10px (Bootstrap), so every size below is in px on purpose.
     --fs-xs   13px  fine print, copyright, tags
     --fs-sm   14px  secondary text: footer, breadcrumb, buttons, labels, captions
     --fs-base 17px  body text, form fields, prices, menu
     --fs-md   18px  card titles, list titles
     --fs-lg   17px  lead paragraphs
   Headings keep their own (clamp) sizes.
   ========================================================================== */
:root { --fs-xs: 13px; --fs-sm: 14px; --fs-base: 17px; --fs-md: 18px; --fs-lg: 17px; }

body { font-size: var(--fs-base); line-height: 1.65; }
p, li, td, th, dd, dt, label, .form-control, .control-label { font-size: inherit; }
.form-control, input, select, textarea, .btn { font-size: var(--fs-base); }
.btn { font-size: var(--fs-sm); }
.btn-lg { font-size: var(--fs-base); }
.lead, .hero-copy .lead, .page-lead { font-size: var(--fs-lg); }
.end-cta p, .story-simple .page-lead { font-size: var(--fs-lg); }

/* header / menu */
.nav-link { font-size: 16px; }
.sub-list a { font-size: var(--fs-sm); }
.sub-all a { font-size: var(--fs-xs); }
.topbar, .topbar a, .topbar .btn-link, .topbar button, .topbar .dropdown-menu { font-size: var(--fs-xs); }
.locale .btn-link, .locale .dropdown-menu .btn-link { font-size: var(--fs-sm); }
.mini-cart .mc-info a { font-size: var(--fs-sm); }
.mini-cart small { font-size: var(--fs-xs); }
.mini-cart .mc-qty { font-size: var(--fs-sm); }
.mc-totals td, .mc-totals tr:last-child td { font-size: var(--fs-sm); }

/* product cards */
.product-thumb .caption h4 { font-size: var(--fs-md); }
.product-thumb .price { font-size: var(--fs-base); }
.product-thumb .price-old { font-size: var(--fs-sm); }
.product-thumb .button-group button { font-size: var(--fs-sm); }
.cat-label small { font-size: var(--fs-sm); }

/* breadcrumb, listing toolbar */
.breadcrumb { font-size: var(--fs-sm); }
.toolbar-controls label, .toolbar-compare, .pager-results, .toolbar-controls select { font-size: var(--fs-sm); }

/* product page */
#product-product h1 { font-size: clamp(26px, 3.2vw, 34px); }
#product-product h3 { font-size: 21px; }
#button-cart { font-size: var(--fs-base); }
#product-product .rating a { font-size: var(--fs-sm); }

/* footer */
.site-footer { font-size: var(--fs-sm); }
.site-footer h5 { font-size: 18px; }
.footer-brand .copyright { font-size: var(--fs-xs); }
.footer-bottom { font-size: var(--fs-xs); }
.values-inner { font-size: var(--fs-sm); }

@media (max-width: 767px) {
  .nav-link { font-size: 22px; }
  .topbar-msg { font-size: var(--fs-xs); }
  .product-thumb .caption h4 { font-size: 16px; }
  .product-thumb .button-group button { font-size: 13.5px; }
}

/* headings scale (kept clearly above the 17px body text) */
h1 { font-size: clamp(32px, 4.4vw, 46px); }
h2 { font-size: clamp(27px, 3vw, 34px); }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
.hero-copy h1 { font-size: clamp(25px, 5.6vw, 45px); }
.footer-col li, .footer-col li span, .footer-col li a, .footer-col p { font-size: var(--fs-sm); }
#product-product h2 { font-size: 30px; }
#product-product h3 { font-size: 21px; }
.cfg-step-head h2 { font-size: 22px; }
.cfg-view-head h2 { font-size: clamp(26px, 3vw, 32px); }
.cfg-preview h3 { font-size: 19px; }
.cfg-model-title { font-size: clamp(28px, 3.4vw, 36px); }
.hd-more > h3 { font-size: 26px; }
h1 { font-size: clamp(30px, 3.6vw, 40px); }

/* descriptions pasted from the old site carry inline fonts/sizes (Arial 12px): follow the theme instead */
#tab-description, #tab-description *, #product-product .tab-content p span, #product-product .tab-content font, .rich-text *, .product-info-text * {
  font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important;
}
#tab-description h1, #tab-description h2, #tab-description h3, #tab-description h4 { font-family: var(--font-display) !important; }
#tab-description strong, #tab-description b { font-weight: 700 !important; }
#tab-description a, .rich-text a { color: var(--clay) !important; text-decoration: underline; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-head .eyebrow { display: block; margin-bottom: 4px; }
.contact-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 44px; align-items: start; margin-top: 34px; }
.contact-grid:before, .contact-grid:after { content: none; display: none; }

/* left: arch photo + info cards */
.contact-arch { position: relative; height: 250px; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.contact-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.contact-stamp {
  position: absolute; right: 14px; bottom: 14px; padding: 10px 16px; border-radius: 16px; background: rgba(251, 246, 236, .94);
  font-family: var(--font-hand); font-size: 20px; line-height: 1.1; color: var(--clay-dark); text-align: center;
}
.contact-cards { margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius-lg); transition: transform .3s var(--ease), box-shadow .3s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--clay); color: #fff; font-size: 19px; }
.contact-card:nth-child(2) .contact-ico { background: var(--sage); }
.contact-card:nth-child(3) .contact-ico { background: var(--gold); }
.contact-card:nth-child(4) .contact-ico { background: var(--ink); }
.contact-card h3 { margin: 0 0 2px; font-size: 20px; }
.contact-card p { margin: 0 0 4px; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.45; }
.contact-card a { font-weight: 700; color: var(--clay); word-break: break-word; }
.contact-card a:hover { color: var(--clay-dark); }
.contact-stores { margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); line-height: 1.45; }
.contact-stores a { font-weight: 600; color: var(--ink); }
.contact-socials { display: flex; gap: 10px; margin-top: 6px; }
.contact-socials a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); font-size: 18px; transition: all .2s; }
.contact-socials a:hover { background: var(--clay); color: #fff; }

/* right: the message form */
.contact-form-card { position: relative; overflow: hidden; padding: 38px 40px 40px; background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-form-card h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 32px); }
.contact-form-lead { margin: 0 0 26px; color: var(--ink-soft); max-width: 30em; }
.contact-sprig { position: absolute; right: -14px; top: -10px; width: 110px; opacity: .55; pointer-events: none; transform: rotate(18deg); }
.contact-form .form-group { margin: 0 0 18px; }
.contact-form label { display: block; margin: 0 0 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); text-align: left; padding: 0; }
.contact-form .required > label:before { content: '* '; color: var(--clay); }
.contact-form .form-control { width: 100%; height: auto; padding: 13px 16px; background: var(--cream); border: 1.5px solid var(--sand); border-radius: 14px; box-shadow: none; }
.contact-form textarea.form-control { resize: vertical; min-height: 150px; }
.contact-form .form-control:focus { border-color: var(--sage); background: #fff; box-shadow: 0 0 0 4px rgba(122, 156, 140, .18); outline: 0; }
.contact-form .text-danger { margin-top: 6px; font-size: var(--fs-sm); }
.contact-captcha fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.contact-captcha legend { display: none; }
.contact-captcha .form-group { margin-bottom: 14px; }
.contact-captcha [class*="col-sm-"] { width: 100%; float: none; padding: 0; }
.contact-captcha .control-label { text-align: left; }
.contact-captcha img { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 8px; }
.contact-submit { margin-top: 8px; }
.contact-submit .btn .fa { margin-left: 8px; transition: transform .25s var(--ease); }
.contact-submit .btn:hover .fa { transform: translateX(4px); }

@media (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-arch { height: 210px; }
}
@media (max-width: 575px) {
  .contact-form-card { padding: 28px 20px 28px; }
  .contact-card { padding: 16px; }
  .contact-sprig { width: 84px; }
}
.contact-arch { height: 300px; }
.contact-arch img { object-position: center 28%; }
.contact-stamp { white-space: nowrap; font-size: 22px; padding: 8px 18px; }
@media (max-width: 991px) { .contact-arch { height: 260px; } }
.contact-arch img { object-position: center 42%; }

/* contact page: the necklace photo in a circle that frames the whole piece */
.contact-arch { height: auto; aspect-ratio: 1 / 1; width: 100%; max-width: 420px; margin: 0 auto 26px; border-radius: 50%; border: 7px solid #fffdf8; box-shadow: 0 10px 28px rgba(58, 45, 37, .14); }
.contact-arch img { object-fit: cover; object-position: center 38.6%; }
@media (max-width: 991px) { .contact-arch { height: auto; max-width: 340px; } }
.contact-arch { border: 0; }

/* ==========================================================================
   Product page: smaller type (title and price 22px, text 15px)
   ========================================================================== */
#product-product { font-size: 15px; }
#product-product h1 { font-size: 22px; line-height: 1.3; margin: 6px 0 12px; }
#product-product h2 { font-size: 22px; margin: 10px 0; }
#product-product h3 { font-size: 16px; }
#product-product .hd-more > h3 { font-size: 18px; }
#product-product .nav-tabs > li > a { font-size: 15px; }
#product-product .tab-content { font-size: 15px; }
#product-product .form-control, #product-product select, #product-product .btn, #product-product .control-label, #product-product .radio label, #product-product .checkbox label { font-size: 15px; }
#product-product #button-cart { font-size: 15px; padding: 13px 34px; }
#product-product .rating a, #product-product .breadcrumb { font-size: 14px; }
#product-product .product-thumb .caption h4 { font-size: 16px; }
#product-product .product-thumb .price { font-size: 15px; }
#product-product .product-thumb .button-group button { font-size: 13px; }

/* product page: description sits right under the title */
.hd-product-desc { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.65; }
.hd-product-desc p { margin: 0 0 8px; }
.hd-product-desc, .hd-product-desc * { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
.hd-product-desc a { color: var(--clay) !important; text-decoration: underline; }
.hd-product-desc strong, .hd-product-desc b { font-weight: 700 !important; }

/* product page: the model number is internal, so it is not shown */
#product-product li.optionmodel { display: none; }

/* cart page: the model number column is internal, so it is not shown */
#checkout-cart .table-responsive > table thead td:nth-child(3),
#checkout-cart .table-responsive > table tbody td:nth-child(3) { display: none; }

/* "Other products" row: equal-height cards so the buttons line up even when titles wrap */
.hd-more .row { display: flex; flex-wrap: wrap; }
.hd-more .row::before, .hd-more .row::after { display: none; }
.hd-more .row > [class*='col-'] { display: flex; }

/* product cards: "add to cart" in the middle (wishlist on its left, compare on its right; a spacer balances the two-button variant) */
.product-thumb .button-group:has(button:nth-child(3)) button:nth-child(2) { order: 1; }
.product-thumb .button-group:has(button:nth-child(3)) button:nth-child(1) { order: 2; }
.product-thumb .button-group:has(button:nth-child(3)) button:nth-child(3) { order: 3; }
.product-thumb .button-group:has(button:nth-child(2)):not(:has(button:nth-child(3)))::before { content: ''; flex: none; width: 40px; order: 0; }
.product-thumb .button-group:not(:has(button:nth-child(3))) button { order: 1; }

/* ---------- Account page ---------- */
.account-head { text-align: center; margin: 10px 0 34px; }
.account-head h1 { margin: 0 0 8px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.account-card { position: relative; padding: 26px 28px 20px; background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius-lg); transition: transform .3s var(--ease), box-shadow .3s; }
.account-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.account-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--clay); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; }
.account-card:nth-child(2) .account-ico { background: var(--sage); }
.account-card:nth-child(3) .account-ico { background: var(--gold); }
.account-card:nth-child(4) .account-ico { background: var(--ink); }
.account-card h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.account-card h2.account-sub { margin-top: 18px; font-size: 18px; }
.account-card ul { margin: 0; padding: 0; }
.account-card li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--sand); color: var(--ink); font-size: var(--fs-base); }
.account-card li:first-child a { border-top: 0; }
.account-card li a:after { content: '›'; color: var(--gold); font-size: 1.3em; line-height: 1; transition: transform .2s; }
.account-card li a:hover { color: var(--clay); }
.account-card li a:hover:after { transform: translateX(3px); }
.account-logout { text-align: center; margin: 26px 0 10px; }
.account-logout a { color: var(--ink-soft); font-weight: 700; }
.account-logout a:hover { color: var(--clay); }
@media (max-width: 767px) { .account-grid { grid-template-columns: 1fr; } .account-card { padding: 22px 20px 16px; } }
.account-newsletter { grid-column: 1 / -1; display: flex; gap: 20px; align-items: flex-start; }
.account-newsletter .account-ico { flex: none; margin: 0; }
.account-nl-body { flex: 1; min-width: 0; }
.account-nl-body p { margin: 0 0 12px; color: var(--ink-soft); }
.account-nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.account-nl-form input[type=email] { flex: 1; min-width: 200px; height: 46px; padding: 0 18px; border: 1.5px solid var(--sand); border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-base); }
.account-nl-form .btn { height: 46px; border-radius: 999px; padding: 0 26px; font-weight: 700; }
.account-nl-body p.account-nl-status { margin: 12px 0 0; color: var(--sage-dark); font-size: var(--fs-sm); }
@media (max-width: 767px) { .account-newsletter { flex-direction: column; gap: 4px; } }

/* Checkout confirmation: thumbnail next to each line */
.confirm-item { display: flex; gap: 14px; align-items: center; }
.confirm-thumb { flex: none; width: 56px; }
.confirm-thumb img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--paper); display: block; }

/* Contact page: newsletter sign-up under the form */
.contact-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-nl-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px 30px; background: #fffdf8; border: 1px solid var(--sand); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-nl-card .account-ico { flex: none; margin: 0; background: var(--gold); }
.contact-nl-body { flex: 1; min-width: 0; }
.contact-nl-body h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.contact-nl-body p { margin: 0 0 12px; color: var(--ink-soft); }
.contact-nl-form .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-nl-form input[type=email] { background: #fff; }
.contact-nl-body p.contact-nl-msg { margin: 12px 0 0; font-weight: 700; font-size: var(--fs-sm); }
.contact-nl-msg.is-ok { color: var(--sage-dark); }
.contact-nl-msg.is-err { color: var(--clay-dark); }
@media (max-width: 767px) { .contact-nl-card { flex-direction: column; gap: 6px; padding: 22px 20px; } }

/* Contact form: result message under the button */
.contact-form-msg { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: var(--fs-sm); }
.contact-form-msg.is-ok { background: #e3efe6; color: #2f6b43; }
.contact-form-msg.is-err { background: #f6dcd6; color: #a3341f; }

/* Contact page: both columns end on the same line (the last card of the shorter column stretches) */
@media (min-width: 992px) {
  .contact-grid { align-items: stretch; }
  .contact-side { display: flex; flex-direction: column; }
  .contact-side .contact-cards { flex: 1; display: flex; flex-direction: column; }
  .contact-side .contact-card:last-child { flex: 1; align-items: center; }
  .contact-main .contact-nl-card { flex: 1; align-items: center; }
}
.contact-nl-body h2 + p { font-size: var(--fs-sm); }

/* ---------- Phones: headings and text centred ---------- */
@media (max-width: 767px) {
  .breadcrumb { text-align: center; }
  .breadcrumb > li { float: none; display: inline-block; }

  /* home hero */
  .hero-copy, .hero-copy h1, .hero-copy .lead, .hero-copy .eyebrow { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-copy h1:after { margin-left: auto; margin-right: auto; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }

  /* footer */
  .site-footer .footer-col, .site-footer .footer-col h5 { text-align: center; }
  .site-footer .store-list li, .site-footer .contact-list li { justify-content: center; text-align: center; }
  .site-footer .pay-icons, .site-footer .social-links { justify-content: center; }
  .site-footer .footer-col ul { padding-left: 0; }

  /* product page */
  #product-product h1, #product-product .hd-product-desc, #product-product .hd-product-desc p,
  #product-product .col-sm-4 > ul, #product-product .col-sm-4 > h1, #product-product #product,
  #product-product .control-label, #product-product .rating { text-align: center; }
  #product-product .rating, #product-product .btn-group { justify-content: center; }
  #product-product .form-group > div, #product-product #product .radio, #product-product #product .checkbox { text-align: center; }

  /* information / text pages */
  #information-information h1, #information-information #content, #information-information #content p,
  #information-information .page-wrap { text-align: center; }
}

/* Phones, product page: photos, then the title / price / buy button, then the reviews tab */
@media (max-width: 767px) {
  #product-product #content > .row { display: flex; flex-direction: column; margin-left: 0; margin-right: 0; }
  #product-product #content > .row:before, #product-product #content > .row:after { display: none; }
  #product-product #content > .row > .col-sm-8 { display: contents; }
  #product-product #content > .row > .col-sm-8 > ul.thumbnails { order: 1; }
  #product-product #content > .row > .col-sm-4 { display: contents; }
  #product-product #content > .row > .col-sm-4 > * { order: 2; }
  #product-product #content > .row > .col-sm-4 > h1 { order: 0; margin-top: 8px; }
  #product-product #content > .row > .col-sm-8 > .nav-tabs { order: 3; }
  #product-product #content > .row > .col-sm-8 > .tab-content { order: 4; }
}
@media (max-width: 767px) {
  #product-product ul.thumbnails { text-align: center; }
  #product-product .nav-tabs { text-align: center; }
  #product-product .nav-tabs > li { float: none; display: inline-block; }
  #product-product .tab-content, #product-product .tab-content h2, #product-product .tab-content p { text-align: center; }
}
@media (max-width: 767px) {
  #product-product ul.thumbnails { display: flex; flex-wrap: wrap; justify-content: center; }
}

/* Sliders (home): equal-height cards so the buttons line up at the bottom, and a button that fits the card on phones */
.slider .slide { display: flex; }
.slider .slide .product-thumb { flex: 1 1 auto; min-width: 0; }
@media (max-width: 767px) {
  .product-thumb .button-group button { padding-left: 8px; padding-right: 8px; white-space: nowrap; min-width: 0; font-size: 12.5px; letter-spacing: 0; }
  .product-thumb .button-group button .fa { margin-right: 3px; }
}

/* product cards: the price sits at the bottom of the text block, so prices (and buttons) line up whatever the title length */
.product-thumb .caption { display: flex; flex-direction: column; }
.product-thumb .caption > .price { margin-top: auto; padding-top: 6px; }

/* Story timeline: the number circles sit above the progress line (on phones the line used to run over the numbers) */
.steps:after { z-index: 1; }
.step-no { z-index: 2; }
.step-no:after { z-index: -1; }
.step { z-index: 2; }   /* each step is its own layer (scroll animation), so the whole step sits above the progress line */

/* Phones: the product card has room for the "add to cart" button only (heart is on the photo); compare / extra icons are hidden */
@media (max-width: 767px) {
  .product-thumb .button-group button + button { display: none; }
  .product-thumb .button-group::before { display: none !important; }
  .product-thumb .button-group button:first-child { flex: 1; order: 0 !important; }
}

/* Phones, home hero: title, then the picture collage, then the text and buttons */
@media (max-width: 767px) {
  .hero-grid { display: flex; flex-direction: column; gap: 18px; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; margin-bottom: 0; }
  .hero-copy h1 { order: 2; margin-bottom: 4px; }
  .hero-art { order: 3; }
  .hero-copy .lead { order: 4; margin-top: 6px; }
  .hero-copy .hero-cta { order: 5; margin-top: 8px; }
}

/* Phones, product page: smaller quantity field and buy button */
@media (max-width: 767px) {
  #product-product #input-quantity { height: 42px; padding: 6px 12px; font-size: 16px; width: 120px; max-width: 100%; margin: 0 auto; text-align: center; }
  #product-product #button-cart { padding: 10px 22px; font-size: 16px; line-height: 1.2; height: auto; min-height: 44px; }
  #product-product #product .form-group { margin-bottom: 14px; }
}
@media (max-width: 767px) {
  #product-product #button-cart { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; display: block; }
}
