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

:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8FAFC;
    --accent-color: #D4AF37; /* Elegant Gold */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border-color: #F1F5F9;
    --sidebar-width: 280px;
    --header-height: 80px;
    --card-bg: #FFFFFF;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* Header */
.velvet-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
}

.header-container-v {
    width: 100%;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.logo-v {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.search-bar-v {
    flex-grow: 1;
    max-width: 600px;
    background: #F1F5F9;
    border-radius: 99px;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-bar-v i { color: var(--text-secondary); font-size: 0.9rem; }
.search-bar-v input {
    background: none; border: none; color: var(--text-primary); width: 100%; outline: none; font-size: 0.9rem;
}

.header-actions-v { display: flex; gap: 2rem; align-items: center; }
.action-btn-v { background: none; border: none; color: var(--text-primary); font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.action-btn-v:hover { color: var(--accent-color); }
.cart-count-v {
    position: absolute; top: -5px; right: -8px; background: var(--text-primary); color: #fff;
    font-size: 0.65rem; padding: 2px 5px; border-radius: 50%; font-weight: 900;
}

/* Layout */
.velvet-layout {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.velvet-sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    position: fixed;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section-v { margin-bottom: 3rem; }
.sidebar-title-v {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.sidebar-links-v { list-style: none; }
.sidebar-links-v li { margin-bottom: 0.5rem; }
.sidebar-links-v a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: 0.3s;
}
.sidebar-links-v a i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-links-v a:hover, .sidebar-links-v a.active {
    color: var(--text-primary);
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.sidebar-links-v a.active { color: var(--accent-color); font-weight: 700; }

.sidebar-footer-v { margin-top: auto; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.sidebar-footer-v a { display: flex; align-items: center; gap: 1rem; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; margin-bottom: 1rem; }

/* Main Content */
.velvet-main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
}

/* Hero Section within Sidebar Layout */
.hero-mini-v {
    background: #111;
    border-radius: 2rem;
    padding: 5rem;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    color: #fff;
}
.hero-mini-v::after {
    content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
    background: url('https://images.unsplash.com/photo-1594035910387-fea47794261f?auto=format&fit=crop&q=80&w=800');
    background-size: cover; opacity: 0.4; mask-image: linear-gradient(to left, black, transparent);
}

.hero-mini-text h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.1; color: #fff; }
.hero-mini-text p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 450px; margin-bottom: 2rem; }

.btn-v {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: 0.3s;
}
.btn-v:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }

/* Product Grid */
.v-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 2.5rem; 
}

@media (max-width: 1280px) {
    .v-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .v-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 600px) {
    .v-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
.v-card {
    background: transparent;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.v-img-box { 
    aspect-ratio: 1 / 1.2;
    height: auto;
    border-radius: 1.5rem; 
    overflow: hidden; 
    background: #F8FAFC; 
    margin-bottom: 1.25rem; 
    position: relative; 
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.v-card:hover .v-img-box {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.v-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.v-card:hover .v-img-box img { transform: scale(1.08); }

.v-quick-add-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    padding: 0.8rem;
    border-radius: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transform: translateY(120%);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 5;
}
.v-card:hover .v-quick-add-overlay { transform: translateY(0); }
.v-quick-add-overlay:hover { background: var(--text-primary); color: #fff; }

@media (max-width: 768px) {
    .v-quick-add-overlay { 
        transform: translateY(0); 
        padding: 0.6rem;
        font-size: 0.65rem;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }
    .v-img-box { border-radius: 1rem; }
}

.v-badge {
    position: absolute; top: 1.25rem; left: 1.25rem; background: var(--text-primary); color: #fff;
    font-size: 0.65rem; font-weight: 800; padding: 0.5rem 1rem; border-radius: 99px; text-transform: uppercase;
    letter-spacing: 0.1em; z-index: 2;
}

.v-details { padding: 0 0.25rem; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.v-name { font-size: 1.1rem; margin-bottom: 0.25rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.v-price { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); }

/* Collections Grid */
.v-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}
.v-col-card {
    display: block;
    border-radius: 2.5rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    text-decoration: none;
}
.v-col-img { width: 100%; height: 100%; position: relative; }
.v-col-img img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1); filter: brightness(0.85); }
.v-col-card:hover .v-col-img img { transform: scale(1.1); filter: brightness(0.6); }

.v-col-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.v-col-name { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; transform: translateY(10px); transition: 0.5s; }
.v-col-link { 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    color: var(--accent-color); 
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s 0.1s;
}
.v-col-card:hover .v-col-name { transform: translateY(0); }
.v-col-card:hover .v-col-link { opacity: 1; transform: translateY(0); }

/* Combo Cards */
.v-combo-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    overflow: hidden;
    text-decoration: none;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.v-combo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 80px -15px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}
.v-combo-img { width: 50%; height: 400px; overflow: hidden; }
.v-combo-img img { width: 100%; height: 100%; object-fit: cover; transition: 1s; }
.v-combo-card:hover .v-combo-img img { transform: scale(1.1); }
.v-combo-info { width: 50%; padding: 2.5rem; display: flex; flex-direction: column; }

@media (max-width: 1200px) {
    .v-combo-card { flex-direction: column; }
    .v-combo-img { width: 100%; height: 300px; }
    .v-combo-info { width: 100%; }
}

/* Mini Footer */
.velvet-mini-footer { margin-top: 8rem; padding-top: 3rem; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-secondary); font-size: 0.8rem; letter-spacing: 0.1em; }

@media (max-width: 1024px) {
    .velvet-sidebar { display: none; }
    .velvet-main-content { margin-left: 0; padding: 2rem; }
}
