:root { --secondary-rgb: 196,154,74; --primary-rgb: 26,43,76; }

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: color 0.3s; }

::selection { background: var(--secondary); color: #000; }

.section-padding { padding: 6rem 0; }
@media (max-width: 992px) { .section-padding { padding: 4rem 0; } }
@media (max-width: 768px) { .section-padding { padding: 3rem 0; } }

.font-display { font-family: 'Playfair Display', serif; }

.section-alt { background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%); }
.section-dark { background: linear-gradient(135deg, #0D1B2A 0%, #1A2B4C 100%); position: relative; }
.section-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(var(--secondary-rgb),0.04) 0%, transparent 60%); pointer-events: none; }
.section-gradient { background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%); }

.card-premium { background: #fff; border-radius: 20px; border: 1px solid rgba(226,232,240,0.6); box-shadow: 0 4px 24px rgba(0,0,0,0.04); transition: all 0.4s cubic-bezier(0.16,1,0.3,1); overflow: hidden; }
.card-premium:hover { transform: translateY(-8px); box-shadow: 0 24px 80px rgba(var(--primary-rgb),0.08); border-color: rgba(var(--secondary-rgb),0.2); }

.accent-line { width: 60px; height: 3px; background: var(--secondary); border-radius: 2px; }
.accent-line.center { margin-left: auto; margin-right: auto; }
.accent-line.thin { height: 2px; width: 40px; }
.accent-line-group { display: flex; gap: 6px; align-items: center; justify-content: center; }
.accent-line-group .line { height: 3px; border-radius: 2px; background: var(--secondary); }
.accent-line-group .line:nth-child(1) { width: 60px; }
.accent-line-group .line:nth-child(2) { width: 20px; opacity: 0.5; }
.accent-line-group .line:nth-child(3) { width: 10px; opacity: 0.3; }

.badge-premium { display: inline-flex; align-items: center; gap: 6px; background: rgba(var(--secondary-rgb),0.1); color: var(--secondary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 16px; border-radius: 50px; border: 1px solid rgba(var(--secondary-rgb),0.2); }

.section-header-premium { text-align: center; margin-bottom: 3.5rem; }
.section-header-premium .badge-premium { margin-bottom: 1rem; }
.section-header-premium h2 { font-size: 2.8rem; font-weight: 900; color: var(--primary); margin-bottom: 0.75rem; }
.section-header-premium p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }
@media (max-width: 768px) { .section-header-premium h2 { font-size: 2rem; } }

.texture-dots { background-image: radial-gradient(rgba(var(--primary-rgb),0.03) 1px, transparent 1px); background-size: 20px 20px; }
.texture-cross { background-image: radial-gradient(circle, rgba(var(--secondary-rgb),0.04) 1px, transparent 1px); background-size: 24px 24px; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--secondary), var(--secondary-light)); z-index: 10001; width: 0%; transition: width 0.1s linear; }

:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

.hover-shadow-md { transition: box-shadow 0.4s ease; }
.hover-shadow-md:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.content-spacing > * + * { margin-top: 1rem; }
.content-spacing-lg > * + * { margin-top: 1.5rem; }

.shop-hero { position: relative; padding: 80px 0 60px; background: linear-gradient(135deg, #0D1B2A 0%, #1A2B4C 50%, #2A3B4C 100%); overflow: hidden; text-align: center; }
.shop-hero-overlay { position: absolute; inset: 0; background: url('data:image/svg+xml,...') center/cover; opacity: 0.1; }
.shop-hero-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: #fff; }
.shop-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-top: 8px; }

.shop-container { padding: 40px 0 80px; background: var(--bg-body); min-height: 60vh; }
.shop-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.widget-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; transition: border-color 0.3s; }
.search-box:focus-within { border-color: var(--secondary); }
.search-box input { flex: 1; border: none; padding: 10px 14px; font-size: 14px; outline: none; }
.search-box button { background: var(--primary); color: #fff; border: none; padding: 10px 16px; cursor: pointer; }
.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 8px; color: #475569; font-size: 14px; transition: all 0.3s; }
.category-item:hover, .category-item.active { background: rgba(var(--secondary-rgb),0.06); color: var(--secondary); }
.cat-count { background: #f1f5f9; padding: 2px 10px; border-radius: 20px; font-size: 12px; color: #64748b; }
.category-item.active .cat-count { background: var(--secondary); color: #000; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding: 16px 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.toolbar-title { font-size: 18px; font-weight: 700; color: var(--primary); margin: 0; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select { padding: 8px 14px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 14px; color: #475569; background: #fff; cursor: pointer; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #94a3b8; cursor: pointer; transition: all 0.3s; }
.view-btn.active, .view-btn:hover { background: var(--secondary); color: #000; border-color: var(--secondary); }

.product-grid { display: grid; gap: 24px; }
.product-grid.grid-view { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: all 0.4s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.product-image { position: relative; height: 240px; overflow: hidden; background: #f1f5f9; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge-sale { background: #ef4444; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-new { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.product-action-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #e2e8f0; color: #475569; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.product-action-btn:hover { background: var(--secondary); color: #000; border-color: var(--secondary); }
.product-info { padding: 20px; }
.product-category { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-name { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 20px; font-weight: 700; color: var(--primary); }
.price-old { font-size: 14px; color: #94a3b8; text-decoration: line-through; }

.product-detail-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 40px; }
.product-gallery-main { position: relative; border-radius: 16px; overflow: hidden; background: #f1f5f9; margin-bottom: 16px; }
.product-gallery-main img { width: 100%; height: 450px; object-fit: cover; }
.sale-badge { position: absolute; top: 16px; left: 16px; background: #ef4444; color: #fff; padding: 6px 16px; border-radius: 25px; font-weight: 700; font-size: 14px; }
.product-gallery-thumbs { display: flex; gap: 10px; }
.thumb-item { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: all 0.3s; }
.thumb-item:hover, .thumb-item.active { border-color: var(--secondary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-meta { margin: 24px 0; padding: 20px 0; border-top: 1px solid #e2e8f0; }
.meta-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.meta-label { color: #64748b; font-weight: 500; }
.meta-value { color: #1e293b; font-weight: 600; }
.quantity-selector { display: flex; align-items: center; gap: 0; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.qty-btn { width: 44px; height: 44px; border: none; background: #f1f5f9; color: #475569; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.qty-btn:hover { background: var(--secondary); color: #000; }
.qty-input { width: 60px; text-align: center; border: none; font-size: 16px; font-weight: 600; color: #1e293b; outline: none; }

.cart-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 28px; margin-bottom: 24px; }
.cart-section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid rgba(var(--secondary-rgb),0.2); display: flex; align-items: center; gap: 10px; color: var(--primary); }
.cart-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f1f5f9; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 16px; font-weight: 600; color: #1e293b; }
.cart-item-price { font-size: 14px; color: #64748b; }
.cart-item-total { font-size: 18px; font-weight: 700; color: var(--primary); text-align: right; min-width: 100px; }
.cart-summary-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 28px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 15px; }
.summary-row.total { border-top: 2px solid #e2e8f0; margin-top: 8px; padding-top: 16px; font-size: 20px; font-weight: 700; color: var(--primary); }

.checkout-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 32px; }
.form-label-custom { font-weight: 600; font-size: 14px; color: #1e293b; margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 14px; transition: all 0.3s; outline: none; background: #fff; color: #1e293b; }
.form-input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(var(--secondary-rgb),0.1); }
.form-input.error { border-color: #ef4444; }
textarea.form-input { min-height: 100px; resize: vertical; }
.form-select-custom { width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 14px; background: #fff; color: #1e293b; cursor: pointer; outline: none; appearance: auto; }
.stripe-card-wrap { padding: 16px; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; }
.stripe-card-wrap:focus-within { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(var(--secondary-rgb),0.1); }

.admin-body { background: #f1f5f9; }
.sidebar { width: 260px; background: #0D1B2A; color: #fff; position: fixed; top: 0; left: 0; height: 100vh; z-index: 1000; overflow-y: auto; }
.sidebar-brand { padding: 24px 20px; border-bottom: 1px solid rgba(196,154,74,0.1); }
.sidebar-brand h5 { color: #fff; font-weight: 700; margin: 0; }
.sidebar-nav { padding: 12px 0; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.7); transition: all 0.3s; font-size: 14px; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(var(--secondary-rgb),0.1); color: var(--secondary); }
.main-content { margin-left: 260px; min-height: 100vh; }
.topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 30px; display: flex; justify-content: space-between; align-items: center; }
.stat-card-dash { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0D1B2A, #1A2B4C); padding: 20px; }
.auth-card { background: #fff; border-radius: 24px; padding: 48px 40px; width: 100%; max-width: 440px; box-shadow: 0 25px 60px rgba(0,0,0,0.2); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--primary); }
.auth-subtitle { font-size: 14px; color: #64748b; margin-top: 4px; }

.booking-form-container, .partnership-form-container, .invite-form-container { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 40px; margin-bottom: 24px; }

.success-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.success-card { text-align: center; padding: 60px 40px; background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); max-width: 500px; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 24px; }

.flash-messages { position: fixed; top: 90px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.alert { padding: 16px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: slideInRight 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 64px; color: #cbd5e1; }

.pagination-wrap { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.page-link { padding: 10px 16px; border-radius: 8px; border: 1px solid #e2e8f0; color: #475569; font-size: 14px; transition: all 0.3s; background: #fff; }
.page-link:hover, .page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.g-4 > * { padding-left: 0.75rem; padding-right: 0.75rem; margin-bottom: 1.5rem; }
.g-5 > * { padding-left: 1rem; padding-right: 1rem; margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-muted { color: #64748b; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.position-relative { position: relative; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.rounded-circle { border-radius: 50%; }
.object-fit-cover { object-fit: cover; }

@media (max-width: 768px) {
    .shop-hero-title { font-size: 1.8rem; }
    .product-detail-wrap { padding: 20px; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-total { text-align: left; min-width: auto; }
    .checkout-section { padding: 20px; }
    .product-gallery-main img { height: 280px; }
}

@media (max-width: 576px) {
    .shop-hero { padding: 60px 0 40px; }
    .shop-toolbar { flex-direction: column; }
}

.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--secondary), var(--primary), var(--secondary)); }
@media (max-width: 768px) { .timeline::before { left: 20px; } }
.timeline-item { position: relative; padding-left: 160px; margin-bottom: 3rem; }
@media (max-width: 768px) { .timeline-item { padding-left: 50px; } }
.timeline-year { position: absolute; left: 0; top: 0; width: 100px; text-align: right; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--secondary); }
@media (max-width: 768px) { .timeline-year { width: auto; font-size: 1.1rem; left: 0; text-align: left; } }
.timeline-year::after { content: ''; position: absolute; right: -52px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--secondary); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--secondary); }
@media (max-width: 768px) { .timeline-year::after { right: -28px; } }
.timeline-content { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; transition: all 0.3s; }
.timeline-content:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-2px); }
.timeline-content h5 { color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.timeline-content p { color: #64748b; font-size: 0.95rem; margin-bottom: 0; }

.search-box { display: flex; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; transition: border-color 0.3s; }
.search-box:focus-within { border-color: var(--secondary); }
.search-box input { flex: 1; border: none; padding: 10px 14px; font-size: 14px; outline: none; }
.search-box button { background: var(--primary); color: #fff; border: none; padding: 10px 16px; cursor: pointer; }

.breadcrumb { background: transparent; padding: 0; margin: 12px 0 0; justify-content: center; }
.breadcrumb-item { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--secondary); }
.breadcrumb-item.active { color: var(--secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }
