@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --maroon: #7B1E3A;
  --maroon-dark: #5A1529;
  --maroon-light: #9B2D52;
  --gold: #D4AF37;
  --gold-light: #E8C96A;
  --cream: #FDF8F3;
  --cream-dark: #F5EDE3;
  --text: #2C1810;
  --text-muted: #6B5344;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(123, 30, 58, 0.12);
  --shadow-lg: 0 12px 48px rgba(123, 30, 58, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); line-height: 1.6; min-height: 100vh; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; }
input, textarea, select { font-family: var(--font-body); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 500; font-size: 0.95rem; transition: all 0.25s ease; border: 2px solid transparent; }
.btn-primary { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: var(--white); box-shadow: 0 4px 16px rgba(123, 30, 58, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(123, 30, 58, 0.4); }
.btn-outline { background: transparent; border-color: var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--maroon-dark); font-weight: 600; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.section { padding: 4rem 0; }
.section-title { font-size: clamp(2rem, 5vw, 2.75rem); color: var(--maroon); text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--cream-dark); border-radius: var(--radius); font-size: 1rem; background: var(--white); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--maroon); }
.form-group textarea { resize: vertical; min-height: 120px; }

.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--maroon-dark); }
.badge-maroon { background: var(--maroon); color: var(--white); }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--maroon); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.pattern-bg { background-image: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(123, 30, 58, 0.06) 0%, transparent 40%); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }

.header { position: sticky; top: 0; z-index: 100; background: rgba(253, 248, 243, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(123, 30, 58, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { width: 48px; height: 48px; flex-shrink: 0; transition: transform 0.3s ease; }
.logo:hover .logo-img { transform: scale(1.05); }
.logo-icon { font-size: 1.5rem; color: var(--gold); background: var(--maroon); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--maroon); line-height: 1.1; }
.logo-tagline { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 1rem; border-radius: 50px; font-weight: 500; font-size: 0.9rem; color: var(--text); transition: all 0.2s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--maroon); background: rgba(123, 30, 58, 0.08); }
.cart-badge { position: absolute; top: 2px; right: 4px; background: var(--maroon); color: white; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--maroon); border-radius: 2px; }

.footer { background: var(--maroon-dark); color: rgba(255, 255, 255, 0.9); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-brand-logo { width: 56px; height: 56px; margin-bottom: 0.75rem; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }
.footer-info h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 600; }
.footer-info p, .footer-info a { display: block; font-size: 0.9rem; opacity: 0.85; margin-bottom: 0.35rem; transition: opacity 0.2s; }
.footer-info a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; opacity: 0.7; }
.footer-domain { color: var(--gold-light); }

.hero { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(90, 21, 41, 0.92) 0%, rgba(123, 30, 58, 0.85) 50%, rgba(90, 21, 41, 0.9) 100%), url('https://images.unsplash.com/photo-1610030469983-98e550d6193c?w=1600&h=900&fit=crop') center/cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 4rem 1.25rem; color: white; }
.hero-badge { display: inline-block; background: rgba(212, 175, 55, 0.2); border: 1px solid var(--gold); color: var(--gold-light); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 3.75rem); margin-bottom: 1.25rem; line-height: 1.15; }
.hero-highlight { display: block; color: var(--gold-light); font-style: italic; }
.hero-desc { font-size: 1.1rem; opacity: 0.9; line-height: 1.7; margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn-outline { border-color: rgba(255, 255, 255, 0.6); color: white; }
.hero-actions .btn-outline:hover { background: white; color: var(--maroon); border-color: white; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature-card { background: white; padding: 2rem 1.5rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(123, 30, 58, 0.06); }
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; color: var(--maroon); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }
.owner-section { background: var(--cream-dark); }
.owner-card { background: white; border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold); }
.owner-card h2 { font-size: 2rem; color: var(--maroon); margin: 1rem 0; }
.owner-card > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }
.owner-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--cream); border-radius: var(--radius); }
.owner-details strong { display: block; color: var(--maroon); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.owner-details p { color: var(--text); font-size: 0.95rem; }

.page-header { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: white; padding: 3rem 0; text-align: center; }
.page-header h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; font-size: 1.05rem; }

.product-card { display: flex; flex-direction: column; }
.product-image-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cream-dark); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image { transform: scale(1.05); }
.product-category { position: absolute; top: 12px; left: 12px; }
.product-out-of-stock { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; }
.product-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1.2rem; color: var(--maroon); margin-bottom: 0.5rem; }
.product-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.product-footer .btn { white-space: nowrap; }
.product-footer .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.search-input { width: 100%; max-width: 400px; padding: 0.75rem 1.25rem; border: 2px solid var(--cream-dark); border-radius: 50px; font-size: 1rem; margin-bottom: 1.25rem; background: white; }
.search-input:focus { outline: none; border-color: var(--maroon); }
.category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-btn { padding: 0.5rem 1rem; border-radius: 50px; background: white; border: 2px solid var(--cream-dark); font-size: 0.85rem; font-weight: 500; color: var(--text); transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--maroon); border-color: var(--maroon); color: white; }
.results-count { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.cart-items { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.cart-items-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--cream-dark); }
.cart-items-header h2 { font-size: 1.35rem; color: var(--maroon); }
.btn-text { background: none; color: var(--maroon-light); font-size: 0.9rem; font-weight: 500; padding: 0.25rem 0.5rem; }
.btn-text:hover { text-decoration: underline; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--cream-dark); align-items: center; }
.cart-item-image { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.cart-item-info h3 { font-size: 1rem; color: var(--maroon); margin-bottom: 0.35rem; }
.cart-item-price { font-size: 0.85rem; color: var(--text-muted); }
.cart-item-actions { text-align: right; }
.quantity-control { display: inline-flex; align-items: center; border: 2px solid var(--cream-dark); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.5rem; }
.quantity-control button { width: 32px; height: 32px; background: var(--cream); font-size: 1.1rem; color: var(--maroon); font-weight: 600; }
.quantity-control span { width: 36px; text-align: center; font-weight: 600; }
.cart-item-total { font-family: var(--font-display); font-weight: 700; color: var(--maroon); font-size: 1.1rem; margin-bottom: 0.35rem; }
.remove-btn { background: none; color: #C62828; font-size: 0.8rem; }
.remove-btn:hover { text-decoration: underline; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; margin-top: 0.5rem; font-size: 1.1rem; font-weight: 600; }
.inquiry-form-card { padding: 2rem; position: sticky; top: 96px; }
.inquiry-form-card h2 { font-size: 1.5rem; color: var(--maroon); margin-bottom: 0.5rem; }
.form-intro { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.submit-success { text-align: center; padding: 2rem 0; }
.success-icon { width: 64px; height: 64px; background: #E8F5E9; color: #2E7D32; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto 1.5rem; }
.submit-success h2 { color: var(--maroon); margin-bottom: 0.75rem; }
.submit-success p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.info-card { padding: 1.5rem; }
.info-icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }
.info-card h3 { font-size: 1.1rem; color: var(--maroon); margin-bottom: 0.5rem; }
.info-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.info-card a { color: var(--maroon); font-weight: 500; }
.map-link { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; }
.highlight-card { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: white; }
.highlight-card h3, .highlight-card p { color: rgba(255, 255, 255, 0.95); }
.contact-form-card { padding: 2rem; }
.contact-form-card h2 { font-size: 1.5rem; color: var(--maroon); margin-bottom: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.admin-layout { display: grid; grid-template-columns: 420px 1fr; gap: 2rem; align-items: start; }
.admin-form-card { padding: 2rem; position: sticky; top: 96px; }
.admin-form-card h2 { font-size: 1.5rem; color: var(--maroon); margin-bottom: 0.5rem; }
.field-hint { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--text-muted); }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; }
.checkbox-group input { width: auto; }
.admin-list-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.admin-list-header h2 { font-size: 1.35rem; color: var(--maroon); }
.admin-actions { display: flex; gap: 0.5rem; }
.admin-products { display: flex; flex-direction: column; gap: 1rem; }
.admin-product-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.admin-product-item img { width: 60px; height: 75px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.admin-product-info { flex: 1; }
.admin-product-info h3 { font-size: 1rem; color: var(--maroon); margin-bottom: 0.25rem; }
.delete-btn { background: none; color: #C62828; font-size: 0.85rem; font-weight: 500; padding: 0.5rem; flex-shrink: 0; }

/* Success dialog */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(44, 24, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-overlay.dialog-open {
  opacity: 1;
  visibility: visible;
}

body.dialog-active {
  overflow: hidden;
}

.dialog-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--gold);
}

.dialog-open .dialog-box {
  transform: scale(1) translateY(0);
}

.dialog-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  color: #2E7D32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  border: 3px solid #A5D6A7;
}

.dialog-title {
  font-size: 1.65rem;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.dialog-order-id {
  font-size: 0.9rem;
  color: var(--gold);
  background: var(--cream);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.dialog-message {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dialog-actions .btn {
  width: 100%;
  min-height: 48px;
}

.order-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.order-item { background: var(--cream); border-radius: var(--radius); padding: 1rem; font-size: 0.85rem; }
.order-item strong { color: var(--maroon); display: block; margin-bottom: 0.35rem; }
.order-item span { color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 900px) {
  .cart-layout, .contact-layout, .admin-layout { grid-template-columns: 1fr; }
  .inquiry-form-card, .admin-form-card { position: static; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .hero { min-height: 70vh; }
  .owner-card { padding: 2rem 1.5rem; }
  .menu-toggle { display: flex; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 1rem; gap: 0.5rem; border-bottom: 1px solid rgba(123, 30, 58, 0.1); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: all 0.3s ease; }
  .nav-open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { width: 100%; text-align: center; padding: 0.75rem; }
}
