@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

:root {
  --bg: #f6f0f2;
  --bg-soft: #fbf8f9;
  --rose: #d8bcc3;
  --rose-deep: #b98796;
  --mauve: #9b6c79;
  --wine: #6c3240;
  --heading: #4a2331;
  /* Deep Burgundy / Plum for Headings */
  --text: #4d3a40;
  --text-soft: #7c6870;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(83, 47, 57, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --transition: all 0.35s ease;
  --max: 1280px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--white);
  color: var(--wine);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--wine);
  color: var(--white);
}

.section {
  padding: 42px 0;
}


/* Hero */
.shop-hero {
  padding: 28px 0 10px;
}

.shop-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}

.shop-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 240, 242, 0.94) 0%, rgba(246, 240, 242, 0.82) 38%, rgba(246, 240, 242, 0.18) 72%, rgba(246, 240, 242, 0.06) 100%);
}

.shop-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: clamp(26px, 5vw, 60px);
}

.shop-hero-copy p {
  margin: 18px 0 0;
  font-size: 16px;
  max-width: 560px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-pill {
  padding: 10px 14px;
  background: rgb(241 240 240 / 43%);
  border: 1px solid rgba(185, 135, 150, 0.2);
  color: #4d3a40;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start;
}

.shop-sidebar,
.shop-main-box {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(108, 50, 64, 0.08);
  box-shadow: var(--shadow);
  border-radius: 26px;
}

.shop-sidebar {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.filter-block+.filter-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 12px;
}

.filter-list {
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
}

.filter-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.filter-list input {
  accent-color: var(--wine);
}

.range-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--wine);
}

.price-range {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
  color: var(--text-soft);
}

.shop-main-box {
  padding: 22px;
}

.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.shop-topbar p {
  font-size: 14px;
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-sort-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid rgba(108, 50, 64, 0.16);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sort-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sort-wrapper i {
  position: absolute;
  left: 14px;
  color: var(--text);
  pointer-events: none;
  font-size: 13px;
}

.search-box,
.search-modal input {
  border: 1px solid rgba(108, 50, 64, 0.16);
  outline: none;
  background: var(--white);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
}

.sort-select {
  border: 1px solid rgba(108, 50, 64, 0.16);
  outline: none;
  font-size: 14px;
  color: var(--text);
  padding: 8px 32px 8px 36px !important;
  appearance: none;
  background: var(--white) url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234d3a40%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 12px top 50%;
  background-size: 10px auto;
  border-radius: 8px !important;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.search-box {
  min-width: 230px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(155, 108, 121, 0.08);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #f8edf0;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.product-media .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-media .img-main {
  opacity: 0;
  transform: scale(1.04);
}

.product-card:hover .product-media .img-hover {
  opacity: 1;
  transform: scale(1.04);
}

.product-top-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.mini-action {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--heading);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 17px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.mini-action:hover,
.mini-action.active {
  background: var(--wine);
  color: var(--white);
  transform: translateY(-2px);
}

.product-badge,
.stock-badge {
  position: absolute;
  left: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.product-badge {
  top: 16px;
  background: rgba(108, 50, 64, 0.92);
}

.stock-badge {
  top: 52px;
  background: #56775f;
}

.stock-badge.low {
  background: #b5833f;
}

.stock-badge.out {
  background: #9a4d56;
}

.product-info {
  padding: 18px 18px 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.product-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-deep);
  font-weight: 400;
}

.product-rating {
  font-size: 13px;
  color: #c08952;
  white-space: nowrap;
}

.product-title {
  font-size: 21px;
  color: var(--wine);
  margin-bottom: 8px;
}

.product-desc {
  min-height: 44px;
  margin-bottom: 14px;
}

.stock-line {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.stock-line strong {
  color: var(--wine);
}

.note-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.note-pill {
  background: #f7eef1;
  color: var(--mauve);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price-box strong {
  display: block;
  font-size: 24px;
  color: var(--wine);
}

.price-box span {
  font-size: 13px;
  color: var(--text-soft);
}

@media (max-width: 1180px) {
  .filter-toggle-btn {
    display: inline-flex;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    z-index: 10000;
    background: var(--white);
    overflow-y: auto;
    transition: left 0.35s ease;
    padding: 24px;
    border-radius: 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  }

  .shop-sidebar.show {
    left: 0;
  }

  .shop-sidebar .sidebar-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .shop-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .shop-sidebar .close-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {


  .shop-hero-card {
    min-height: 340px;
    box-shadow: none;
  }

  .shop-hero-card img {
    object-position: 80% center;
  }

  .shop-hero-card::after {
    background: linear-gradient(90deg, rgba(246, 240, 242, 0.85) 0%, rgba(246, 240, 242, 0.75) 75%, rgba(246, 240, 242, 0) 100%);
  }

  .shop-hero-copy {
    padding: 30px 24px;
  }

  .hero-pill {
    padding: 8px 12px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.5);
  }

  .shop-main-box {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 1 / 0.95;
  }

  .product-media img {
    object-position: top;
  }

  .product-info {
    padding: 10px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    font-size: 8px;
    padding: 4px 6px;
  }

  .product-top-actions {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .mini-action {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .product-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
  }

  .product-category {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .product-rating {
    font-size: 10px;
  }

  .product-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .product-desc,
  .note-row {
    display: none;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-box strong {
    font-size: 14px;
  }

  .price-box span {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
  }

  .product-buttons {
    width: 100%;
  }

  .product-buttons .btn {
    width: 100%;
    padding: 7px;
    font-size: 12px;
    border-radius: 8px;
  }

  .shop-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    min-width: 100%;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300 !important;
}