/*
 * layout.css — TCB Elementor Theme
 * Macro page layout: announcement bar, header, hero, sections, story, footer.
 * Scoped to avoid conflicts with Elementor and WooCommerce.
 */

/* ─── Fluid Horizontal Padding Utility ───────────────────────────────────── */
/*
 * Keeps content aligned within --content-width on ultra-wide screens
 * while falling back to 4.5% on smaller viewports.
 */
header,
.announcement,
footer {
  padding-inline: max(4.5%, calc((100% - var(--content-width)) / 2));
}

/* ─── Announcement Bar ───────────────────────────────────────────────────── */
.announcement {
  height: 34px;
  background: var(--green);
  color: #f7f8ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.45px;
}

.announcement a {
  font-size: 11px;
}

.announcement a span {
  margin-left: 20px;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fafaf7;
  gap: 25px;
}

/* ─── Brand ──────────────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.6px;
}

.brand-sub {
  display: block;
  font-size: 7px;
  letter-spacing: 1.8px;
  margin-top: 6px;
  font-weight: 500;
}

/* ─── Logo Crop (base from style.css, overridden by framing.css) ─────────── */
.logo-crop {
  width: 72px;
  height: 44px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.logo-crop img {
  width: 96px;
  height: 96px;
  max-width: none;
  position: absolute;
  left: -12px;
  top: -26px;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
nav,
.tcb-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12px;
}

.tcb-nav ul,
.tcb-nav-items {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tcb-nav li,
.tcb-nav-items li {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a,
.tcb-nav a,
.tcb-nav-items a {
  padding: 10px 0;
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

nav .active::after,
.tcb-nav .active::after,
.tcb-nav a.active::after,
.tcb-nav .current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--green);
}

/* ─── Header Actions ─────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  gap: 23px;
  align-items: center;
}

.header-actions button,
.header-actions a,
.header-actions .bag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  font-size: 12px;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

.header-actions .action-icon,
.header-actions #bag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-actions .action-icon svg,
.header-actions #bag-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.header-actions .action-label,
.header-actions .bag-label {
  font-size: 12px;
  white-space: nowrap;
}

#menu-toggle,
.header-actions #menu-toggle {
  display: none !important;
}

@media (max-width: 760px) {
  nav,
  .tcb-nav {
    display: none !important;
  }

  #menu-toggle,
  .header-actions #menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 4px;
  }
}

.bag-toggle {
  gap: 7px;
  font-size: 12px;
}

.header-actions #wishlist-count,
.header-actions #bag-count,
.header-actions .wishlist-count,
.header-actions .cart-count {
  display: none;
  background: var(--green, #344536);
  color: white;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  margin-left: 2px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-actions #wishlist-count[data-count]:not([data-count=""]):not([data-count="0"]):not(:empty),
.header-actions #bag-count[data-count]:not([data-count=""]):not([data-count="0"]):not(:empty),
.header-actions .wishlist-count[data-count]:not([data-count=""]):not([data-count="0"]):not(:empty),
.header-actions .cart-count[data-count]:not([data-count=""]):not([data-count="0"]):not(:empty) {
  display: inline-grid;
  place-items: center;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr 37px;
  min-height: 610px;
  margin: 24px 2.4% 0;
  background: var(--bg-hero);
  position: relative;
}

.hero-copy {
  padding: 65px 10% 32px 9%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.hero-copy p {
  font-size: 13px;
  line-height: 1.85;
  color: #686b61;
}

.hero-copy > .button {
  margin-top: 29px;
  min-width: 226px;
}

/* ─── Hero Image ─────────────────────────────────────────────────────────── */
.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 610px;
}

.hero-image > img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center top;
}

/* ─── Image Caption ──────────────────────────────────────────────────────── */
.image-caption {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 9px;
  letter-spacing: 1.4px;
}

/* ─── Hero Product Card ──────────────────────────────────────────────────── */
.hero-product {
  position: absolute;
  bottom: 26px;
  left: 25px;
  right: 25px;
  padding: 17px 19px;
  display: flex;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  background: #fcfcf5e8;
  backdrop-filter: blur(12px);
}

.hero-product small {
  font-size: 9px;
  color: #707365;
  display: block;
  margin-bottom: 5px;
}

.hero-product strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}

.hero-product > span > span {
  font-size: 12px;
}

.hero-product del {
  margin-left: 8px;
  font-size: 10px;
  color: #86877f;
}

/* ─── Round Arrow ────────────────────────────────────────────────────────── */
.round-arrow {
  border: 1px solid #bcbfb1;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

/* ─── Hero Bottom ────────────────────────────────────────────────────────── */
.hero-bottom {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 42px;
  font-size: 8px;
  letter-spacing: 1.3px;
  line-height: 1.8;
}

.small-star {
  font-size: 37px;
  line-height: 1;
  color: #617050;
}

/* ─── Vertical Note (hero sidebar) ──────────────────────────────────────── */
.vertical-note {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
  font-size: 8px;
}

/* ─── Benefits Bar ───────────────────────────────────────────────────────── */
.benefits {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: min(91%, var(--content-width));
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  font-size: 11px;
}

.benefits span {
  display: flex;
  gap: 12px;
  align-items: center;
}

.benefits i {
  font-style: normal;
  font-size: 24px;
  color: #67745c;
}

/* ─── Section ────────────────────────────────────────────────────────────── */
.section {
  padding: 73px 4.5% 60px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 35px;
  margin-top: 14px;
  letter-spacing: -1.6px;
}

.section-heading > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

/* ─── Collection End ─────────────────────────────────────────────────────── */
.collection-end {
  text-align: center;
  font-size: 11px;
  margin-top: 43px;
  color: #85887b;
}

.collection-end span {
  color: #3e4b36;
}

/* ─── Story Section ──────────────────────────────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(91%, var(--content-width));
  margin: 13px auto 70px;
  background: var(--bg-story);
  min-height: 460px;
}

.story-photo {
  position: relative;
  max-height: 500px;
  overflow: hidden;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.story-photo > span {
  position: absolute;
  bottom: 23px;
  left: 25px;
  color: white;
  font-size: 9px;
  letter-spacing: 2px;
  background: #344536a8;
  padding: 8px 10px;
}

.story-copy {
  padding: 57px 13%;
  position: relative;
  overflow: hidden;
}

.story-copy h2 {
  font-size: 46px;
  line-height: 1.17;
  margin: 25px 0;
}

.story-copy p {
  font-size: 12px;
  line-height: 1.9;
  color: #6b7261;
  margin-bottom: 16px;
  max-width: 340px;
}

.story-star {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 100px;
  color: #cad1bb;
  line-height: 1;
  pointer-events: none;
}

/* ─── Contact Strip ──────────────────────────────────────────────────────── */
.contact-strip {
  padding: 0 4.5% 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-strip h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 13px 0;
}

.contact-strip p {
  font-size: 12px;
  color: var(--muted);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  padding-top: 48px;
  padding-bottom: 0;
  background: var(--bg-footer);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 30px;
  padding-bottom: 45px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.footer-brand span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: #727866;
  margin-top: 13px;
}

.footer-top h3 {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-top ul,
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-top li,
.footer-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-top a,
.footer-top > div > a,
.footer-nav-list a {
  display: block;
  font-size: 11px;
  color: #68715d;
  margin-top: 10px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #d2d7c9;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #77816a;
}
