/* frontgates.shop — luxury home storefront */
:root {
  --fg-ink: #242424;
  --fg-paper: #f7f4ef;
  --fg-white: #ffffff;
  --fg-mute: #6b675f;
  --fg-line: #e4dfd6;
  --fg-promo: 36px;
  --fg-bar: 72px;
  --primary-color: #242424;
  --fs-color-primary: #242424;
}
*, *::before, *::after { box-sizing: border-box; }
html, body.fg-site {
  background: var(--fg-white);
  color: var(--fg-ink);
}
body.fg-site {
  font-family: Jost, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
body.fg-site a { color: var(--fg-ink); text-decoration: none; }
body.fg-site img { max-width: 100%; height: auto; display: block; }
body.fg-site #wrapper { max-width: 100%; }
body.fg-site .header-top,
body.fg-site .header-bottom,
body.fg-site .header-bg-container,
body.fg-site .header-main,
body.fg-site .header-nav,
body.fg-site .footer-wrapper,
body.fg-site .absolute-footer,
body.fg-site .header-cart-title,
body.fg-site #masthead,
body.fg-site .mobile-sidebar,
body.fg-site .off-canvas { display: none !important; }
body.fg-site .header-wrapper,
body.fg-site .header {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
}
body.fg-site #main, body.fg-site .main, body.fg-site main,
body.fg-site .page-wrapper {
  background: var(--fg-white);
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.fg-site h1, body.fg-site h2, body.fg-site h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}
.fg-promo {
  background: var(--fg-ink);
  color: var(--fg-white);
  text-align: center;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: var(--fg-promo);
  min-height: var(--fg-promo);
  padding: 0 16px;
}
.fg-header {
  background: var(--fg-white);
  border-bottom: 1px solid var(--fg-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.fg-header__bar {
  display: grid;
  grid-template-columns: 44px 1fr 120px;
  align-items: center;
  min-height: var(--fg-bar);
  padding: 8px 16px;
  gap: 8px;
}
.fg-logo { display: flex; justify-content: center; align-items: center; color: var(--fg-ink); }
.fg-logo__mark { width: min(220px, 58vw); height: auto; max-height: 28px; fill: currentColor; }
.fg-logo svg { width: min(220px, 58vw); height: auto; max-height: 28px; display: block; }
.fg-header__tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.fg-icon {
  background: none; border: 0; padding: 8px; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
}
.fg-icon--bag { position: relative; }
.fg-bag-count {
  position: absolute; top: 4px; right: 2px; background: var(--fg-ink); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; line-height: 16px; text-align: center;
}
.fg-nav { display: none; }
.fg-search {
  display: flex; gap: 8px; align-items: center; padding: 8px 16px 16px;
  border-top: 1px solid var(--fg-line); background: var(--fg-white);
}
.fg-search[hidden] { display: none !important; }
.fg-search input[type="search"] {
  flex: 1; min-width: 0; border: 1px solid var(--fg-line); height: 44px; padding: 0 12px; font: inherit;
}
.fg-search__go {
  height: 44px; padding: 0 16px; background: var(--fg-ink); color: #fff; border: 0; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; cursor: pointer;
}
.fg-drawer[hidden] { display: none !important; }
.fg-drawer {
  position: fixed; inset: 0; background: rgba(36,36,36,.45); z-index: 80;
}
.fg-drawer__panel {
  width: min(400px, 92vw); height: 100%; background: #fff; overflow-y: auto; padding: 12px 0 40px;
}
.fg-drawer__top {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 12px; border-bottom: 1px solid var(--fg-line);
}
.fg-drawer__nav { padding: 8px 0; }
.fg-drawer__item { border-bottom: 1px solid var(--fg-line); position: relative; }
.fg-drawer__item > a { display: block; padding: 14px 20px; font-size: 15px; }
.fg-drawer__chev {
  position: absolute; right: 12px; top: 10px; background: none; border: 0; padding: 8px; min-width: 36px; min-height: 36px; cursor: pointer;
}
.fg-drawer__sub { display: none; padding: 0 20px 12px; }
.fg-drawer__item.is-open .fg-drawer__sub { display: block; }
.fg-drawer__sub a { display: block; padding: 8px 0; color: var(--fg-mute); font-size: 14px; }
.fg-home-main { max-width: 1440px; margin: 0 auto; padding: 0 16px 64px; }
.fg-hero { margin: 16px 0 32px; }
.fg-hero img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16/7; }
.fg-section { margin: 48px 0; }
.fg-section h2 { font-size: 32px; text-align: center; margin: 0 0 24px; }
.fg-rail, .fg-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px;
}
.fg-card { display: flex; flex-direction: column; gap: 8px; }
.fg-card__img { background: var(--fg-paper); aspect-ratio: 1/1; overflow: hidden; }
.fg-card__img img { width: 100%; height: 100%; object-fit: cover; }
.fg-card__name { font-size: 14px; line-height: 1.35; }
.fg-card__price { font-size: 14px; }
.fg-tiles a { position: relative; display: block; background: #c9c2b6; min-height: 180px; }
.fg-tiles img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.fg-tiles span {
  position: absolute; left: 16px; bottom: 16px; color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.fg-more { text-align: center; margin-top: 20px; }
.fg-more a { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; border-bottom: 1px solid var(--fg-ink); padding-bottom: 2px; }
.fg-footer { background: #1b1b1b; color: #f3efe8; padding: 48px 16px 24px; margin-top: 48px; }
.fg-footer a { color: #f3efe8; }
.fg-footer__grid { display: grid; gap: 28px; max-width: 1200px; margin: 0 auto; }
.fg-footer h3 { font-size: 16px; margin: 0 0 12px; letter-spacing: .08em; text-transform: uppercase; font-family: Jost, sans-serif; }
.fg-footer__grid a { display: block; padding: 5px 0; font-size: 14px; color: #d9d4cb; }
.fg-footer__contact { font-size: 14px; color: #d9d4cb; line-height: 1.6; }
.fg-news { display: flex; gap: 8px; margin: 12px 0; }
.fg-news input { flex: 1; min-width: 0; height: 44px; border: 1px solid #4a4a4a; background: #111; color: #fff; padding: 0 10px; }
.fg-news button { height: 44px; padding: 0 14px; background: #fff; color: #111; border: 0; cursor: pointer; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.fg-social { display: flex; gap: 16px; margin-top: 12px; }
.fg-copy { text-align: center; margin: 36px 0 0; font-size: 12px; color: #9b968c; }
.fg-ship-notice { font-size: 13px; letter-spacing: .04em; margin: 8px 0 16px; }
.fg-acc { border-top: 1px solid var(--fg-line); margin: 24px 0; }
.fg-acc__item { border-bottom: 1px solid var(--fg-line); }
.fg-acc__item summary { cursor: pointer; padding: 14px 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; list-style: none; }
.fg-acc__item summary::-webkit-details-marker { display: none; }
.fg-acc__item div { padding: 0 0 16px; color: var(--fg-mute); font-size: 15px; line-height: 1.6; }
.fg-cart-thumb { width: 96px; height: 96px; object-fit: cover; }
body.fg-site ul.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
body.fg-site ul.products li.product { width: auto !important; margin: 0 !important; }
body.fg-site .woocommerce-pagination { margin: 32px 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (min-width: 768px) {
  .fg-rail { grid-template-columns: repeat(3, 1fr); }
  .fg-tiles { grid-template-columns: repeat(3, 1fr); }
  .fg-footer__grid { grid-template-columns: repeat(2, 1fr); }
  body.fg-site ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .fg-icon--menu { visibility: hidden; pointer-events: none; }
  .fg-header__bar { grid-template-columns: 1fr auto 1fr; padding: 10px 32px; }
  .fg-logo { justify-self: center; }
  .fg-logo svg, .fg-logo__mark { width: 260px; max-height: 32px; }
  .fg-nav { display: block; border-top: 1px solid var(--fg-line); }
  .fg-nav__list {
    display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0 16px;
    flex-wrap: wrap;
  }
  .fg-nav__item { position: relative; }
  .fg-nav__item > a {
    display: block; padding: 12px 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  }
  .fg-mega {
    display: none; position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid var(--fg-line);
    min-width: 420px; padding: 20px; z-index: 30; grid-template-columns: 1fr 1fr; gap: 16px;
  }
  .fg-nav__item.has-mega:hover .fg-mega,
  .fg-nav__item.has-mega:focus-within .fg-mega { display: grid; }
  .fg-mega__col p { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; color: var(--fg-mute); }
  .fg-mega__col a { display: block; padding: 5px 0; font-size: 14px; }
  .fg-rail, .fg-tiles, body.fg-site ul.products { grid-template-columns: repeat(4, 1fr); }
  .fg-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .fg-home-main { padding: 0 32px 80px; }
  .fg-hero img { aspect-ratio: 21/8; }
}
@media (max-width: 374px) {
  .fg-promo { font-size: 11px; letter-spacing: .1em; }
  .fg-card__name { font-size: 13px; }
}
body.fg-site .woocommerce form .form-row input.input-text,
body.fg-site .woocommerce form .form-row textarea {
  min-height: 44px;
}
body.fg-site .button, body.fg-site button.button, body.fg-site input.button {
  min-height: 44px;
}
body.fg-site .single-product .product .images img { width: 100%; }
body.fg-site form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.fg-site form.cart .quantity input { min-height: 44px; width: 72px; }
body.fg-site form.cart .single_add_to_cart_button { min-height: 48px; padding: 0 24px; }
