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

/* --- Reset & Base Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --color-bg-dark: #0a0908;
    --color-primary: #49111c;
    --color-bg-light: #f2f4f3;
    --color-accent: #a9927d;
    --color-accent-dark: #5e503f;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --color-text-muted: #757575;
    
    --font-header: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --header-height: 80px;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-bg-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: var(--font-body);
    background: none;
    border: none;
    cursor: pointer;
}



/* --- Helper Classes --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.section-padding {
    padding: 80px 0;
}

/* --- Premium Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* --- Custom Minimal Page Loader --- */
#brand-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(242, 244, 243, 0.45); /* Light translucent matching color scheme */
    backdrop-filter: blur(15px); /* Premium backdrop blur */
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.loader-bar-container {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loader-letters {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-bg-dark);
    letter-spacing: 0.15em;
    margin-right: -0.15em;
    display: flex;
    justify-content: center;
}

.loader-letters span {
    opacity: 0.2;
    animation: letter-fade 0.8s ease-in-out forwards;
}

.loader-letters .l1 {
    animation-delay: 0.1s;
}

.loader-letters .l2 {
    animation-delay: 0.35s;
}

@keyframes letter-fade {
    to { opacity: 1; }
}

.loader-bar-track {
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-primary); /* Deep Wine brand color */
    position: absolute;
    top: 0;
    left: 0;
    animation: loader-progress 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes loader-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

#brand-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Premium Page Transition Shimmer / Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, #e4e7e6 25%, #f2f4f3 50%, #e4e7e6 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.8s infinite ease-in-out;
}

@keyframes loading-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #e4e7e6;
}

.skeleton-title {
    height: 18px;
    width: 70%;
    margin-top: 15px;
    border-radius: 2px;
}

.skeleton-price {
    height: 14px;
    width: 40%;
    margin-top: 10px;
    border-radius: 2px;
}

/* --- Shared Navigation Components --- */
header {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 10px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-icon-btn {
    position: relative;
    color: var(--color-bg-dark);
    transition: color var(--transition-fast);
}

.nav-icon-btn:hover {
    color: var(--color-primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Bottom Navigation Bar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
    z-index: 101;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-dark);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: 20%;
    height: 100%;
    position: relative;
}

.mobile-nav-item svg {
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: var(--color-primary);
}

.mobile-nav-item.active svg {
    fill: var(--color-primary);
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid var(--color-bg-dark);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-bg-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-bg-dark);
}

.btn-secondary:hover {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.btn-accent {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-icon-only {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon-only:hover {
    border-color: var(--color-bg-dark);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-bg-dark);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-bg-dark);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- Product Cards Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card-media {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f7f7f7;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-smooth);
}

/* Card slider track layout */
.card-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.card-slider-wrapper::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.card-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    display: block;
}

.card-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation arrows overlay */
.card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
    transition: opacity var(--transition-fast), color var(--transition-fast);
    color: var(--color-bg-dark);
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-arrow-prev {
    left: 10px;
}

.card-arrow-next {
    right: 10px;
}

.product-card:hover .card-arrow {
    opacity: 0.6;
}

.card-arrow:hover {
    opacity: 1 !important;
    color: var(--color-primary);
}

.wishlist-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color var(--transition-fast);
    color: var(--color-bg-dark);
}

.wishlist-toggle-btn svg {
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.7));
}

.wishlist-toggle-btn.saved {
    color: var(--color-primary);
}

.wishlist-toggle-btn:hover {
    background-color: transparent;
    color: var(--color-primary);
}

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

.product-card-category {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.product-card-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.product-card-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-bg-dark);
}

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

/* --- Custom Toast Notification --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
}

.toast {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 15px 25px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: toast-fade-in 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes toast-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.fade-out {
    animation: toast-fade-out 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes toast-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* --- Hero & Banners --- */
.hero-slider {
    position: relative;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-dark);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 650px;
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Editorial Banner Section */
.editorial-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background-color: var(--color-white);
    align-items: center;
}

.editorial-media {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.editorial-content {
    padding: 80px;
}

.editorial-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent-dark);
    margin-bottom: 20px;
    display: block;
}

.editorial-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.editorial-desc {
    color: var(--color-text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

/* --- Footer --- */
footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 80px 0 120px; /* space for mobile bottom bar */
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #a0a0a0;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #757575;
    letter-spacing: 0.05em;
}

/* --- Responsive Settings --- */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }
    .container {
        padding: 0 20px;
    }
    .nav-links,
    .nav-icons {
        display: none;
    }
    header .container {
        justify-content: center;
    }
    .mobile-nav {
        display: flex;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .editorial-banner {
        grid-template-columns: 1fr;
    }
    .editorial-media {
        height: 400px;
    }
    .editorial-content {
        padding: 40px 20px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Card slider mobile touch snap and hide arrows */
@media (max-width: 900px) {
    .card-slider-wrapper {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }
    .card-arrow {
        display: none !important;
    }
}

/* Specs Table Layout for Details Page */
.product-specs-box {
    border-top: 1px dashed var(--color-border);
    padding-top: 25px;
    margin-top: 25px;
}
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.85rem;
}
.product-specs-table tr {
    border-bottom: 1px solid var(--color-border);
}
.product-specs-table tr:last-child {
    border-bottom: none;
}
.product-specs-table td {
    padding: 8px 10px;
    line-height: 1.6;
}
.product-specs-table td.spec-bold {
    font-weight: 600;
    color: var(--color-bg-dark);
}
.product-specs-table td.spec-normal {
    color: var(--color-text-muted);
}

/* Related Products Section styling */
.related-products-section {
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
    padding-top: 60px;
    width: 100%;
}
.related-products-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.1em;
}

/* --- Upload Progress Overlay --- */
.upload-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(242, 244, 243, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.upload-progress-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.progress-circle-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -75%);
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--color-bg-dark);
}

.progress-label {
    margin-top: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

/* --- Custom Confirm Modal --- */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(242, 244, 243, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.custom-confirm-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.confirm-box-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 35px 40px;
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    position: relative;
}

.confirm-box-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--color-bg-dark);
}

.confirm-box-message {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.confirm-box-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* --- Admin Global Layout Styles --- */
.admin-container {
    padding: 60px 0 100px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.admin-nav-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.admin-nav-link {
    padding: 10px 20px;
    border: 1px solid var(--color-bg-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.admin-nav-link.active {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.admin-nav-link:hover:not(.active) {
    background-color: rgba(10, 9, 8, 0.05);
}

.admin-orders-table-wrapper {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    min-width: 0;
}

.products-manager-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.products-manager-grid > div {
    min-width: 0;
}

.admin-form-box {
    background-color: var(--color-white);
    padding: 30px;
    border: 1px solid var(--color-border);
    align-self: flex-start;
    min-width: 0;
}

.table-thumbnail {
    width: 50px;
    aspect-ratio: 3/4;
    object-fit: cover;
    background-color: var(--color-bg-light);
}

.size-checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.size-checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-bg-light);
}

.admin-status-select {
    padding: 5px 10px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.75rem;
    background-color: var(--color-white);
}

/* Responsive Admin Rules */
@media (max-width: 950px) {
    .products-manager-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .admin-container {
        padding: 40px 15px 100px;
    }
    .admin-orders-table-wrapper,
    .admin-form-box {
        padding: 20px;
    }
    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .admin-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }
    .admin-header-row a.btn {
        align-self: center;
    }
    .admin-nav-bar {
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 30px;
        max-width: 100%;
    }
    .admin-nav-bar::-webkit-scrollbar {
        height: 4px;
    }
    .admin-nav-bar::-webkit-scrollbar-thumb {
        background-color: var(--color-accent);
        border-radius: 2px;
    }
    .admin-nav-link {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}/* --- Boutique Tooltip Helper --- */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.tooltip-icon {
    color: var(--color-accent-dark);
    display: inline-flex;
    transition: color var(--transition-fast);
}

.tooltip-icon:hover {
    color: var(--color-primary);
}

.tooltip-content {
    visibility: hidden;
    width: 280px;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    text-align: left;
    border-radius: 4px;
    padding: 12px 15px;
    position: absolute;
    z-index: 10;
    bottom: 130%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    pointer-events: none;
    text-transform: none; /* prevent uppercase from parent labels */
    letter-spacing: normal;
}

/* Tooltip Arrow */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-bg-dark) transparent transparent transparent;
}

/* Hover & Focus state */
.tooltip-container:hover .tooltip-content,
.tooltip-container:focus-within .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Adjust tooltip placement on mobile to stay within viewport bounds */
@media (max-width: 600px) {
    .tooltip-content {
        left: -100px;
        transform: none;
        width: 240px;
    }
    .tooltip-content::after {
        left: 108px;
        margin-left: 0;
    }
    .tooltip-container:hover .tooltip-content,
    .tooltip-container:focus-within .tooltip-content {
        transform: translateY(-5px);
    }
}

/* --- Admin Gallery Manager Style --- */
.admin-gallery-manager {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    border: 1px dashed var(--color-border);
    background-color: var(--color-bg-light);
    min-height: 100px;
}

.gallery-item-wrapper {
    position: relative;
    width: 100px;
    aspect-ratio: 3/4;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform var(--transition-fast);
}

.gallery-item-wrapper:hover {
    transform: translateY(-2px);
}

.gallery-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tool controls overlay */
.gallery-item-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 9, 8, 0.75);
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item-wrapper:hover .gallery-item-controls {
    opacity: 1;
}

.gallery-control-btn {
    color: var(--color-white);
    font-size: 0.7rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.gallery-control-btn:hover {
    color: var(--color-accent);
}

.gallery-control-btn.delete:hover {
    color: #ff6b6b;
}

/* Uploading Overlay per image */
.gallery-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.gallery-progress-ring {
    transform: rotate(-90deg);
}

.gallery-progress-fill {
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
    transition: stroke-dashoffset 0.1s linear;
}

.gallery-progress-text {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

/* --- Homepage 3D Category Card Swiper --- */
.category-swiper-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 0;
}

.swiper-background-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(169, 146, 125, 0.09) 0%, rgba(10, 9, 8, 0.98) 75%);
    pointer-events: none;
    z-index: 1;
}

.swiper-container-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.swiper-title-area {
    text-align: center;
    margin-bottom: 20px;
}

.swiper-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 10px;
}

.swiper-main-title {
    font-family: var(--font-header);
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.swiper-wrapper-3d {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin-top: 20px;
}

.cards-stack {
    position: relative;
    width: 320px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.card-stack-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s, filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform-origin: bottom center;
    will-change: transform, opacity;
}

.card-stack-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.card-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.card-stack-item:hover img {
    transform: scale(1.04);
}

.card-stack-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px 25px;
    background: linear-gradient(to top, rgba(10, 9, 8, 0.95) 0%, rgba(10, 9, 8, 0) 100%);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    
    /* Premium fade-up transition */
    opacity: 0;
    transform: translate3d(0, 15px, 0);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.card-stack-item.active-card .card-stack-overlay {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.card-stack-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.card-stack-action {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.card-stack-item:hover .card-stack-action {
    color: var(--color-white);
}

.swiper-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(10, 9, 8, 0.7);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all var(--transition-fast);
}

.swiper-arrow:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    border-color: var(--color-white);
}

.swiper-arrow-left {
    left: calc(50% - 250px);
}

.swiper-arrow-right {
    right: calc(50% - 250px);
}

/* --- Search tag cloud pills --- */
.search-tag-pill {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.search-tag-pill:hover {
    border-color: var(--color-bg-dark);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

@media (max-width: 900px) {
    .category-swiper-section {
        height: calc(100vh - 60px); /* Height minus mobile nav */
        padding: 20px 0;
        min-height: 480px;
    }
    .cards-stack {
        width: 240px;
        height: 320px;
    }
    .swiper-arrow {
        width: 36px;
        height: 36px;
        border-color: rgba(255, 255, 255, 0.25);
        background-color: rgba(10, 9, 8, 0.85);
    }
    .swiper-arrow svg {
        width: 16px !important;
        height: 16px !important;
    }
    .swiper-arrow-left {
        left: calc(50% - 170px);
    }
    .swiper-arrow-right {
        right: calc(50% - 170px);
    }
    .swiper-main-title {
        font-size: 1.8rem;
    }
    .card-stack-overlay {
        padding: 20px 15px;
    }
    .card-stack-title {
        font-size: 1.15rem;
    }
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Staggered Delay classes */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* --- Clickable Banners & Layout Modifications --- */
.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-slide.no-overlay::after {
    display: none !important;
}
.editorial-banner-link {
    display: block;
    width: 100%;
}
.editorial-banner.no-text {
    grid-template-columns: 1fr !important;
}
.editorial-banner.no-text .editorial-media {
    height: 450px !important;
}




