/* Samino — shop / product-archive overrides */

/* The shop page lives on the cream brand bg, same as the homepage. */
body.samino-shop { background-color: #FFF7E8; }

/* ====== Mobile filter drawer ======
   Below lg (1024px), the sidebar becomes a slide-in drawer triggered by
   the "Filter" CTA in the toolbar. Static column layout returns at lg+. */
.samino-filter__drawer-head { display: none; }
.samino-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #1C1C1C;
  border-radius: 999px;
  background: transparent;
  color: #1C1C1C;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.samino-filter-trigger:hover {
  background: #1C1C1C;
  color: #fff;
}
.samino-filter__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.55);
  z-index: 80;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.samino-filter__backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1023px) {
  .samino-filter {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 86%;
    max-width: 360px;
    background: #FFF7E8;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
    overflow-y: auto;
    padding: 0 24px 24px;
    grid-row: auto;
    grid-column: auto;
  }
  .samino-filter.is-open { transform: translateX(0); }
  .samino-filter__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 16px;
    margin: 0 0 12px;
    border-bottom: 1px solid #E8E8E8;
    position: sticky;
    top: 0;
    background: #FFF7E8;
    z-index: 1;
  }
  .samino-filter__drawer-title {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    color: #1C1C1C;
    margin: 0;
  }
  .samino-filter__drawer-close {
    background: transparent;
    border: 0;
    padding: 4px;
    color: #1C1C1C;
    cursor: pointer;
    line-height: 0;
  }
  /* Lock body scroll when drawer is open. */
  body.samino-filter-open { overflow: hidden; }
}

/* Filter sidebar styling */
.samino-filter h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1C1C1C;
  margin-bottom: 12px;
}

.samino-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: #1C1C1C;
  cursor: pointer;
  transition: color .15s;
}

.samino-filter label:hover { color: #FF8A5B; }

.samino-filter input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #FF8A5B;
  cursor: pointer;
}

.samino-filter .samino-filter__count {
  margin-left: auto;
  color: #7A7A7A;
  font-size: 11px;
}

/* Sub-categories indent */
.samino-filter ul.is-children { padding-left: 18px; }

/* Apply / Clear buttons */
.samino-filter__actions { display: flex; gap: 8px; margin-top: 18px; }
.samino-filter__actions button,
.samino-filter__actions a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.samino-filter__actions .samino-filter__apply {
  background: transparent;
  color: #1C1C1C;
  border: 1px solid #1C1C1C;
}
.samino-filter__actions .samino-filter__apply:hover {
  background: #1C1C1C;
  color: #fff;
}
.samino-filter__actions .samino-filter__clear {
  background: transparent;
  color: #1C1C1C;
  border: 1px solid #DFE7E8;
}
.samino-filter__actions .samino-filter__clear:hover { border-color: #1C1C1C; }

/* Sort dropdown */
.samino-sort {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1C1C' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 14px center / 14px;
  border: 1px solid #E8E8E8;
  border-radius: 6px;
  padding: 10px 38px 10px 14px;
  font-size: 13px;
  color: #1C1C1C;
  cursor: pointer;
  min-width: 200px;
}

/* Pagination */
.samino-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.samino-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #E8E8E8;
  background: #fff;
  color: #1C1C1C;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
}
.samino-pagination .page-numbers:hover { border-color: #FF8A5B; color: #FF8A5B; }
.samino-pagination .page-numbers.current {
  background: #1C1C1C;
  color: #fff;
  border-color: #1C1C1C;
}
.samino-pagination .page-numbers.dots { border: 0; background: transparent; }

/* Add-to-cart button on shop / category cards. Transparent base + black
   border + black text (icon inherits via stroke="currentColor"); inverts
   to dark on hover for clear feedback. */
.samino-cart-btn {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: #1C1C1C;
  border: 1px solid #1C1C1C;
}
.samino-cart-btn:hover {
  background: #1C1C1C;
  color: #fff;
}
.samino-cart-btn.loading {
  opacity: 0.9;
  cursor: wait;
  pointer-events: none;
}
.samino-cart-btn.loading > * { visibility: hidden; }
.samino-cart-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(28, 28, 28, 0.20);
  border-top-color: #1C1C1C;
  border-radius: 50%;
  animation: samino-spin .7s linear infinite;
}
/* Once the product's been added, the button transforms into a "View cart"
   CTA (handled in shop.js). Orange to flag it as the next step. */
.samino-cart-btn.samino-cart-btn--in-cart {
  background: #FF8A5B !important;
  color: #fff !important;
  border-color: #FF8A5B !important;
}
.samino-cart-btn.samino-cart-btn--in-cart:hover {
  background: #1C1C1C !important;
  border-color: #1C1C1C !important;
}
@keyframes samino-spin { to { transform: rotate(360deg); } }

/* Hide the WC-injected "View cart →" link that gets appended after our
   add-to-cart button. We morph the button itself into a "View cart" CTA
   in shop.js — the WC link would just duplicate it. Targeting via sibling
   selector since `body.samino-shop` isn't reliably set on archive pages. */
.samino-cart-btn ~ a.added_to_cart,
.woocommerce a.added_to_cart.wc-forward {
  display: none !important;
}

/* Sidebar product-name search ("q" param). Sits above the Category list,
   composes with category + price filters via pre_get_posts in functions.php. */
.samino-filter__search-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1C1C1C;
  margin-bottom: 8px;
}
.samino-filter__search-row {
  position: relative;
  display: flex;
  align-items: center;
}
.samino-filter__search-icon {
  position: absolute;
  left: 12px;
  color: #7A7A7A;
  pointer-events: none;
}
.samino-filter__search input[type="search"] {
  width: 100%;
  padding: 10px 34px 10px 36px;
  background: #FFF7E8;
  border: 1.5px solid #ECE6D7;
  border-radius: 10px;
  font-size: 13px;
  color: #1C1C1C;
  outline: none;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.samino-filter__search input[type="search"]:focus {
  border-color: #FF8A5B;
  background: #fff;
}
.samino-filter__search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}
.samino-filter__search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1C1C1C;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  transition: background .2s;
}
.samino-filter__search-clear:hover { background: #FF8A5B; }

/* (Wishlist heart button styles moved to home.css — shared by every card
   surface including the homepage carousel where shop.css isn't loaded.) */

/* No-products message */
.samino-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: #7A7A7A;
  font-size: 14px;
}
