@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

:root {
    --white: #FFFFFF;
    --paper: #F6F3EB;
    --paper-2: #EEE9DB;
    --ink: #14150F;
    --ink-soft: #42463C;
    --muted: #83887B;
    --muted-2: #B0B4A5;
    --green: #0E3D2A;
    --green-2: #1D6146;
    --green-3: #082A1C;
    --green-dim: rgba(14, 61, 42, 0.07);
    --green-dim2: rgba(14, 61, 42, 0.12);
    --brass: #AD8036;
    --brass-2: #E0B15E;
    --brass-dim: rgba(173, 128, 54, 0.15);
    --clay: #B4552C;
    --clay-2: #D97544;
    --clay-dim: rgba(180, 85, 44, 0.12);
    --line: #E3DFCF;
    --line-soft: #EBE7D9;
    --radius: 4px;
    --ease: cubic-bezier(.16, .84, .44, 1);
    --shadow-sm: 0 2px 14px -6px rgba(13, 15, 12, 0.10);
    --shadow-md: 0 24px 50px -20px rgba(13, 15, 12, 0.16);
    --shadow-lg: 0 40px 90px -30px rgba(13, 15, 12, 0.22);
}

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

[x-cloak] {
    display: none !important;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink);
}

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

/* Luxury Header & Nav */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar {
    background-color: var(--green-3);
    color: var(--paper-2);
    font-size: 0.85rem;
    padding: 6px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.5px;
}

.brand-logo .badge-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    background: var(--brass-dim);
    color: var(--brass);
    padding: 2px 8px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
}

/* Search Bar */
.search-form {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    background-color: var(--paper);
    border: 1px solid var(--line);
    padding: 10px 16px 10px 42px;
    border-radius: 30px;
    font-size: 0.92rem;
    color: var(--ink);
    transition: all 0.3s var(--ease);
}

.search-input:focus {
    outline: none;
    border-color: var(--green);
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--green-dim);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ink-soft);
    background-color: transparent;
    transition: all 0.2s var(--ease);
}

.icon-btn:hover {
    background-color: var(--paper-2);
    color: var(--green);
}

.badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--clay);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Category Bar */
.category-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--line-soft);
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav .inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 32px;
}

.category-link {
    display: inline-block;
    padding: 12px 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
}

.category-link:hover, .category-link.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--green-2);
    box-shadow: var(--shadow-sm);
}

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

.btn-brass:hover {
    background-color: var(--brass-2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
    background-color: var(--green-dim);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--muted-2);
}

.product-card .media-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect ratio */
    background-color: var(--paper-2);
    overflow: hidden;
}

.product-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

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

.product-card .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--clay);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius);
    z-index: 2;
}

.product-card .btn-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    transition: all 0.2s var(--ease);
    z-index: 2;
}

.product-card .btn-wishlist:hover {
    background-color: var(--white);
    color: var(--clay);
}

.product-card .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.product-card .title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card .title:hover {
    color: var(--green);
}

.product-card .price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
}

.product-card .original-price {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: line-through;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--brass);
    font-size: 0.85rem;
}

/* Admin Dashboard Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--green-3);
    color: var(--paper);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .brand {
    padding: 0 24px 24px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brass-2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.admin-menu {
    list-style: none;
}

.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s var(--ease);
}

.admin-menu-item a:hover, .admin-menu-item.active a {
    background-color: rgba(255,255,255,0.08);
    color: var(--white);
    border-left: 4px solid var(--brass);
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    background-color: var(--paper);
}

.stat-card {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    margin: 8px 0;
}

/* Custom Table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.custom-table th {
    background-color: var(--paper-2);
    color: var(--ink-soft);
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--line);
}

.custom-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.92rem;
    color: var(--ink);
}

.custom-table tr:hover {
    background-color: var(--paper);
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: capitalize;
}

.badge-success { background-color: var(--green-dim2); color: var(--green); }
.badge-warning { background-color: var(--brass-dim); color: var(--brass); }
.badge-danger { background-color: var(--clay-dim); color: var(--clay); }
.badge-info { background-color: var(--paper-2); color: var(--ink-soft); }

/* Pro Level UI Utilities & Custom Image Slider */
.split-feature-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
    border-y: 1px solid var(--line);
    padding: 80px 24px;
    position: relative;
}

.split-feature-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .split-feature-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.slider-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    background: var(--paper-2);
    height: 480px;
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.slider-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(20,21,15,0.85) 0%, rgba(20,21,15,0) 100%);
    padding: 32px 28px 24px;
    color: var(--white);
    z-index: 5;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--line);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.25s var(--ease);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.slider-btn-prev { left: 16px; }
.slider-btn-next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.slider-dot.active {
    background: var(--brass-2);
    width: 24px;
    border-radius: 10px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0 36px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: var(--ink-soft);
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-dim2);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Glassmorphism & Hover Polishes */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.pro-badge-brass {
    background: var(--brass-dim);
    color: var(--brass);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
}

