/* =====================================================
   SALE BADGE
===================================================== */

.sale-badge {
  position: absolute;
  top: 14px;
  left: -35px;
  background: #c40000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 45px;
  transform: rotate(-45deg);
  z-index: 10;
  letter-spacing: 1px;
}

/* =====================================================
   BASE
===================================================== */

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #111;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   PRODUCT CARD
===================================================== */

.category-card {
  position: relative;
  width: 100%;
  background: transparent;
  overflow: hidden;
}

/* =====================================================
   IMAGE WRAPPER
===================================================== */

.category-img-wrapper {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}

.category-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, opacity .3s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

/* =====================================================
   HOVER IMAGE SWAP
===================================================== */

.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.category-card:hover .hover-img {
  opacity: 1;
}

.category-card:hover .main-img {
  opacity: 0;
}

/* =====================================================
   QUICK VIEW BUTTON
===================================================== */

.quick-view {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transition: .3s ease;
  cursor: pointer;
  z-index: 3;
}

.category-card:hover .quick-view {
  opacity: 1;
}

/* =====================================================
   PRODUCT TEXT
===================================================== */

.category-name {
  padding: 14px 16px 4px;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
  color: #333;
}

/* PRICE (MERGED & CLEAN) */
.category-price {
  margin-top: 6px;
  padding: 0 16px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #888;
}

.category-price .old-price {
  color: #c40000;
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 6px;
}

.category-price .new-price {
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

/* =====================================================
   QUICK VIEW MODAL
===================================================== */

.modal-content {
  border-radius: 0;
}

.modal-body img {
  width: 100%;
  object-fit: cover;
}

.modal-body h5 {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================================================
   PRODUCT GRID ALIGNMENT (MATCH HOMEPAGE)
===================================================== */

.product-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.product-container .row {
  margin-left: -14px;
  margin-right: -14px;
}

.product-container [class*="col-"] {
  padding-left: 14px;
  padding-right: 14px;
}

/* =====================================================
   FILTER DROPDOWNS – LUXURY STYLE
===================================================== */

.container-fluid.my-4 .form-select {
  height: 44px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  box-shadow: none;
  padding: 0 42px 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.container-fluid.my-4 .form-select:focus {
  border-color: #111;
  box-shadow: none;
}

/* FILTER ROW ALIGNMENT */
.container-fluid.my-4 > .row {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.container-fluid.my-4 .form-select {
  max-width: 260px;
  width: 100%;
}

.container-fluid.my-4 .col-12.d-md-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* =====================================================
   RESPONSIVE SYSTEM
===================================================== */

/* TABLET */
@media (max-width: 992px) {

  .container-fluid.my-4 > .row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .container-fluid.my-4 .form-select {
    max-width: 220px;
    height: 42px;
    font-size: 13px;
  }

  .category-name,
  .category-price {
    font-size: 13px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .container-fluid.my-4 .col-12 {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .container-fluid.my-4 .form-select {
    max-width: 100%;
  }

  .category-img-wrapper {
    aspect-ratio: 2 / 3.2;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

  .container-fluid.my-4 .form-select {
    height: 40px;
    font-size: 12px;
  }

  .category-name,
  .category-price {
    font-size: 12.5px;
  }

  .quick-view {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* =====================================================
   FILTER → PRODUCT GAP FIX
===================================================== */

.container-fluid.my-4 {
  margin-bottom: 0 !important;
}

.container-fluid.my-4 + .product-container {
  margin-top: 14px;
}
