/* css/style.css - V4 Premium SaaS & Minimalist Aesthetic */

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

:root {
    --primary-color: #D4AF37;
    /* Metallic Gold */
    --primary-dark: #b8952b;
    /* Darker Gold for hover */
    --secondary-color: #1e120b;
    /* Almost Black/Deep Espresso */
    --accent-color: #f7f1e3;
    /* Soft Cream */
    --text-color: #4a4a4a;
    /* Soft Dark Grey */
    --text-muted: #8e8e8e;
    --background-color: #fafaf9;
    /* Ultra light grey/warm white */
    --card-bg: #FFFFFF;

    /* V4 SaaS Shadows & Borders */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.title-font {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ==========================================
   PUBLIC HEADER (V8 Floating Pill)
   ========================================== */
.v8-header {
    background: transparent;
    padding: 0;
    z-index: 1030;
    transition: all 0.4s ease;
}

.v8-header.scrolled {
    padding-top: 5px;
    /* slight shrink */
}

/* Floating Pill Navbar */
.v8-navbar-pill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
}

.v8-header.scrolled .v8-navbar-pill {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 40px rgba(59, 36, 22, 0.08) !important;
}

/* Logo */
.v8-logo-link {
    display: block;
    border-radius: 50%;
}

.v8-logo-img {
    height: 60px;
    /* Constrained inside the pill */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@media (max-width: 991px) {
    .v8-navbar-pill {
        border-radius: 20px;
        /* Less rounded on mobile so it fits the width better */
        margin: 0 5px;
    }

    .v8-logo-img {
        height: 50px;
    }
}

/* Desktop Navigation */
.v8-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.v8-nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.v8-nav-link:hover {
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

/* Dropdown styling */
.v8-dropdown-hover:hover .dropdown-menu {
    display: block;
    margin-top: 8px;
    animation: dropdownPopV8 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v8-dropdown-hover .dropdown-menu {
    display: none;
    margin-top: 8px;
}

/* Invisible bridge to keep hover state active when moving from link to menu */
.v8-dropdown-hover .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.v8-dropdown-menu {
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 280px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

@keyframes dropdownPopV8 {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.v8-dropdown-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.v8-dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Modern Action Buttons Layer */
.v8-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.v8-action-btn.btn-login {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.v8-action-btn.btn-login:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--secondary-color);
}

.v8-action-btn.btn-cart {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.v8-action-btn.btn-cart:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

@media (max-width: 991px) {
    .v8-action-btn {
        padding: 10px;
        width: 45px;
        height: 45px;
    }

    .v8-nav-center {
        position: static;
        transform: none;
    }
}

/* ==========================================
   PUBLIC HERO SECTION (V9 Abstract Design)
   ========================================== */
.v9-hero-section {
    position: relative;
    background-color: var(--secondary-color);
    overflow: hidden;
}

/* Abstract Background Blobs */
.v9-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.v9-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0) 70%);
    top: -200px;
    right: -100px;
}

.v9-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.5) 0%, rgba(139, 69, 19, 0) 70%);
    bottom: -150px;
    left: -150px;
}

/* Typography */
.v9-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-primary-color {
    color: var(--primary-color);
}

.v9-hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.6;
}

.v9-badge {
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Image Frame */
.v9-hero-image-container {
    padding: 20px;
}

.v9-image-frame {
    z-index: 1;
}

/* Floating Badges */
.v9-floating-badge {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.top-badge {
    top: 50px;
    left: -40px;
    animation: floatV9 4s ease-in-out infinite;
}

@keyframes floatV9 {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Buttons */
.v9-btn-primary {
    background: var(--primary-color);
    color: #1e120b;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.v9-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.v9-btn-secondary {
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.v9-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

@media (max-width: 991px) {
    .v9-hero-title {
        font-size: 3rem;
    }
}

/* ==========================================
   PRODUCT CARDS (V4 Borderless & Clean)
   ========================================== */
.category-title {
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

.product-card {
    border-radius: var(--border-radius-lg);
    background: var(--card-bg);
    transition: var(--transition-smooth);
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
}

.product-img-wrapper {
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-8px);
}

.product-card:hover .product-img {
    transform: scale(1.05);
    /* Reduced scale for elegance */
}

/* V4 Badges & Tags */
.tag-discount {
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.6em 1.2em;
    border-radius: var(--border-radius-pill);
    background-color: var(--secondary-color) !important;
    color: #fff;
    letter-spacing: 1px;
}

.product-card .card-body {
    padding: 2rem !important;
}

.product-card .card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
}

.product-card .text-muted {
    color: var(--text-muted) !important;
}

.product-card .bg-light {
    background-color: var(--background-color) !important;
    border: none !important;
    border-radius: var(--border-radius-sm);
}

/* ==========================================
   BUTTONS GLOBAL V4
   ========================================== */
.btn {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary-v4 {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transition: var(--transition-fast);
}

.btn-primary-v4:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-order {
    transition: var(--transition-fast);
}

.btn-order:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ==========================================
   PUBLIC V9 MODERN FOOTER
   ========================================== */
.v9-footer {
    background-color: var(--secondary-color);
    color: #fff;
}

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

.font-10 {
    font-size: 10px;
}

.hover-white:hover {
    color: var(--primary-color) !important;
    transform: translateX(4px);
    display: inline-block;
}

.v9-contact-pill {
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.v9-contact-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Base Responsive Fixes */
@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }

    .title-font {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .product-card .card-body {
        padding: 1.5rem !important;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================
   V9 PRODUCT CARDS (CATALOGO)
   ========================================= */
.boutique-card,
.product-card {
    border: none !important;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.boutique-card:hover,
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(59, 36, 22, 0.15) !important;
}

.boutique-img-wrapper,
.product-img-wrapper {
    height: 300px;
    /* Fixed taller height for V9 */
    background-color: #fcf9f2;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid rgba(212, 175, 55, 0.2);
}

.boutique-img,
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.boutique-card:hover .boutique-img,
.product-card:hover .product-img {
    transform: scale(1.08);
}

.boutique-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(59, 36, 22, 0.4) 100%);
    pointer-events: none;
}

.boutique-discount-badge {
    background: #D4AF37;
    color: #3B2416;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: 2px solid #fff;
    z-index: 2;
}

.boutique-title {
    color: #3B2416;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.boutique-desc {
    line-height: 1.6;
    font-size: 0.9rem;
    color: #8c7b73 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.letter-spacing-1 {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.boutique-price {
    color: #1e120b;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Form Elements in Cards */
.boutique-select {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fafaf9;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3B2416;
    transition: all 0.2s ease;
    cursor: pointer;
}

.boutique-select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background-color: #fff;
}

.quantity-wrapper {
    width: 70px;
}

.boutique-qty {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fafaf9;
    padding: 10px 0;
    font-weight: 600;
    color: #3B2416;
}

.boutique-add-btn {
    background-color: #3B2416;
    color: #fff;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 50px;
}

.boutique-add-btn:hover {
    background-color: #D4AF37;
    color: #1e120b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}