@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

/* ==========================================
   YUJEE BOUTIQUE — LUXURY SHOP STYLESHEET
   ========================================== */

/* Design Tokens */
:root {
  --maroon-primary: #691b2d;
  --maroon-deep: #4a0d1b;
  --maroon-dark: #380812;
  --gold-primary: #D4AF37;
  --gold-dark: #aa861d;
  --gold-light: #F4E8C1;
  --bg-cream: #FFF8F5;
  --bg-cream-alt: #F8F4F1;
  --text-dark: #2B1518;
  --text-muted: #6B5559;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --font-signature: 'Alex Brush', cursive;
  --radius-card: 24px;
  --radius-pill: 50px;
}

.shop-wrap {
  margin-top: 100px;
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

/* ==========================================
   SECTION 1 — LUXURY HERO BANNER
   ========================================== */
.shop-hero {
  position: relative;
  background: linear-gradient(135deg, #380812 0%, #561223 50%, #450c1b 100%);
  color: #FFFFFF;
  padding: 65px 24px 60px;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 -10px 30px rgba(0,0,0,0.25);
}

.shop-hero-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.shop-hero .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.shop-hero h1 {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(135deg, #FFF6D6 0%, #EAB75F 40%, #D4AF37 70%, #AA861D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.3);
  text-align: center;
}

.shop-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 18px;
  line-height: 1.7;
}

/* Gold Ornament Line */
.gold-ornament-divider-shop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 0;
  max-width: 280px;
}

.gold-ornament-line-shop {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.gold-ornament-icon-shop {
  color: var(--gold-primary);
  font-size: 14px;
}

/* ==========================================
   BREADCRUMB TRAIL
   ========================================== */
.shop-crumb-wrapper {
  background: var(--bg-cream-alt);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.shop-crumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.shop-crumb a {
  color: var(--maroon-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.shop-crumb a:hover {
  color: var(--gold-dark);
}

.shop-crumb .sep {
  color: var(--gold-primary);
  opacity: 0.6;
}

/* ==========================================
   MAIN LAYOUT (SIDEBAR + PRODUCT GRID)
   ========================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 70px;
  gap: 32px;
}

/* ==========================================
   LUXURY SIDEBAR FILTERS
   ========================================== */
.shop-sidebar {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  padding: 24px 22px 30px;
  height: fit-content;
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  box-shadow: 0 12px 36px rgba(105, 27, 45, 0.06);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-cream-alt);
}

.shop-sidebar .filter-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 16px;
}

.shop-sidebar .filter-hdr h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--maroon-primary);
  margin: 0;
}

.shop-sidebar .filter-hdr button {
  font-size: 0.75rem;
  color: var(--maroon-primary);
  background: var(--bg-cream-alt);
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.25s ease;
}

.shop-sidebar .filter-hdr button:hover {
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border-color: var(--maroon-primary);
}

.fg {
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
}

.fg:last-child {
  border-bottom: none;
}

.fg-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}

.fg-hdr span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--maroon-primary);
}

.fg-hdr i {
  font-size: 13px;
  color: var(--gold-dark);
  transition: transform 0.3s ease;
}

.fg-hdr.open i {
  transform: rotate(180deg);
}

.fg-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
}

.fg-body.open {
  max-height: 420px;
  padding: 0 0 16px;
}

.fg-body .fck {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dark);
  transition: color 0.15s ease;
}

.fg-body .fck:hover {
  color: var(--maroon-primary);
}

.fg-body .fck input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gold-primary);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.fg-body .fck input:checked {
  background: var(--maroon-primary);
  border-color: var(--maroon-primary);
}

.fg-body .fck input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--gold-primary);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.fg-body .fck .cnt {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--maroon-primary);
  background: var(--bg-cream-alt);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* Price Range Slider */
.pr-slider {
  margin-top: 6px;
}

.pr-slider input[type=range] {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: #E8DFD8;
  border-radius: 5px;
  outline: none;
}

.pr-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--maroon-primary);
  border: 2.5px solid var(--gold-primary);
  box-shadow: 0 4px 10px rgba(105, 27, 45, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pr-slider input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.pr-vals {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--maroon-primary);
  margin-top: 8px;
}

/* Size Buttons */
.sz-grp {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sz-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  font-size: 0.78rem;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.2s ease;
}

.sz-btn:hover {
  border-color: var(--maroon-primary);
  color: var(--maroon-primary);
}

.sz-btn.sel {
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border-color: var(--maroon-primary);
}

/* Color Swatches */
.clr-grp {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.clr-sw {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}

.clr-sw:hover {
  transform: scale(1.18);
}

.clr-sw.sel {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--maroon-primary);
}

/* ==========================================
   MAIN CONTENT & TOP TOOLBAR
   ========================================== */
.shop-main {
  min-height: 400px;
}

.shop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
  flex-wrap: wrap;
}

.shop-top .info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-top .info b {
  color: var(--maroon-primary);
  font-weight: 700;
}

.shop-top select {
  font-size: 0.85rem;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 36px 8px 18px;
  background: #FFFFFF;
  color: var(--maroon-primary);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23691b2d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: 0 4px 12px rgba(105, 27, 45, 0.05);
}

.shop-top select:focus {
  border-color: var(--maroon-primary);
  box-shadow: 0 6px 16px rgba(105, 27, 45, 0.15);
}

.active-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 16px;
}

.atag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.78rem;
  color: var(--maroon-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(105, 27, 45, 0.06);
}

.atag:hover {
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border-color: var(--maroon-primary);
}

/* Mobile Filter Button */
.mob-filter-btn {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin: 0 0 16px;
  box-shadow: 0 6px 18px rgba(105, 27, 45, 0.2);
  width: 100%;
  justify-content: center;
}

/* ==========================================
   PRODUCT CARDS GRID (EXACT REFERENCE DESIGN)
   ========================================== */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 12px 0 40px;
}

.pcard {
  position: relative;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px solid #F5E6D8;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 10px 30px rgba(105, 27, 45, 0.07);
  display: flex;
  flex-direction: column;
}

.pcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(105, 27, 45, 0.16);
  border-color: var(--gold-primary);
}

.pcard .pimg {
  position: relative;
  height: 175px;
  width: 100%;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F8F0EC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.pcard .pimg img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
  margin: auto;
  filter: drop-shadow(0 6px 14px rgba(105, 27, 45, 0.12));
}

.pcard:hover .pimg img {
  transform: scale(1.08);
}

.pcard .pbadge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #691b2d;
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pcard .pbag-circle {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #691b2d;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 3px 8px rgba(105, 27, 45, 0.3);
  z-index: 10;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pcard:hover .pbag-circle {
  background: var(--gold-primary);
  color: #691b2d;
  transform: translateX(-50%) scale(1.1);
}

.pcard .pbody {
  padding: 16px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
  background: #FFFFFF;
}

.pcard .pname {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #691b2d;
  margin: 0 0 4px 0;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.pcard .psub {
  font-size: 0.78rem;
  color: #888888;
  margin-bottom: 10px;
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.pcard .pprice-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pcard .pprice {
  font-size: 1.25rem;
  font-weight: 700;
  color: #691b2d;
}

.pcard .pold {
  font-size: 0.88rem;
  color: #AAAAAA;
  text-decoration: line-through;
  font-weight: 400;
}

.pcard .pactions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pcard .btn-add-cart {
  flex: 1;
  height: 36px;
  background: #691b2d;
  color: #FFFFFF;
  border-radius: 6px;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(105, 27, 45, 0.2);
}

.pcard .btn-add-cart:hover {
  background: var(--gold-primary);
  color: #691b2d;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.pcard .btn-wish {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #691b2d;
  color: #691b2d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.pcard .btn-wish:hover {
  background: #691b2d;
  color: #FFFFFF;
}

.pcard .btn-wish.liked {
  background: #691b2d;
  color: #FFFFFF;
}

.pcard .pactions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pcard .btn-add-cart {
  flex: 1;
  height: 42px;
  background: #691b2d;
  color: #FFFFFF;
  border-radius: 8px;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(105, 27, 45, 0.2);
}

.pcard .btn-add-cart:hover {
  background: var(--gold-primary);
  color: #691b2d;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
  border-color: var(--maroon-primary);
}

/* ==========================================
   PAGINATION STYLES
   ========================================== */
.pagi-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0 24px;
}

.pagi-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--maroon-primary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s ease;
  padding: 0 12px;
  box-shadow: 0 4px 12px rgba(105, 27, 45, 0.04);
}

.pagi-btn:hover {
  border-color: var(--maroon-primary);
  background: var(--bg-cream-alt);
  transform: translateY(-2px);
}

.pagi-btn.act {
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border-color: var(--maroon-primary);
  box-shadow: 0 6px 18px rgba(105, 27, 45, 0.25);
}

.pagi-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.pagi-info {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.no-res {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}

.no-res i {
  font-size: 52px;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.no-res h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--maroon-primary);
  margin-bottom: 8px;
}

.no-res p {
  font-size: 0.95rem;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (SHOP PAGE)
   ========================================== */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 16px 50px;
  }
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .shop-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .shop-wrap {
    margin-top: 80px;
  }
  .shop-hero {
    padding: 45px 16px 40px;
  }
  .shop-hero h1 {
    font-size: 2.3rem;
  }
  .shop-hero p {
    font-size: 0.92rem;
  }
  .shop-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
    gap: 16px;
  }
  .shop-sidebar {
    display: none;
    position: static;
    max-height: none;
    overflow: visible;
    border-radius: 18px;
    margin-bottom: 16px;
  }
  .shop-sidebar.mob-open {
    display: block;
  }
  .mob-filter-btn {
    display: flex;
  }
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .pcard .pimg {
    height: 180px;
  }
  .pcard .pbody {
    padding: 14px;
  }
  .pcard .pname {
    font-size: 1rem;
  }
  .pcard .pprice {
    font-size: 1.1rem;
  }
  .btn-cart-txt {
    display: none !important;
  }
  .pcard .btn-add-cart {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    flex: 0 0 36px !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    gap: 0 !important;
  }
  .pcard .pactions-row {
    justify-content: center !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .shop-hero h1 {
    font-size: 1.9rem;
  }
  .pgrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .pcard .pimg {
    height: 155px;
  }
}
