/* =========================================================
   UJALA CREATIONS — Storefront Design System
   Palette drawn from the shop signage: rose pink garments,
   gold florals on an ivory-white ground.
   ========================================================= */

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

:root {
  /* Color tokens */
  --ivory: #FFFBF7;
  --blush: #FDEEF2;
  --blush-deep: #FBE0E9;
  --rose: #FF4D8D;
  --rose-deep: #B8195A;
  --rose-soft: #FFE3ED;
  --gold: #C9972E;
  --gold-deep: #9C7416;
  --gold-light: #F3DFA4;
  --charcoal: #2E2024;
  --charcoal-soft: #6E5C61;
  --white: #FFFFFF;
  --success: #2E7D32;
  --success-bg: #E8F5E9;
  --danger: #C62828;
  --danger-bg: #FDECEA;
  --warn-bg: #FFF6E0;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Marck Script', cursive;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 24px rgba(184, 25, 90, 0.08);
  --shadow-card: 0 4px 18px rgba(46, 32, 36, 0.07);
  --container: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 .4em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--charcoal-soft); }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--rose-deep);
  display: inline-block;
  margin-bottom: .15em;
}
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; max-width: 560px; margin: 0 auto 40px; }

/* ---------- Fabric-drape divider (signature element) ---------- */
.drape-divider {
  width: 100%;
  height: 46px;
  display: block;
  margin: 0;
}
.drape-divider path { fill: var(--blush); }
.drape-divider.flip { transform: scaleY(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .3px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--rose), var(--rose-deep) 70%);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184,25,90,.22); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color: var(--charcoal);
  box-shadow: 0 6px 18px rgba(156,116,22,.22);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--rose-deep);
  color: var(--rose-deep);
}
.btn-outline:hover { background: var(--rose-soft); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(46,32,36,.15);
}
.btn-ghost:hover { border-color: var(--rose-deep); color: var(--rose-deep); }

.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,247,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,151,46,.18);
}
.header-top {
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: .78rem;
  letter-spacing: .4px;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.header-top a { color: var(--gold-light); }
.header-top a:hover { color: var(--white); }

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--rose-deep);
  letter-spacing: .5px;
}
.brand-name span { color: var(--gold-deep); }
.brand-tagline {
  font-family: var(--font-script);
  color: var(--charcoal-soft);
  font-size: 1rem;
  display: none;
}
@media (min-width: 760px) { .brand-tagline { display: inline; } }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--rose);
  transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-deep);
  transition: background .2s ease;
}
.icon-link:hover { background: var(--rose-soft); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--rose-deep);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--charcoal);
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 18px 24px;
    box-shadow: var(--shadow-card);
    gap: 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blush) 0%, var(--ivory) 55%);
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.hero-copy p { max-width: 480px; }
@media (max-width: 880px) { .hero-copy p { margin-left: auto; margin-right: auto; } }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-actions { justify-content: center; } }

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--rose-soft), var(--gold-light) 120%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(255,255,255,.92);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: .8rem;
  box-shadow: var(--shadow-card);
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--rose-deep); }

/* ---------- Category strip ---------- */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  padding: 50px 0;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,151,46,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.cat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.cat-card h3 { font-size: 1rem; margin-bottom: 2px; }
.cat-card span { font-size: .78rem; color: var(--charcoal-soft); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px dashed rgba(201,151,46,.35);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.product-thumb {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--blush);
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--rose-deep);
  color: var(--white);
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: .72rem; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.product-name { font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--charcoal); margin-bottom: 6px; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price-now { font-weight: 700; color: var(--rose-deep); font-size: 1.05rem; }
.price-old { text-decoration: line-through; color: var(--charcoal-soft); font-size: .85rem; }
.out-of-stock { color: var(--danger); font-size: .78rem; font-weight: 600; margin-top: 6px; }

/* ---------- Filters / shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 40px 0 70px; }
@media (max-width: 880px) { .shop-layout { grid-template-columns: 1fr; } }
.filter-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  height: fit-content;
}
.filter-card h4 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gold-deep); margin: 18px 0 10px; }
.filter-card h4:first-child { margin-top: 0; }
.filter-list label { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 5px 0; cursor: pointer; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.search-box { display: flex; gap: 8px; flex: 1; max-width: 360px; }
.search-box input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(46,32,36,.15); }
select.sort-select { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(46,32,36,.15); background: var(--white); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
  max-width: 480px;
  margin: 50px auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(46,32,36,.18);
  border-radius: var(--radius-sm);
  background: var(--ivory);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--rose);
  outline: none;
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--charcoal-soft); text-align: center; margin-top: 14px; }
.form-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 16px;
}
.form-success {
  background: var(--success-bg);
  color: var(--success);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 16px;
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; padding: 50px 0 80px; align-items: start; }
@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(46,32,36,.08);
}
.cart-item img { width: 84px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid rgba(46,32,36,.15); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: var(--blush); border: none; width: 30px; height: 30px; font-size: 1rem; }
.qty-stepper span { width: 32px; text-align: center; font-weight: 600; }
.remove-link { color: var(--danger); font-size: .8rem; cursor: pointer; }
.summary-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .92rem; color: var(--charcoal-soft); }
.summary-row.total { font-weight: 700; color: var(--charcoal); font-size: 1.1rem; border-top: 1px dashed rgba(46,32,36,.15); padding-top: 14px; margin-top: 8px; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .icon { font-size: 3rem; margin-bottom: 14px; }

/* ---------- Badges / status pills ---------- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill-placed { background: var(--warn-bg); color: #946200; }
.pill-processing { background: #E3EEFC; color: #1B5FA8; }
.pill-shipped { background: #EDE7FB; color: #6A3FBF; }
.pill-delivered { background: var(--success-bg); color: var(--success); }
.pill-cancelled { background: var(--danger-bg); color: var(--danger); }
.pill-paid { background: var(--success-bg); color: var(--success); }
.pill-pending { background: var(--warn-bg); color: #946200; }
.pill-failed { background: var(--danger-bg); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #EADFE2; margin-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 30px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h4 { color: var(--gold-light); font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.site-footer .brand-name { color: var(--gold-light); }
.site-footer .brand-name span { color: var(--rose); }
.footer-tagline { font-family: var(--font-script); font-size: 1.15rem; color: #D8C6CB; margin-top: 6px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #D8C6CB; font-size: .9rem; }
.footer-links a:hover { color: var(--rose); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .88rem; color: #D8C6CB; align-items: flex-start; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: .8rem;
  color: #B6A4A9;
}
.footer-bottom a { color: var(--gold-light); }

/* ---------- Misc ---------- */
.page-header { padding: 46px 0 10px; text-align: center; }
.breadcrumb { font-size: .82rem; color: var(--charcoal-soft); text-align: center; margin-bottom: 6px; }
.loader { text-align: center; padding: 60px 20px; color: var(--charcoal-soft); }
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--blush);
  border-top-color: var(--rose);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: .88rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.section { padding: 50px 0; }
.section-alt { background: var(--blush); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
