/* =============================================
   ANDRINA YVETTE — LUXURY ECOM DEMO
   Van Cleef-inspired Maison Aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Inter:wght@300;400;500&display=swap');

/* --- TOKENS --- */
:root {
  --ivory:        #FAFAF8;
  --ivory-deep:   #F2F0EC;
  --noir:         #1A1A1A;
  --noir-soft:    #2C2C2C;
  --gold:         #C9A96E;
  --gold-light:   #E8D5B0;
  --gold-dark:    #A88850;
  --ash:          #6B6B6B;
  --ash-light:    #A8A8A8;
  --ash-border:   #E0DDD8;
  --white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h:        72px;
  --max-w:        1280px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--noir);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* --- TYPOGRAPHY SCALE --- */
.ay-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.ay-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.ay-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
}
.ay-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
}
.ay-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ash);
  font-weight: 300;
}
.ay-ui {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- LAYOUT --- */
.ay-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 768px) {
  .ay-container { padding: 0 1.25rem; }
}

/* --- GOLD RULE (signature element) --- */
.ay-rule {
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}
.ay-rule.ay-rule--visible { width: 100%; }
.ay-rule--left { margin: 0; }

/* --- BUTTONS --- */
.ay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--noir);
  color: var(--noir);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}
.ay-btn:hover {
  background: var(--noir);
  color: var(--ivory);
}
.ay-btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}
.ay-btn--gold:hover {
  background: var(--gold);
  color: var(--ivory);
}
.ay-btn--filled {
  background: var(--noir);
  color: var(--ivory);
}
.ay-btn--filled:hover {
  background: var(--noir-soft);
}
.ay-btn--ghost {
  border-color: var(--ash-border);
  color: var(--ash);
}
.ay-btn--ghost:hover {
  border-color: var(--noir);
  color: var(--noir);
  background: transparent;
}

/* --- NAV --- */
#site-header { position: sticky; top: 0; z-index: 200; }

.ay-nav {
  background: var(--ivory);
  border-bottom: 1px solid var(--ash-border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
}
.ay-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.ay-nav__left,
.ay-nav__right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex: 1;
}
.ay-nav__right { justify-content: flex-end; }

.ay-nav__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ay-nav__logo img {
  height: 38px;
  width: auto;
}

.ay-nav__link {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--noir);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.ay-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.ay-nav__link:hover { color: var(--gold-dark); }
.ay-nav__link:hover::after,
.ay-nav__link.active::after { transform: scaleX(1); }
.ay-nav__link.active { color: var(--gold-dark); }

/* Collections link with mega menu trigger */
.ay-nav__collections { position: static; }

/* --- MEGA MENU --- */
.ay-mega {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--ivory);
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--ash-border);
  padding: 3rem 2rem;
  display: none;
  z-index: 199;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.ay-mega.is-open { display: block; }
.ay-mega__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.ay-mega__col { display: flex; flex-direction: column; gap: 1.2rem; }
.ay-mega__col-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gold-light);
}
.ay-mega__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  transition: var(--transition);
}
.ay-mega__item:hover .ay-mega__item-name { color: var(--gold-dark); }
.ay-mega__thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ash-border);
}
.ay-mega__item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--noir);
  transition: color var(--transition);
}
.ay-mega__item-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ash);
  font-weight: 300;
  margin-top: 0.15rem;
}

/* --- CURRENCY SELECTOR --- */
.ay-currency {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ash);
  cursor: pointer;
}
.ay-currency__trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  text-transform: uppercase;
}
.ay-currency__trigger svg { transition: transform var(--transition); }
.ay-currency__trigger.open svg { transform: rotate(180deg); }
.ay-currency__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--ash-border);
  min-width: 160px;
  z-index: 300;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.ay-currency__dropdown.is-open { display: block; }
.ay-currency__opt {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--noir);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}
.ay-currency__opt:hover { background: var(--ivory-deep); }
.ay-currency__opt.active { color: var(--gold); }

/* Nav icons (search, cart) */
.ay-nav__icon {
  display: flex;
  align-items: center;
  color: var(--noir);
  transition: color var(--transition);
  cursor: pointer;
  position: relative;
}
.ay-nav__icon:hover { color: var(--gold); }
.ay-cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.ay-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 301;
}
.ay-hamburger span {
  display: block;
  height: 1px;
  background: var(--noir);
  transition: var(--transition);
  transform-origin: center;
}
.ay-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ay-hamburger.open span:nth-child(2) { opacity: 0; }
.ay-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- FULL SCREEN MOBILE MENU --- */
.ay-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 3rem;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.ay-mobile-menu.is-open { transform: translateX(0); }
.ay-mobile-menu__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--noir);
  padding: 0.5rem;
}
.ay-mobile-menu__nav { display: flex; flex-direction: column; gap: 0; }
.ay-mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--noir);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ash-border);
  display: block;
  transition: color var(--transition), padding-left var(--transition);
}
.ay-mobile-nav-link:hover { color: var(--gold-dark); padding-left: 0.5rem; }
.ay-mobile-menu__sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0 0 0;
}
.ay-mobile-sub-link {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0.5rem 0;
  transition: color var(--transition);
}
.ay-mobile-sub-link:hover { color: var(--gold-dark); }
.ay-mobile-menu__footer {
  margin-top: auto;
  padding-top: 2rem;
}
.ay-mobile-menu__footer-links {
  display: flex;
  gap: 1.5rem;
}

/* --- FOOTER --- */
.ay-footer {
  background: var(--noir);
  color: var(--ivory);
  padding: 4rem 0 2rem;
}
.ay-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ay-footer__logo img { height: 36px; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.ay-footer__tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ash-light);
  margin-bottom: 1.5rem;
}
.ay-footer__col-title {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.ay-footer__links { display: flex; flex-direction: column; gap: 0.65rem; }
.ay-footer__link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ash-light);
  font-weight: 300;
  transition: color var(--transition);
}
.ay-footer__link:hover { color: var(--gold-light); }
.ay-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.ay-footer__copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ash-light);
  font-weight: 300;
}
.ay-footer__credit {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ash);
  font-weight: 300;
}
.ay-footer__credit a {
  color: var(--ash-light);
  text-decoration: underline;
  transition: color var(--transition);
}
.ay-footer__credit a:hover { color: var(--gold-light); }

/* --- FAB --- */
.ay-fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.ay-fab {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.ay-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.ay-fab-bubble {
  position: absolute;
  bottom: 64px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--ash-border);
  border-radius: 12px 12px 0 12px;
  padding: 1rem;
  width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}
.ay-fab-bubble.is-open { display: flex; }
.ay-fab-bubble__label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.25rem;
}
.ay-fab-bubble__opt {
  display: block;
  padding: 0.6rem 0.75rem;
  background: var(--ivory-deep);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--noir);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}
.ay-fab-bubble__opt:hover { background: var(--gold-light); }
.ay-fab-bubble__close {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ash);
  font-size: 1rem;
  line-height: 1;
}

/* --- SEARCH OVERLAY --- */
.ay-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,250,248,0.96);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  padding-top: 20vh;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.ay-search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.ay-search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
  position: relative;
}
.ay-search-input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  border: none;
  border-bottom: 1px solid var(--noir);
  background: transparent;
  color: var(--noir);
  padding: 0.5rem 0;
  outline: none;
}
.ay-search-input::placeholder { color: var(--ash-light); }
.ay-search-close {
  position: fixed;
  top: 2rem; right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--noir);
}

/* --- TOAST / NOTIFICATION --- */
.ay-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
  pointer-events: none;
  white-space: nowrap;
}
.ay-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- PRODUCT CARD --- */
.ay-product-card {
  display: block;
  position: relative;
}
.ay-product-card__img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--ivory-deep);
  margin-bottom: 1.2rem;
  position: relative;
}
.ay-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ay-product-card:hover .ay-product-card__img { transform: scale(1.04); }
.ay-product-card__collection {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.ay-product-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--noir);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.ay-product-card__price {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ash);
  letter-spacing: 0.05em;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .ay-nav__left .ay-nav__link:not(.ay-nav__collections) { display: none; }
  .ay-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .ay-nav__left { display: none; }
  .ay-nav__right .ay-nav__link { display: none; }
  .ay-hamburger { display: flex; }
  .ay-mega { display: none !important; }
  .ay-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ay-footer__bottom { flex-direction: column; align-items: flex-start; }
}
