/* =====================
   RESET + BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f6f6f6;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
}

/* =====================
   BUTTONS
===================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  border: 2px solid #111;
  color: #111;
}

.btn-secondary:hover {
  background: #111;
  color: #fff;
}

/* =====================
   HEADER
===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
}

.logo {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.header-nav a {
  margin: 0 18px;
  font-weight: 500;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #111;
  transition: 0.25s;
}

.header-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link {
  font-size: 20px;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* =====================
   HERO
===================== */
.hero {
  height: 90vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
}

.hero-content {
  max-width: 700px;
  text-align: center;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 15px;
}

.hero p {
  font-size: 22px;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 25px;
}

/* =====================
   FEATURED CATEGORIES
===================== */
.featured-categories {
  padding: 100px 60px;
  background: #fff;
}

.featured-categories h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.category-card {
  position: relative;
  height: 350px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.95);
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
}

.category-card:hover img {
  transform: scale(1.05);
}

/* =====================
   COLLECTION
===================== */
.featured-collection {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.collection-text h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.collection-text p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #444;
}

.collection-image img {
  border-radius: 30px;
  width: 100%;
  object-fit: cover;
}

/* =====================
   SERVICES
===================== */
.service-highlights {
  background: #111;
  color: #fff;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.service-card i {
  font-size: 36px;
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  color: #ccc;
}

/* =====================
   GALLERY SLIDER
===================== */
.gallery-slider {
  padding: 100px 60px;
  background: #fff;
  text-align: center;
}

.gallery-slider h2 {
  font-size: 40px;
  margin-bottom: 50px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  object-fit: cover;
  display: none;
}

.slide.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 36px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50%;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
  cursor: pointer;
}

.slider-dots span.active {
  background: #111;
}

/* =====================
   FOOTER
===================== */
.site-footer {
  padding: 30px;
  text-align: center;
  background: #111;
  color: #aaa;
  font-size: 14px;
}

/* =====================
   SHOP PAGE
===================== */
.shop-hero {
  text-align: center;
  padding: 80px 20px 50px;
  background: #f7f7f7;
}

.shop-hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: #111;
}

.shop-hero p {
  font-size: 20px;
  color: #555;
}

.category-filters-section,
.subcategory-filters-section {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
}

.category-filters,
.subcategory-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.category-filters button,
.subcategory-filters button {
  padding: 10px 22px;
  font-weight: 600;
  border: 2px solid #111;
  border-radius: 30px;
  background: #fff;
  cursor: pointer;
  transition: 0.25s;
}

.category-filters button.active,
.subcategory-filters button.active,
.category-filters button:hover,
.subcategory-filters button:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.sort-container {
  display: flex;
  justify-content: flex-end;
  padding: 20px 60px;
}

.sort-container select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s ease;
}

/* =====================
   PRODUCT GRID
===================== */
#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 15px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.product-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 12px;
}

.product-card .btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.25s ease;
}

.product-card .btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* =====================
   COLOR SWATCH FILTER
===================== */
#color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.color-swatch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
}

.color-swatch-btn:hover {
  border-color: #111;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #aaa;
}

.color-swatch-btn.active {
  border-color: #111;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* =====================
   PRICE FILTER
===================== */
#price-filter {
  text-align: center;
  margin: 30px 0;
}

#price-filter input[type="range"] {
  width: 300px;
  margin: 10px 0;
}

.shop-filters-wrapper {
  position: sticky;
  top: 90px;
  background: #fff;
  z-index: 10;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.clear-filters-btn {
  margin: 20px auto;
  display: block;
  padding: 10px 26px;
  border-radius: 30px;
  border: 2px solid #111;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.clear-filters-btn:hover {
  background: #111;
  color: #fff;
}

/* =====================
   ACTIVE FILTERS DISPLAY
===================== */
.active-filters {
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f1f1f1;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filters span {
  background: #111;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.active-filters span .remove-filter {
  font-size: 12px;
  cursor: pointer;
  color: #fff;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1000px) {
  .category-grid,
  .service-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .featured-collection {
    grid-template-columns: 1fr;
  }

  #product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sort-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .category-grid,
  .service-highlights,
  .gallery-slider,
  #product-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero {
    padding: 0 20px;
  }

  .shop-hero h1 {
    font-size: 36px;
  }

  .shop-hero p {
    font-size: 16px;
  }

  .category-filters button,
  .subcategory-filters button {
    padding: 10px 18px;
    font-size: 14px;
  }
}
/* =====================
   FILTER SIDEBAR + BUTTONS
===================== */
/* Move the open filter button slightly lower */
#open-sidebar {
  position: fixed;
  top: 90px; /* increased from 20px to 70px */
  right: 20px;
  z-index: 2000;
  padding: 12px 20px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.25s ease;
}

#open-sidebar:hover {
  background: #333;
}

.filter-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: #fff;
  z-index: 2100;
  padding: 25px 20px;
  overflow-y: auto;
  box-shadow: -2px 0 15px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
}

.filter-sidebar.open {
  right: 0;
}

.close-sidebar-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: block;
  margin-bottom: 20px;
}

/* =====================
   CATEGORY / SUBCATEGORY BUTTONS
===================== */
.category-filters button,
.subcategory-filters button {
  padding: 10px 22px;
  font-weight: 600;
  border: 2px solid #111;
  border-radius: 30px;
  background: #fff;
  cursor: pointer;
  transition: 0.25s;
}

.category-filters button.active,
.subcategory-filters button.active,
.category-filters button:hover,
.subcategory-filters button:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* =====================
   SHOW SUBCATEGORY SECTION WHEN ACTIVE
===================== */
#dynamic-subcategories {
  display: none; /* default hidden */
  margin-bottom: 25px;
  text-align: center;
}

#dynamic-subcategories.active {
  display: block;
}

/* =====================
   RESPONSIVE SIDEBAR
===================== */
@media (max-width: 900px) {
  .filter-sidebar {
    width: 80%;
  }
}
.cart-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.cart-container {
  margin-top: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
  margin: 0 0 5px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
}

.cart-remove button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  font-size: 20px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.empty-cart {
  text-align: center;
  padding: 60px 0;
  color: #777;
}

.empty-cart i {
  font-size: 40px;
  margin-bottom: 10px;
}
.cart-item {
  transition: transform 0.2s ease;
  touch-action: pan-y;
}
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: 130%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 10px;
  display: none;
  min-width: 140px;
}


.user-dropdown a,
.user-dropdown button {
  display: block;
  padding: 8px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
/* =========================
   USER MENU (HEADER)
========================= */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-menu i {
  font-size: 18px;
}

.user-dropdown {
  position: absolute;
  top: 140%;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  min-width: 180px;
  padding: 10px 0;
  display: none;
  z-index: 3000;
}


}

.user-dropdown a,
.user-dropdown button {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #111;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #f5f5f5;
}

.user-name {
  padding: 10px 16px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  margin-bottom: 5px;
}
.auth-page {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  text-align: center;
}

.auth-page input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.auth-page button {
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
}
.user-dropdown {
  display: none;
}

.user-dropdown.open {
  display: block;
}
/* ================= PRODUCT PAGE STYLES ================= */

/* Container */
.product-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

/* Product Images */
.product-images {
  flex: 1;
  min-width: 300px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-images img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.product-images img:hover {
  transform: scale(1.05);
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Product Details */
.product-details {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.product-details h1 {
  margin-bottom: 20px;
  font-size: 32px;
}

.product-details p {
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.5;
}

.price {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0;
  color: #111;
}

/* Color Options */
.color-options {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: all 0.25s ease;
}

.color-dot.selected {
  border-color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: scale(1.1);
}

/* Quantity Input */
input[type=number] {
  width: 60px;
  padding: 6px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Buttons */
.btn {
  padding: 12px 25px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Related Products */
.related-products {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

.related-products h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}

.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
  padding: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.related-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.related-card .btn {
  padding: 8px 16px;
  font-size: 14px;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 14px 26px;
  border-radius: 30px;
  display: none;
  font-weight: 600;
  z-index: 5000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  0% { transform: translateX(-50%) translateY(30px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Responsive */
@media(max-width:900px) {
  .product-container { flex-direction: column; gap:30px; }
  .product-images, .product-details { min-width:100%; }
  .related-grid { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
}



