/* ================================================================ */
/* SHOP PAGE - Manish Jewellers                                    */
/* Premium Shopping Experience                                     */
/* ================================================================ */

/* ===== SHOP PAGE CONTAINER ===== */
.shop-page {
  width: 100%;
  padding: 40px 0 60px;
  background: #ffffff;
  overflow: hidden;
}

.shop-page__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== PAGE HEADER ===== */
.shop-page__header {
  text-align: center;
  margin-bottom: 40px;
}

.shop-page__title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: #082A66;
  margin: 0 0 8px 0;
}

.shop-page__subtitle {
  font-size: 16px;
  color: #667c95;
  margin: 0;
}

/* ===== SHOP LAYOUT ===== */
.shop-page__layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

/* ================================================================ */
/* FILTERS SIDEBAR                                                  */
/* ================================================================ */

.shop-filters {
  flex: 0 0 280px;
  max-width: 280px;
  background: #f8f9fc;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid #e8ecf1;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.shop-filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8ecf1;
}

.shop-filters__title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #082A66;
  margin: 0;
}

.shop-filters__close {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e8ecf1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.shop-filters__close:hover {
  background: #d0d7e3;
}

.shop-filters__close svg {
  width: 18px;
  height: 18px;
  stroke: #082A66;
}

/* ===== FILTER GROUP ===== */
.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-of-type {
  margin-bottom: 0;
}

.filter-group__title {
  font-size: 14px;
  font-weight: 600;
  color: #082A66;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FILTER CHECKBOX ===== */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: #4a5a7a;
  transition: color 0.3s ease;
}

.filter-checkbox:hover {
  color: #082A66;
}

.filter-checkbox input {
  display: none;
}

.filter-checkbox__custom {
  width: 18px;
  height: 18px;
  border: 2px solid #d0d7e3;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

.filter-checkbox input:checked + .filter-checkbox__custom {
  background: #082A66;
  border-color: #082A66;
}

.filter-checkbox input:checked + .filter-checkbox__custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
}

.filter-checkbox input:checked ~ span:last-child {
  color: #082A66;
  font-weight: 500;
}

/* ===== PRICE RANGE ===== */
.price-range {
  padding: 8px 0;
}

.price-range input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: #d0d7e3;
  border-radius: 2px;
  outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #082A66;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(8, 42, 102, 0.2);
}

.price-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #082A66;
  cursor: pointer;
  border: 2px solid #ffffff;
}

.price-range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: #667c95;
}

/* ===== FILTERS BUTTONS ===== */
.shop-filters__apply,
.shop-filters__reset {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.shop-filters__apply {
  background: #082A66;
  color: #ffffff;
}

.shop-filters__apply:hover {
  background: #064789;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(8, 42, 102, 0.2);
}

.shop-filters__reset {
  background: #f5f7fa;
  color: #667c95;
}

.shop-filters__reset:hover {
  background: #e8ecf1;
  color: #082A66;
}

/* ===== FILTERS TOGGLE (Mobile) ===== */
.shop-filters__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #082A66;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
}

.shop-filters__toggle:hover {
  background: #064789;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(8, 42, 102, 0.2);
}

.shop-filters__toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.shop-filters__count {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0 10px;
  font-size: 12px;
  margin-left: 4px;
}

/* ================================================================ */
/* PRODUCTS GRID                                                    */
/* ================================================================ */

.shop-products {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.shop-products__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-products__count {
  font-size: 14px;
  color: #667c95;
}

.shop-products__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #667c95;
}

.shop-products__sort select {
  padding: 6px 12px;
  border: 1px solid #e8ecf1;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
  color: #082A66;
  cursor: pointer;
  outline: none;
}

.shop-products__sort select:focus {
  border-color: #082A66;
}

/* ===== PRODUCTS GRID - FIXED ===== */
.shop-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  width: 100%;
}

/* ===== PRODUCT CARD - FIXED ===== */
.shop-product {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.shop-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(8, 42, 102, 0.08);
  border-color: rgba(201, 162, 39, 0.15);
}

.shop-product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #c9a227, #d4af37);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
}

/* 🔥 FIX: Image - Full Width, No Extra Space */
.shop-product__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: #f5f7fa;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.shop-product__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.shop-product:hover .shop-product__image img {
  transform: scale(1.05);
}

/* 🔥 FIX: Info Section - Full Width */
.shop-product__info {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.shop-product__category {
  font-size: 12px;
  color: #8a9bb0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.shop-product__name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #082A66;
  margin: 0 0 8px 0;
  line-height: 1.3;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.shop-product__price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.shop-product__price-current {
  font-size: 18px;
  font-weight: 700;
  color: #082A66;
}

.shop-product__price-old {
  font-size: 14px;
  color: #8a9bb0;
  text-decoration: line-through;
}

.shop-product__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.shop-product__stars {
  color: #f5a623;
  font-size: 13px;
  letter-spacing: 1px;
}

.shop-product__rating-text {
  font-size: 12px;
  color: #8a9bb0;
}

.shop-product__btn {
  width: 100%;
  padding: 10px 0;
  background: #082A66;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.shop-product__btn:hover {
  background: #064789;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(8, 42, 102, 0.2);
}

.shop-product__btn.added {
  background: #c9a227;
}

/* ===== PRODUCT LINK ===== */
.shop-product__link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex: 1;
  width: 100%;
}

.shop-product__link:hover .shop-product__image img {
  transform: scale(1.05);
}

.shop-product__link:hover .shop-product__name {
  color: #c9a227;
}

/* ===== PAGINATION ===== */
.shop-products__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: #ffffff;
  color: #082A66;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover {
  border-color: #082A66;
  background: #f5f7fa;
}

.pagination-btn.active {
  background: #082A66;
  color: #ffffff;
  border-color: #082A66;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn.pagination-dots {
  border: none;
  cursor: default;
}

/* ================================================================ */
/* RESPONSIVE - FIXED FOR 2 CARDS PER ROW ON MOBILE              */
/* ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .shop-page__container {
    padding: 0 16px;
  }

  .shop-page__title {
    font-size: 34px;
  }

  .shop-filters {
    flex: 0 0 240px;
    max-width: 240px;
    padding: 20px 16px;
  }

  .shop-products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Mobile */
@media (max-width: 992px) and (min-width: 769px) {
  .shop-products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile - 2 CARDS */
@media (max-width: 768px) {
  .shop-page {
    padding: 20px 0 30px;
  }

  .shop-page__container {
    padding: 0 10px !important;
    width: 100%;
  }

  .shop-page__title {
    font-size: 26px;
  }

  .shop-page__subtitle {
    font-size: 14px;
  }

  .shop-page__layout {
    flex-direction: column;
    width: 100%;
  }

  /* Filters - Slide-in on mobile */
  .shop-filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    max-height: 100vh;
    height: 100%;
    z-index: 10000;
    border-radius: 0;
    padding: 24px 20px;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    top: 0;
    position: fixed;
  }

  .shop-filters.open {
    left: 0;
  }

  .shop-filters__close {
    display: flex;
  }

  .shop-filters__toggle {
    display: flex;
  }

  /* 🔥 FIX: 2 CARDS PER ROW - FULL WIDTH */
  .shop-products {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .shop-products__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 30px;
    width: 100% !important;
    padding: 0 !important;
  }

  /* 🔥 FIX: Card - Full Width, No Extra Space */
  .shop-product {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 🔥 FIX: Image - Full Width */
  .shop-product__image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
  }

  .shop-product__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 🔥 FIX: Info - Full Width */
  .shop-product__info {
    padding: 8px 10px 12px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .shop-product__category {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }

  .shop-product__name {
    font-size: 12px !important;
    font-weight: 600 !important;
    min-height: 28px !important;
    max-height: 34px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    width: 100% !important;
  }

  .shop-product__price {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    flex-wrap: wrap !important;
  }

  .shop-product__price-current {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .shop-product__price-old {
    font-size: 10px !important;
  }

  .shop-product__rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
  }

  .shop-product__stars {
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
  }

  .shop-product__rating-text {
    font-size: 9px !important;
  }

  .shop-product__btn {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 0 !important;
    border-radius: 6px !important;
    width: 100% !important;
    margin-top: auto !important;
  }

  .shop-products__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
  }

  .shop-products__count {
    font-size: 12px;
  }

  .shop-products__sort {
    width: 100%;
    font-size: 12px;
  }

  .shop-products__sort select {
    flex: 1;
    padding: 5px 10px;
    font-size: 12px;
  }

  .pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
    padding: 0 8px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .shop-page {
    padding: 14px 0 20px;
  }

  .shop-page__container {
    padding: 0 8px !important;
  }

  .shop-page__title {
    font-size: 20px;
  }

  .shop-page__subtitle {
    font-size: 12px;
  }

  .shop-products__grid {
    gap: 8px !important;
  }

  .shop-product {
    border-radius: 8px !important;
  }

  .shop-product__info {
    padding: 6px 8px 10px !important;
  }

  .shop-product__name {
    font-size: 11px !important;
    min-height: 24px !important;
    max-height: 28px !important;
    -webkit-line-clamp: 2 !important;
  }

  .shop-product__price-current {
    font-size: 12px !important;
  }

  .shop-product__btn {
    font-size: 10px !important;
    padding: 5px 0 !important;
  }

  .shop-product__category {
    font-size: 8px !important;
  }

  .shop-product__stars {
    font-size: 9px !important;
  }

  .shop-product__rating-text {
    font-size: 8px !important;
  }

  .shop-filters {
    width: 260px;
  }

  .shop-products__header {
    gap: 6px;
  }

  .pagination-btn {
    min-width: 28px;
    height: 28px;
    font-size: 10px;
    padding: 0 6px;
  }
}

/* Extra Small */
@media (max-width: 380px) {
  .shop-products__grid {
    gap: 6px !important;
  }

  .shop-product__info {
    padding: 4px 6px 8px !important;
  }

  .shop-product__name {
    font-size: 10px !important;
    min-height: 20px !important;
    max-height: 24px !important;
  }

  .shop-product__price-current {
    font-size: 11px !important;
  }

  .shop-product__btn {
    font-size: 9px !important;
    padding: 4px 0 !important;
  }
}