/* Zuhur Fashions — brand tokens (blossom identity: plum / rosewood / gold) */
:root {
  --zf-plum:   #2E1A2B;
  --zf-rose:   #C25B6E;
  --zf-rose-d: #A8475C;
  --zf-gold:   #C9A24B;
  --zf-blush:  #F3DDDE;
  --zf-cream:  #FBF7F3;

  /* Legacy aliases so existing markup picks up the new palette */
  --zf-primary: var(--zf-rose);
  --zf-accent:  var(--zf-gold);
  --zf-dark:    var(--zf-plum);

  --zf-display: "Lora", Georgia, "Times New Roman", serif;
  --zf-body:    "Poppins", "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--zf-body); color: var(--zf-plum); background: var(--zf-cream); }
h1, h2, h3, h4, h5, .brand-serif { font-family: var(--zf-display); color: var(--zf-plum); }

/* Storefront */
.zf-navbar { background: #fff; border-bottom: 1px solid var(--zf-blush); }
.zf-navbar .nav-link { color: var(--zf-plum); letter-spacing: .02em; }
.zf-navbar .nav-link:hover { color: var(--zf-rose); }
.zf-brand { font-family: var(--zf-display); font-weight: 700; letter-spacing: .5px; color: var(--zf-plum) !important; }
.zf-brand img { display: block; }
.zf-hero {
  background-color: var(--hero-bg, var(--zf-blush));
  background-image: url('../img/brand/pattern-blossom-tile.png');
  background-size: 320px;
  background-blend-mode: soft-light;
  padding: 4.5rem 0;
}
.zf-hero .eyebrow { font-family: var(--zf-body); letter-spacing: .42em; text-transform: uppercase; color: var(--zf-rose); font-size: .75rem; }
.zf-hero h1 { font-family: var(--zf-display); color: var(--zf-plum); }
/* Homepage promo / cross-sell banner */
.zf-promo {
  background-color: var(--promo-bg, var(--zf-plum));
  background-image: url('../img/brand/pattern-blossom-tile.png');
  background-size: 320px;
  background-blend-mode: soft-light;
  color: var(--promo-text, var(--zf-cream));
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.zf-promo::before,
.zf-promo::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--zf-gold), transparent); opacity: .55; }
.zf-promo::before { top: 10px; }
.zf-promo::after { bottom: 10px; }
.zf-promo .eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--zf-body); letter-spacing: .42em; text-transform: uppercase; color: var(--zf-gold); font-size: .75rem; }
.zf-promo .eyebrow-rule { display: inline-block; width: 28px; height: 1px; background: var(--zf-gold); }
.zf-promo .promo-heading { font-family: var(--zf-display); color: var(--promo-text, var(--zf-cream)); font-size: clamp(1.75rem, 4vw, 2.75rem); }
.zf-promo .promo-sub { color: var(--promo-text, var(--zf-cream)); opacity: .82; font-weight: 300; max-width: 34rem; }
.zf-promo .text-center .promo-sub { margin-left: auto; margin-right: auto; }
/* Image-led hero: full-width campaign banner/carousel (Libas/Biba style),
   entirely clickable. Height is capped so the banner never swallows the
   viewport; taller uploads are centre-cropped, keeping slides uniform. */
.zf-hero-image a { display: block; position: relative; }
.zf-hero-image img { display: block; width: 100%; height: clamp(260px, 34vw, 540px); object-fit: cover; }
.zf-hero-image .carousel-indicators [data-bs-target] { width: 26px; height: 3px; border-radius: 2px; background: #fff; opacity: .5; border: 0; }
.zf-hero-image .carousel-indicators .active { opacity: 1; background: var(--zf-gold); }
.zf-hero-image .carousel-control-prev, .zf-hero-image .carousel-control-next { width: 6%; opacity: 0; transition: opacity .25s; }
.zf-hero-image .carousel:hover .carousel-control-prev, .zf-hero-image .carousel:hover .carousel-control-next { opacity: .85; }
.zf-hero-caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(26,12,22,.55) 0%, rgba(26,12,22,.28) 45%, rgba(26,12,22,0) 72%);
  color: #fff; text-align: left;
}
.zf-hero-caption .caption-copy { display: block; max-width: 34rem; }
.zf-hero-caption .eyebrow { font-family: var(--zf-body); letter-spacing: .42em; text-transform: uppercase; color: var(--zf-gold); font-size: .72rem; }
.zf-hero-caption .caption-heading { font-family: var(--zf-display); font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.15; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.zf-hero-caption .caption-sub { font-weight: 300; font-size: clamp(.85rem, 1.3vw, 1.05rem); opacity: .92; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
@media (max-width: 575.98px) {
  .zf-hero-caption { background: linear-gradient(0deg, rgba(26,12,22,.62) 0%, rgba(26,12,22,.2) 60%, rgba(26,12,22,0) 100%); align-items: flex-end; padding-bottom: 2rem; }
  .zf-hero-caption .eyebrow { letter-spacing: .28em; }
}

/* Image-led promo banner: the uploaded image is the banner, height-capped
   and centre-cropped, with the promo copy overlaid on a soft scrim. */
.zf-promo-image a { display: block; position: relative; border-radius: .5rem; overflow: hidden; }
.zf-promo-image img { display: block; width: 100%; height: clamp(220px, 26vw, 430px); object-fit: cover; transition: transform .4s ease; }
.zf-promo-image a:hover img { transform: scale(1.015); }
.zf-promo-caption {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(26,12,22,.5) 0%, rgba(26,12,22,.28) 60%, rgba(26,12,22,.15) 100%);
  color: #fff; padding: 1rem;
}
.zf-promo-caption .caption-copy { display: block; max-width: 36rem; }
.zf-promo-caption .eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--zf-body); letter-spacing: .42em; text-transform: uppercase; color: var(--zf-gold); font-size: .72rem; }
.zf-promo-caption .eyebrow-rule { display: inline-block; width: 28px; height: 1px; background: var(--zf-gold); }
.zf-promo-caption .caption-heading { font-family: var(--zf-display); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.2; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.zf-promo-caption .caption-sub { font-weight: 300; font-size: clamp(.82rem, 1.2vw, 1rem); opacity: .92; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.zf-promo-caption .btn-zf-gold { color: var(--zf-gold); border-color: var(--zf-gold); background: rgba(26,12,22,.25); }
.btn-zf-gold { background: transparent; color: var(--zf-gold); border: 1px solid var(--zf-gold); border-radius: 999px; padding: .6rem 1.5rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; transition: background .2s, color .2s; }
.btn-zf-gold:hover { background: var(--zf-gold); color: var(--zf-plum); }

.product-card { transition: box-shadow .2s, transform .2s; border: 1px solid #eee; overflow: hidden; height: 100%; }
.product-card:hover { box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1); transform: translateY(-3px); }
.product-card .card-img-wrap { aspect-ratio: 4/5; overflow: hidden; background: var(--zf-cream); }
.product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.price-now { color: var(--zf-rose); font-weight: 600; }
.price-was { color: #b5a9ad; text-decoration: line-through; font-size: .9em; }
.badge-sale { background: var(--zf-gold); color: var(--zf-plum); font-weight: 600; letter-spacing: .04em; }
.btn-zf { background: var(--zf-rose); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.5rem; font-weight: 500; letter-spacing: .02em; }
.btn-zf:hover { background: var(--zf-rose-d); color: #fff; }
a { color: var(--zf-rose); }
a:hover { color: var(--zf-rose-d); }
.category-pill { border: 1px solid var(--zf-blush); border-radius: 2rem; padding: .35rem 1rem; color: var(--zf-plum); text-decoration: none; }
.category-pill:hover, .category-pill.active { background: var(--zf-rose); color: #fff; border-color: var(--zf-rose); }

/* Navbar category dropdowns: hover on desktop, inline list in the mobile menu */
.zf-navcaret { font-size: .6rem; vertical-align: middle; opacity: .6; }
@media (min-width: 992px) {
  .zf-navdrop { position: relative; }
  .zf-navdrop .dropdown-menu {
    display: none; margin-top: 0; border: 1px solid var(--zf-blush);
    border-radius: .5rem; box-shadow: 0 .75rem 1.5rem rgba(46,26,43,.12); min-width: 12rem;
  }
  .zf-navdrop:hover > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
  .zf-navdrop .dropdown-menu { display: block; position: static; border: 0; box-shadow: none; background: transparent; padding: 0 0 .25rem 1.25rem; }
}
.zf-navdrop .dropdown-item { color: var(--zf-plum); padding: .45rem 1rem; font-size: .95rem; }
.zf-navdrop .dropdown-item:hover { background: var(--zf-blush); color: var(--zf-plum); }

/* Shop sidebar: minimal editorial filter groups (uppercase labels, thin
   chevrons, hairline dividers — no boxes) */
.filter-group { border-bottom: 1px solid #eae4e6; padding: 1.05rem 0; }
.filter-group summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--zf-plum);
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after {
  content: ""; width: 8px; height: 8px; margin-left: auto; margin-top: -4px;
  border-right: 1.5px solid #8a7580; border-bottom: 1.5px solid #8a7580;
  transform: rotate(45deg); transition: transform .18s ease;
}
.filter-group[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.filter-group .badge { font-size: .6rem; margin-left: .5rem; letter-spacing: 0; background: var(--zf-rose) !important; }
.filter-options { max-height: 230px; overflow-y: auto; }
.filter-options .form-check, .filter-group .form-check { margin-bottom: .3rem; color: #5c4a55; }

/* Colour swatch grid in the filter sidebar */
.swatch-grid { display: flex; flex-wrap: wrap; gap: 7px; max-height: 230px; overflow-y: auto; }
.swatch { margin: 0; cursor: pointer; position: relative; line-height: 0; }
.swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch span { display: inline-block; width: 26px; height: 26px; border-radius: 4px; border: 1px solid rgba(46,26,43,.18); }
.swatch:hover span { border-color: var(--zf-plum); }
.swatch input:checked + span { outline: 2px solid var(--zf-rose); outline-offset: 2px; }
.swatch-multi { background: linear-gradient(135deg, #fff 0 48%, rgba(46,26,43,.25) 48% 52%, #e8d8b8 52% 100%); }

/* Category links inside the sidebar */
.cat-list { display: flex; flex-direction: column; gap: .1rem; }
.cat-link { display: block; padding: .32rem 0; color: #5c4a55; text-decoration: none; font-size: .95rem; }
.cat-link:hover { color: var(--zf-rose-d); }
.cat-link.active { color: var(--zf-rose-d); font-weight: 600; }
.cat-link.cat-sub { padding-left: 1.1rem; font-size: .88rem; color: #8a7580; }
.cat-link.cat-sub .bi { font-size: .72rem; opacity: .55; }
.cat-link.cat-sub.active { color: var(--zf-rose-d); }
.cat-link.cat-sub.active .bi { opacity: 1; }

/* Variant picker (product page) */
.variant-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #8a7580; }
.variant-pill {
  border: 1px solid #d9c8ce; background: #fff; color: var(--zf-plum);
  border-radius: 999px; min-width: 46px; min-height: 44px; padding: .4rem 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem; letter-spacing: .02em;
  transition: border-color .15s, background .15s, color .15s;
}
.variant-pill:hover:not(:disabled) { border-color: var(--zf-plum); }
.variant-pill.selected { background: var(--zf-plum); border-color: var(--zf-plum); color: #fff; }
.variant-pill.sold-out { color: #c3b6bb; background: var(--zf-cream); border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
#variantStockNote { color: var(--zf-rose-d); }

/* Product gallery */
.gallery-main { aspect-ratio: 4/5; background: var(--zf-cream); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs img { width: 70px; height: 88px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--zf-primary); }
.product-description img { max-width: 100%; height: auto; }

/* Pagination: round brand pills (shop grid + admin lists) */
.pagination { gap: .4rem; }
.pagination .page-link {
  border: 1px solid #eae4e6; border-radius: 999px !important;
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .75rem; color: var(--zf-plum); background: #fff; font-size: .9rem; line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
}
.pagination .page-link:hover { background: var(--zf-blush); border-color: var(--zf-blush); color: var(--zf-plum); }
.pagination .page-item.active .page-link { background: var(--zf-rose); border-color: var(--zf-rose); color: #fff; }
.pagination .page-item.disabled .page-link { color: #cbbfc5; background: transparent; border-color: #f0eaec; }
.pagination .page-link:focus { box-shadow: 0 0 0 .2rem rgba(194,91,110,.15); }
.pagination .page-link .bi { font-size: .75rem; }

footer.zf-footer { background: var(--zf-plum); color: #d8c7cf; }
footer.zf-footer h5, footer.zf-footer h6 { color: #fff; }
footer.zf-footer a { color: #ecd9df; text-decoration: none; }
footer.zf-footer a:hover { color: var(--zf-gold); }
.zf-footer-logo { display: block; max-height: 120px; width: auto; }
.zf-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid rgba(201,162,75,.55); border-radius: 50%;
  color: var(--zf-gold); font-size: 1rem; transition: background .2s, color .2s;
}
.zf-footer-social a:hover { background: var(--zf-gold); color: var(--zf-plum); }

/* Admin tweaks */
.admin-sidebar { min-height: 100vh; background: var(--zf-plum); }
.admin-sidebar .admin-brand img { max-width: 150px; height: auto; }
.admin-sidebar a { color: #d8c7cf; text-decoration: none; padding: .6rem 1rem; display: block; border-radius: .5rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(194,91,110,.25); color: #fff; }
.admin-card { border: 1px solid #e5e7eb; }
.img-preview-tile { position: relative; width: 110px; }
.img-preview-tile img { width: 110px; height: 138px; object-fit: cover; border-radius: .375rem; border: 2px solid #e5e7eb; }
.img-preview-tile.is-primary img { border-color: var(--zf-primary); }
.img-preview-tile .tile-actions { position: absolute; top: 3px; right: 3px; display: flex; gap: 2px; }
.img-preview-tile .badge-primary-img { position: absolute; bottom: 4px; left: 4px; }
#dropzone { border: 2px dashed #cbd5e1; border-radius: .5rem; padding: 2rem; text-align: center; cursor: pointer; color: #6b7280; }
#dropzone.dragover { border-color: var(--zf-primary); background: #faf7f2; }
.sortable-ghost { opacity: .4; }
