/* DESIGN.md refined overrides — loads last over account/checkout/product/drawer */

:root {
  --ig-primary: #4a6741;
  --ig-primary-hover: #3c5535;
  --ig-accent: #c9a84c;
  --ig-text: #2d2d2d;
  --ig-muted: #6b6b6b;
  --ig-dark: #22301d;
  --ig-bg: #fdfbf6;
  --ig-surface: #f7f3e9;
  --ig-hairline: rgba(45, 45, 45, 0.12);
  --ig-serif: "Cormorant Garamond", Georgia, serif;
  --ig-sans: "Jost", system-ui, sans-serif;
}

body.ig-shop-page,
body.iglow-page--cart,
body.iglow-page--checkout,
body.iglow-page--account {
  background: var(--ig-bg);
}

/* —— Shells (cart / checkout / account) —— */
main.iglow-shell {
  font-family: var(--ig-sans) !important;
  font-weight: 300;
  color: var(--ig-text) !important;
  background: var(--ig-bg) !important;
}

.iglow-shell__inner {
  max-width: 1200px !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}
@media (max-width: 700px) {
  .iglow-shell__inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

.iglow-shell__topbar {
  background: var(--ig-bg) !important;
  border-bottom: 1px solid var(--ig-hairline) !important;
}

.iglow-shell__title {
  font-family: var(--ig-serif) !important;
  font-weight: 500 !important;
  color: var(--ig-text) !important;
}

.iglow-shell__crumb,
.iglow-shell__sub {
  font-family: var(--ig-sans) !important;
  font-weight: 300 !important;
  color: var(--ig-muted) !important;
}
.iglow-shell__crumb a:hover { color: var(--ig-primary) !important; }

.iglow-steps__num {
  border-radius: 0 !important;
  background: var(--ig-surface) !important;
  color: var(--ig-muted) !important;
  box-shadow: none !important;
}
.iglow-steps__item.is-active .iglow-steps__num,
.iglow-steps__item.is-done .iglow-steps__num {
  background: var(--ig-primary) !important;
  color: #fff !important;
}

/* Buttons / inputs — sharp, no shadow */
.iglow-shell .button,
.iglow-shell button.button,
.iglow-shell a.button,
.iglow-shell .woocommerce-Button,
.iglow-shell input.button,
.iglow-shell .checkout-button,
.iglow-shell #place_order,
.iglow-product .button,
.iglow-drawer .button,
.iglow-drawer__checkout,
.iglow-drawer__shop-cta,
.iglow-drawer__fullcart {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--ig-sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.iglow-shell input.input-text,
.iglow-shell textarea,
.iglow-shell select,
.iglow-shell .select2-selection,
.iglow-shell .woocommerce form .input-text,
.iglow-product input,
.iglow-product select,
.iglow-product textarea {
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: var(--ig-hairline) !important;
  font-family: var(--ig-sans) !important;
  font-weight: 300 !important;
  background: #fff !important;
}

.iglow-shell input:focus,
.iglow-shell textarea:focus,
.iglow-shell select:focus {
  border-color: var(--ig-primary) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Shop CTAs = gold; primary commerce actions stay green where they mean “continue” */
.iglow-shell--cart .checkout-button,
.iglow-shell--cart a.checkout-button,
.iglow-drawer__checkout,
.iglow-product__add {
  background: var(--ig-accent) !important;
  color: #fff !important;
  border: 0 !important;
}
.iglow-shell--cart .checkout-button:hover,
.iglow-drawer__checkout:hover,
.iglow-product__add:hover {
  background: #b8963f !important;
  color: #fff !important;
}

.iglow-thankyou__btn--shop,
.iglow-shell--checkout .iglow-thankyou__btn--shop.button,
.iglow-shell .button.iglow-thankyou__btn--shop,
.iglow-shell--checkout .woocommerce a.button.iglow-thankyou__btn--shop,
.iglow-shell--checkout .woocommerce .button.iglow-thankyou__btn--shop,
main.iglow-shell .iglow-shell__content a.button.iglow-thankyou__btn--shop {
  background: var(--ig-accent) !important;
  color: #fff !important;
  border: 0 !important;
}
.iglow-thankyou__btn--shop:hover,
.iglow-shell--checkout .iglow-thankyou__btn--shop.button:hover,
.iglow-shell .button.iglow-thankyou__btn--shop:hover,
.iglow-shell--checkout .woocommerce a.button.iglow-thankyou__btn--shop:hover,
main.iglow-shell .iglow-shell__content a.button.iglow-thankyou__btn--shop:hover {
  background: #b8963f !important;
  color: #fff !important;
}
.iglow-thankyou__btn--ghost,
.iglow-shell--checkout .iglow-thankyou__btn--ghost.button,
.iglow-shell--checkout .woocommerce a.button.iglow-thankyou__btn--ghost,
main.iglow-shell .iglow-shell__content a.button.iglow-thankyou__btn--ghost {
  background: transparent !important;
  color: var(--ig-text) !important;
  border: 1px solid var(--ig-text) !important;
}
.iglow-thankyou__eyebrow,
.iglow-thankyou__section-label,
.iglow-shell--checkout .iglow-thankyou__eyebrow,
.iglow-shell--checkout .iglow-thankyou__section-label,
.iglow-shell--checkout .woocommerce .iglow-thankyou__eyebrow,
.iglow-shell--checkout .woocommerce p.iglow-thankyou__eyebrow {
  color: var(--ig-accent) !important;
}
.iglow-thankyou-preview-banner {
  margin: 0 0 1.5rem !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--ig-hairline) !important;
  font-family: var(--ig-sans) !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--ig-muted) !important;
  background: var(--ig-surface) !important;
}
.iglow-shell--thankyou .iglow-checkout-sticky {
  display: none !important;
}

.iglow-shell .button:not(.checkout-button):not(.iglow-thankyou__btn--shop),
.iglow-shell button.button:not(#place_order):not(.iglow-thankyou__btn--shop),
.iglow-cart-empty .button,
.iglow-drawer__shop-cta {
  background: var(--ig-primary) !important;
  color: #fff !important;
  border: 0 !important;
}
.iglow-shell #place_order {
  background: var(--ig-primary) !important;
  color: #fff !important;
}

.iglow-shell--checkout {
  background: var(--ig-bg) !important;
}
main.iglow-shell--checkout,
body.iglow-shell--checkout #main-content,
body.iglow-shell--checkout #left-area,
body.iglow-shell--checkout .entry-content {
  background: var(--ig-bg) !important;
}

.iglow-shell--checkout .iglow-shell__topbar { background: var(--ig-bg) !important; }

/* Cards / panels — hairlines only */
.iglow-shell .woocommerce-cart-form,
.iglow-shell .cart_totals,
.iglow-shell .woocommerce-checkout-review-order,
.iglow-shell .woocommerce-MyAccount-navigation,
.iglow-shell .woocommerce-MyAccount-content,
.iglow-shell .woocommerce-form-login,
.iglow-shell .woocommerce-form-register,
.iglow-cart-empty {
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: var(--ig-hairline) !important;
  background: #fff !important;
}

.iglow-shell .woocommerce-MyAccount-navigation ul {
  list-style: none;
}
.iglow-shell .woocommerce-MyAccount-navigation a {
  font-family: var(--ig-sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
}

.iglow-product__wish,
.iglow-card__wish {
  display: none !important;
}
.iglow-product {
  font-family: var(--ig-sans) !important;
  background: transparent !important;
  color: var(--ig-text) !important;
}
.iglow-product__title,
.iglow-product h1 {
  font-family: var(--ig-serif) !important;
  font-weight: 500 !important;
}
.iglow-product__main-image,
.iglow-product__thumb,
.iglow-product__gallery img {
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: var(--ig-hairline) !important;
  background: var(--ig-surface) !important;
}

/* —— Cart drawer —— */
.iglow-drawer__panel {
  background: var(--ig-bg) !important;
  box-shadow: none !important;
  border-left: 1px solid var(--ig-hairline) !important;
  font-family: var(--ig-sans) !important;
  color: var(--ig-text) !important;
}
.iglow-drawer__backdrop {
  background: rgba(34, 48, 29, 0.35) !important;
  backdrop-filter: none !important;
}
.iglow-drawer__head,
.iglow-drawer__foot {
  background: var(--ig-surface) !important;
  border-color: var(--ig-hairline) !important;
}
.iglow-drawer__head-left h2,
.iglow-drawer__empty h3,
.iglow-drawer__sub strong {
  font-family: var(--ig-serif) !important;
  font-weight: 500 !important;
  color: var(--ig-text) !important;
}
.iglow-drawer__count {
  border-radius: 0 !important;
  background: transparent !important;
  border: 1px solid var(--ig-hairline);
  color: var(--ig-muted) !important;
  font-family: var(--ig-sans) !important;
  font-weight: 500 !important;
}
.iglow-drawer__close {
  border-radius: 0 !important;
  background: #fff !important;
  border: 1px solid var(--ig-hairline) !important;
  box-shadow: none !important;
}
.iglow-drawer__item,
.iglow-drawer__qty,
.iglow-drawer__item-media img,
.iglow-drawer__thumb,
.iglow-drawer__fullcart,
.iglow-drawer__ship-track {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.iglow-drawer__item {
  border-color: var(--ig-hairline) !important;
  background: #fff !important;
}
.iglow-drawer__fullcart {
  border-color: var(--ig-primary) !important;
  color: var(--ig-primary) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}
.iglow-hdr__cart-count {
  border-radius: 0 !important;
  font-family: var(--ig-sans) !important;
  background: var(--ig-primary) !important;
}
/* —— Mobile (plugin commerce surfaces) —— */
@media (max-width: 900px) {
  .iglow-shop {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .iglow-shop__toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  .iglow-shop__count {
    display: none !important; /* count lives in mobile bar */
  }
  .iglow-shop__controls {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .iglow-search-wrap,
  .iglow-search-wrap input,
  #iglow-sort {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .iglow-search-wrap input,
  #iglow-sort {
    font-size: 16px !important;
  }
}

@media (max-width: 767px) {
  /* Shell padding + overflow */
  .iglow-shell__inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.ig-shop-page,
  body.iglow-page--cart,
  body.iglow-page--checkout,
  body.iglow-page--account,
  .iglow-shop,
  .iglow-product,
  .iglow-shell--cart,
  .iglow-shell--checkout,
  .iglow-shell--account {
    overflow-x: clip;
  }

  /* PDP */
  .iglow-product {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .iglow-product__tabs-wrap {
    margin-left: -4px;
    margin-right: -4px;
  }
  .iglow-product__tabs {
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .iglow-product__tabs::-webkit-scrollbar {
    display: none;
  }
  .iglow-product__tabs button {
    padding: 0.7rem 0.75rem !important;
    font-family: var(--ig-sans) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }
  .iglow-product__cart,
  .iglow-product__add,
  .iglow-product__qty {
    width: 100% !important;
  }
  .iglow-product__qty input {
    font-size: 16px !important;
  }
  .iglow-product__note,
  .iglow-product__note-avatar,
  .iglow-product__main-image,
  .iglow-product__thumb {
    border-radius: 0 !important;
  }

  /* Cart items */
  .iglow-cart-item__qty .qty,
  .iglow-cart-actions .coupon #coupon_code {
    font-size: 16px !important;
  }
  .iglow-shell--cart .checkout-button,
  .iglow-shell--cart .wc-proceed-to-checkout .checkout-button,
  .iglow-cart-actions .button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Checkout sticky bar — DESIGN.md: no shadow, sharp */
  .iglow-checkout-sticky {
    background: var(--ig-bg) !important;
    border-top: 1px solid var(--ig-hairline) !important;
    box-shadow: none !important;
    padding: 0.75rem 16px calc(0.75rem + env(safe-area-inset-bottom)) !important;
  }
  .iglow-checkout-sticky__label {
    font-family: var(--ig-sans) !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
  }
  .iglow-checkout-sticky__amount {
    font-family: var(--ig-serif) !important;
    font-weight: 500 !important;
  }
  .iglow-checkout-sticky__btn,
  .iglow-checkout-sticky__btn.button {
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
  }
  .iglow-thankyou__hero,
  .iglow-thankyou__next,
  .iglow-customer-details,
  .iglow-shell--checkout .iglow-order-details__card,
  .iglow-shell--checkout ul.order_details li,
  .iglow-thankyou__meta li,
  .iglow-checkout-ship-nudge__box,
  .iglow-checkout-card {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Account order cards */
  .iglow-order-card,
  .iglow-order-card__btn,
  .iglow-account-auth__card {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .iglow-order-card__actions .iglow-order-card__btn,
  .iglow-shell--account .iglow-account-logout,
  .iglow-shell--account .iglow-account-shop-link {
    width: 100% !important;
    justify-content: center !important;
  }
  .iglow-shell--account input.input-text,
  .iglow-shell--account input[type="text"],
  .iglow-shell--account input[type="email"],
  .iglow-shell--account input[type="password"],
  .iglow-shell--account input[type="tel"],
  .iglow-shell--account textarea,
  .iglow-shell--account select {
    font-size: 16px !important;
  }

  /* Cart drawer */
  .iglow-drawer__panel {
    width: calc(100% - 2.5rem) !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .iglow-drawer__close {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .iglow-drawer__checkout,
  .iglow-drawer__shop-cta,
  .iglow-drawer__fullcart {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 0 !important;
  }
  .iglow-drawer__item {
    gap: 0.75rem !important;
  }
  .iglow-drawer__item-name {
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }
  .iglow-drawer__qty button {
    min-width: 2.25rem;
    min-height: 2.25rem;
  }

  /* Site WhatsApp FAB (inline Divi/code) — clear sticky checkout bar */
  body.iglow-checkout-sticky-visible a[href*="wa.me"][style*="position:fixed"] {
    bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Account / cart forms — keep FAB clear of primary buttons */
  body.iglow-page--account a[href*="wa.me"][style*="position:fixed"],
  body.iglow-page--cart a[href*="wa.me"][style*="position:fixed"],
  body.woocommerce-cart a[href*="wa.me"][style*="position:fixed"],
  body.woocommerce-account a[href*="wa.me"][style*="position:fixed"] {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 560px) {
  .iglow-checkout-sticky__inner {
    flex-wrap: wrap;
  }
  .iglow-checkout-sticky__total {
    flex: 1 1 100%;
    flex-direction: row !important;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .iglow-checkout-sticky__btn {
    flex: 1 1 100% !important;
  }
}

/* —— Cart page (full bag from drawer) —— */
.iglow-shell--cart .iglow-cart-panel,
.iglow-shell--cart .iglow-cart-gift,
.iglow-shell--cart .iglow-cart-actions,
.iglow-shell--cart .cart_totals,
.iglow-shell--cart .iglow-order-summary,
.iglow-shell--cart .iglow-ship-banner,
.iglow-shell--cart .iglow-cart-empty {
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: var(--ig-hairline) !important;
}
.iglow-shell--cart .iglow-cart-panel__head {
  background: var(--ig-surface) !important;
  border-color: var(--ig-hairline) !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
}
.iglow-shell--cart .iglow-cart-item__media img {
  border-radius: 0 !important;
  background: var(--ig-surface) !important;
  border-color: var(--ig-hairline) !important;
}
body.iglow-page--cart .iglow-shell--cart .woocommerce a.checkout-button.button.alt,
body.iglow-page--cart .iglow-shell--cart .woocommerce a.button.checkout-button,
body.iglow-page--cart .iglow-shell--cart .wc-proceed-to-checkout a.checkout-button,
body.iglow-page--cart main.iglow-shell--cart .iglow-shell__content a.checkout-button.button.alt,
.iglow-shell--cart .woocommerce a.checkout-button.button.alt,
.iglow-shell--cart .wc-proceed-to-checkout a.checkout-button.button.alt {
  background: #c9a84c !important;
  background-color: #c9a84c !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}
body.iglow-page--cart .iglow-shell--cart .woocommerce a.checkout-button.button.alt:hover,
body.iglow-page--cart .iglow-shell--cart .wc-proceed-to-checkout a.checkout-button:hover,
.iglow-shell--cart .woocommerce a.checkout-button.button.alt:hover {
  background: #b8963f !important;
  background-color: #b8963f !important;
  color: #fff !important;
}

/* —— My Account —— */
.iglow-shell--account .iglow-account-auth__card,
.iglow-shell--account .woocommerce-MyAccount-navigation,
.iglow-shell--account .woocommerce-MyAccount-content,
.iglow-shell--account .iglow-account-dash__card,
.iglow-shell--account .iglow-order-card,
.iglow-shell--account .woocommerce-Address,
.iglow-shell--account .woocommerce-form-login,
.iglow-shell--account .woocommerce-form-register {
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: var(--ig-hairline) !important;
}
.iglow-shell--account .iglow-account-auth,
.iglow-shell--account .iglow-account-auth--single {
  max-width: 32rem !important;
  width: 100% !important;
}
.iglow-shell--account .iglow-account-auth--split {
  max-width: 56rem !important;
}
.iglow-shell--account .iglow-account-auth__card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.iglow-shell--account .iglow-shell__title {
  color: var(--ig-text) !important;
}
.iglow-shell--account .iglow-account-auth__head h2 {
  color: var(--ig-text) !important;
}
.iglow-shell--account .woocommerce-LostPassword a,
.iglow-shell--account .lost_password a {
  color: var(--ig-primary) !important;
  text-decoration: none !important;
  font-family: var(--ig-sans) !important;
  font-size: 0.8125rem !important;
}
.iglow-shell--account .woocommerce-LostPassword a:hover,
.iglow-shell--account .lost_password a:hover {
  color: var(--ig-accent) !important;
}
.iglow-shell--account .iglow-account-shop-link,
.iglow-shell--account .iglow-account-logout {
  border-radius: 0 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}
.iglow-shell--account .iglow-account-layout .woocommerce-MyAccount-navigation a {
  border-radius: 0 !important;
  font-family: var(--ig-sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.6875rem !important;
}
.iglow-shell--account .iglow-order-card__header {
  background: var(--ig-surface) !important;
  border-color: var(--ig-hairline) !important;
}

@media (max-width: 767px) {
  .iglow-shell--cart .iglow-shell__content.woocommerce,
  .iglow-shell--cart .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .iglow-shell--cart .iglow-cart-aside,
  .iglow-shell--cart .cart_totals,
  .iglow-shell--cart .iglow-order-summary {
    position: static !important;
  }
  .iglow-shell--cart .checkout-button,
  .iglow-shell--cart .wc-proceed-to-checkout .checkout-button {
    width: 100% !important;
    justify-content: center !important;
  }
  .iglow-shell--account .iglow-account-layout,
  body.woocommerce-account .iglow-account-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .iglow-shell--account .woocommerce-MyAccount-navigation,
  .iglow-shell--account .iglow-account-layout .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  .iglow-shell--account .woocommerce-MyAccount-content,
  .iglow-shell--account .iglow-account-layout .woocommerce-MyAccount-content,
  body.woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
  .iglow-shell--account .iglow-account-layout .woocommerce-MyAccount-navigation ul,
  body.woocommerce-account .iglow-account-layout .woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
  }
  .iglow-shell--account .iglow-account-layout .woocommerce-MyAccount-navigation a,
  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    text-align: center !important;
    padding: 0.7rem 0.5rem !important;
    justify-content: center !important;
  }
  .iglow-shell--account .iglow-account-dash__grid {
    grid-template-columns: 1fr !important;
  }
  .iglow-shell--account .iglow-order-card__actions .iglow-order-card__btn,
  .iglow-shell--account .iglow-account-auth__actions .button,
  .iglow-shell--account .woocommerce-button {
    width: 100% !important;
    justify-content: center !important;
  }
}
