/* PhotoFrameIn - Global Styles (Dark Luxury Theme) */

:root {
  --bg: #050505;
  --card: #121212;
  --card-hover: #1A1A1A;
  --gold: #C5A059;
  --gold-dim: #A68444;
  --gold-glow: rgba(197, 160, 89, 0.08);
  --red: #CC0000;
  --saffron: #E8670A;
  --green: #22C55E;
  --purple: #7C3AED;
  --text: #E5E5E5;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --border: #2A2A2A;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Editorial Headings */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

/* Focus styles */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Announcement Bar */
.announcement-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.announcement-bar a { color: #fff; text-decoration: underline; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid #333;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Product Card */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.12), 0 0 0 1px rgba(255, 215, 0, 0.05);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover img {
  transform: scale(1.04);
}
.product-card .price {
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-body);
}
.product-card .compare-price {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 14px;
}

/* Category Card */
.category-card {
  background: var(--card);
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-4px);
}
.category-card.hover-purple:hover { border-color: var(--purple); box-shadow: 0 0 24px rgba(124, 58, 237, 0.3); }
.category-card.hover-saffron:hover { border-color: var(--saffron); box-shadow: 0 0 24px rgba(232, 103, 10, 0.3); }
.category-card.hover-gold:hover { border-color: var(--gold); box-shadow: 0 0 24px rgba(255, 215, 0, 0.3); }
.category-card.hover-green:hover { border-color: var(--green); box-shadow: 0 0 24px rgba(34, 197, 94, 0.3); }
.category-card.hover-red:hover { border-color: var(--red); box-shadow: 0 0 24px rgba(204, 0, 0, 0.3); }

/* Buttons */
.btn-buy {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-buy:hover { background: #E00000; transform: scale(1.02); }
@media (max-width: 640px) { .btn-buy { height: 56px; font-size: 18px; } }

.btn-cart {
  background: transparent;
  color: var(--saffron);
  font-weight: 700;
  padding: 14px 32px;
  border: 2px solid var(--saffron);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.btn-cart:hover { background: var(--saffron); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: #0D0D0D;
  font-weight: 700;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gold:hover { background: #FFE44D; }

/* Size & Frame selectors */
.size-option, .frame-option {
  background: var(--card);
  border: 2px solid #333;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.size-option:hover, .frame-option:hover { border-color: #666; }
.size-option.active, .frame-option.active {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}
.frame-option .badge {
  background: var(--gold);
  color: #0D0D0D;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Badges */
.badge-popular {
  background: var(--gold);
  color: #0D0D0D;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
}
.badge-express {
  background: var(--green);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-dispatch {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid var(--green);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Trust icons */
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid #2A2A2A;
}
.trust-item i { color: var(--gold); font-size: 20px; }

/* Stars */
.stars { color: var(--gold); }

/* Swiper / Carousel */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container > * { scroll-snap-align: start; flex-shrink: 0; }

/* Exit intent popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.popup-content {
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #1A1A1A 25%, #2A2A2A 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Custom frame warning */
.custom-warning {
  background: rgba(204, 0, 0, 0.1);
  border: 1px solid var(--red);
  color: #FF6666;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.site-footer h4 { font-family: var(--font-display); color: var(--gold); font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: var(--text-muted); transition: color 0.2s; }
.site-footer a:hover { color: var(--gold); }

/* Pincode input */
.pincode-input {
  background: #0D0D0D;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  width: 160px;
  font-size: 14px;
}
.pincode-input:focus { outline: none; border-color: var(--gold); }

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Image gallery */
.gallery-main { width: 100%; border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery-thumb {
  width: 64px; height: 64px; border-radius: 8px; object-fit: cover;
  border: 2px solid transparent; cursor: pointer; opacity: 0.6; transition: all 0.2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); opacity: 1; }

/* Section headers */
.section-header {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  position: relative;
}
.section-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 8px;
}
@media (max-width: 640px) { .section-header { font-size: 22px; } }

/* Quantity selector */
.qty-btn {
  background: var(--card);
  border: 1px solid #333;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: #2A2A2A; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--gold);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 1001;
  font-weight: 600;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* Mobile bottom nav */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 100;
}
@media (min-width: 769px) { .mobile-nav { display: none; } }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--gold); }
.mobile-nav-item i { font-size: 20px; }

@media (max-width: 768px) {
  body { padding-bottom: 60px; }
}

/* ---- WhatsApp Widget ---- */
.whatsapp-widget {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 32px;
  box-shadow: 0 12px 32px rgba(197, 160, 89, 0.4), 0 0 20px rgba(197, 160, 89, 0.2);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-widget:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 16px 40px rgba(197, 160, 89, 0.5), 0 0 30px rgba(197, 160, 89, 0.3);
}
@media (max-width: 768px) {
  .whatsapp-widget { bottom: 100px; right: 16px; width: 50px; height: 50px; font-size: 26px; }
}

/* ---- GSAP Reveal Helpers ---- */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal-left { opacity: 0; transform: translateX(-30px); }
.reveal-right { opacity: 0; transform: translateX(30px); }

/* ---- Premium Frame Mockup ---- */
.frame-mockup-container {
  position: relative;
  background: #1A1A1A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame-mockup-container img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 4px solid #000;
  max-width: 100%;
  height: auto;
  transition: all 0.5s var(--ease-out);
}
.frame-border-gold { border-color: var(--gold) !important; box-shadow: 0 20px 60px rgba(197, 160, 89, 0.3) !important; }
.frame-border-black { border-color: #000 !important; }
.frame-border-white { border-color: #FFF !important; }
