/* ============================================================================
   Reset + base typography + layout primitives
   Mirrors Flatsome's foundation grid closely enough to reproduce the source
   layout: 12-column rows, `.container` at 1170px, `.col.large-N` spans.
   ========================================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
figure { margin: 0; }

/* ---------------------------------------------------------------- layout -- */

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

.container-wide { max-width: 100%; padding: 0; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--gutter) * -1);
}

.col { padding: 0 var(--gutter); width: 100%; }

.row-collapse { margin: 0; }
.row-collapse > .col { padding: 0; }

/* 12-column spans — Flatsome's `.large-N` / `.small-N` naming */
.col.small-12 { width: 100%; }
.col.small-6  { width: 50%; }
.col.small-4  { width: 33.3333%; }
.col.small-3  { width: 25%; }

@media (min-width: 850px) {
  .col.large-12 { width: 100%; }
  .col.large-11 { width: 91.6666%; }
  .col.large-10 { width: 83.3333%; }
  .col.large-9  { width: 75%; }
  .col.large-8  { width: 66.6666%; }
  .col.large-7  { width: 58.3333%; }
  .col.large-6  { width: 50%; }
  .col.large-5  { width: 41.6666%; }
  .col.large-4  { width: 33.3333%; }
  .col.large-3  { width: 25%; }
  .col.large-2  { width: 16.6666%; }
  .col.large-1  { width: 8.3333%; }
}

/* ------------------------------------------------------------ utilities -- */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.relative    { position: relative; }
.uppercase   { text-transform: uppercase; }
.hidden      { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex: 1 1 auto; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.show-for-medium { display: none; }
@media (max-width: 849px) {
  .hide-for-medium { display: none !important; }
  .show-for-medium { display: block; }
}

/* --------------------------------------------------------------- section -- */

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-content { position: relative; z-index: 1; width: 100%; }

/* Product carousel sections on the home page — measured padding: 30px 0.
   The source grid spans the full 1140px row, so drop the container gutters. */
.sec_product { padding: 30px 0; }
.sec_product > .container {
  /* The product grids and the home carousel carry a -10px row margin so their
     cards line up with the source's 1160px row. Keep a matching 10px gutter
     here or the rows run 20px past the viewport on every screen narrower than
     the 1140px container. */
  padding-left: 10px;
  padding-right: 10px;
}

.section-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.section-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- headings -- */

/* The section title is wrapped in an <h2> for document outline; the visible
   styling lives on the inner link, so the heading itself must be inert. */
.section-title-h {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
}

/* Flatsome section title: a centred link whose underline is an absolutely
   positioned ::before (so it adds no height), exactly as the source does:
     .button.is-underline:before { height:2px; bottom:0; left:20%; width:60%;
                                   background:currentColor; opacity:.3 }
   Hover widens it to 100% at full opacity. */
.section-title {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  font-size: 24px;
  font-weight: 700;
  line-height: 37.248px;
  letter-spacing: .4656px;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid transparent;
  padding: 0 2.328px;
  margin-bottom: 15.52px;
}
.section-title > span:first-child {
  display: inline-block;
  vertical-align: baseline;
  line-height: 38.4px;
}
.section-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background-color: currentColor;
  opacity: .3;
  transition: left .3s, width .3s, opacity .3s;
}
.section-title:hover::before { left: 0; width: 100%; opacity: 1; }
.section-title:hover { color: var(--primary); }

.section-title .icon-angle-right {
  font-size: 15.52px;
  line-height: 18.624px;
  margin-left: 10px;
  margin-right: 0;
  opacity: .6;
  transition: transform var(--t);
}
.section-title:hover .icon-angle-right { transform: translateX(4px); opacity: 1; }

@media (max-width: 849px) {
  /* Measured on the source at 390px: the same 15.52px outer type with the
     span still at 24px, so only the wrapper's line-height shrinks. */
  .section-title {
    font-size: 15.52px;
    line-height: 37.248px;
    padding: 0 2.328px;
    margin-bottom: 15.52px;
  }
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-size: var(--fs-btn);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
  padding: 10px 14px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { background: var(--primary); color: #fff; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #2b160c; border-color: #2b160c; }

.btn-block { width: 100%; }
.btn-lg { padding: 13px 26px; font-size: 13px; }

/* ------------------------------------------------------------ form fields - */

.field {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: #fff;
  transition: border-color var(--t-fast);
}
.field:focus { outline: 0; border-color: var(--primary); }

label { display: block; font-size: 13px; margin-bottom: 5px; }
label .req { color: var(--price); }

/* ------------------------------------------------------------- breadcrumb - */

.breadcrumbs {
  font-size: .85em;
  font-weight: 700;
  color: #222;
  padding: 0;
  margin: 0 0 .5em;
}
.breadcrumbs a { color: var(--muted); font-weight: 400; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .divider { opacity: .35; margin: 0 .3em; font-weight: 300; }

/* ------------------------------------------------------------ page shell -- */

.page-main { min-height: 40vh; }

.page-head {
  background: var(--surface-2);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 26px; text-transform: uppercase; letter-spacing: .5px; }

/* --------------------------------------------------------------- notices - */

.notice {
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  font-size: 14px;
  margin-bottom: 16px;
}
.notice-success { border-color: var(--sale); background: #f4fff7; }
.notice-error { border-color: var(--price); background: #fff0f0; }
