/* ===============================
   SHOP CATALOG LAYOUT
================================ */

body {
  background: #fffdfa;
}

/* ===============================
   LAYOUT WRAPPER
================================ */

.shop-layout {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

/* ===============================
   SIDEBAR
================================ */

.shop-sidebar {
  padding-right: 20px;
  border-right: 1px solid #e6e6e6;
}

.sidebar-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* ===============================
   CATEGORY LIST (FINAL)
================================ */

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list .category-card {
  /* HARD RESET of old card styles */
  position: static;
  height: auto;
  min-height: unset;
  opacity: 1;
  transform: none;
  animation: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;

  /* Catalog list styling */
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 14px;
  margin: 0;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #2b2b2b;

  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #ededed;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* subtle divider rhythm */
.category-list .category-card:last-child {
  border-bottom: none;
}

.category-list .category-card:hover {
  background: #f7f7f7;
}

.category-list .category-card.active {
  background: #eef6f2;
  border-left-color: #326a53;
  font-weight: 600;
}

/* counts */
.category-list .category-card .count {
  font-size: 0.82rem;
  color: #777;
  font-weight: 500;
}

/* ===============================
   SUBFILTERS
================================ */

.subfilter-bar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6e6e6;

  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subfilter {
  padding: 5px 10px;
  border-radius: 999px;
  border: none;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;

  cursor: pointer;
  background: #e6ede3;
  color: #2f3a32;
}

.subfilter.active {
  background: #326a53;
  color: #fff;
}

/* ===============================
   MAIN CONTENT
================================ */

.shop-main {
  min-width: 0;
}

/* ===============================
   CONTROLS (SEARCH + SORT)
================================ */

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e6e6; /* subtle divider like reference */
}

/* Sort dropdown (left, smaller) */
#sort-select {
  width: 170px;
  padding: 7px 10px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;

  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

/* Search input (right, larger) */
#search-input {
  margin-left: auto;
  width: min(520px, 100%);
  padding: 10px 12px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;

  border: 1px solid #ddd;
  border-radius: 6px;
}

/* focus states */
#search-input:focus,
#sort-select:focus {
  border-color: #326a53;
  outline: none;
}

/* ===============================
   CATEGORY HEADING
================================ */

.category-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin: 18px 0 20px;
}

/* ===============================
   PRODUCT GRID
================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    border-right: none;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}
.category-card .count {
  display: none;
}
/* =====================================================
   MOVE SEASONAL FILTERS UNDER TITLE
===================================================== */

/* visually relocate subfilters */
.shop-main #seasonal-subfilters {
  margin: 10px 0 18px;
  padding-top: 0;
  border-top: none;
}

/* tighten spacing so it feels attached to title */
.category-heading + #seasonal-subfilters {
  margin-top: 6px;
}
/* =====================================================
   PRODUCT CARDS — EDITORIAL / CATALOG STYLE
===================================================== */

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: 
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* Image */
.product-card-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f4f4f4;
}

/* Body */
.product-card-body {
  padding: 16px 16px 18px;
}

/* Title */
.product-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #1f1f1f;
}

/* Price + Action */
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 10px;
  padding-top: 6px;
}


.product-meta .price {
  letter-spacing: 0.01em;
  font-size: 1.05rem;        /* slightly larger */
  font-weight: 600;
  color: #1a1a1a;
}


/* ===============================
   PRIMARY ADD TO CART BUTTON
================================ */

.quick-add {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 999px;

  border: 1px solid #326a53;
  background: #326a53;
  color: #fff;

  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.quick-add:hover:not(:disabled) {
  background: #2b5e4a;
  box-shadow: 0 6px 14px rgba(50,106,83,0.35);
  transform: translateY(-1px);
}

.quick-add:disabled {
  background: #ccc;
  border-color: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}


/* ===============================
   AVAILABILITY PLACEMENT
================================ */

.availability {
  position: relative;
  top: 10px;              /* visual drop without spacing */
  font-size: 0.7rem;
  color: #8a8a8a;
  text-align: center;
}

.availability.in {
  color: #6f8f7f;         /* muted green */
}



/* ===============================
   PRODUCT TITLE REFINEMENT
================================ */

.product-title {
  margin-top: 6px;          /* anchors to image */
  margin-bottom: 6px;
  padding-bottom: 8px;

  font-size: 0.95rem;
  font-weight: 500;
  color: #1f1f1f;

  text-align: center;
  position: relative;
  letter-spacing: 0.01em;
}


/* subtle divider line under title */
.product-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;               /* thinner */
  background: #e6e6e6;       /* softer */
  margin: 8px auto 0;
}


/* ===============================
   CARD CONTENT DEPTH
================================ */

.product-card-body {
   border-top: 1px solid #f0f0f0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 60%,
    #fafafa 100%
  );
}
#product-section {
  margin-bottom: 72px;
}
main {
  min-height: auto !important;
}
.products-grid {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.shop-content {
  padding-bottom: 64px;
}
/* ===============================
   SHOP GRID — FINAL OVERRIDE
================================ */

.shop-main .product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 32px !important;
}
/* ===============================
   SHOP PAGINATION (PRO)
================================ */

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  background: #eef6f2;
  box-shadow: 0 6px 14px rgba(50,106,83,0.25);
  transform: translateY(-1px);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.page-info {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #2b2b2b;
  min-width: 110px;
  text-align: center;
}

