/* ==========================================
   SHOP PAGE – shop.css
   Collections / Latest Releases grid layout
   ========================================== */

/* ==========================================
   SHOP HEADER
   ========================================== */

.shop-page {
  background: #fff;
  min-height: 60vh;
}

.shop-header {
  padding: 30px 20px 0;
}

.shop-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
  color: #111;
}

.shop-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 0 0;
  gap: 10px;
  flex-direction: column;
  align-items: flex-end;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.filter-btn:hover {
  background: #111;
  color: #fff;
}

.filter-btn:hover svg {
  stroke: #fff;
}

.product-count {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.5px;
}

.shop-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 20px 0;
}

/* ==========================================
   SHOP PRODUCT GRID
   ========================================== */

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px 20px;
}

.shop-card {
  background: #fff;
  padding-bottom: 16px;
}

.shop-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Product Image */
.shop-card-img {
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}

.shop-card-img img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

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

/* Image dots / pagination */
.img-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease;
}

.dot.active {
  background: #fff;
}

/* Product Info */
.shop-card-info {
  padding: 10px 4px 0;
}

.shop-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  color: #111;
}

.shop-card-variant {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  margin-bottom: 4px;
}

.shop-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

/* Color Swatches */
.color-swatches {
  display: flex;
  gap: 6px;
  padding: 6px 4px 0;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease;
}

.swatch.active {
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #111;
}

.swatch:hover:not(.active) {
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #ccc;
}

/* ==========================================
   LOAD MORE
   ========================================== */

.load-more-section {
  text-align: center;
  padding: 40px 20px 50px;
  background: #fff;
}

.load-progress {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.load-more-btn {
  min-width: 200px;
  padding: 14px 40px;
}

/* ==========================================
   FILTER DRAWER
   ========================================== */

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.open {
  opacity: 1;
  visibility: visible;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.filter-drawer.open {
  right: 0;
}

.filter-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.filter-drawer-header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #111;
}

.filter-sections {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.filter-group {
  border-bottom: 1px solid #eee;
}

.filter-group summary {
  padding: 16px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.filter-group[open] summary::after {
  content: "−";
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.filter-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111;
  cursor: pointer;
}

.filter-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-apply-btn {
  width: 100%;
  padding: 14px;
}

.filter-clear {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s ease;
}

.filter-clear:hover {
  color: #111;
}

/* ==========================================
   RESPONSIVE — TABLET (768px+)
   ========================================== */

@media (min-width: 768px) {

  .shop-header {
    padding: 40px 30px 0;
  }

  .shop-title {
    font-size: 28px;
  }

  .shop-toolbar {
    flex-direction: row;
    justify-content: flex-end;
    align-items: baseline;
    gap: 16px;
  }

  .shop-divider {
    margin: 16px 30px 0;
  }

  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px 30px;
  }

  .shop-card-title {
    font-size: 14px;
  }

  .swatch {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================
   RESPONSIVE — DESKTOP (1024px+)
   ========================================== */

@media (min-width: 1024px) {

  .shop-header {
    padding: 40px 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .shop-title {
    font-size: 30px;
    max-width: 500px;
  }

  .shop-toolbar {
    align-items: flex-end;
  }

  .shop-divider {
    margin: 16px 40px 0;
  }

  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 40px;
  }

  .shop-card-info {
    padding: 12px 0 0;
  }

  .color-swatches {
    padding: 8px 0 0;
  }

  .shop-card-price {
    font-size: 15px;
  }

  .swatch {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================
   RESPONSIVE — LARGE DESKTOP (1440px+)
   ========================================== */

@media (min-width: 1440px) {

  .shop-header {
    padding: 50px 60px 0;
  }

  .shop-title {
    font-size: 32px;
  }

  .shop-divider {
    margin: 20px 60px 0;
  }

  .shop-grid {
    padding: 24px 60px;
    gap: 24px;
  }
}

/* ==========================================
   QUICK ADD OVERLAY & TRIGGER
   ========================================== */

.quick-add-trigger {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 14px;
  border: none;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 5;
}
.shop-card-img:hover .quick-add-trigger {
  transform: translateY(0);
}

.qa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qa-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  margin: 20px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  border: 1px solid #eee;
}
.qa-overlay.active .qa-modal {
  transform: translateY(0);
}

.qa-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #a0a0a0;
  padding: 0;
  transition: color 0.2s ease;
}
.qa-close:hover {
  color: #111;
}

.qa-content {
  padding: 30px;
}
.qa-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.qa-img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  background: #f2f2f2;
}
.qa-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.qa-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.qa-price {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.qa-view-more {
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #111;
}

.qa-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
  font-weight: 600;
}
.qa-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.qa-size-btn {
  border: 1px solid #e0e0e0;
  background: #f9f9f9;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 50px;
}
.qa-size-btn.active {
  background: #222;
  color: #fff;
  border-color: #222;
}
.qa-size-btn:not(.active):hover {
  border-color: #111;
}

.qa-atc-btn {
  width: 100%;
  padding: 16px;
  background: #115041;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.qa-atc-btn:hover {
  background: #0c3e31;
}
