/* style.css - Luxe Bags - Updated with new features */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #faf8f5;
  color: #1e1e1e;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* header */
/* Header Animation - Sticky with Slide Down */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #ece9e4;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.logo {
    font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-decoration: none;
  color: #1e1e1e;
  cursor: pointer;
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #1e1e1e, #b48b5a, #1e1e1e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s infinite linear;

}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
.nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-list a:hover,
.nav-list a.active {
  color: #b48b5a;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.header-icons i {
  font-size: 1.3rem;
  cursor: pointer;
  color: #2d2d2d;
  transition: color 0.2s;
}

.header-icons i:hover {
  color: #b48b5a;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #b48b5a;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* hero */
.hero {
  padding: 4rem 0 3rem;
  background: rgb(255, 182, 193);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content .premium-badge {
  display: inline-block;
  background-color: #e3d9cf;
  color: #4d3e30;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-content .accent {
  color: #b48b5a;
  font-weight: 700;
}

.hero-content p {
  color: #4a4a4a;
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-stats span {
  color: #6b5f53;
  font-size: 0.9rem;
}

.hero-price {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #b48b5a;
  padding-left: 1rem;
  background: #fff7ee;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  transition: 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #1e1e1e;
  color: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.btn-primary i {
  margin-left: 0.5rem;
}

.btn-primary:hover {
  background-color: #b48b5a;
  color: #1e1e1e;
}

.btn-wishlist {
  background-color: transparent;
  border: 2px solid #1e1e1e;
  color: #1e1e1e;
}

.btn-wishlist:hover {
  background-color: #f0e4d8;
}

/* hero image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.shape {
  background: #dac09a;
  border-radius: 50% 50% 30% 70% / 40% 30% 70% 60%;
  aspect-ratio: 1/1;
  box-shadow: 20px 20px 30px rgba(0,0,0,0.05);
}

.shape-1 { background: #c7ad86; border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%; }
.shape-2 { background: #e3cfb5; border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%; }
.shape-3 { background: #b48b5a; border-radius: 74% 26% 60% 40% / 37% 66% 34% 63%; }

/* categories */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #6b5f53;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2rem 1rem 1.5rem;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
  transition: 0.2s;
  border: 1px solid #f0ebe4;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.05);
  border-color: #dac09a;
}

.category-img {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background-color: #f5eee7;
  border-radius: 50%;
  background-size: 60px;
  background-repeat: no-repeat;
  background-position: center;
}

.category-count {
  color: #b48b5a;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.tote { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b48b5a"><path d="M20 10h-2V8H6v2H4v8h16v-8zm-2 6H6v-4h12v4z"/></svg>'); }
.clutch { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b48b5a"><rect x="4" y="8" width="16" height="10" rx="2"/></svg>'); }
.crossbody { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b48b5a"><path d="M12 4c-2 0-4 1-4 3v2H6v10h12V9h-2V7c0-2-2-3-4-3zm0 2c1 0 2 .5 2 1v1h-4V7c0-.5 1-1 2-1z"/></svg>'); }
.satchel { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b48b5a"><path d="M8 7V6c0-2 2-3 4-3s4 1 4 3v1h2v10H6V7h2zm2-1v1h4V6c0-.5-1-1-2-1s-2 .5-2 1z"/><rect x="4" y="17" width="16" height="2"/></svg>'); }

.category-card h3 {
  font-weight: 600;
  font-size: 1.3rem;
}

/* filter buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid #e0d6cc;
  background: white;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #b48b5a;
  color: white;
  border-color: #b48b5a;
}

/* ===== NEW PRODUCT GRID STYLES WITH IMAGES ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.02);
  border: 1px solid #f0ebe4;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #dac09a;
  box-shadow: 0 20px 30px rgba(0,0,0,0.04);
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.badge.new {
  background: #ff69b4;
  color: white;
}

.badge.bestseller {
  background: #000000;
  color: white;
}

.badge.sale {
  background: #ff4444;
  color: white;
}

/* Product Image */
.product-image {
  height: 280px;
  background: linear-gradient(135deg, #f5eee7 0%, #e8ddd2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

/* Product Actions Overlay */
.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  transition: bottom 0.3s ease;
  z-index: 5;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.action-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255,255,255,0.9);
  color: #1e1e1e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.action-btn:hover {
  background: #b48b5a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Product Info */
.product-info {
  padding: 1.5rem 1.2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #1e1e1e;
  line-height: 1.4;
}

.product-category {
  font-size: 0.85rem;
  color: #b48b5a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-rating {
  color: #ffd700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.product-rating span {
  color: #6b5f53;
  margin-left: 5px;
  font-size: 0.85rem;
}

.product-price {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0.6rem 0 0.8rem;
  color: #1e1e1e;
}

.product-description {
  font-size: 0.9rem;
  color: #6b5f53;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-stock {
  color: #2b7a4b;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-stock i {
  font-size: 0.9rem;
}

.add-to-cart-btn {
  background-color: #1e1e1e;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.add-to-cart-btn:hover {
  background-color: #b48b5a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(180, 139, 90, 0.3);
}

.add-to-cart-btn i {
  font-size: 1rem;
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  overflow: auto;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #faf8f5;
  margin: 3% auto;
  padding: 2rem;
  border-radius: 40px;
  max-width: 1000px;
  width: 90%;
  position: relative;
  animation: modalSlideUp 0.4s ease;
  border: 1px solid #e0d6cc;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 2.5rem;
  cursor: pointer;
  color: #6b5f53;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid #e0d6cc;
}

.close-modal:hover {
  color: #b48b5a;
  background-color: rgba(180, 139, 90, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image {
  background: linear-gradient(135deg, #f5eee7 0%, #e8ddd2 100%);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid #e0d6cc;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-image img:hover {
  transform: scale(1.05);
}

.modal-details {
  padding: 1rem 0;
}

.modal-details h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
  line-height: 1.2;
}

.modal-reviews {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.modal-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #b48b5a;
}

.modal-stock {
  color: #2b7a4b;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.modal-description {
  color: #4a4a4a;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-actions .btn {
  flex: 1;
  padding: 1rem;
  font-size: 1.1rem;
}

/* ===== CART SIDEBAR STYLES ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 30px rgba(0,0,0,0.15);
  z-index: 1001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 2px solid #f0ebe4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
  color: white;
}

.cart-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header i {
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cart-header i:hover {
  transform: rotate(90deg);
  color: #b48b5a;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #faf8f5;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #f0ebe4;
  background: white;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s ease;
}

.cart-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: #f5eee7;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0d6cc;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #1e1e1e;
}

.cart-item-price {
  color: #b48b5a;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item-remove {
  color: #ff6b6b;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  padding: 5px;
}

.cart-item-remove:hover {
  color: #ff4444;
  transform: scale(1.2);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5eee7;
  padding: 0.3rem;
  border-radius: 30px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e0d6cc;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #b48b5a;
  color: white;
  border-color: #b48b5a;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 2px solid #f0ebe4;
  background: white;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1e1e1e;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 1.7s;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-left: 4px solid #b48b5a;
  font-weight: 500;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ===== ADMIN DASHBOARD STYLES ===== */
/* Admin Dashboard Link */
.footer-links {
  margin-top: 1rem;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b5f53;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e0d6cc;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.admin-link:hover {
  background-color: #b48b5a;
  color: white;
  border-color: #b48b5a;
}

.admin-link i {
  font-size: 0.9rem;
}

/* Floating Admin Quick Access Button */
.admin-quick-access {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99;
}

.admin-quick-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #1e1e1e;
  color: white;
  border: 2px solid #b48b5a;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.admin-quick-btn:hover {
  background: #b48b5a;
  transform: scale(1.1) rotate(180deg);
  border-color: white;
}

/* Secret Admin Gesture (double tap logo) */
.logo.admin-mode {
  animation: adminPulse 0.5s ease;
}

@keyframes adminPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); color: #b48b5a; }
}

/* Admin Quick Menu */
.admin-quick-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 25px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  z-index: 10000;
  width: 320px;
  animation: slideDown 0.3s ease;
  border: 2px solid #b48b5a;
  overflow: hidden;
}

.admin-quick-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-quick-header i:first-child {
  color: #b48b5a;
  font-size: 1.8rem;
}

.close-quick-menu {
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.close-quick-menu:hover {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.2);
  color: #b48b5a;
}

.admin-quick-body {
  padding: 1rem;
}

.admin-quick-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: #1e1e1e;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.admin-quick-item:hover {
  background: #f5eee7;
  transform: translateX(5px);
  border-color: #b48b5a;
}

.admin-quick-item i {
  width: 24px;
  color: #b48b5a;
  font-size: 1.2rem;
}

/* ===== IMAGE GALLERY MODAL STYLES ===== */
.image-gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  overflow: hidden;
}

.gallery-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  margin: 2% auto;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid #b48b5a;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #1e1e1e;
  color: white;
  border-bottom: 2px solid #b48b5a;
}

.gallery-modal-header h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-modal-close {
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.gallery-modal-close:hover {
  transform: rotate(90deg);
  color: #b48b5a;
  background: rgba(255,255,255,0.1);
}

.gallery-modal-body {
  height: calc(90vh - 80px);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #f5f5f5;
}

.gallery-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 20px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 2px solid #e0d6cc;
  position: relative;
}

.gallery-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-main-image img.zoomed {
  transform: scale(1.5);
  cursor: zoom-out;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 2px solid #b48b5a;
  color: #1e1e1e;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: #b48b5a;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
  left: 20px;
}

.gallery-nav-btn.next {
  right: 20px;
}

.gallery-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
  background: white;
  border-radius: 15px;
  border: 1px solid #e0d6cc;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.gallery-thumb.active {
  border-color: #b48b5a;
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b5f53;
  font-weight: 600;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(180,139,90,0.3);
  border-radius: 50%;
  border-top-color: #b48b5a;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== PRICE ANIMATION ===== */
@keyframes pricePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: #b48b5a; }
  100% { transform: scale(1); }
}

.price-updated {
  animation: pricePop 0.3s ease;
}

/* ===== CART ANIMATION ===== */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.cart-bounce {
  animation: cartBounce 0.3s ease;
}

/* footer */
.footer {
  border-top: 1px solid #ece9e4;
  padding: 2.5rem 0;
  text-align: center;
  color: #6b5f53;
}

/* ===== MEDIA QUERIES ===== */

/* Devices up to 900px (Tablets and below) */
@media (max-width: 900px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center;
  }
  
  .hero-content p { 
    margin: 0 auto 2rem; 
    max-width: 600px;
  }
  
  .hero-stats { 
    justify-content: center; 
  }
  
  .category-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
  }
  
  .hero-content h1 { 
    font-size: 2.5rem; 
  }
  
  .modal-grid { 
    grid-template-columns: 1fr; 
  }
  
  .cart-sidebar { 
    width: 100%; 
    right: -100%; 
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .modal-content {
    margin: 5% auto;
    padding: 1.5rem;
  }
  
  .gallery-modal-content {
    width: 95%;
    height: 95vh;
  }
}

/* Devices up to 600px (Large phones and below) */
@media (max-width: 600px) {
  .header-container { 
    flex-direction: column; 
    gap: 1rem; 
  }
  
  .nav-list { 
    gap: 1.2rem; 
    flex-wrap: wrap; 
    justify-content: center; 
  }
  
  .nav-list a {
    font-size: 0.95rem;
  }
  
  .filter-buttons { 
    gap: 0.5rem; 
  }
  
  .filter-btn { 
    padding: 0.5rem 1rem; 
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .hero-stats strong {
    font-size: 1.5rem;
  }
  
  .category-grid {
    gap: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .product-image {
    height: 180px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .modal-content {
    padding: 1.2rem;
    margin: 10% auto;
  }
  
  .modal-image {
    min-height: 200px;
  }
  
  .modal-details h2 {
    font-size: 1.5rem;
  }
  
  .cart-sidebar {
    width: 100%;
  }
  
  /* Admin responsive */
  .admin-quick-menu {
    width: 90%;
    max-width: 300px;
  }
  
  .admin-quick-access {
    bottom: 10px;
    left: 10px;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .gallery-thumb {
    width: 50px;
    height: 50px;
  }
}

/* Devices up to 480px (Small phones) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    height: 160px;
  }
  
  .product-actions {
    gap: 5px;
    padding: 10px;
  }
  
  .action-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .add-to-cart-btn {
    width: 100%;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-image {
    min-height: 150px;
  }
  
  .modal-price {
    font-size: 2rem;
  }
  
  .gallery-thumb {
    width: 40px;
    height: 40px;
  }
}

/* Devices up to 360px (Very small phones) */
@media (max-width: 360px) {
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-list {
    gap: 0.8rem;
  }
  
  .nav-list a {
    font-size: 0.85rem;
  }
  
  .header-icons i {
    font-size: 1.1rem;
    gap: 0.8rem;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .hero-price {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .category-img {
    width: 90px;
    height: 90px;
    background-size: 45px;
  }
  
  .product-title {
    font-size: 0.95rem;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
  
  .product-badges {
    top: 10px;
    left: 10px;
    gap: 5px;
  }
  
  .badge {
    padding: 4px 8px;
    font-size: 10px;
  }
}

/* Landscape mode for phones */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: row;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .modal-content {
    margin: 2% auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-image {
    min-height: 150px;
  }
  
  /* Admin landscape */
  .admin-quick-menu {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .gallery-modal-content {
    height: 90vh;
  }
  
  .gallery-main-image {
    height: 70vh;
  }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 1024px) {
  .nav-list a,
  .filter-btn,
  .add-to-cart-btn,
  .wishlist-btn,
  .category-card,
  .product-card,
  .header-icons i,
  .admin-quick-btn,
  .admin-link,
  .action-btn,
  .quantity-btn,
  .cart-item-remove,
  .gallery-nav-btn,
  .gallery-thumb {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(180, 139, 90, 0.2);
  }
  
  .btn,
  .filter-btn,
  .add-to-cart-btn,
  .admin-quick-btn,
  .action-btn,
  .quantity-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .header-icons i {
    padding: 10px;
    margin: -5px;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-image {
    background: linear-gradient(135deg, #f5eee7 0%, #e8ddd2 100%);
  }
}
/* Amazon Affiliate Styles */
.amazon-badge {
  background: #ff9900;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  border: 1px solid #232f3e;
}

.amazon-badge i {
  font-size: 12px;
}

.badge.amazon {
  background: #232f3e;
  color: #ff9900;
  border: 1px solid #ff9900;
}

.badge.amazon i {
  margin-right: 3px;
}

.product-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.amazon-btn {
  background: #ff9900;
  color: #232f3e;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 2px solid #232f3e;
}

.amazon-btn:hover {
  background: #232f3e;
  color: #ff9900;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.amazon-btn i {
  font-size: 1.2rem;
}

.modal-amazon-btn {
  background: #ff9900;
  color: #232f3e;
  border: 2px solid #232f3e;
}

.modal-amazon-btn:hover {
  background: #232f3e;
  color: #ff9900;
}

/* Update product-stock for Amazon */
.product-stock i {
  color: #ff9900;
}

/* Hide old cart-related elements if needed */
.cart-sidebar.wishlist-sidebar .cart-header h3 i {
  color: #ff9900;
}

.cart-sidebar.wishlist-sidebar .checkout-btn {
  background: #ff9900;
  color: #232f3e;
  border: 2px solid #232f3e;
}

.cart-sidebar.wishlist-sidebar .checkout-btn:hover {
  background: #232f3e;
  color: #ff9900;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b5f53;
  font-size: 1rem;
}

/* Amazon price comparison */
.amazon-price-comparison {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px;
  background: #f0f8ff;
  border-radius: 10px;
  border-left: 4px solid #ff9900;
}

.amazon-price {
  color: #ff9900;
  font-weight: 700;
}

.our-price {
  color: #666;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.amazon-save {
  background: #ff9900;
  color: #232f3e;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}