/* =========================================
   SANREMO E-COMMERCE & HUB - DESIGN SYSTEM
   ========================================= */

:root {
    /* Colors */
    --c-primary: #E3004F;      /* Sanremo Magenta */
    --c-primary-hover: #c40043;
    --c-bg-light: #F9F9F9;     /* Off-White */
    --c-bg-white: #FFFFFF;     /* Pure White */
    --c-text-main: #2D2D2D;    /* Dark Graphite */
    --c-text-light: #5A5A5A;
    --c-star: #FFC107;         /* Gold Star */
    --c-footer-bg: #1A1A1A;    /* Dark Grey */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows & Transitions */
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--c-text-main);
    background-color: var(--c-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--c-text-main);
    line-height: 1.2;
}

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

img, svg {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light { background-color: var(--c-bg-light); }
.bg-white { background-color: var(--c-bg-white); }
.text-center { text-align: center; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.hub-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--c-bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.main-nav ul {
    display: none; /* Mobile hide by default */
}

/* =========================================
   BUTTONS
   ========================================= */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

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

.primary-btn:hover {
    background-color: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 0, 79, 0.4);
}

.outline-btn {
    border-color: var(--c-bg-white);
    color: var(--c-bg-white);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.outline-btn:hover {
    background-color: var(--c-bg-white);
    color: var(--c-text-main);
}

/* =========================================
   HERO BLOCKS (FRAMED)
   ========================================= */
.hero-blocks {
    padding-top: 120px; /* Offset fixed header */
}

.hero-blocks-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.frame-card {
    background: var(--c-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.frame-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.frame-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.frame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.frame-text {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--c-bg-white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.persona-badge {
    display: inline-block;
    background: rgba(227, 0, 79, 0.1);
    color: var(--c-primary);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.dark-badge {
    background: rgba(45, 45, 45, 0.1);
    color: var(--c-text-main);
}

.frame-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    color: var(--c-text-main);
}

.frame-subtitle {
    font-size: 1.125rem;
    color: var(--c-text-light);
    margin-bottom: var(--spacing-md);
}

.outline-primary-btn {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background-color: transparent;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid var(--c-primary);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.outline-primary-btn:hover {
    background-color: var(--c-primary);
    color: var(--c-bg-white);
}

/* =========================================
   PRODUCT VITRINE (E-COMMERCE)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--c-text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.product-card {
    background: var(--c-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0; /* fallback */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.badge-new, .badge-loved {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    color: var(--c-bg-white);
}

.badge-new { background-color: var(--c-primary); }
.badge-loved { background-color: var(--c-star); color: #000; }

.product-info {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    flex-grow: 1;
}

.product-rating {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-sm);
}

.star {
    width: 16px;
    height: 16px;
    fill: #E0E0E0;
}

.star.active {
    fill: var(--c-star);
}

.buy-button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--c-bg-white);
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-card:hover .buy-button {
    background-color: var(--c-primary);
    color: var(--c-bg-white);
}

/* =========================================
   VIDEO SECTION
   ========================================= */
.video-section {
    width: 100%;
    height: 60vh;
}

.video-section.small-video {
    height: 50vh;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(227, 0, 79, 0.4); /* Primary color overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    color: var(--c-bg-white);
}

.video-overlay.dark {
    background: rgba(0, 0, 0, 0.6);
}

.video-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.video-desc {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c-bg-white);
    color: var(--c-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px; /* Optical align */
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================================
   FOOTER
   ========================================= */
.hub-footer {
    background: var(--c-footer-bg);
    color: rgba(255,255,255,0.6);
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
}

/* =========================================
   MEDIA QUERIES (DESKTOP OPTIMIZATION)
   ========================================= */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    /* Header Nav */
    .main-nav ul {
        display: flex;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    .main-nav a {
        font-weight: 600;
        font-size: 0.95rem;
    }

    .main-nav a:hover {
        color: var(--c-primary);
    }

    .highlight-link {
        color: var(--c-primary);
        border: 2px solid var(--c-primary);
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }
    
    .highlight-link:hover {
        background: var(--c-primary);
        color: var(--c-bg-white) !important;
    }

    /* Hero Blocks Desktop */
    .hero-blocks-container {
        flex-direction: row;
    }
    
    .frame-card {
        flex: 1 1 50%;
    }

    /* Product Grid Desktop */
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
