/* ═══════════════════════════════════════
   AVON ROSE — Shared Stylesheet
   avonrose.lk
═══════════════════════════════════════ */

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

:root {
  --black:   #080808;
  --deep:    #0e0a0a;
  --pink:    #e8156e;
  --magenta: #c0116b;
  --orange:  #e8730a;
  --gold:    #f0a500;
  --white:   #ffffff;
  --gray:    #888888;
  --card-bg: #13090d;
  --border:  rgba(232,21,110,0.18);
  --shadow:  0 8px 48px rgba(232,21,110,0.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: height 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  height: 60px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 42px; width: 42px;
  object-fit: cover; border-radius: 50%;
  border: 2px solid var(--pink);
  transition: border-color 0.2s;
}
.nav-logo:hover img { border-color: var(--orange); }
.nav-logo-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem; color: var(--white); line-height: 1;
}
.nav-logo-text span { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,0.65);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--pink); transform: scaleX(0);
  transition: transform 0.25s; transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--pink); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.cart-btn {
  background: none; border: 1.5px solid var(--pink); color: var(--pink);
  border-radius: 50px; padding: 7px 18px; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.cart-btn:hover { background: var(--pink); color: var(--white); }
.cart-count {
  background: var(--orange); color: var(--white);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 0.68rem; display: flex; align-items: center; justify-content: center;
  font-weight: 600; transition: transform 0.2s;
}
.cart-count.bump { transform: scale(1.4); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(8,8,8,0.97); backdrop-filter: blur(30px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none; color: var(--white);
  font-size: 2rem; font-family: 'Cormorant Garamond', serif;
  font-style: italic; letter-spacing: 0.05em; transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--pink); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 5vw;
  background: none; border: none; color: var(--white);
  font-size: 2rem; cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
}
.mobile-nav-close:hover { opacity: 1; }

/* ── PAGE HEADER (inner pages) ── */
.page-hero {
  padding: 140px 5vw 70px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(232,21,110,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232,115,10,0.07) 0%, transparent 50%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem; display: block;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.05;
}
.page-hero h1 em { font-style: italic; color: var(--pink); }
.page-hero .lead {
  color: rgba(255,255,255,0.55); line-height: 1.8;
  margin: 1.25rem auto 0; max-width: 520px; font-size: 0.98rem;
}
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  margin: 1.5rem auto;
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: var(--white); border: none; padding: 13px 34px;
  border-radius: 50px; cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 0.83rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(232,21,110,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(232,21,110,0.5); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.22); padding: 13px 34px;
  border-radius: 50px; cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 0.83rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--pink); background: rgba(232,21,110,0.08); }

/* ── SECTION LAYOUT ── */
.section { padding: 90px 5vw; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--pink); }
.section-desc {
  color: rgba(255,255,255,0.5); max-width: 540px;
  margin: 1rem auto 0; line-height: 1.85; font-size: 0.95rem;
}

/* ── PRODUCT CARDS ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.5rem; max-width: 1300px; margin: 0 auto;
}
.product-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(232,21,110,0.2);
}
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--white); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 50px;
  font-weight: 600;
}
.product-thumb {
  width: 100%; aspect-ratio: 1; overflow: hidden;
  position: relative; flex-shrink: 0;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a0a10, #2a1020);
  gap: 0.6rem;
}
.product-thumb-placeholder .pi { font-size: 4.5rem; }
.product-thumb-placeholder .pc {
  font-size: 0.72rem; color: rgba(255,255,255,0.28);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.product-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.4rem;
}
.product-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.18rem;
  margin-bottom: 0.4rem; line-height: 1.3;
}
.product-desc {
  font-size: 0.81rem; color: rgba(255,255,255,0.48);
  line-height: 1.65; margin-bottom: 1rem; flex: 1;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; color: var(--pink);
}
.product-price small {
  font-family: 'Jost', sans-serif; font-size: 0.65rem;
  color: var(--gray); display: block;
}
.add-cart-btn {
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  border: none; color: var(--white); border-radius: 50px;
  padding: 8px 16px; font-family: 'Jost', sans-serif;
  font-size: 0.76rem; letter-spacing: 0.07em; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.add-cart-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(232,21,110,0.4); }
.add-cart-btn:active { transform: scale(0.97); }

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001;
  width: min(420px, 100vw); background: #0e0a0d;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-overlay.open .cart-sidebar { transform: translateX(0); }
.cart-header {
  padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; }
.close-cart {
  background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer; opacity: 0.55; transition: opacity 0.2s;
  line-height: 1;
}
.close-cart:hover { opacity: 1; }
.cart-items {
  flex: 1; overflow-y: auto; padding: 1.4rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.cart-empty {
  text-align: center; margin: auto;
  display: flex; flex-direction: column; align-items: center; opacity: 0.45;
}
.cart-empty svg { width: 56px; height: 56px; margin-bottom: 1rem; }
.cart-empty p { font-size: 0.9rem; }
.cart-empty small { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 4px; }
.cart-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 12px;
}
.cart-item-icon {
  font-size: 1.8rem; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,21,110,0.1); border-radius: 8px; flex-shrink: 0;
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; margin-bottom: 0.2rem; }
.cart-item-price { font-size: 0.82rem; color: var(--pink); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 0.5rem; }
.qty-btn {
  background: rgba(255,255,255,0.08); border: none; color: var(--white);
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; line-height: 1;
}
.qty-btn:hover { background: var(--pink); }
.qty-num { font-size: 0.85rem; min-width: 20px; text-align: center; }
.remove-item {
  background: none; border: none; color: rgba(255,255,255,0.28);
  cursor: pointer; font-size: 1rem; margin-left: auto; transition: color 0.2s;
  padding: 0;
}
.remove-item:hover { color: #ff6b6b; }
.cart-footer { padding: 1.4rem 1.6rem; border-top: 1px solid var(--border); }
.cart-total {
  display: flex; justify-content: space-between;
  margin-bottom: 1.1rem;
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
}
.cart-total span:last-child { color: var(--pink); }
.cart-note {
  background: rgba(232,21,110,0.08); border: 1px solid rgba(232,21,110,0.2);
  border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 1.1rem;
  font-size: 0.76rem; color: rgba(255,255,255,0.55); line-height: 1.55;
}
.checkout-field {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12); color: var(--white);
  border-radius: 10px; padding: 11px 14px; font-family: 'Jost', sans-serif;
  font-size: 0.88rem; margin-bottom: 0.75rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.checkout-field:focus { border-color: var(--pink); }
.checkout-field::placeholder { color: rgba(255,255,255,0.28); }
.checkout-field.error {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255,77,77,0.15);
  animation: fieldShake 0.35s ease;
}
textarea.checkout-field {
  resize: none; height: 78px; line-height: 1.5;
  margin-bottom: 0.75rem;
}
/* Inline error label */
.field-error-msg {
  display: none; font-size: 0.72rem; color: #ff7070;
  margin-top: -0.5rem; margin-bottom: 0.65rem;
  padding-left: 4px;
}
.field-error-msg.visible { display: block; }
@keyframes fieldShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
/* Keep old class working as alias */
.checkout-name-input { width:100%; background:rgba(255,255,255,0.06); border:1.5px solid rgba(255,255,255,0.12); color:var(--white); border-radius:10px; padding:11px 14px; font-family:'Jost',sans-serif; font-size:0.88rem; margin-bottom:0.75rem; outline:none; transition:border-color 0.2s; display:block; }
.checkout-name-input:focus { border-color: var(--pink); }
.checkout-name-input::placeholder { color: rgba(255,255,255,0.28); }
.whatsapp-btn {
  width: 100%; background: #25d366; border: none; color: var(--white);
  border-radius: 50px; padding: 13px; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.86rem; letter-spacing: 0.07em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s, transform 0.2s;
}
.whatsapp-btn:hover { background: #20ba5a; transform: translateY(-2px); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: var(--white); padding: 12px 28px; border-radius: 50px;
  font-size: 0.83rem; letter-spacing: 0.04em; z-index: 3000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── WA FLOAT ── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 998;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waf 3s ease-in-out infinite 4s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
@keyframes waf {
  0%,100%{transform:rotate(0)}15%{transform:rotate(-8deg)}30%{transform:rotate(8deg)}45%{transform:rotate(-4deg)}60%{transform:rotate(4deg)}
}

/* ── FOOTER ── */
footer {
  background: var(--card-bg); border-top: 1px solid var(--border);
  padding: 3rem 5vw;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand .logo-text {
  font-family: 'Dancing Script', cursive; font-size: 1.6rem; margin-bottom: 0.75rem;
}
.footer-brand .logo-text span { color: var(--orange); }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 260px; }
.footer-col h4 {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  max-width: 1300px; margin: 2.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.28); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
  padding: 8px 22px; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: transparent; color: rgba(255,255,255,0.55);
  font-family: 'Jost', sans-serif; font-size: 0.78rem; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--pink); color: var(--white);
  background: rgba(232,21,110,0.12);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .section { padding: 65px 5vw; }
  .page-hero { padding: 120px 5vw 55px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cart-sidebar { width: 100vw; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
