/* ============================================
   NESTORA CREATIONS LLC — Global Stylesheet
   Women's Office Wear · Sophisticated, modern, polished
   ============================================ */

:root {
  --color-primary: #3d2c2e;
  --color-secondary: #8a6e6a;
  --color-accent: #c4a484;
  --color-bg: #faf6f2;
  --color-bg-alt: #efe7df;
  --color-text: #2b2123;
  --color-muted: #7a6b68;
  --color-border: #e2d6cc;
  --color-sale: #a64e4e;
  --font-display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: .005em;
}

a { color: var(--color-secondary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--color-primary); }

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

.btn { border-radius: 0; padding: .8rem 1.85rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; transition: all .3s ease; }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-secondary); border-color: var(--color-secondary); }
.btn-outline-primary { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: .78rem;
  padding: .55rem 0;
  letter-spacing: .06em;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--color-accent); }

/* ============ HEADER ============ */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.navbar { padding: 1.1rem 0; }
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: .18em;
  color: var(--color-primary) !important;
}
.navbar-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .35em;
  color: var(--color-muted);
  font-weight: 500;
  margin-top: -2px;
}
.navbar .nav-link {
  color: var(--color-primary) !important;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .5rem 1rem !important;
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: all .3s ease;
  transform: translateX(-50%);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 36px; }

.cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
}
.cart-badge:hover { background: var(--color-secondary); color: #fff; }
.cart-count {
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(61,44,46,.55) 0%, rgba(61,44,46,.15) 70%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 5rem 0;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  color: #fff;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.08;
}
.hero-content .lead {
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 2rem;
  opacity: .96;
  font-weight: 300;
}
.hero-tag {
  display: inline-block;
  padding: .35rem 1rem;
  border: 1px solid rgba(255,255,255,.65);
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: #e6d5cb; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
  font-weight: 600;
}
.section-title h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin: 0;
  font-weight: 400;
}
.section-title p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--color-muted);
}

/* ============ PRODUCT CARD ============ */
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  transition: all .35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px -20px rgba(61,44,46,.25);
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .img-wrap .badge-sale {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: .68rem;
  padding: .35rem .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}
.product-card .img-wrap .quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .9rem;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
  width: 100%;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.product-card:hover .quick-add { transform: translateY(0); }
.product-card .body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  line-height: 1.3;
  font-weight: 400;
}
.product-card h3 a { color: var(--color-primary); }
.product-card h3 a:hover { color: var(--color-secondary); }
.product-card .price {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  margin-top: auto;
}
.product-card .price .sale {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.product-card .price .orig {
  font-size: .95rem;
  color: var(--color-muted);
  text-decoration: line-through;
}
.rating { color: var(--color-accent); font-size: .85rem; }
.rating .count { color: var(--color-muted); margin-left: .25rem; }

/* ============ PRODUCT DETAIL ============ */
.product-gallery {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 680px;
  overflow-y: auto;
}
.gallery-thumbs .thumb {
  aspect-ratio: 3 / 4;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--color-bg-alt);
  overflow: hidden;
  padding: 0;
}
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.gallery-thumbs .thumb.active { border-color: var(--color-primary); }
.gallery-main {
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 90px;
  }
  .gallery-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }
  .gallery-thumbs .thumb { width: 80px; flex-shrink: 0; }
}

.product-info h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: .5rem;
}
.product-info .price-block {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  margin: 1rem 0 1.5rem;
}
.product-info .price-block .sale {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--color-primary);
}
.product-info .price-block .orig {
  font-size: 1.15rem;
  color: var(--color-muted);
  text-decoration: line-through;
}
.product-info .price-block .savings {
  background: var(--color-accent);
  color: #fff;
  padding: .25rem .65rem;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
}

.variant-group { margin-bottom: 1.5rem; }
.variant-group label {
  display: block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .55rem;
  font-weight: 600;
}
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-options .opt {
  padding: .55rem 1.15rem;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  font-size: .85rem;
  transition: all .2s ease;
  user-select: none;
}
.variant-options .opt:hover { border-color: var(--color-primary); }
.variant-options .opt.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.qty-selector {
  display: inline-flex;
  border: 1px solid var(--color-border);
  background: #fff;
}
.qty-selector button {
  background: transparent;
  border: none;
  width: 42px;
  height: 46px;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--color-primary);
}
.qty-selector button:hover { background: var(--color-bg-alt); }
.qty-selector input {
  border: none;
  width: 52px;
  text-align: center;
  height: 46px;
  font-weight: 600;
}
.qty-selector input:focus { outline: none; }

.product-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: .9rem;
  color: var(--color-muted);
}
.product-meta div { margin-bottom: .35rem; }
.product-meta strong { color: var(--color-primary); }

/* ============ CART ============ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}
.cart-table th {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}
.cart-item-img { width: 80px; height: 100px; object-fit: cover; object-position: center top; background: var(--color-bg-alt); }
.cart-item-name { font-weight: 500; color: var(--color-primary); margin-bottom: .15rem; }
.cart-item-variant { font-size: .8rem; color: var(--color-muted); }
.cart-remove { background: none; border: none; color: var(--color-muted); cursor: pointer; font-size: 1.1rem; }
.cart-remove:hover { color: var(--color-sale); }

.cart-summary {
  background: var(--color-bg-alt);
  padding: 2rem;
  border: 1px solid var(--color-border);
}
.cart-summary h3 { margin-top: 0; margin-bottom: 1.25rem; }
.cart-summary .row-line {
  display: flex;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.cart-summary .total {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 2px solid var(--color-primary);
  border-bottom: none;
  margin-top: .5rem;
  padding-top: 1rem;
}

.empty-cart { text-align: center; padding: 4rem 1rem; }
.empty-cart svg { color: var(--color-border); margin-bottom: 1.5rem; }

/* ============ PAGE BANNER ============ */
.page-banner {
  background: var(--color-bg-alt);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; font-weight: 400; }
.page-banner .breadcrumb {
  display: inline-flex;
  gap: .5rem;
  font-size: .82rem;
  color: var(--color-muted);
  background: transparent;
  padding: 0;
  margin: 0;
  letter-spacing: .06em;
}
.page-banner .breadcrumb a { color: var(--color-muted); }
.page-banner .breadcrumb a:hover { color: var(--color-primary); }

/* ============ ABOUT / CONTACT ============ */
.about-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.contact-info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  height: 100%;
}
.contact-info-card .icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: .5rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
}
.contact-info-card p { color: var(--color-muted); margin: 0; font-size: .95rem; }

.contact-form input,
.contact-form textarea {
  border-radius: 0;
  border: 1px solid var(--color-border);
  padding: .9rem 1rem;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--color-primary); box-shadow: none; }

/* ============ POLICY ============ */
.policy-content { max-width: 860px; margin: 0 auto; font-size: .98rem; color: var(--color-text); }
.policy-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 500; }
.policy-content h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: .75rem; }
.policy-content p { margin-bottom: 1rem; line-height: 1.8; }
.policy-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.policy-content li { margin-bottom: .35rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-primary);
  color: #d6c8c0;
  padding: 4rem 0 1.5rem;
}
.site-footer h5 {
  color: #fff;
  font-size: .88rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.site-footer .brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: .12em;
}
.site-footer p, .site-footer li { color: #d6c8c0; font-size: .9rem; }
.site-footer a { color: #d6c8c0; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer .info-line { display: flex; gap: .65rem; margin-bottom: .65rem; font-size: .9rem; }
.site-footer .info-line svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }
.site-footer .subscribe-form { display: flex; margin-top: .75rem; }
.site-footer .subscribe-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: .72rem .9rem;
  font-size: .9rem;
}
.site-footer .subscribe-form input::placeholder { color: #a6948a; }
.site-footer .subscribe-form button {
  background: var(--color-accent);
  border: none;
  color: #fff;
  padding: 0 1.35rem;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease;
}
.site-footer .subscribe-form button:hover { background: #fff; color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: .82rem;
  color: #a6948a;
  text-align: center;
  letter-spacing: .06em;
}

/* ============ TOAST ============ */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast-custom {
  background: var(--color-primary);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: .6rem;
  animation: slideIn .3s ease;
  border-left: 4px solid var(--color-accent);
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ HELPERS ============ */
.text-muted-c { color: var(--color-muted) !important; }
.bg-cream { background: var(--color-bg-alt); }
.divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 1rem auto;
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hero { min-height: 480px; }
  .hero-content { padding: 3rem 0; }
  .navbar-brand { font-size: 1.4rem; }
  .top-bar { font-size: .72rem; }
}
