:root {
  --max-w: 1200px;
  --bg: #fff;
  --muted: #f6f6f7;
  --text: #0b0b0b;
  --sub: #6d6d6d;
  --accent: #000;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.modal-open {
  overflow: hidden;
}
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 60;
  border-bottom: 1px solid #eee;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 3px;
  font-weight: 700;
  margin-left: 20px;
}
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
}
nav a:hover {
  background: var(--muted);
}
nav a.active {
  background: #000;
  color: #fff;
}
.actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 5px;
  border-radius: 8px;
  cursor: pointer;
}
.cart {
  position: relative;
}
.badge {
  position: absolute;
  right: -8px;
  top: -8px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
}

/* Sidebar */
.sidebar {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: -250px;
  background: #111;
  overflow-x: hidden;
  transition: left 0.4s ease;
  padding-top: 60px;
  z-index: 1200;
}
.sidebar.active {
  left: 0;
}
.sidebar a {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: white;
  font-size: 18px;
}
.sidebar a:hover {
  background: #444;
}
.sidebar a.active {
  background: #fff;
  color: #000;
  border-radius: 4px;
}
.close-sidebar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}
.overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1100;
}
.overlay-bg.active {
  opacity: 1;
  visibility: visible;
}

/* ===== HOMEPAGE – FULL‑WIDTH EDGE‑TO‑EDGE CARDS ===== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.home-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.8s ease, transform 1.2s ease;
}
.home-card:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}
.home-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
  color: white;
  text-align: center;
}
.home-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 90%;
}
.home-btn {
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  padding: 12px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
}
.home-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.home-tagline {
  text-align: center;
  margin: 40px 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--sub);
  text-transform: uppercase;
}

/* Stack homepage cards on mobile */
@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-title {
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }
  .home-btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .home-title {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .home-btn {
    padding: 8px 20px;
    font-size: 12px;
  }
  .home-overlay {
    padding: 20px 10px;
  }
}

/* ===== SHOP PAGE – PRODUCT GRID ===== */
.section-title {
  margin-top: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f2f2f2;
  overflow: hidden;
  transition: 0.28s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(12, 12, 12, 0.06);
}
.card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: 0.45s;
  filter: grayscale(100%);
}
.card:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}
.card-body {
  padding: 12px;
}
.title {
  font-weight: 700;
}
.muted {
  color: var(--sub);
  font-size: 13px;
  margin-top: 6px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.btn {
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #000;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.button-group {
  display: flex;
  gap: 8px;
}
.btn-add {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.btn-add:hover {
  background: #fff;
  color: #000;
}

/* ===== FULL‑SCREEN MODAL ===== */
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border-radius: 28px;
  width: 90vw;
  max-width: 1300px;
  height: 85vh;
  max-height: 850px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  position: relative;
  padding: 24px;
}
.modal-image-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.modal-main-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  background: #fafafa;
  border-radius: 20px;
}
.modal-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
}
.modal-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}
.modal-thumbnails img:hover,
.modal-thumbnails img.active-thumb {
  border-color: #000;
}
.modal-info {
  padding: 24px 24px 24px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-info h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.modal-info .price {
  font-size: 28px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #000;
}
.modal-info .long-desc {
  flex: 1;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 16px 0;
  padding-right: 12px;
}
.button-group-modal {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.btn-modal {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: #000;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #333;
}
.close-x {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.close-x:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ===== CART DRAWER ===== */
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 380px;
  background: #fff;
  box-shadow: -18px 0 36px rgba(10, 10, 10, 0.12);
  transform: translateX(110%);
  transition: 0.28s;
  z-index: 92;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-items {
  flex: 1;
  overflow: auto;
}
.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f4;
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== RESPONSIVE (shared) ===== */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal {
    grid-template-columns: 1fr;
    width: 94vw;
    height: 90vh;
    overflow-y: auto;
  }
  .modal-main-img {
    max-height: 400px;
  }
}
@media (max-width: 640px) {
  nav ul {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}






/* ===== FULL‑PAGE PRODUCT DETAIL VIEW ===== */
.product-detail-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.back-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.detail-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.detail-image-section {
  flex: 1 1 400px;
}
.detail-image-section img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.detail-info-section {
  flex: 1 1 400px;
}
.detail-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}
.detail-price {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}
.detail-description {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 30px;
  line-height: 1.6;
}
.detail-actions {
  display: flex;
  gap: 15px;
}
.detail-actions .btn {
  flex: 1;
  padding: 15px 0;
  font-size: 16px;
  text-align: center;
}
.btn-chat {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-chat:hover {
  background: var(--border);
}





/* ===== DETAIL PAGE THUMBNAILS ===== */
.detail-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: thin;
}
.detail-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}
.detail-thumbnails img:hover,
.detail-thumbnails img.active-thumb {
  border-color: #000;
}








/* Size buttons (large, visible) */
.size-selector {
  margin: 24px 0;
}
.size-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}
.size-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.size-btn {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.size-btn:hover {
  border-color: #000;
  background: #f5f5f5;
}
.size-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}







/* Size selector */
.size-selector {
  margin: 24px 0;
}
.size-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}
.size-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.size-btn {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.size-btn:hover {
  border-color: #000;
  background: #f5f5f5;
}
.size-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Full‑screen detail page */
.product-detail-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.back-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.detail-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.detail-image-section {
  flex: 1 1 400px;
}
.detail-main-img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.detail-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
}
.detail-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}
.detail-thumbnails img.active-thumb {
  border-color: #000;
}
.detail-info-section {
  flex: 1 1 400px;
}
.detail-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}
.detail-price {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}
.detail-description {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 30px;
  line-height: 1.6;
}
.detail-actions {
  display: flex;
  gap: 15px;
}
.detail-actions .btn {
  flex: 1;
  padding: 15px 0;
  font-size: 16px;
  text-align: center;
}