/* ============================================================
   Storefront — Premium Boutique Theme (Light / Dark)
   ============================================================ */

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

:root, [data-theme="light"] {
	--f-bg: #FBF9F5;
	--f-surface: #FFFFFF;
	--f-surface-alt: #F5F0E6;
	--f-line: #E7E0D2;
	--f-line-soft: #F0EBDF;

	--f-gold: #B68A3B;
	--f-gold-soft: #F1E4C8;
	--f-gold-dark: #8C6826;

	--f-text: #2B2520;
	--f-text-muted: #80766A;
	--f-text-on-dark: #F4F0E8;

	--f-success: #1E8E5A;
	--f-danger: #C0392B;

	--f-radius-sm: 8px;
	--f-radius-md: 14px;
	--f-radius-lg: 22px;
	--f-shadow: 0 2px 16px rgba(43, 37, 32, 0.06);
	--f-shadow-raised: 0 14px 40px rgba(43, 37, 32, 0.12);

	--f-header-bg: rgba(251, 249, 245, 0.92);
	--f-footer-bg: #1C1714;
	--f-footer-text: #C9BFB3;
}

[data-theme="dark"] {
	--f-bg: #15130F;
	--f-surface: #1E1B16;
	--f-surface-alt: #25211B;
	--f-line: #332E26;
	--f-line-soft: #28241D;

	--f-gold: #D8AC5C;
	--f-gold-soft: #3A301E;
	--f-gold-dark: #E8C27D;

	--f-text: #F1ECE3;
	--f-text-muted: #9C9286;
	--f-text-on-dark: #F4F0E8;

	--f-success: #3FBE85;
	--f-danger: #E0685A;

	--f-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
	--f-shadow-raised: 0 18px 44px rgba(0, 0, 0, 0.45);

	--f-header-bg: rgba(21, 19, 15, 0.92);
	--f-footer-bg: #0E0C0A;
	--f-footer-text: #9C9286;
}

* { box-sizing: border-box; }

body {
	background: var(--f-bg);
	color: var(--f-text);
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3, .font-display { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.font-script { font-family: 'Cormorant Garamond', serif; font-weight: 600; }

a { text-decoration: none; color: inherit; }

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

/* ============================================================
   Top utility bar
   ============================================================ */
.top-bar { background: #1C1714; color: #C9BFB3; font-size: 12px; }
[data-theme="dark"] .top-bar { background: #0E0C0A; }
.top-bar-inner {
	max-width: 1280px; margin: 0 auto; padding: 7px 24px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap;
}
.top-bar-msg { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.top-bar-contact a { display: flex; align-items: center; gap: 6px; color: #C9BFB3; font-weight: 600; }
.top-bar-contact a:hover { color: var(--f-gold); }
@media (max-width: 767px) { .top-bar-msg { display: none; } .top-bar-inner { justify-content: center; } }

/* ============================================================
   Header
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 1000;
	background: var(--f-header-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--f-line);
}
.header-inner {
	max-width: 1280px; margin: 0 auto; padding: 16px 24px;
	display: flex; align-items: center; gap: 20px;
}

.brand-logo {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 800; font-size: 21px; letter-spacing: 0.01em;
	color: var(--f-text);
	display: flex; align-items: center; gap: 10px;
	flex-shrink: 0;
}
.brand-logo img { height: 36px; }
.brand-mark {
	width: 36px; height: 36px; border-radius: 10px;
	background: linear-gradient(135deg, var(--f-gold), var(--f-gold-dark));
	display: flex; align-items: center; justify-content: center;
	color: #1C1714; font-weight: 800;
}

/* Header search bar */
.header-search {
	flex: 1; max-width: 460px;
	display: flex; align-items: center;
	background: var(--f-surface-alt);
	border: 1.5px solid var(--f-line);
	border-radius: 999px;
	padding: 4px 4px 4px 18px;
	transition: border-color 0.15s ease;
}
.header-search:focus-within { border-color: var(--f-gold); }
.header-search input {
	flex: 1; border: none; background: transparent; outline: none;
	font-size: 13.5px; color: var(--f-text); padding: 9px 0;
}
.header-search input::placeholder { color: var(--f-text-muted); }
.header-search button {
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--f-gold); color: #1C1714; border: none;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; flex-shrink: 0; transition: background 0.15s ease;
}
.header-search button:hover { background: var(--f-gold-dark); }

.mobile-search {
	display: none; align-items: center;
	max-width: 1280px; margin: 0 auto; padding: 0 24px 14px;
	background: var(--f-surface-alt);
	border: 1.5px solid var(--f-line);
	border-radius: 999px; margin-left: 24px; margin-right: 24px;
}
.mobile-search.open { display: flex; }
.mobile-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 13.5px; color: var(--f-text); padding: 10px 14px; }
.mobile-search button { width: 36px; height: 36px; border-radius: 50%; background: var(--f-gold); color: #1C1714; border: none; flex-shrink: 0; margin-right: 4px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.icon-btn {
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--f-text); position: relative;
	border: 1.5px solid var(--f-line);
	transition: all 0.15s ease;
}
.icon-btn:hover { background: var(--f-gold-soft); border-color: var(--f-gold); color: var(--f-gold-dark); transform: translateY(-1px); }
.cart-badge {
	position: absolute; top: -4px; right: -4px;
	background: var(--f-gold); color: #1C1714;
	font-size: 10px; font-weight: 800;
	width: 18px; height: 18px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid var(--f-surface);
}
.cart-badge.bump { animation: cartBump 0.4s ease; }
@keyframes cartBump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }

.theme-toggle-front {
	display: flex; align-items: center; gap: 4px;
	background: var(--f-surface-alt); border: 1.5px solid var(--f-line);
	border-radius: 999px; padding: 4px;
}
.theme-toggle-front button {
	border: none; background: transparent;
	width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--f-text-muted); cursor: pointer; transition: all 0.15s ease;
}
.theme-toggle-front button.active { background: var(--f-gold); color: #1C1714; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--f-text); font-size: 19px; flex-shrink: 0; }

/* ============================================================
   Secondary nav row (categories)
   ============================================================ */
.nav-row { background: var(--f-surface); border-top: 1px solid var(--f-line-soft); }
.nav-row-inner {
	max-width: 1280px; margin: 0 auto; padding: 0 24px;
	display: flex; align-items: center; justify-content: space-between;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
	position: relative;
	font-size: 13px; font-weight: 600; color: var(--f-text);
	letter-spacing: 0.01em;
	padding: 14px 14px;
	transition: color 0.15s ease;
}
.main-nav > a::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 9px;
	height: 2px; background: var(--f-gold);
	transform: scaleX(0); transform-origin: left;
	transition: transform 0.2s ease;
}
.main-nav > a:hover, .main-nav > a.active { color: var(--f-gold-dark); }
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); }

.nav-row-extra { display: flex; align-items: center; gap: 22px; }
.nav-row-extra a {
	display: flex; align-items: center; gap: 6px;
	font-size: 12.5px; font-weight: 600; color: var(--f-text-muted);
}
.nav-row-extra a:hover { color: var(--f-gold-dark); }
.nav-row-extra i { font-size: 12px; color: var(--f-gold); }

/* ============================================================
   Nav dropdown (mega-panel style for sub-categories)
   ============================================================ */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
	position: relative;
	display: flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 600; color: var(--f-text);
	padding: 14px 14px;
	transition: color 0.15s ease;
}
.nav-dropdown-trigger::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 9px;
	height: 2px; background: var(--f-gold);
	transform: scaleX(0); transform-origin: left;
	transition: transform 0.2s ease;
}
.nav-caret { font-size: 8px; transition: transform 0.2s ease; opacity: 0.6; }
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--f-gold-dark); }
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: scaleX(1); }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); opacity: 1; }

.nav-dropdown-panel {
	position: absolute; top: 100%; left: 0;
	transform: translateY(6px);
	min-width: 280px;
	background: var(--f-surface);
	border: 1px solid var(--f-line);
	border-radius: var(--f-radius-md);
	box-shadow: var(--f-shadow-raised);
	padding: 18px;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-panel {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: translateY(2px);
}
.nav-dropdown-panel-header {
	display: flex; align-items: center; justify-content: space-between;
	padding-bottom: 12px; margin-bottom: 10px;
	border-bottom: 1px solid var(--f-line-soft);
}
.nav-dropdown-panel-header span {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700; font-size: 14px; color: var(--f-text);
}
.nav-dropdown-viewall {
	font-size: 11.5px; font-weight: 700; color: var(--f-gold-dark);
	display: flex; align-items: center; gap: 5px;
	text-transform: uppercase; letter-spacing: 0.03em;
}
.nav-dropdown-viewall i { font-size: 9px; transition: transform 0.15s ease; }
.nav-dropdown-viewall:hover i { transform: translateX(3px); }
.nav-dropdown-grid { display: flex; flex-direction: column; gap: 1px; }
.nav-dropdown-item {
	display: flex; align-items: center; gap: 8px;
	padding: 9px 10px;
	border-radius: var(--f-radius-sm);
	font-size: 13px; font-weight: 500;
	color: var(--f-text) !important;
}
.nav-dropdown-item i { font-size: 10px; color: var(--f-gold); opacity: 0.7; }
.nav-dropdown-item:hover { background: var(--f-gold-soft); color: var(--f-gold-dark) !important; }
.nav-dropdown-item:hover i { opacity: 1; }

@media (max-width: 991px) {
	.main-nav, .nav-row, .header-search, .nav-row-extra { display: none; }
	.mobile-menu-btn { display: block; }
}


/* ============================================================
   Mobile nav sub-category accordion
   ============================================================ */
.mobile-nav-group { border-bottom: 1px solid var(--f-line); }
.mobile-nav-group-header { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-group-header a { flex: 1; padding: 14px 0; font-size: 16px; font-weight: 600; border-bottom: none; }
.mobile-nav-expand-btn {
	background: none; border: none; color: var(--f-text-muted);
	padding: 14px 10px; font-size: 13px;
	transition: transform 0.2s ease;
}
.mobile-nav-expand-btn.open { transform: rotate(180deg); }
.mobile-nav-subitems {
	max-height: 0; overflow: hidden;
	transition: max-height 0.25s ease;
}
.mobile-nav-subitems.open { max-height: 600px; }
.mobile-nav-subitem {
	display: block; padding: 11px 0 11px 16px !important;
	font-size: 14px !important; font-weight: 500 !important;
	color: var(--f-text-muted) !important;
	border-bottom: 1px solid var(--f-line-soft) !important;
}
.mobile-nav-subitem:last-child { border-bottom: none !important; }

/* ============================================================
   Mobile slide-out nav panel
   ============================================================ */
.mobile-nav-panel {
	display: none; position: fixed; inset: 0; z-index: 1100;
	background: var(--f-bg); padding: 20px 24px; overflow-y: auto;
}
.mobile-nav-panel.open { display: block; }
.mobile-nav-panel > a { display: block; padding: 14px 0; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--f-line); }

/* ============================================================
   Buttons
   ============================================================ */
.btn-gold {
	background: var(--f-gold); color: #1C1714; border: 1px solid var(--f-gold);
	font-weight: 700; border-radius: var(--f-radius-sm);
	padding: 13px 28px; font-size: 14px; letter-spacing: 0.02em;
	transition: all 0.18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-gold:hover { background: var(--f-gold-dark); border-color: var(--f-gold-dark); transform: translateY(-1px); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline-gold {
	background: transparent; color: var(--f-text); border: 1.5px solid var(--f-line);
	font-weight: 600; border-radius: var(--f-radius-sm);
	padding: 12px 26px; font-size: 14px;
	transition: all 0.15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outline-gold:hover { border-color: var(--f-gold); color: var(--f-gold-dark); }

/* ============================================================
   Hero / Banners
   ============================================================ */
.hero-slide {
	position: relative; border-radius: var(--f-radius-lg); overflow: hidden;
	min-height: 420px; display: flex; align-items: center;
	background-size: 100% 100%; background-position: center;
}
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(28,23,20,0.65) 0%, rgba(28,23,20,0.15) 60%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 56px; max-width: 540px; color: #fff; }
.hero-content h1 { font-size: 40px; line-height: 1.15; margin-bottom: 14px; }
.hero-content p { font-size: 15.5px; opacity: 0.9; margin-bottom: 26px; }

/* ============================================================
   Product cards
   ============================================================ */
.product-card {
	background: var(--f-surface);
	border: 1px solid var(--f-line);
	border-radius: var(--f-radius-md);
	overflow: hidden;
	transition: all 0.2s ease;
	display: block;
	height: 100%;
}
.product-card:hover { box-shadow: var(--f-shadow-raised); transform: translateY(-3px); border-color: var(--f-gold); }
.product-card-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--f-surface-alt); }
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }
.product-card-badge {
	position: absolute; top: 10px; left: 10px;
	background: var(--f-gold); color: #1C1714;
	font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
	text-transform: uppercase; letter-spacing: 0.03em;
}
.product-card-body { padding: 14px 16px 16px; }
.product-card-name { font-size: 14px; font-weight: 600; color: var(--f-text); margin-bottom: 4px; line-height: 1.35; }
.product-card-price { display: flex; align-items: center; gap: 8px; }
.product-card-price .current { font-weight: 700; font-size: 15px; color: var(--f-text); }
.product-card-price .original { font-size: 12.5px; color: var(--f-text-muted); text-decoration: line-through; }

/* ============================================================
   Section headers
   ============================================================ */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-eyebrow { font-size: 12px; font-weight: 700; color: var(--f-gold-dark); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.section-title { font-size: 28px; margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--f-footer-bg); color: var(--f-footer-text); margin-top: 80px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 56px 24px 28px; }
.footer-col h6 { color: #fff; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--f-footer-text); font-size: 13.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--f-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--f-gold); color: #1C1714; }

/* ============================================================
   WhatsApp floating button
   ============================================================ */
.whatsapp-float {
	position: fixed; bottom: 24px; right: 24px; z-index: 1200;
	width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 28px; box-shadow: 0 6px 20px rgba(37,211,102,0.4);
	transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ============================================================
   Forms (checkout, account)
   ============================================================ */
.f-form-label { font-weight: 600; font-size: 13px; color: var(--f-text); margin-bottom: 6px; display: block; }
.f-form-control, .f-form-select {
	width: 100%; background: var(--f-surface); border: 1px solid var(--f-line); color: var(--f-text);
	border-radius: var(--f-radius-sm); padding: 11px 14px; font-size: 14px; outline: none;
}
.f-form-control:focus, .f-form-select:focus { border-color: var(--f-gold); box-shadow: 0 0 0 3px var(--f-gold-soft); }

/* ============================================================
   Cards / misc
   ============================================================ */
.f-card { background: var(--f-surface); border: 1px solid var(--f-line); border-radius: var(--f-radius-lg); padding: 24px; box-shadow: var(--f-shadow); }
.badge-soft-gold { background: var(--f-gold-soft); color: var(--f-gold-dark); padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-soft-success { background: rgba(30,142,90,0.12); color: var(--f-success); padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-soft-danger { background: rgba(192,57,43,0.12); color: var(--f-danger); padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--f-line); border-radius: var(--f-radius-sm); overflow: hidden; }
.qty-stepper button { width: 36px; height: 36px; border: none; background: var(--f-surface-alt); color: var(--f-text); font-size: 16px; cursor: pointer; }
.qty-stepper input { width: 44px; text-align: center; border: none; background: var(--f-surface); color: var(--f-text); font-weight: 600; }

.breadcrumb-trail { font-size: 12.5px; color: var(--f-text-muted); margin-bottom: 20px; }
.breadcrumb-trail a:hover { color: var(--f-gold-dark); }

.empty-state-front { text-align: center; padding: 80px 20px; color: var(--f-text-muted); }
