/* ============================================================
   OUDS.ch — Boutique Styles (no framework needed)
   Deep walnut + antique gold + museum-like typography
   ============================================================ */

:root {
  --bg: #0F0C0A;
  --surface: #1A1512;
  --surface-hover: #241D1A;
  --border: #30261E;
  --gold: #BA8C4C;
  --gold-hover: #D4A35B;
  --cream: #F7F4EB;
  --sand: #CBBBA9;
  --mute: #8A7D72;
  --brown: #4A3525;
  --green: #5a8f5a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.container { max-width: 1600px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(15,12,10,0.9); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--cream); letter-spacing: 0.05em; line-height: 1; }
.logo-text .dot { color: var(--gold); }
.logo-tagline { font-size: 10px; letter-spacing: 0.3em; color: var(--mute); margin-top: 4px; text-transform: uppercase; display: block; }

.nav-links { display: none; gap: 40px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 500;
  color: rgba(247,244,235,0.8); transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--gold); transition: width 0.4s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 11px; letter-spacing: 0.2em; }
.lang-switch a { padding: 4px; color: var(--mute); transition: color 0.3s; }
.lang-switch a.active { color: var(--gold); }
.lang-switch a:hover { color: var(--cream); }
.lang-switch .sep { color: var(--border); }

.icon-btn { color: rgba(247,244,235,0.8); transition: color 0.3s; position: relative; display: inline-flex; align-items: center; }
.icon-btn:hover { color: var(--gold); }
.cart-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--gold); color: var(--bg); font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}

.mobile-toggle { display: block; color: var(--cream); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-menu { display: none; background: var(--bg); border-top: 1px solid var(--border); padding: 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.25em; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500; transition: all 0.3s; border: 0; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--cream); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold); padding: 8px 0; }
.btn-ghost:hover { color: var(--gold-hover); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(15,12,10,0.7) 40%, rgba(15,12,10,0.4) 70%, rgba(15,12,10,0.3) 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,12,10,0.9) 0%, transparent 60%); }
.hero-content { position: relative; z-index: 1; padding: 160px 0 100px; width: 100%; }
.hero-overline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-overline .line { width: 40px; height: 1px; background: var(--gold); }
.hero-overline span { font-size: 11px; letter-spacing: 0.35em; color: var(--gold); text-transform: uppercase; }
.hero h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.95; margin-bottom: 32px; max-width: 900px; color: var(--cream); }
.hero h1 em { color: var(--gold); font-style: italic; display: block; font-weight: 400; }
.hero .subtitle { color: var(--sand); font-size: 1.05rem; max-width: 600px; margin-bottom: 40px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============ SECTION ============ */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-overline { font-size: 11px; letter-spacing: 0.35em; color: var(--gold); text-transform: uppercase; margin-bottom: 20px; }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--cream); max-width: 900px; line-height: 1.1; }
.section-sub { color: var(--sand); margin-top: 16px; max-width: 700px; }
.section-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ============ BENTO GRID ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 768px) { .bento { grid-template-columns: 1fr; } }
.bento a { position: relative; display: block; background: var(--surface); overflow: hidden; aspect-ratio: 4/5; }
.bento a:nth-child(1) { grid-column: span 3; grid-row: span 2; aspect-ratio: auto; }
.bento a:nth-child(2) { grid-column: span 3; aspect-ratio: 2/1; }
.bento a:nth-child(3) { grid-column: span 2; aspect-ratio: 4/5; }
.bento a:nth-child(4) { grid-column: span 2; aspect-ratio: 4/5; }
.bento a:nth-child(5) { grid-column: span 2; aspect-ratio: 4/5; }
.bento a:nth-child(6) { grid-column: span 6; aspect-ratio: 3/1; }
@media (max-width: 768px) { .bento a { grid-column: span 1 !important; aspect-ratio: 4/3 !important; } }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.bento a:hover img { transform: scale(1.06); }
.bento a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 60%); }
.bento .overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.bento .overlay span { font-size: 10px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.bento .overlay h3 { font-size: 1.6rem; color: var(--cream); margin-bottom: 12px; }
.bento .overlay em { font-size: 11px; letter-spacing: 0.25em; color: var(--sand); text-transform: uppercase; font-style: normal; }

/* ============ PRODUCT GRID ============ */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.products.cols-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .products.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface); margin-bottom: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.badge { position: absolute; top: 16px; left: 16px; padding: 4px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; }
.badge-sale, .badge-bestseller, .badge-discount { background: var(--gold); color: var(--bg); }
.badge-bestseller { background: var(--cream); }
.badge-featured { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.badge-discount { top: auto; top: 50px; font-weight: 700; }
.quick-add { position: absolute; bottom: 16px; right: 16px; width: 44px; height: 44px; background: var(--gold); color: var(--bg); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: all 0.4s; }
.card:hover .quick-add { opacity: 1; transform: translateY(0); }
.card-meta { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--mute); }
.card h3 { font-size: 1.25rem; color: var(--cream); margin: 4px 0; transition: color 0.3s; }
.card:hover h3 { color: var(--gold); }
.card .prices { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.card .price { color: var(--gold); font-weight: 500; }
.card .old-price { color: var(--mute); text-decoration: line-through; font-size: 0.85rem; }

/* ============ FORMS ============ */
.input, .textarea, .select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border);
  color: var(--cream); padding: 12px 0; font-size: 15px; font-family: inherit;
  transition: border-color 0.3s;
}
.input:focus, .textarea:focus, .select:focus { outline: 0; border-bottom-color: var(--gold); }
.input-bordered { border: 1px solid var(--border); padding: 12px 16px; }
.input-bordered:focus { border-color: var(--gold); }
.textarea { resize: none; min-height: 120px; border: 1px solid var(--border); padding: 16px; }
.label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--mute); margin-bottom: 8px; }
.select { background: var(--surface); border: 1px solid var(--border); padding: 10px 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.footer { background: var(--bg); border-top: 1px solid var(--border); margin-top: 120px; }
.footer-top { border-bottom: 1px solid var(--border); padding: 80px 0; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; align-items: center; } }
.footer-main { padding: 64px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 1024px) { .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--sand); font-size: 14px; transition: color 0.3s; }
.footer li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; font-size: 12px; color: var(--mute); display: flex; flex-direction: column; gap: 16px; align-items: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.payment-logos { display: flex; gap: 8px; }
.payment-logo { border: 1px solid var(--border); padding: 4px 8px; font-size: 10px; letter-spacing: 0.1em; color: var(--sand); }
.payment-logo.twint { color: var(--gold); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============ ADMIN ============ */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 32px 0; }
.admin-sidebar .logo { padding: 0 24px; margin-bottom: 40px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; font-size: 14px; color: var(--sand); border-left: 2px solid transparent; transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { background: var(--surface-hover); color: var(--gold); border-left-color: var(--gold); }
.admin-main { padding: 40px; }
@media (max-width: 900px) { .admin-main { padding: 24px; } }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.admin-header h1 { font-size: 2rem; color: var(--cream); }
.admin-card { background: var(--surface); border: 1px solid var(--border); padding: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.admin-stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--cream); }
.admin-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--mute); margin-top: 8px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--mute); padding: 12px 16px; font-weight: 500; border-bottom: 1px solid var(--border); }
.table td { padding: 14px 16px; font-size: 14px; color: var(--sand); border-bottom: 1px solid var(--border); }
.table tr:hover td { background: var(--surface-hover); }
.status-pill { font-size: 10px; padding: 4px 10px; text-transform: uppercase; letter-spacing: 0.2em; border: 1px solid; }
.status-new { color: var(--gold); border-color: var(--gold); }
.status-paid { color: #5a8f5a; border-color: #5a8f5a; }
.status-shipped { color: #5a7fa0; border-color: #5a7fa0; }
.status-pending { color: var(--sand); border-color: var(--border); }

.flash { padding: 16px 24px; margin-bottom: 24px; border-left: 3px solid; }
.flash-success { background: rgba(90,143,90,0.15); border-color: #5a8f5a; color: #9bc99b; }
.flash-error { background: rgba(186,76,76,0.15); border-color: #ba4c4c; color: #e8a8a8; }
.flash-info { background: rgba(186,140,76,0.15); border-color: var(--gold); color: var(--sand); }

/* ============ UTILITIES ============ */
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-sand { color: var(--sand); }
.text-mute { color: var(--mute); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }
.grid { display: grid; }
.flex { display: flex; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-10 { gap: 40px; }
.hidden { display: none; }
.w-full { width: 100%; }

/* Geometric divider (arabesque) */
.arabesque { display: inline-block; width: 180px; height: 20px; opacity: 0.55;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'><g stroke='%23BA8C4C' stroke-width='0.7' fill='none'><path d='M0 20 Q 25 0, 50 20 T 100 20 T 150 20 T 200 20'/><path d='M0 20 Q 25 40, 50 20 T 100 20 T 150 20 T 200 20'/><circle cx='50' cy='20' r='1.5' fill='%23BA8C4C'/><circle cx='100' cy='20' r='2' fill='%23BA8C4C'/><circle cx='150' cy='20' r='1.5' fill='%23BA8C4C'/></g></svg>") no-repeat center/contain; }

/* Responsive helpers */
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  h1 { font-size: 2.5rem !important; }
  .section { padding: 80px 0; }
}
