/* HERO SHOP */
.shop-hero {
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../Pictures/goldenm-header-1.jpg') center/cover no-repeat;
  position: relative;
}

.shop-hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.shop-hero h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.shop-hero p {
  color: #ddd;
  font-size: 14px;
  letter-spacing: 3px;
}

/* LAYOUT */
.shop-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
  position: relative;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-close {
  display: none;
}

/* SIDEBAR TOGGLE (mobile) */
.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  margin: 20px 0 0 0;
  width: 100%;
  justify-content: center;
}

/* GOLDEN M FOR MEN BUTTON (above filters) */
.shop-men-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin: 0;
  box-sizing: border-box;
}
.shop-men-btn:hover {
  background: #c5b08a;
}
.shop-men-btn-women {
  background: #111;
  color: #fff;
}
.shop-men-btn-women:hover {
  background: #333;
}

/* SIDEBAR WRAPPER (holds men button + sidebar) */
.shop-sidebar-wrap {
  display: flex;
  flex-direction: column;
  width: 260px;
  min-width: 260px;
}

/* SIDEBAR */
.shop-sidebar {
  width: 100%;
  padding: 30px 24px 30px 0;
  border-right: 1px solid #eee;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-section h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
}

/* Search */
.shop-sidebar input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.shop-sidebar input[type="text"]:focus {
  border-color: var(--gold);
}

/* Category radios */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #333;
}

.filter-radio:hover {
  background: #f5f5f5;
}

.filter-radio input[type="radio"] {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.filter-radio input[type="radio"]:checked + span {
  color: var(--gold);
  font-weight: 500;
}

/* Price range */
.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
}

.price-range input:focus {
  border-color: var(--gold);
}

.price-sep {
  color: #ccc;
  font-size: 14px;
}

/* Size buttons */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
}

.size-btn:hover {
  border-color: #999;
}

.size-btn.active {
  border-color: var(--gold);
  background: var(--gold-light, rgba(184,150,46,0.1));
  color: var(--gold);
}

/* Toggle */
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #333;
}

.filter-toggle input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Gender link */
.sidebar-gender {
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.sidebar-gender .filter-btn-men {
  display: block;
  text-align: center;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
}

.sidebar-gender .filter-btn-men:hover {
  background: #333;
}

/* Action buttons */
.sidebar-actions {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.filter-apply-btn {
  flex: 1;
  padding: 12px;
  background: var(--gold, #b8962e);
  color: #000;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.filter-apply-btn:hover { opacity: 0.85; }

.filter-reset-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: #999;
  border: 1px solid #ddd;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-reset-btn:hover { border-color: #999; color: #333; }

/* MAIN CONTENT */
.shop-main {
  flex: 1;
  padding: 30px 0 80px 30px;
  min-width: 0;
}

/* Liked page main (no sidebar) */
.liked-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 40px 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* PRODUCT CARDS */
.product-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
  margin-bottom: 15px;
  aspect-ratio: 3/4;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  transition: opacity 0.5s ease;
  background: #f5f5f5;
}

.product-card .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .img-hover { opacity: 1; }

/* SOLD OUT STYLES */
.product-img-grayscale {
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.3s ease;
}

.product-sold-out-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  padding: 20px 15px 15px;
  text-align: center;
  z-index: 2;
}

.product-sold-out-text {
  display: inline-block;
  background: var(--gold, #b8962e);
  color: #000;
  padding: 10px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(184,150,46,0.4);
  animation: soldOutPulse 2s ease-in-out infinite;
}

@keyframes soldOutPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(184,150,46,0.4); }
  50% { box-shadow: 0 4px 30px rgba(184,150,46,0.6); }
}

/* Disable hover effect on sold out cards */
.product-card.sold-out .img-hover {
  opacity: 0 !important;
}

.product-card.sold-out:hover .img-hover {
  opacity: 0 !important;
}

.product-card.sold-out .product-img-grayscale {
  filter: grayscale(100%) brightness(0.75);
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #111;
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}

.product-tag.discount-70 { background: #2ecc71; }
.product-tag.discount-50 { background: #e74c3c; }
.product-tag.discount-30 { background: #f1c40f; color: #111; }

.product-info { padding: 0 5px; display: flex; flex-direction: column; flex: 1; }

.product-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  color: #111;
}

.product-price {
  font-size: 14px;
  color: #111;
  font-weight: 400;
  margin-bottom: 10px;
}

.price-old {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
  font-size: 13px;
}

.add-to-cart {
  width: 100%;
  padding: 10px;
  background: #111;
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: auto;
}

.add-to-cart:hover { background: #333; }

/* Delivery note under product price */
.product-delivery {
  font-size: 11px;
  color: #8a7a5a;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ========================
   MOBILE FILTERS – GOLDEN M DRAWER
   ======================== */
@media (max-width: 1100px) {
  .shop-hero h1 { font-size: 28px; letter-spacing: 2px; }
  .shop-hero p { font-size: 12px; letter-spacing: 1.5px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .shop-layout { padding: 0; flex-direction: column; }

  .shop-sidebar-wrap {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #0a0a0a;
    padding: 10px 16px;
    border-bottom: 1px solid #222;
  }

  .shop-sidebar-wrap .shop-men-btn,
  .sidebar-toggle {
    flex: 1;
    width: 50%;
    margin: 0;
    padding: 14px 12px;
    font-size: 12px;
    min-height: 48px;
    height: 48px;
    line-height: 1.2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #333;
    color: var(--gold);
    background: transparent;
    font-family: var(--font-sans);
  }

  .shop-sidebar-wrap .shop-men-btn:hover,
  .sidebar-toggle:hover {
    border-color: var(--gold);
    background: rgba(214,200,174,0.08);
  }

  /* backdrop */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
  }
  .sidebar-backdrop.active { display: block; }

  /* drawer from left */
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    z-index: 10001;
    padding: 0;
    border: none;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
  }

  .shop-sidebar.open { transform: translateX(0); }

  /* drawer header */
  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    padding: 18px 20px;
    height: 56px;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .sidebar-close::before {
    content: 'Филтри';
    font-family: var(--font-serif);
    font-size: 20px;
    color: #fff;
    letter-spacing: 2px;
  }
  .sidebar-close::after {
    content: '✕';
    font-size: 16px;
    color: var(--gold);
    width: 36px;
    height: 36px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* sections */
  .shop-sidebar .sidebar-section:first-of-type { margin-top: 0; }

  .shop-sidebar .sidebar-section {
    padding: 18px 20px;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 0;
  }

  .shop-sidebar .sidebar-section h3 {
    font-size: 11px;
    margin-bottom: 12px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
  }

  .shop-sidebar input[type="text"],
  .shop-sidebar input[type="number"] {
    font-size: 16px;
    padding: 12px 14px;
    min-height: 46px;
    background: #111;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 0;
  }

  .shop-sidebar input[type="text"]:focus,
  .shop-sidebar input[type="number"]:focus {
    border-color: var(--gold);
  }

  .shop-sidebar .filter-radio {
    padding: 12px 14px;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 2px;
    border-radius: 0;
  }

  .shop-sidebar .filter-radio:hover { background: #1a1a1a; }
  .shop-sidebar .filter-radio input[type="radio"]:checked + span { color: var(--gold); }

  .shop-sidebar .price-sep { color: #555; }

  .size-btn {
    width: 48px;
    height: 48px;
    font-size: 13px;
    border-color: #333;
    color: #999;
    background: transparent;
  }

  .size-btn:hover { border-color: #666; }
  .size-btn.active {
    border-color: var(--gold);
    background: rgba(214,200,174,0.12);
    color: var(--gold);
  }

  .shop-sidebar .filter-toggle { color: #ccc; }

  .shop-sidebar .sidebar-section:last-of-type { border-bottom: none; }

  /* actions – sticky bottom */
  .sidebar-actions {
    position: sticky;
    bottom: 0;
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 16px 20px;
    display: flex;
    gap: 10px;
    margin-top: auto;
  }

  .sidebar-actions button {
    flex: 1;
    min-height: 48px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .filter-apply-btn {
    background: var(--gold);
    color: #000;
    border: none;
  }

  .filter-reset-btn {
    border-color: #333;
    color: #666;
    background: transparent;
  }

  .shop-main {
    padding: 16px 16px 60px;
    margin-left: 0;
    flex: 1 1 100%;
  }
  .liked-main { padding: 16px 16px 60px; max-width: 100%; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 10px 6px; }
  .product-title { font-size: 12px; margin-bottom: 4px; line-height: 1.3; }
  .product-price { font-size: 13px; margin-bottom: 8px; }
  .price-old { font-size: 11px; }
  .product-image-wrapper { margin-bottom: 10px; }
  .add-to-cart { font-size: 10px; padding: 12px; letter-spacing: 1px; min-height: 44px; }
  .product-tag { font-size: 9px; padding: 2px 6px; top: 6px; left: 6px; letter-spacing: 0.5px; }
  .product-sold-out-overlay { padding: 12px 8px 10px; }
  .product-sold-out-text { font-size: 10px; padding: 7px 14px; letter-spacing: 1.5px; }
}

@media (max-width: 400px) {
  .shop-hero h1 { font-size: 22px; letter-spacing: 1px; }
  .shop-hero p { font-size: 11px; }
  .shop-main { padding: 12px 12px 50px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-info { padding: 8px 3px; }
  .product-title { font-size: 11px; margin-bottom: 2px; }
  .product-price { font-size: 12px; margin-bottom: 6px; }
  .add-to-cart { font-size: 9px; padding: 10px; min-height: 44px; letter-spacing: 0.5px; }
  .product-tag { font-size: 8px; padding: 2px 6px; top: 6px; left: 6px; }
  .product-sold-out-overlay { padding: 10px 6px 8px; }
  .product-sold-out-text { font-size: 9px; padding: 6px 12px; letter-spacing: 1px; }
}
