/* InnerScript — /shop/ and product category archives.
   is-grid card pattern ported from the homepage Shopify reference
   (unique_live_home.css). Class names kept identical. The same is-grid
   block may also ship in home.css — they load on different pages.
   Loads on is_shop() || is_product_taxonomy(). */

.is-grid { background: #f9f6f1; padding: 96px 24px; font-family: 'Inter', sans-serif; overflow-x: hidden; box-sizing: border-box; width: 100%; }
.is-grid__inner { max-width: 1240px; margin: 0 auto; }

.is-grid__head { text-align: center; margin-bottom: 36px; }
.is-grid__eyebrow { display: block; font-size: 10px; letter-spacing: 0.28em; color: #c9a96e; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.is-grid__h2 { font-size: 38px; color: #1a1513; margin: 0 0 14px; line-height: 1.15; letter-spacing: -0.02em; font-family: 'Cormorant Garamond', serif; font-weight: 500; }
.is-grid__sub { font-size: 15px; color: #6b6058; line-height: 1.75; max-width: 560px; margin: 0 auto; }
.is-grid__sub p { margin: 0; }

.is-grid__filters { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.is-grid__filter { background: #fff; border: 1px solid #e8e1d4; border-radius: 99px; padding: 9px 18px; font-size: 12px; font-weight: 500; color: #6b6058; cursor: pointer; transition: all 0.2s; font-family: inherit; letter-spacing: 0.02em; text-decoration: none; }
.is-grid__filter:hover { border-color: #c9a96e; color: #c9a96e; background: #fffaf0; }
.is-grid__filter--active { background: #1a1513; border-color: #1a1513; color: #fff; }
.is-grid__filter--active:hover { background: #1a1513; border-color: #1a1513; color: #fff; }

.is-grid__products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }

.is-grid__product { background: #fff; border: 1px solid #ece4d3; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s; position: relative; }
.is-grid__product:hover { box-shadow: 0 16px 44px -18px rgba(58,43,24,0.22), 0 4px 12px -4px rgba(58,43,24,0.08); border-color: #d4be90; transform: translateY(-4px); }
.is-grid__product--hidden { display: none !important; }
.is-grid__product--bundle { border-color: rgba(201,169,110,0.35); background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%); }
.is-grid__product--bundle:hover { border-color: #c9a96e; box-shadow: 0 16px 44px -16px rgba(201,169,110,0.22); }

.is-grid__product-link { text-decoration: none; display: flex; flex-direction: column; color: inherit; }

.is-grid__product-img-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f0e8; }
.is-grid__product-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.is-grid__product-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.is-grid__product:hover .is-grid__product-img,
.is-grid__product:hover .is-grid__product-img-wrap img { transform: scale(1.06); }

.is-grid__product-badge { position: absolute; top: 12px; left: 12px; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: #1a1513; background: rgba(255,255,255,0.96); border-radius: 99px; padding: 5px 11px; backdrop-filter: blur(6px); }
.is-grid__product-badge--gold { background: linear-gradient(135deg, #c9a96e, #e8d5a3); color: #1a1513; }
.is-grid__product-badge--bundle { background: #1a1513; color: #c9a96e; }

.is-grid__product-body { padding: 18px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.is-grid__product-cat { font-size: 9px; letter-spacing: 0.2em; color: #c9a96e; text-transform: uppercase; font-weight: 500; }
.is-grid__product-title { font-size: 16px; color: #1a1513; line-height: 1.25; margin: 2px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 600; letter-spacing: -0.01em; }

.is-grid__product-foot { padding: 6px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.is-grid__product-price { display: flex; align-items: baseline; gap: 6px; }
.is-grid__price-sale { font-size: 16px; font-weight: 700; color: #1a1513; letter-spacing: -0.01em; }
.is-grid__price-orig { font-size: 12px; color: #b8ad9a; text-decoration: line-through; }

/* WooCommerce price_html inside the card (del/ins for sale prices) */
.is-grid__price-sale del { font-size: 12px; color: #b8ad9a; text-decoration: line-through; font-weight: 400; }
.is-grid__price-sale ins { text-decoration: none; }
.is-grid__price-sale .subscription-details,
.is-grid__price-sale .woocommerce-price-suffix { font-size: 11px; color: #8a7f6e; font-weight: 400; }

.is-grid__add-btn,
.is-grid__product-foot .button { background: #1a1513; color: #fff; border: none; border-radius: 8px; padding: 10px 16px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, opacity 0.2s; text-decoration: none; display: inline-block; line-height: 1.2; }
.is-grid__add-btn:hover,
.is-grid__product-foot .button:hover { background: #c9a96e; color: #fff; }
.is-grid__add-btn.added,
.is-grid__product-foot .button.added { background: #1a7a4a !important; }
.is-grid__add-btn--gold { background: linear-gradient(135deg, #c9a96e, #e8d5a3); color: #1a1513; }
.is-grid__add-btn--gold:hover { opacity: 0.9; background: linear-gradient(135deg, #c9a96e, #e8d5a3); color: #1a1513; }
.is-grid__product-foot .button.loading { opacity: 0.6; }
.is-grid__product-foot .added_to_cart { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6d3b; text-decoration: none; }
.is-grid__product-foot .added_to_cart:hover { color: #c9a96e; }

.is-grid__footer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.is-grid__view-all { display: inline-block; background: #1a1513; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 16px 36px; border-radius: 8px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.is-grid__view-all:hover { background: #c9a96e; color: #1a1513; }
.is-grid__footer-note { font-size: 12px; color: #8a7f6e; letter-spacing: 0.04em; margin: 0; }

/* Pagination (woocommerce_pagination) */
.is-grid__pager { margin-bottom: 44px; }
.is-grid__pager .woocommerce-pagination { text-align: center; }
.is-grid__pager .page-numbers { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.is-grid__pager .page-numbers li { margin: 0; }
.is-grid__pager a.page-numbers,
.is-grid__pager span.page-numbers { display: inline-block; background: #fff; border: 1px solid #e8e1d4; border-radius: 99px; padding: 9px 16px; font-size: 12px; font-weight: 500; color: #6b6058; text-decoration: none; transition: all 0.2s; }
.is-grid__pager a.page-numbers:hover { border-color: #c9a96e; color: #c9a96e; background: #fffaf0; }
.is-grid__pager span.page-numbers.current { background: #1a1513; border-color: #1a1513; color: #fff; }

/* Notices + no-products message inside the grid section */
.is-grid .woocommerce-notices-wrapper .woocommerce-message,
.is-grid .woocommerce-notices-wrapper .woocommerce-info,
.is-grid .woocommerce-notices-wrapper .woocommerce-error li { background: #fff; border: 1px solid rgba(201,169,110,0.35); border-left: 3px solid #c9a96e; border-radius: 8px; color: #1a1513; padding: 14px 18px; margin: 0 0 20px; list-style: none; font-size: 13px; line-height: 1.6; }
.is-grid .woocommerce-notices-wrapper .woocommerce-error { padding: 0; margin: 0; border: 0; list-style: none; }
.is-grid .woocommerce-notices-wrapper .woocommerce-error li { border-left-color: #8a2a2a; }
.is-grid .woocommerce-notices-wrapper a { color: #8a6d3b; }
.is-grid .woocommerce-info,
.is-grid .woocommerce-no-products-found .woocommerce-info { background: #fff; border: 1px solid rgba(201,169,110,0.35); border-left: 3px solid #c9a96e; border-radius: 8px; color: #1a1513; padding: 14px 18px; margin: 0 0 32px; font-size: 13px; line-height: 1.6; }

/* RESPONSIVE (desktop-first breakpoints from the reference) */
@media screen and (max-width: 1100px) {
  .is-grid__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 860px) {
  .is-grid { padding: 72px 20px; }
  .is-grid__h2 { font-size: 30px; }
  .is-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media screen and (max-width: 480px) {
  .is-grid { padding: 56px 16px; }
  .is-grid__h2 { font-size: 26px; }
  .is-grid__sub { font-size: 14px; }
  .is-grid__filters { gap: 6px; margin-bottom: 24px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding: 4px 4px 10px; scrollbar-width: none; }
  .is-grid__filters::-webkit-scrollbar { display: none; }
  .is-grid__filter { flex: 0 0 auto; font-size: 11px; padding: 8px 14px; white-space: nowrap; }
  .is-grid__products { gap: 12px; }
  .is-grid__product-body { padding: 14px 12px 10px; }
  .is-grid__product-title { font-size: 15px; }
  .is-grid__product-foot { padding: 4px 12px 12px; flex-direction: column; align-items: stretch; gap: 8px; }
  .is-grid__add-btn,
  .is-grid__product-foot .button { padding: 10px 8px; font-size: 10px; letter-spacing: 0.12em; text-align: center; }
  .is-grid__price-sale { font-size: 15px; }
}

/* Clean mobile fit (ported safety block) */
.is-grid, .is-grid *, .is-grid *::before, .is-grid *::after { box-sizing: border-box; }
.is-grid { overflow-x: hidden; }
.is-grid__inner { width: 100%; max-width: 1240px; }
.is-grid__products { display: grid; width: 100%; }
.is-grid__product { min-width: 0; overflow: hidden; }
.is-grid__product-img { max-width: 100%; }

/* Product grid card polish on mobile (ported from the homepage reference) */
@media screen and (max-width: 720px) {
  .is-grid { padding: 48px 0 64px; }
  .is-grid__inner { padding: 0; }
  .is-grid__head { padding: 0 20px 20px; text-align: center; }
  .is-grid__h2 { font-size: 28px; line-height: 1.15; }
  .is-grid__filters { overflow-x: auto; flex-wrap: nowrap; padding: 6px 20px 18px; gap: 8px; scrollbar-width: none; }
  .is-grid__filters::-webkit-scrollbar { display: none; }
  .is-grid__filter { flex: 0 0 auto; white-space: nowrap; font-size: 13px; padding: 9px 16px; }
  .is-grid__products { grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; }
  .is-grid__product { border-radius: 16px; box-shadow: 0 8px 24px -14px rgba(58,43,24,0.2); overflow: hidden; background: #fffdf7; }
  .is-grid__product-img-wrap { aspect-ratio: 1/1; }
  .is-grid__product-body { padding: 14px 14px 16px; }
  .is-grid__product-title { font-size: 15px; line-height: 1.2; margin: 4px 0 6px; }
  .is-grid__price-sale { font-size: 16px; }
  .is-grid__pager, .is-grid__footer { padding: 0 16px; }
}

@media screen and (max-width: 375px) {
  .is-grid__h2 { font-size: 24px; }
}
