/*
Theme Name: Sudurpaschim Jewellers Dynamic
Theme URI: https://example.com/
Author: ChatGPT
Description: Dynamic WordPress theme for Sudurpaschim Jewellers with editable jewellery products, photos, and prices.
Version: 1.0.0
License: GPLv2 or later
Text Domain: sudurpaschim-jewellers
*/

:root {
  --navy: #0b1c2d;
  --orange: #d97706;
  --light: #f6f8fb;
  --text: #1f2933;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--light);
  color: var(--text);
}

/* HEADER */
.site-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  position: relative;
  background:
    linear-gradient(135deg, #081726 0%, #0b1f33 45%, #102a43 100%),
    repeating-linear-gradient(45deg, rgba(217,119,6,0.035) 0, rgba(217,119,6,0.035) 1px, transparent 1px, transparent 14px);
  color: #fff;
  padding: 160px 20px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(217,119,6,0.22) 0%, transparent 35%),
    radial-gradient(circle at 80% 40%, rgba(217,119,6,0.18) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(217,119,6,0.15) 0%, transparent 45%);
  opacity: 1;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(217,119,6,0.18), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(217,119,6,0.14), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(217,119,6,0.12), transparent 50%);
  animation: glowShift 18s ease-in-out infinite alternate;
}

.site-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(217,119,6,0.25);
  box-shadow: inset 0 0 80px rgba(217,119,6,0.25), 0 0 120px rgba(217,119,6,0.15);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.top-taskbar {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  z-index: 3;
}

.top-taskbar a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f5f5f5;
  opacity: 0.9;
  position: relative;
}

.top-taskbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #d97706, transparent);
  transition: 0.3s;
}
.top-taskbar a:hover::after { width: 100%; }
.top-taskbar a:hover { opacity: 1; }

.site-hero h1 {
  font-size: 3.8rem;
  letter-spacing: 5px;
  margin: 0 0 14px;
  position: relative;
  text-transform: uppercase;
  background: linear-gradient(110deg, #ffd27a 30%, #fff 45%, #d97706 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.site-hero h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.site-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 0;
}

/* NAV */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  gap: 35px;
  padding: 16px 0;
  box-shadow: 0 4px 15px rgba(11,28,45,0.15);
}
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: 0.3s;
}
.main-nav a:hover::after { width: 100%; }

/* SECTIONS */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}
h2 {
  text-align: center;
  font-size: 2.4rem;
  margin: 0 0 15px;
}
.subtitle {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: #555;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}
.card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(11,28,45,0.12);
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.card h3 {
  color: var(--navy);
  margin: 0 0 12px;
}
.card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}
.card img,
.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
  background: #eef2f7;
}
.category-card::after {
  content: "View Details →";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,28,45,0.92), rgba(19,47,76,0.92));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0;
  transition: 0.4s;
}
.category-card:hover::after { opacity: 1; }

.product-card { cursor: pointer; }
.product-price {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 15px;
  border-radius: 30px;
  background: rgba(217,119,6,0.12);
  color: var(--orange);
  font-weight: 700;
}
.product-meta {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.empty-products {
  text-align: center;
  background: #fff7ed;
  border: 1px dashed #d97706;
  border-radius: 16px;
  padding: 30px;
  color: #7c2d12;
}

/* TRUST BAR */
.trust {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.trust div h3 {
  color: var(--orange);
  font-size: 2rem;
  margin: 0 0 5px;
}
.trust div p { margin: 0; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--navy), #132f4c);
  color: #fff;
  text-align: center;
  padding: 90px 25px;
  border-radius: 24px;
}
.cta h2 { margin-bottom: 15px; }
.cta p {
  max-width: 650px;
  margin: 0 auto 35px;
  opacity: 0.9;
}
.cta a {
  background: var(--orange);
  color: #fff;
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.cta a:hover { background: #9a7744; }

/* FOOTER */
footer {
  margin-top: 80px;
  background: #eef2f7;
  padding: 35px 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* THEME TOGGLE */
body.dark {
  background: #071321;
  color: #e5e7eb;
}
body.dark .main-nav { background: #0b1c2d; }
body.dark .main-nav a { color: #f5f5f5; }
body.dark .card,
body.dark .trust { background: #0b1c2d; color: #f5f5f5; }
body.dark .card h3 { color: #ffd27a; }
body.dark .card p,
body.dark .subtitle { color: #cbd5e1; }
body.dark footer { background: #071321; color: #aaa; }
body.dark .modal-content { background: #0b1c2d; color: #f5f5f5; }

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: #d97706;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  cursor: pointer;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  z-index: 100;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
}
.modal-content img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}
.modal-content .close {
  position: absolute;
  right: 20px;
  top: 12px;
  font-size: 1.8rem;
  cursor: pointer;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes glowShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-40px, 40px); }
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .top-taskbar {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
  }
  .top-taskbar a { font-size: 0.78rem; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .site-hero { padding: 130px 20px; }
  .site-hero h1 { font-size: 2.25rem; letter-spacing: 2px; }
  h2 { font-size: 2rem; }
  section { padding: 60px 18px; }
}
