:root {
  /* Rich Midnight Blue & Gold Palette */
  --bg-main: #0B132B;
  --bg-subtle: #1C2541;
  --primary: #F0F6FC;
  --accent: #E5A93C; /* Rich Gold */
  --accent-glow: rgba(229, 169, 60, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #E0E6ED;
  --text-muted: #8E9BAE;
  --danger: #FF4D4D;
  --success: #00E676;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  /* Beautiful dark blue gradient background */
  background: linear-gradient(135deg, #0B132B 0%, #060A17 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .brand-font {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  background: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism Navbar */
.navbar {
  background: rgba(11, 19, 43, 0.6);
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 2px 10px var(--accent-glow);
}

/* Luxury frame for logo to sit perfectly on dark blue with proportional scaling */
.nav-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  object-fit: contain;
  box-shadow: 0 0 12px var(--accent-glow);
  background-color: #ffffff; /* keeps the beautiful white fabric texture visible */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent);
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-link {
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 85vh;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 19, 43, 0.4) 0%, #0B132B 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: 5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Storefront Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4rem 2.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(28, 37, 65, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
  border-color: rgba(229, 169, 60, 0.3);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-info {
  text-align: center;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background: #f1b94d;
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.5);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  width: 100%;
  margin-top: 2.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  border: none;
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  transform: translateY(-3px);
}

.btn-danger {
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.5rem 1.5rem;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

/* Product Details Page */
.details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  background: rgba(28, 37, 65, 0.4);
  padding: 4rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.details-image {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.details-info {
  display: flex;
  flex-direction: column;
}

.details-title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--primary);
  line-height: 1.1;
}

.details-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.details-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* Admin Forms */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(28, 37, 65, 0.6);
  padding: 4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px 4px 0 0;
  color: var(--primary);
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}

/* Admin List */
.admin-item-list {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(28, 37, 65, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-item-img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-item-details {
  flex-grow: 1;
  margin-left: 2rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 19, 43, 0.8);
  padding: 5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-brand {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
  .details-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem;
  }
  .navbar {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .form-container {
    padding: 2rem;
  }
}
