/* PAGE NOTRE BOUTIQUE — LIBRAIRIE RISSALA */

.shop-page {
  max-width: 1440px;
  margin: auto;
  padding: 28px clamp(18px, 4vw, 58px) 70px;
}

.shop-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #7c827d;
  margin: 4px 0 24px;
}

.shop-breadcrumb a {
  color: #52735e;
  text-decoration: none;
}

.shop-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: linear-gradient(110deg, #f4f7f0, #faf7f0);
  border: 1px solid #e7ebdf;
}

.shop-title h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 8px 0;
  color: #183e2b;
  letter-spacing: -1.5px;
}

.shop-title h1 em {
  color: #b84535;
  font-style: normal;
}

.shop-title p {
  margin: 0;
  color: #69736c;
}

.shop-title-mark {
  font-size: 76px;
  font-weight: 800;
  color: #1f5238;
  position: relative;
  padding-right: 18px;
}

.shop-title-mark span {
  font-size: 24px;
  color: #b84535;
  vertical-align: top;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.shop-sidebar {
  border: 1px solid #e4e8e1;
  border-radius: 14px;
  background: white;
  padding: 20px;
  position: sticky;
  top: 16px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8ebe6;
}

.filter-heading h2 {
  font-size: 17px;
  margin: 0;
  color: #183e2b;
}

.filter-heading button {
  border: 0;
  background: none;
  color: #a34335;
  font-size: 12px;
  cursor: pointer;
}

.filter-group {
  padding: 19px 0;
  border-bottom: 1px solid #e8ebe6;
}

.filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.filter-group h3 {
  font-size: 14px;
  margin: 0 0 13px;
  color: #263b2e;
}

.category-option,
.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #5e665f;
  margin: 12px 0;
  cursor: pointer;
}

.category-option input,
.check-option input {
  accent-color: #24563a;
  width: 15px;
  height: 15px;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.price-inputs label span {
  display: block;
  color: #737c75;
  font-size: 11px;
  margin-bottom: 5px;
}

.price-inputs input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #dfe4dd;
  border-radius: 7px;
  padding: 10px 8px;
  font: inherit;
  font-size: 13px;
}

.filter-apply {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #214b34;
  color: white;
  padding: 11px 14px;
  margin-top: 11px;
  font-weight: 650;
  cursor: pointer;
}

.filter-apply:hover {
  background: #173c28;
}

.shop-results {
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 17px;
}

.shop-toolbar h2 {
  margin: 0 0 5px;
  color: #183e2b;
  font-size: 24px;
}

.shop-toolbar p {
  margin: 0;
  color: #788078;
  font-size: 13px;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c756e;
  font-size: 12px;
  white-space: nowrap;
}

.sort-label select {
  border: 1px solid #dfe4dd;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: #293d30;
  font: inherit;
  font-size: 13px;
}

.shop-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.shop-chip {
  border: 1px solid #e1e7df;
  background: #f7f9f5;
  color: #47604e;
  border-radius: 30px;
  padding: 6px 11px;
  font-size: 12px;
  cursor: pointer;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-product-card {
  border: 1px solid #e6e9e4;
  border-radius: 13px;
  overflow: hidden;
  background: white;
  transition: transform 0.18s, box-shadow 0.18s;
  min-width: 0;
}

.shop-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px #193d2912;
}

.shop-product-image {
  height: 205px;
  position: relative;
  background: #f5f6f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  background: #e9f1e7;
  color: #27583b;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.3px;
}

.shop-stock {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  background: #fffffff0;
  border-radius: 20px;
  padding: 5px 8px;
  color: #2c6944;
  font-size: 10px;
}

.shop-stock.out {
  color: #a34436;
}

.shop-product-info {
  padding: 15px;
}

.shop-product-category {
  color: #7c857d;
  font-size: 11px;
}

.shop-product-info h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 7px 0;
  color: #243d2d;
  min-height: 40px;
}

.shop-product-info p {
  font-size: 12px;
  color: #737c75;
  line-height: 1.5;
  margin: 0 0 14px;
  min-height: 36px;
}

.shop-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf0eb;
  padding-top: 12px;
}

.shop-price {
  font-size: 17px;
  font-weight: 800;
  color: #214b34;
}

.shop-add {
  border: 0;
  border-radius: 8px;
  background: #214b34;
  color: white;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.shop-add:hover {
  background: #173c28;
}

.shop-add:disabled {
  background: #aab4ac;
  cursor: not-allowed;
}

.shop-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed #d9e1d7;
  border-radius: 14px;
  color: #6f7b70;
}

.shop-empty[hidden] {
  display: none;
}

.shop-empty > div {
  font-size: 38px;
}

.shop-empty h3 {
  color: #244832;
  margin-bottom: 6px;
}

.shop-empty p {
  font-size: 13px;
}

.shop-demo-note {
  font-size: 11px;
  color: #939a93;
  margin-top: 22px;
}

.shop-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 20;
  background: #183e2b;
  color: white;
  border-radius: 9px;
  padding: 13px 18px;
  box-shadow: 0 8px 28px #0002;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
  font-size: 13px;
  max-width: min(360px, calc(100vw - 44px));
}

.shop-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-product-image {
    height: 190px;
  }
}

@media (max-width: 720px) {
  .shop-page {
    padding: 20px 15px 45px;
  }

  .shop-title {
    padding: 22px 18px;
  }

  .shop-title-mark {
    font-size: 54px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-product-image {
    height: 150px;
  }

  .shop-product-info {
    padding: 11px;
  }

  .shop-product-info h3 {
    font-size: 13px;
  }

  .shop-product-info p {
    font-size: 11px;
  }

  .shop-product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-add {
    width: 100%;
  }

  .sort-label {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-product-image {
    height: 220px;
  }

  .boutique-header {
    flex-wrap: wrap;
  }

  .boutique-header .brand img {
    max-width: 150px;
  }

  .boutique-home {
    display: none;
  }
}