@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #b8973e;
  --navy: #1a1a2e;
  --white: #ffffff;
  --light: #f8f8f6;
  --border: #e8e4dc;
  --text: #1a1a2e;
  --text-muted: #6b6b6b;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --header-height: 80px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .luxury-font {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--navy);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header & Nav */
header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--navy);
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--primary);
}

/* Admin Portal Nav Link - only visible to admins */
.admin-nav-link {
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600 !important;
  border: 1px solid var(--primary);
  padding: 4px 12px !important;
  border-radius: 50px;
  transition: var(--transition);
}

.admin-nav-link:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
}

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

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
  color: var(--navy);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: #a38535;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: #2a2a4e;
}

/* Hero Section */
.hero {
  height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-img-wrapper {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: #eee;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.product-info {
  padding: 1.5rem 0;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.product-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: var(--transition);
}

.product-card:hover .product-name::after {
  width: 100%;
}

.product-price {
  font-weight: 500;
  color: var(--navy);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--white);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  z-index: 10;
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.category-card:hover .category-overlay {
  background: rgba(26, 26, 46, 0.5);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-name {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #a0a0b0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  background: transparent;
  border: 1px solid #3a3a5e;
  padding: 0.8rem;
  color: white;
  width: 100%;
  border-radius: var(--radius);
}

.newsletter-form button {
  background: var(--primary);
  border: none;
  padding: 0 1.5rem;
  color: white;
  cursor: pointer;
  border-radius: var(--radius);
}

.footer-bottom {
  border-top: 1px solid #3a3a5e;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b6b8b;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: none;
  padding: 5rem 2rem;
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-input-wrapper {
  display: flex;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1rem;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  background: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  outline: none;
}

/* Mobile Nav */
.mobile-nav-toggle {
  display: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 3000;
  display: none;
  animation: slideIn 0.3s ease;
}

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

/* Hero Slider */
.hero-slider { height: 90vh; position: relative; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.hero-card { position: absolute; top: 50%; transform: translateY(-50%); background: white; padding: 60px; max-width: 550px; z-index: 10; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.hero-card .tag { display: block; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-size: 0.8rem; }
.hero-card h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
.hero-card p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 35px; line-height: 1.8; }
.hero-btns { display: flex; gap: 15px; }

/* Curation / Categories */
.gold-label { color: var(--primary); font-weight: 700; letter-spacing: 3px; font-size: 0.85rem; }
.view-all { font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--navy); padding-bottom: 5px; }
.category-card-premium { position: relative; aspect-ratio: 4/5; overflow: hidden; display: block; }
.category-card-premium img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.category-card-premium:hover img { transform: scale(1.05); }
.category-overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8)); display: flex; align-items: flex-end; padding: 30px; }
.cat-info h3 { color: white; font-size: 1.8rem; margin-bottom: 5px; }
.cat-info .count { color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; }

/* Product Cards Premium */
.product-card-premium { background: white; transition: var(--transition); }
.product-card-premium:hover { transform: translateY(-10px); }
.product-card-premium .img-container { position: relative; overflow: hidden; background: #f8f8f8; }
.product-card-premium .img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.product-card-premium:hover .img-container img { transform: scale(1.1); }

/* Global Alerts */
.alert { padding: 15px 25px; border-radius: 4px; margin-bottom: 30px; font-weight: 500; font-size: 0.95rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* Form Controls Premium */
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 1rem; outline: none; transition: 0.3s; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(184, 151, 62, 0.1); }

/* Mobile Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    flex-direction: column;
}

.search-wrap {
    margin-top: 50px;
    position: relative;
}

.search-wrap input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid white;
    color: white;
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    padding: 20px 0;
    outline: none;
}

.search-results-overlay {
    background: white;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 4px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--navy);
    transition: 0.3s;
}

.search-item:hover { background: var(--gray); }
.search-item img { width: 60px; height: 60px; object-fit: cover; }
.search-item h4 { font-size: 1.1rem; margin-bottom: 2px; }
.search-item span { font-size: 0.8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    border-top: 1px solid var(--border);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 2500;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    gap: 5px;
}

.mobile-bottom-nav a.active { color: var(--primary); }
.mobile-bottom-nav i { font-size: 1.2rem; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .main-nav ul { flex-direction: column; gap: 15px; }
    .mobile-nav-toggle { display: block; background: none; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; }
    .hero-card { padding: 40px; max-width: 90%; }
    .hero-card h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
    .main-footer { padding-bottom: 100px; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .category-card-premium { aspect-ratio: 1/1; }
    .header-actions .user-link, .header-actions .wishlist-link { display: none; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-card h1 { font-size: 2rem; }
}
