@charset "utf-8";

/* =========================================================
   Whisker Witch — Shop (mobile-first)
   Only shop-page components: Products
   ========================================================= */

  /* tiny glue styles so it feels like your home theme but stays Bootstrap */
  .shop-hero {
    text-align: center;
    margin-bottom: 1.25rem;
  }
  .shop-hero .chapter-label{
    font-family: 'Cinzel', serif;
    letter-spacing: .28em;
    text-transform: uppercase;
    font-size: .85rem;
    color: #7b5532;
  }
  .shop-hero .chapter-title{
    font-family: 'Cinzel', serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #4b2c16;
    text-shadow: 0 0 6px rgba(255,248,205,0.9), 0 0 18px rgba(223,188,115,0.85);
    margin: .35rem 0 .25rem;
  }
  .shop-hero .chapter-subtitle{
    color: #5c3921;
    font-style: italic;
    margin: 0 auto;
    max-width: 65ch;
  }
  .shop-hero .chapter-divider{
    margin: 1rem auto 0;
    width: min(60%, 520px);
    height: 1px;
    background: linear-gradient(to right, rgba(73,47,20,0), rgba(214,171,89,0.9), rgba(73,47,20,0));
  }

  .category-pills{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    margin: .75rem 0 1rem;
  }
  .category-pills a{
    text-decoration:none;
  }

  /* Make long content not blow out mobile */
  .minw-0 { min-width: 0; }
  /* =========================================================
   Shop sidebar (desktop)
   ========================================================= */

@media (min-width: 992px) {
  /* make the whole filters column behave like a sidebar */
  .shop-filters {
    position: sticky;
    top: 1.25rem;           /* adjust if you want more/less gap */
    align-self: flex-start; /* keeps sticky behaving inside Bootstrap row */
  }

  /* keep the filters usable if they get tall */
  .shop-filters .card {
    max-height: calc(100vh - 2.5rem);
    overflow: hidden;
  }

  .shop-filters .card-body {
    overflow: auto;
  }
}
/* =========================
   FILTER: Category pills/grid
   ========================= */

/* Make each Bootstrap "form-check" look like a pill */
.filter-category-grid .form-check{
  margin: 0;               /* kill bootstrap spacing */
  padding: 0;              /* we’ll pad the label instead */
  min-height: 0;
}

.filter-category-grid .form-check-input{
  /* keep accessible but visually hidden */
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-category-grid .form-check-label{
  display: block;
  cursor: pointer;
  user-select: none;

  padding: .45rem .65rem;
  border-radius: 999px;

  font-family: 'Crimson Pro', serif;
  font-size: .95rem;
  line-height: 1.1;

  border: 1px solid rgba(120, 80, 35, 0.35);
  background: rgba(255,255,255,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);

  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.filter-category-grid .form-check-label:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
}

/* Selected state (radio/checkbox) */
.filter-category-grid .form-check-input:checked + .form-check-label{
  border-color: rgba(90, 45, 140, 0.55);
  background: rgba(140, 90, 200, 0.18);
  box-shadow: 0 0 0 2px rgba(170, 120, 255, 0.22), 0 10px 18px rgba(0,0,0,0.18);
}
/* =========================================================
   Bootstrap-like button styling (shop page only)
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: 'Crimson Pro', serif;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover{ transform: translateY(-1px); }

.btn-sm{ padding: .35rem .65rem; font-size: .95rem; }

.btn-primary{
  color: #2b1633;
  background: rgba(170, 120, 255, 0.22);
  border-color: rgba(90, 45, 140, 0.55);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

.btn-outline-primary{
  color: #3a1d4a;
  background: rgba(255,255,255,0.20);
  border-color: rgba(90, 45, 140, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.btn-outline-secondary{
  color: #4b2c16;
  background: rgba(255,255,255,0.18);
  border-color: rgba(120, 80, 35, 0.35);
}

/* Make category links stop looking like links */
.category-pills a{ text-decoration:none; }
.category-pills .btn{ white-space: nowrap; }
/* =========================================================
   Shop layout: left filters / right results (no Bootstrap)
   ========================================================= */

.shop-layout{
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

/* LEFT sidebar */
.shop-filters{
  width: 300px;           /* adjust sidebar width here */
  flex: 0 0 300px;
}

/* RIGHT results */
.shop-layout > .col-12.col-lg-9,
.shop-layout > .col-12.col-lg-9,
.shop-layout > div:not(.shop-filters){
  flex: 1 1 auto;
  min-width: 0;           /* prevents overflow issues */
}

/* Make the sidebar feel like a menu */
@media (min-width: 992px){
  .shop-filters{
    position: sticky;
    top: 1.25rem;         /* adjust if you have a header */
    max-height: calc(100vh - 2.5rem);
  }

  .shop-filters .card{
    max-height: inherit;
    overflow: hidden;
  }

  .shop-filters .card-body{
    overflow: auto;
  }
}

/* Mobile: stack and use your existing Toggle collapse */
@media (max-width: 991px){
  .shop-layout{
    display: block;
  }
  .shop-filters{
    width: 100%;
    flex: none;
    position: static;
    max-height: none;
  }
}
/* =========================================================
   TRUE LEFT MENU STYLING (Filters sidebar)
   ========================================================= */

/* Sidebar frame */
.shop-filters .filter-menu{
  border-radius: 18px;
  border: 1px solid rgba(120,80,35,0.30);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}

/* Header = menu title bar */
.shop-filters .filter-menu .card-header{
  background: rgba(55, 20, 85, 0.22);
  border-bottom: 1px solid rgba(120,80,35,0.22);
  padding: .85rem .9rem;
}

/* Menu body */
.shop-filters .filter-menu .card-body{
  padding: .9rem;
}

/* Section blocks */
.filter-section{
  padding: .75rem .65rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(120,80,35,0.18);
}

/* Section titles */
.filter-section-title{
  font-family: 'Cinzel', serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .8rem;
  color: rgba(75,44,22,0.95);
  margin: 0 0 .55rem 0;
}

/* Divider between sections */
.filter-divider{
  height: 1px;
  background: rgba(120,80,35,0.18);
  margin: .75rem 0;
}

/* Inputs look more “menu-like” */
.shop-filters .form-control{
  border-radius: 12px;
  border: 1px solid rgba(120,80,35,0.28);
  background: rgba(255,255,255,0.20);
}
.shop-filters .form-control:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(170,120,255,0.22);
  border-color: rgba(90,45,140,0.55);
}

/* Buttons in sidebar */
.shop-filters .btn{
  border-radius: 12px;
}

/* Sticky “left menu” behavior */
@media (min-width: 992px){
  .shop-filters{
    position: sticky;
    top: 1.25rem;
    align-self: flex-start;
    max-height: calc(100vh - 2.5rem);
  }

  .shop-filters .filter-menu{
    max-height: inherit;
  }

  .shop-filters .filter-menu .card-body{
    max-height: calc(100vh - 2.5rem - 60px); /* 60px ~ header */
    overflow: auto;
  }
}

/* =========================================================
   CATEGORY + TYPE as “menu pills”
   ========================================================= */

.filter-category-grid{
  display: grid;
  grid-template-columns: 1fr;  /* menu feel: single column */
  gap: .45rem;
}

/* visually hide the radio/checkbox but keep accessible */
.filter-category-grid .form-check-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* pill row */
.filter-category-grid .form-check{
  margin: 0;
  padding: 0;
  min-height: 0;
  position: relative;
}

.filter-category-grid .form-check-label{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;

  padding: .55rem .7rem;
  border-radius: 14px;

  border: 1px solid rgba(120,80,35,0.22);
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);

  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.filter-category-grid .form-check-label:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.14);
}

/* selected state */
.filter-category-grid .form-check-input:checked + .form-check-label{
  border-color: rgba(90,45,140,0.55);
  background: rgba(170,120,255,0.22);
  box-shadow: 0 0 0 2px rgba(170,120,255,0.18), 0 14px 24px rgba(0,0,0,0.16);
}

/* little “active dot” on the right */
.filter-category-grid .form-check-label::after{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(90,45,140,0.25);
  flex: 0 0 auto;
}
.filter-category-grid .form-check-input:checked + .form-check-label::after{
  background: rgba(90,45,140,0.9);
}

/* =========================================================
   Optional: make Type list match category styling
   - Add class "filter-category-grid" to the Type container too
   ========================================================= */
/* =========================================================
   TOP CATEGORY PILLS – Enchanted Collection Tabs
   ========================================================= */

.category-pills{
  justify-content: center;
  margin: 1rem auto 1.25rem;
}

/* Base pill */
.category-pills .btn{
  position: relative;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .9rem;
  letter-spacing: .03em;

  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(120,80,35,0.35);
  color: #4b2c16;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 8px 16px rgba(0,0,0,0.18);

  transition:
    transform 140ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

/* Hover magic */
.category-pills .btn:hover{
  transform: translateY(-2px);
  background: rgba(170,120,255,0.22);
  border-color: rgba(90,45,140,0.55);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.22),
    0 0 0 2px rgba(170,120,255,0.25);
}

/* ACTIVE / CURRENT COLLECTION */
.category-pills .btn-primary{
  color: #2b1633;
  font-weight: 600;

  background: linear-gradient(
    135deg,
    rgba(210,170,255,0.55),
    rgba(160,110,220,0.45)
  );

  border-color: rgba(110,60,170,0.85);

  box-shadow:
    0 18px 36px rgba(0,0,0,0.28),
    0 0 0 3px rgba(190,140,255,0.45),
    inset 0 0 18px rgba(255,255,255,0.35);
}

/* Subtle glow halo for active */
.category-pills .btn-primary::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  background: radial-gradient(
    circle,
    rgba(200,160,255,0.45),
    transparent 65%
  );
  opacity:.75;
  z-index:-1;
}

/* Non-active outline buttons */
.category-pills .btn-outline-primary{
  background: rgba(255,255,255,0.18);
  color:#4b2c16;
}

/* Emoji spacing polish */
.category-pills .btn span,
.category-pills .btn{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}
/* Prevent layout jump when category pills wrap differently */
.category-pills{
  min-height: 88px;          /* adjust if needed (try 80–110px) */
  align-content: flex-start; /* keeps rows starting at top */
}
/* =========================================================
   Prevent sidebar jump: lock hero height (subtitle clamps)
   ========================================================= */

/* Give the hero a consistent bottom space */
.shop-hero{
  margin-bottom: 1.25rem;
}

/* Clamp subtitle so it doesn't change page height between categories */
.shop-hero .chapter-subtitle{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* keep it to 2 lines */
  overflow: hidden;

  /* reserve space for those 2 lines so height stays consistent */
  min-height: 3.1em;       /* tweak if your font size differs */
}
.shop-hero .chapter-title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em;
}
/* =========================================================
   HARD LOCK hero height (eliminates all layout shift)
   ========================================================= */

@media (min-width: 992px){
  .shop-hero{
    min-height: 220px;   /* adjust 200–260px to taste */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.shop-hero{
  padding-top: 0;
  padding-bottom: 0;
}
/* =========================================================
   Pagination — Minimal / Clean
   ========================================================= */

nav[aria-label="Shop pagination"] .pagination{
  gap: .4rem;
  padding: .25rem 0;
}

.pagination .page-item{ margin: 0; }

.pagination .page-link{
  border-radius: 10px;
  padding: .38rem .65rem;

  font-family: 'Crimson Pro', serif;
  font-size: .95rem;
  letter-spacing: .02em;

  color: #4b2c16;
  text-decoration: none;

  background: transparent;
  border: 1px solid rgba(120,80,35,0.28);

  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.pagination .page-link:hover{
  background: rgba(255,255,255,0.16);
  border-color: rgba(120,80,35,0.42);
  transform: translateY(-1px);
}

/* Active page */
.pagination .page-item.active .page-link{
  background: rgba(170,120,255,0.18);
  border-color: rgba(90,45,140,0.55);
  color: #2b1633;
  font-weight: 600;
}

/* Disabled */
.pagination .page-item.disabled .page-link{
  opacity: .45;
  cursor: not-allowed;
  background: transparent;
  transform: none;
}
/* =========================================================
   Pagination — Minimal (FIX bullets + stacking)
   ========================================================= */

nav[aria-label="Shop pagination"]{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HARD RESET the UL so it doesn't behave like a normal list */
nav[aria-label="Shop pagination"] .pagination{
  list-style: none !important;
  padding-left: 0 !important;
  margin: .5rem 0 0 !important;

  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}

/* ensure list items don't bring their own spacing */
nav[aria-label="Shop pagination"] .page-item{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* links/spans look like minimal buttons */
nav[aria-label="Shop pagination"] .page-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  padding: .38rem .65rem;

  font-family: 'Crimson Pro', serif;
  font-size: .95rem;
  letter-spacing: .02em;

  color: #4b2c16;
  text-decoration: none;

  background: transparent;
  border: 1px solid rgba(120,80,35,0.28);

  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

nav[aria-label="Shop pagination"] .page-link:hover{
  background: rgba(255,255,255,0.16);
  border-color: rgba(120,80,35,0.42);
  transform: translateY(-1px);
}

/* Active */
nav[aria-label="Shop pagination"] .page-item.active .page-link{
  background: rgba(170,120,255,0.18);
  border-color: rgba(90,45,140,0.55);
  color: #2b1633;
  font-weight: 600;
}

/* Disabled */
nav[aria-label="Shop pagination"] .page-item.disabled .page-link{
  opacity: .45;
  cursor: not-allowed;
  background: transparent;
  transform: none;
}
/* =========================================================
   Product Cards — Stylish parchment cards
   ========================================================= */

.product-card{
  border-radius: 22px;
  border: 1px solid rgba(120,80,35,0.22);
  background: rgba(255,255,255,0.18);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.18);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

/* subtle “glow” on hover */
.product-card:hover{
  transform: translateY(-3px);
  border-color: rgba(90,45,140,0.38);
  background: rgba(255,255,255,0.22);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.22),
    0 0 0 2px rgba(170,120,255,0.16),
    inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* inner layout spacing */
.product-card .card-body{
  padding: 1.05rem 1.1rem;
}

/* product title link */
.product-card h3 a{
  color: #3a1d4a;
  text-decoration: none;
}
.product-card h3 a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* image frame */
.product-card img{
  border-radius: 16px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(120,80,35,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
  padding: .25rem;
}

/* metadata line */
.product-card .text-muted{
  color: rgba(75,44,22,0.78) !important;
}

/* price area feels “stamped” */
.product-card .fw-bold{
  letter-spacing: .02em;
}

/* stock badges a little softer */
.product-card .badge{
  border-radius: 999px;
  padding: .35rem .6rem;
}

/* Make Add to Cart full width feel nicer */
.product-card .btn{
  border-radius: 14px;
}

/* =========================================================
   Product grid — 2-up layout
   ========================================================= */

.product-grid{
  display: grid;
  grid-template-columns: 1fr;   /* mobile default */
  gap: 1.25rem;
}

/* Desktop: 2 products per row */
@media (min-width: 992px){
  .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.6rem;
  }
}
/* keep cards same height visually */
.product-card{
  height: 100%;
}

/* ensure card contents stretch nicely */
.product-card .card-body{
  display: flex;
  flex-direction: column;
}

/* push Add to Cart to bottom */
.product-card form{
  margin-top: auto;
}
/* =========================================================
   Product card image alignment fix
   ========================================================= */

/* Force a consistent image frame */
.product-card .product-image-wrap{
  height: 180px;                /* adjust to taste: 160–220px */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}

/* Ensure images scale nicely inside the frame */
.product-card .product-image-wrap img{
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
/* =========================================================
   Product image alignment — consistent frame
   ========================================================= */

/* Keep the image in a fixed-height frame inside the card */
.product-card .img-fluid{
  width: 100%;
  height: 190px;            /* pick a frame height you like */
  object-fit: contain;      /* never crop */
  display: block;
  margin: 0 auto;
}

/* Ensure the left image column centers its contents */
.product-card .col-12.col-sm-4.col-md-3{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove any lingering max-height inline effects visually */
.product-card .col-12.col-sm-4.col-md-3 img{
  max-height: none !important;
}
.product-grid .product-card{
  height: 100%;
}