/* ==========================================================================
   ARSIMORA™ — Shop All Products Catalog Page (Strictly Scoped to .ars-shop)
   Explicit px sizing — 100% immune to Shopify Dawn's 62.5% rem base
   ========================================================================== */

.ars-shop,
.ars-shop * {
  box-sizing: border-box;
}

.ars-shop {
  --shop-bg: #FAF7F0;
  --shop-sidebar-bg: #EFE4CE;
  --shop-card-bg: #FFFFFF;
  --shop-forest: #143C28;
  --shop-green-btn: #1B8746;
  --shop-green-btn-hover: #146E38;
  --shop-gold: #D4AF37;
  --shop-ink: #19241D;
  --shop-muted: #5A665E;
  --shop-border: #E8DFCE;
  background-color: var(--shop-bg);
  color: var(--shop-ink);
  font-family: "DM Sans", "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 24px 0 72px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.ars-shop-container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb & Compact Page Header */
.ars-shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--shop-border);
}

.ars-shop-bc {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--shop-muted);
  margin-bottom: 6px;
}

.ars-shop-bc a {
  color: var(--shop-muted);
  text-decoration: none;
}

.ars-shop-bc a:hover {
  color: var(--shop-forest);
  text-decoration: underline;
}

.ars-shop-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--shop-forest);
  margin: 0;
  letter-spacing: -0.3px;
}

.ars-shop-search-wrap {
  position: relative;
  width: 270px;
  max-width: 100%;
}

.ars-shop-search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid #DDD2BE;
  background: #FFFFFF;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--shop-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ars-shop-search-wrap input:focus {
  border-color: var(--shop-forest);
  box-shadow: 0 0 0 3px rgba(20, 60, 40, 0.08);
}

.ars-shop-search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #7D8780;
  pointer-events: none;
}

/* Top Filter & Sort Bar (Matching Reference Top Row) */
.ars-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.ars-toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.ars-filter-label-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--shop-ink);
  background: transparent;
  border: none;
  padding: 6px 2px;
  cursor: pointer;
}

.ars-toolbar-divider {
  width: 1px;
  height: 20px;
  background: #D9CEBA;
}

.ars-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--shop-ink);
}

.ars-sort-group label {
  font-weight: 700;
  color: var(--shop-ink);
}

.ars-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2319241D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 6px center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 26px 6px 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #46534B;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ars-sort-select:hover,
.ars-sort-select:focus {
  border-color: #D7CCB7;
  background-color: #FFFFFF;
}

.ars-toolbar-count {
  font-size: 14px;
  font-weight: 500;
  color: #49564E;
}

/* Main 2-Column Shop Layout (Left Sidebar + Right Product Grid) */
.ars-shop-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Left Sidebar Filter Card (Exact Reference Warm Sand Rounded Panel) */
.ars-sidebar {
  background: var(--shop-sidebar-bg);
  border-radius: 16px;
  padding: 20px 18px;
  position: sticky;
  top: 112px;
}

.ars-sidebar-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(20, 60, 40, 0.14);
}

.ars-sidebar-mobile-head strong {
  font-size: 17px;
  color: var(--shop-forest);
}

.ars-sidebar-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  color: var(--shop-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ars-filter-group {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(25, 36, 29, 0.1);
}

.ars-filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 4px;
  padding-bottom: 4px;
}

.ars-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 2px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--shop-ink);
  cursor: pointer;
  text-align: left;
}

.ars-filter-toggle svg {
  width: 15px;
  height: 15px;
  stroke: var(--shop-ink);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.ars-filter-group.is-collapsed .ars-filter-toggle svg {
  transform: rotate(180deg);
}

.ars-filter-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ars-filter-group.is-collapsed .ars-filter-list {
  display: none;
}

.ars-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #2B362F;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.ars-filter-option:hover {
  color: var(--shop-forest);
}

.ars-filter-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #B8AD99;
  background: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}

.ars-filter-option input[type="checkbox"]:checked {
  background: var(--shop-forest);
  border-color: var(--shop-forest);
}

.ars-filter-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4.5px;
  height: 8.5px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ars-filter-count {
  color: #6B746E;
  font-size: 12.5px;
  margin-left: auto;
}

.ars-clear-sidebar-btn {
  width: 100%;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(20, 60, 40, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--shop-forest);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
}

.ars-clear-sidebar-btn.is-visible {
  display: block;
}

.ars-clear-sidebar-btn:hover {
  background: var(--shop-forest);
  color: #FFFFFF;
}

/* Active Filter Chips Strip above grid */
.ars-active-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.ars-active-chips:empty {
  display: none;
}

.ars-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #E8F3EC;
  border: 1px solid #C6E0CF;
  color: var(--shop-forest);
  font-size: 12.5px;
  font-weight: 600;
}

.ars-active-chip button {
  background: none;
  border: none;
  color: var(--shop-forest);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 1px;
}

.ars-active-clear-all {
  background: none;
  border: none;
  color: #9A3412;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 6px;
}

/* Right Product Grid (3-Column Balanced on Desktop, Matching Original Card Design) */
.ars-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* Card Design — Matches Your Exact Homepage & Reference Card Look */
.ars-shop-card {
  display: flex;
  flex-direction: column;
  background: #FFFDF8;
  border: 1px solid #E9E0CE;
  border-radius: 16px;
  padding: 10px 10px 14px;
  box-shadow: 0 6px 18px rgba(20, 60, 40, 0.045);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
}

.ars-shop-card:hover {
  transform: translateY(-4px);
  border-color: #C9B99B;
  box-shadow: 0 14px 30px rgba(20, 60, 40, 0.11);
}

.ars-shop-card.is-hidden {
  display: none !important;
}

.ars-shop-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #F4EFE4;
  text-decoration: none;
  margin-bottom: 12px;
}

.ars-shop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ars-shop-card:hover .ars-shop-media img {
  transform: scale(1.04);
}

.ars-shop-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.ars-badge-off {
  background: #D8B12E;
  color: #1A1F16;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.ars-badge-tag {
  background: #1B8746;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.ars-shop-rating {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(130, 134, 131, 0.78);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

.ars-shop-rating span.star {
  color: #F6C344;
}

.ars-shop-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 4px;
  text-align: center;
}

.ars-shop-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #19241D;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.ars-shop-card-title a {
  color: inherit;
  text-decoration: none;
}

.ars-shop-card-title a:hover {
  color: var(--shop-forest);
}

.ars-shop-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ars-shop-price {
  font-size: 17.5px;
  font-weight: 800;
  color: #111814;
}

.ars-shop-mrp {
  font-size: 14px;
  color: #7E8782;
  text-decoration: line-through;
  font-weight: 500;
}

.ars-shop-variant {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 14px;
  border-radius: 999px;
  border: 1px solid #4A544E;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='%2319241D'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--shop-ink);
  margin-bottom: 10px;
  cursor: pointer;
  outline: none;
}

.ars-shop-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border-radius: 999px;
  background: var(--shop-green-btn);
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ars-shop-cta:hover {
  background: var(--shop-green-btn-hover);
  transform: translateY(-1px);
}

/* Empty State */
.ars-shop-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: #FFFFFF;
  border: 1px dashed #D7CCB7;
  border-radius: 18px;
}

.ars-shop-empty.is-visible {
  display: block;
}

.ars-shop-empty h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: var(--shop-forest);
  margin: 0 0 8px;
}

.ars-shop-empty p {
  font-size: 14.5px;
  color: var(--shop-muted);
  margin: 0 0 18px;
}

.ars-shop-empty button {
  padding: 11px 24px;
  border-radius: 999px;
  border: none;
  background: var(--shop-forest);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* Mobile Filter Backdrop */
.ars-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 18, 0.55);
  z-index: 9998;
}

.ars-drawer-backdrop.is-open {
  display: block;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .ars-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .ars-shop-layout {
    grid-template-columns: 1fr;
  }
  .ars-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    border-radius: 0 18px 18px 0;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.22);
  }
  .ars-sidebar.is-open {
    transform: translateX(0);
  }
  .ars-sidebar-mobile-head {
    display: flex;
  }
  .ars-filter-label-btn {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--shop-sidebar-bg);
    border: 1px solid #DFD3BC;
  }
}

@media (max-width: 560px) {
  .ars-shop-container {
    padding: 0 14px;
  }
  .ars-shop-title {
    font-size: 25px;
  }
  .ars-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .ars-shop-card {
    padding: 8px 8px 12px;
  }
  .ars-shop-card-title {
    font-size: 13.5px;
    min-height: 36px;
  }
  .ars-shop-price {
    font-size: 15.5px;
  }
  .ars-shop-cta {
    height: 38px;
    font-size: 13px;
  }
}
