/*
Theme Name: KOSMI
Theme URI: https://mykosmi.shop
Author: KOSMI
Description: Custom WordPress & WooCommerce storefront theme matching mykosmi.com
Version: 1.0.0
Text Domain: kosmi
*/

:root {
  --font-heading--family: 'Cormorant', Georgia, serif;
  --font-heading--weight: 600;
  --font-body--family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --page-content-width: 1200px;
  --page-margin: 24px;
  --gold: #C8962E;
  --gold-hover: #9F7724;
  --espresso: #25190C;
  --espresso-deep: #1E1408;
  --cream: #FBF6EA;
  --ink: #0A0A0A;
  --muted: #4A443A;
  --border: #E7E2D5;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body--family);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ==========================================================================
   1. ANNOUNCEMENT BAR (.kosmi-cd)
   ========================================================================== */
.kosmi-cd {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  padding: 10px 16px;
  background: #0B0B0B;
  color: #FBF6EA;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
  z-index: 60;
}

.kosmi-cd::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,236,179,0.16) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  animation: kosmi-cd-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

.kosmi-cd__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.kosmi-cd__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #F0C24B;
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 58%),
    linear-gradient(90deg, #D9A535 0%, #EDC04A 22%, #FFEFA8 50%, #EDC04A 78%, #D9A535 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: kosmi-cd-shine 3s linear infinite;
}

.kosmi-cd__sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.kosmi-cd__timer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.kosmi-cd__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 38px;
}

.kosmi-cd__num {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}

.kosmi-cd__label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}

.kosmi-cd__sep {
  font-size: 24px;
  font-weight: 800;
  color: #E0A82E;
  padding-top: 1px;
}

@keyframes kosmi-cd-shine {
  0% { background-position: 160% 0, 0 0; }
  100% { background-position: -60% 0, 0 0; }
}

@keyframes kosmi-cd-sweep {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(400%); }
}

@media (max-width: 480px) {
  .kosmi-cd { gap: 14px; padding: 8px 10px; }
  .kosmi-cd__title { font-size: 16px; }
  .kosmi-cd__sub { font-size: 12px; }
  .kosmi-cd__num { font-size: 18px; }
  .kosmi-cd__unit { min-width: 30px; }
  .kosmi-cd__timer { gap: 6px; }
  .kosmi-cd__sep { font-size: 19px; }
}

/* ==========================================================================
   2. GLOBAL HEADER (.kosmi-header)
   ========================================================================== */
.kosmi-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.kosmi-header--transparent {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  background: transparent;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.kosmi-header--transparent.is-scrolled {
  position: fixed;
  top: 0;
  background: #FFFFFF;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kosmi-header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 13px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.kosmi-header__burger {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
}

.kosmi-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}

.kosmi-header__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.kosmi-logo--white { display: none !important; }
.kosmi-header--transparent:not(.is-scrolled) .kosmi-logo--dark { display: none !important; }
.kosmi-header--transparent:not(.is-scrolled) .kosmi-logo--white { display: block !important; }

.kosmi-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.kosmi-nav__link {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.kosmi-nav__link:hover {
  opacity: 1;
}

.kosmi-nav__link.is-active {
  font-weight: 600;
  opacity: 1;
}

.kosmi-header__utils {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.kosmi-currency {
  position: relative;
}

.kosmi-currency__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
}

.kosmi-currency__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  min-width: 150px;
  padding: 6px;
  z-index: 80;
}

.kosmi-currency__menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

.kosmi-currency__menu button:hover,
.kosmi-currency__menu button.is-selected {
  background: var(--cream);
  font-weight: 600;
}

.kosmi-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.kosmi-cart-badge {
  position: absolute;
  top: -1px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: none;
}

.kosmi-cart-badge.is-visible {
  display: inline-block;
}

@media (max-width: 900px) {
  .kosmi-header__inner {
    padding: 10px 16px;
    grid-template-columns: auto 1fr auto;
  }
  .kosmi-header__burger { display: inline-flex; }
  .kosmi-header__logo { justify-self: center; }
  .kosmi-header__logo img { height: 30px; }
  .kosmi-nav { display: none; }
  .kosmi-currency, .kosmi-icon-btn--account { display: none; }
  .kosmi-header__utils { gap: 8px; }
}

/* Mobile Nav Drawer */
.kosmi-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kosmi-mobile-nav.is-open {
  pointer-events: auto;
  opacity: 1;
}

.kosmi-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.kosmi-mobile-nav__panel {
  position: relative;
  width: min(320px, 85vw);
  height: 100%;
  background: #FFFFFF;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
}

.kosmi-mobile-nav.is-open .kosmi-mobile-nav__panel {
  transform: translateX(0);
}

.kosmi-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.kosmi-mobile-nav__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.kosmi-mobile-nav__links {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.kosmi-mobile-nav__links a {
  padding: 13px 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #F2EFE8;
}

/* Search Modal */
.kosmi-search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 84px;
}

.kosmi-search-modal.is-open {
  display: flex;
}

.kosmi-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.kosmi-search-modal__box {
  position: relative;
  width: min(560px, 92vw);
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.kosmi-search-modal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.kosmi-search-modal__bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
}

.kosmi-search-modal__bar button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.kosmi-search-modal__results {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kosmi-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.kosmi-search-item:hover {
  background: var(--cream);
}

.kosmi-search-item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.kosmi-search-item strong {
  display: block;
  font-size: 14.5px;
}

.kosmi-search-item span {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   3. HOMEPAGE HERO & PRODUCTS GRID
   ========================================================================== */
.kosmi-hero {
  position: relative;
  min-height: 580px;
  height: 76vh;
  max-height: 740px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}

.kosmi-hero__bg {
  position: absolute;
  inset: 0;
}

.kosmi-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.kosmi-hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20, 14, 6, 0.42) 0%, rgba(20, 14, 6, 0.25) 60%, rgba(20, 14, 6, 0.48) 100%);
}

.kosmi-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 96px 24px 36px;
}

.kosmi-hero__title {
  margin: 0 0 14px;
  font-family: var(--font-heading--family);
  font-size: clamp(2.85rem, 5.6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.kosmi-hero__sub {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.kosmi-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  background: var(--gold);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.15s ease;
}

.kosmi-hero__cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.kosmi-home-products {
  padding: 46px 28px 72px;
  background: #FFFFFF;
}

.kosmi-container {
  max-width: 1320px;
  margin: 0 auto;
}

.kosmi-home-products__heading {
  margin: 0 0 24px;
  font-family: var(--font-heading--family);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.kosmi-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .kosmi-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .kosmi-home-products { padding: 32px 16px 52px; }
  .kosmi-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

.kosmi-pcard__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #F6F4EF;
  overflow: hidden;
  border-radius: 4px;
}

.kosmi-pcard__slides {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.kosmi-pcard__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kosmi-pcard__slides img.is-active {
  opacity: 1;
}

.kosmi-pcard__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
}

.kosmi-pcard__badge--sale {
  background: var(--gold);
  color: #FFFFFF;
}

.kosmi-pcard__badge--soldout {
  background: #EAF0E6;
  color: #1A1A1A;
}

.kosmi-pcard__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kosmi-pcard__media:hover .kosmi-pcard__arrow { opacity: 1; }
.kosmi-pcard__arrow--prev { left: 8px; }
.kosmi-pcard__arrow--next { right: 8px; }

.kosmi-pcard__info {
  padding-top: 12px;
}

.kosmi-pcard__title {
  margin: 0 0 4px;
  font-family: var(--font-body--family);
  font-size: 15.5px;
  font-weight: 400;
}

.kosmi-pcard__title a {
  text-decoration: none;
}

.kosmi-pcard__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
}

.kosmi-pcard__now {
  font-weight: 600;
  color: var(--ink);
}

.kosmi-pcard__was {
  color: #888;
}

/* ==========================================================================
   4. PRODUCT PAGE HERO, GALLERY & BUY BOX
   ========================================================================== */
.kosmi-pdp-hero {
  background: #FFFFFF;
  padding: 26px 24px 28px;
}

.kosmi-pdp-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.kosmi-gallery {
  position: sticky;
  top: 76px;
}

.kosmi-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #FAF7F0;
}

.kosmi-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kosmi-gallery__slide.is-active {
  opacity: 1;
}

.kosmi-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.kosmi-gallery__nav:hover { background: #FFFFFF; }
.kosmi-gallery__nav--prev { left: 12px; }
.kosmi-gallery__nav--next { right: 12px; }

.kosmi-gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.kosmi-gallery__thumb {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #FAF7F0;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.72;
}

.kosmi-gallery__thumb:hover,
.kosmi-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}

.kosmi-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Buy Box */
.kosmi-buybox {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.kosmi-heading {
  margin: 0;
  font-family: var(--font-heading--family);
  font-size: 35px;
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
}

.kosmi-pdp-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #353535;
}

.kosmi-pdp-price-simple {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.kosmi-pdp-alt-link {
  margin-top: 8px;
  font-size: 14.5px;
}

.kosmi-pdp-alt-link a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

.kosmi-buybox__divider {
  border: none;
  border-top: 1px solid #D7D7D7;
  margin: 2px 0;
}

/* Stock Urgency Widget (.kosmi-stock) */
.kosmi-stock {
  margin: 0;
  font-family: inherit;
  color: #0A0A0A;
  line-height: 1.25;
  text-align: left;
}
.kosmi-stock p { margin: 0; }
.ks-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, #d9a535, #edc04a 22%, #ffefa8 50%, #edc04a 78%, #d9a535);
  color: #0A0A0A;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.ks-label svg { width: 14px; height: 14px; fill: currentColor; }
.ks-head { margin-top: 11px !important; font-size: 15px; font-weight: 700; }
.ks-sub { margin-top: 3px !important; font-size: 14px; }
.ks-track {
  margin-top: 11px;
  height: 6px;
  border-radius: 99px;
  background: #EFEAE0;
  overflow: hidden;
}
.ks-fill {
  position: relative;
  overflow: hidden;
  width: calc(var(--sold) * 1%);
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #c98f1f, #edc04a);
  animation: ks-grow 1.2s cubic-bezier(.2,.8,.2,1) both;
}
.ks-fill::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-120%);
  animation: ks-shine 3.5s ease-in-out 1.2s infinite;
}
.ks-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  white-space: nowrap;
}
.ks-foot span { color: #B07A12; font-weight: 600; }
.ks-foot [data-ks-time] { font-variant-numeric: tabular-nums; }
@keyframes ks-grow { from { width: 0; } }
@keyframes ks-shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(460%); } }

/* Primary Add to Cart Button */
.kosmi-atc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #FFFFFF;
  font-family: var(--font-body--family);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: background 0.2s ease, transform 0.12s ease;
}

.kosmi-atc-btn:hover { background: var(--gold-hover); }
.kosmi-atc-btn:active { transform: scale(0.99); }
.kosmi-atc-btn.is-loading { opacity: 0.78; pointer-events: none; }
.kosmi-atc-btn--disabled { background: #C8C8C8; cursor: not-allowed; box-shadow: none; }
.kosmi-atc-btn .atc-compare { opacity: 0.6; font-weight: 400; margin-left: 6px; }
.kosmi-atc-btn__ico { display: inline-flex; }

/* Product Accordions */
.kosmi-accordions {
  border-top: 1px solid #E5E5E5;
  margin-top: 2px;
}

.kosmi-acc {
  border-bottom: 1px solid #E5E5E5;
}

.kosmi-acc__head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.kosmi-acc__head::-webkit-details-marker { display: none; }

.kosmi-acc__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kosmi-acc__left i { font-size: 20px; line-height: 1; }

.kosmi-acc__chev {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.kosmi-acc[open] .kosmi-acc__chev {
  transform: rotate(180deg);
}

.kosmi-acc__body {
  padding: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #353535;
}

.kosmi-acc__body p {
  margin: 0 0 10px;
}
.kosmi-acc__body p:last-child { margin-bottom: 0; }

/* Floating Sticky Bottom ATC Pill */
.kosmi-sticky-atc {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 45;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: calc(100vw - 24px);
}

.kosmi-sticky-atc.is-visible {
  transform: translate(-50%, 0);
}

.kosmi-sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 10px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.kosmi-sticky-atc__img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.kosmi-sticky-atc__name {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.kosmi-sticky-atc__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.kosmi-sticky-atc__price s {
  color: #888;
  font-weight: 400;
}

.kosmi-sticky-atc__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border: none;
  border-radius: 9px;
  background: var(--gold);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.kosmi-sticky-atc__btn:hover { background: var(--gold-hover); }

@media (max-width: 860px) {
  .kosmi-pdp-hero { padding: 14px 16px 24px; }
  .kosmi-pdp-grid { grid-template-columns: 1fr; gap: 22px; }
  .kosmi-gallery { position: static; }
  .kosmi-heading { font-size: 27px; }
  .kosmi-gallery__thumb { width: 62px; height: 62px; }
  .kosmi-sticky-atc__meta { display: none; }
  .kosmi-sticky-atc__inner { gap: 10px; }
}

/* ==========================================================================
   5. FOOTER (.kosmi-footer)
   ========================================================================== */
.kosmi-footer {
  background: var(--espresso);
  color: #FFFFFF;
  padding: 54px 28px 26px;
}

.kosmi-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.kosmi-footer__top {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 42px;
}

.kosmi-footer__logo {
  height: 40px;
  width: auto;
  display: block;
}

.kosmi-footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-heading--family);
  font-size: 26px;
  font-weight: 600;
  color: #E2BA64;
  line-height: 1.15;
}

.kosmi-footer__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kosmi-footer__menu a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.kosmi-footer__menu a:hover {
  opacity: 1;
  color: #E2BA64;
}

.kosmi-footer__sub {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.kosmi-nl-form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 99px;
  padding: 5px 8px 5px 20px;
  background: transparent;
}

.kosmi-nl-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  padding: 8px 0;
}

.kosmi-nl-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.kosmi-nl-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}

.kosmi-nl-msg {
  margin: 8px 0 0;
  font-size: 13px;
  color: #E8C573;
  min-height: 18px;
}

.kosmi-footer__company {
  text-align: center;
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.kosmi-footer__llc {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.kosmi-footer__addr {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.kosmi-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

.kosmi-policies-wrap {
  position: relative;
}

.kosmi-policies-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kosmi-policies-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  min-width: 195px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}

.kosmi-policies-popover[hidden] { display: none; }

.kosmi-policies-popover a {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink);
}

.kosmi-policies-popover a:hover {
  background: var(--cream);
  color: var(--gold);
}

@media (max-width: 820px) {
  .kosmi-footer { padding: 40px 18px 24px; }
  .kosmi-footer__top { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   6. SLIDE-OVER CART DRAWER (.kosmi-drawer)
   ========================================================================== */
.kosmi-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kosmi-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.kosmi-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.kosmi-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.18);
}

.kosmi-drawer.is-open .kosmi-drawer__panel {
  transform: translateX(0);
}

.kosmi-drawer__urgency {
  background: var(--gold);
  color: #FFFFFF;
  padding: 10px 14px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kosmi-drawer__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFEFA8;
  display: inline-block;
}

.kosmi-drawer__sep { opacity: 0.65; margin: 0 3px; }

.kosmi-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #F0ECE3;
}

.kosmi-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kosmi-drawer__title {
  margin: 0;
  font-family: var(--font-heading--family);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.kosmi-drawer__count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 99px;
  background: #EFECE6;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kosmi-drawer__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E5E1D8;
  background: #FFFFFF;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kosmi-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
}

.kosmi-drawer__empty {
  text-align: center;
  padding: 60px 16px;
}

.kosmi-drawer__empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.kosmi-citem {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #F0ECE3;
  align-items: start;
}

.kosmi-citem__img {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  background: #FAF7F0;
}

.kosmi-citem__title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
}

.kosmi-citem__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid #DFC487;
  background: #FBF6EA;
  color: #8A6214;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.kosmi-citem__unit {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

.kosmi-citem__unit s {
  color: #888;
  margin-left: 5px;
}

.kosmi-citem__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kosmi-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #DCD7CC;
  border-radius: 7px;
  overflow: hidden;
}

.kosmi-qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.kosmi-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
}

.kosmi-citem__del {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}

.kosmi-citem__del:hover { color: #B42318; }

.kosmi-citem__total {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.kosmi-drawer__foot {
  border-top: 1px solid #EBE6DC;
  padding: 14px 22px 20px;
  background: #FFFFFF;
}

.kosmi-drawer__discount {
  border-bottom: 1px solid #EBE6DC;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.kosmi-drawer__discount summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.kosmi-drawer__discount summary::-webkit-details-marker { display: none; }

.kosmi-coupon-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.kosmi-coupon-form input {
  flex: 1;
  border: 1px solid #D8D2C5;
  border-radius: 7px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13.5px;
}

.kosmi-coupon-form button {
  border: none;
  border-radius: 7px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.kosmi-coupon-msg {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #8B0000;
}

.kosmi-drawer__summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.kosmi-drawer__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 15px;
}

.kosmi-drawer__row--savings {
  color: var(--gold);
  font-weight: 600;
}

.kosmi-drawer__row--total {
  font-size: 16px;
  font-weight: 600;
}

.kosmi-drawer__checkout {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 8px;
  background: var(--gold);
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.kosmi-drawer__checkout:hover { background: var(--gold-hover); }

.kosmi-drawer__trust {
  margin-top: 14px;
  text-align: center;
}

.kosmi-drawer__guar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.kosmi-drawer__pay {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.kpay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid #E2DDD2;
  background: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  color: #222;
}

.kpay--amex { background: #1F72CD; color: #FFF; border-color: #1F72CD; }
.kpay--visa { background: #1A1F71; color: #FFF; border-color: #1A1F71; }
.kpay--mc { background: #222; color: #FFF; border-color: #222; }

/* ==========================================================================
   7. PAGES, FORMS & WOOCOMMERCE CHECKOUT
   ========================================================================== */
.kosmi-page-wrap {
  padding: 48px 24px 72px;
  background: #FFFFFF;
  min-height: 60vh;
}

.kosmi-page-container {
  max-width: 780px;
  margin: 0 auto;
}

.kosmi-page-container--wide {
  max-width: 1120px;
}

.kosmi-page-title {
  margin: 0 0 24px;
  font-family: var(--font-heading--family);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
}

.kosmi-page-rte h1,
.kosmi-page-rte h2,
.kosmi-page-rte h3 {
  font-family: var(--font-heading--family);
  margin-top: 28px;
}

.kosmi-page-rte table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.kosmi-page-rte th,
.kosmi-page-rte td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.kosmi-page-rte th {
  background: var(--cream);
}

.kosmi-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.kosmi-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .kosmi-form__row { grid-template-columns: 1fr; }
}

.kosmi-form input,
.kosmi-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #D8D2C5;
  border-radius: 7px;
  font-family: inherit;
  font-size: 15px;
  background: #FFFFFF;
}

.kosmi-form input:focus,
.kosmi-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.kosmi-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.kosmi-btn-gold:hover { background: var(--gold-hover); }

.kosmi-form__msg {
  margin: 4px 0 0;
  font-size: 14.5px;
  font-weight: 500;
}

.kosmi-track-result {
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid #DFC487;
  font-size: 15px;
}

/* WooCommerce Checkout / Cart Polish */
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.wp-block-button__link,
.wc-block-components-button:not(.is-link) {
  background-color: var(--gold) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  background-color: var(--gold-hover) !important;
}

/* ==========================================================================
   8. EXTRACTED SECTION OVERRIDES (Prevent base img reset from colliding)
   ========================================================================== */
.kmq__logo {
  height: var(--kmq-h, 20px) !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}

.kfg__img {
  max-width: none !important;
  width: 340px !important;
  height: auto !important;
  margin-left: -102px !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .kfg__img {
    width: 260px !important;
    margin-left: -48px !important;
  }
}

@media (max-width: 749px) {
  .kfg__img {
    max-width: 100% !important;
    width: min(290px, 85%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

