/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm, Soft, Zen Color Palette */
    --primary-cream: #F5F1E8;
    --secondary-beige: #E8DCC4;
    --warm-sand: #D9C7A8;
    --soft-terracotta: #D4A373;
    --warm-brown: #8B6F47;
    --deep-brown: #6B5444;
    --soft-sage: #A8B5A0;
    --pale-sage: #C8D5C0;
    --warm-white: #F8F4ED;
    --text-dark: #4A4032;
    --text-light: #7A6F5D;

    /* Typography */
    --font-primary: 'Quicksand', sans-serif;
    --font-secondary: 'Raleway', sans-serif;

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

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(139, 111, 71, 0.08);
    --shadow-medium: 0 8px 30px rgba(139, 111, 71, 0.12);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-cream: #3d3530;
    --secondary-beige: #4a443c;
    --warm-sand: #5a544c;
    --soft-terracotta: #D4A373;
    --warm-brown: #b8935f;
    --deep-brown: #e8c89d;
    --soft-sage: #7a8872;
    --pale-sage: #5a6852;
    --warm-white: #252118;
    --text-dark: #f5ede0;
    --text-light: #ddd3c0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
}

/* Header & Navigation */
.header {
    background: linear-gradient(180deg,
        rgba(253, 251, 247, 0.98) 0%,
        rgba(253, 251, 247, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(139, 111, 71, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
    position: relative;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--soft-terracotta), transparent);
    top: -100px;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--soft-sage), transparent);
    top: -50px;
    left: 20%;
    animation-delay: 5s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--warm-sand), transparent);
    top: -80px;
    left: 60%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    33% {
        transform: translateY(20px) translateX(10px) scale(1.1);
    }
    66% {
        transform: translateY(-10px) translateX(-10px) scale(0.9);
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 90px;
    height: 90px;
    transition: all 0.4s ease;
    animation: float-gentle 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(212, 163, 115, 0.7));
    transition: all 0.4s ease;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo:hover .logo-icon {
    animation-play-state: paused;
}

.logo:hover .logo-icon img {
    filter: drop-shadow(0 4px 12px rgba(212, 163, 115, 0.5));
    transform: scale(1.05);
}

.logo-text h1 {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--warm-brown);
    margin-bottom: -5px;
    background: linear-gradient(135deg, var(--warm-brown), var(--soft-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(212, 163, 115, 0.3);
}

.logo-separator {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 4px;
    opacity: 1;
    color: var(--warm-brown);
    vertical-align: middle;
    line-height: 1;
}

.logo-aura {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--warm-brown);
    background: linear-gradient(135deg, var(--warm-brown), var(--soft-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-experience {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--warm-brown);
    margin: -8px 0 0 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--warm-brown), var(--soft-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0;
    text-align: left;
    display: block;
    margin-left: -2px;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.link-text {
    position: relative;
    z-index: 1;
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--soft-terracotta), var(--warm-brown));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover .link-underline {
    width: 80%;
}

.nav-link:hover .link-text {
    color: var(--soft-terracotta);
}

.whatsapp-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(212, 163, 115, 0.1);
    transition: all 0.3s ease;
}

.whatsapp-contact:hover {
    background: rgba(212, 163, 115, 0.15);
    transform: translateY(-2px);
}

.whatsapp-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.whatsapp-number {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--warm-brown);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.whatsapp-number:hover {
    color: var(--soft-terracotta);
}

.nav-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-btn,
.wishlist-btn,
.admin-btn,
.cart-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--secondary-beige);
    padding: 0.65rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--warm-brown);
}

.search-btn svg,
.wishlist-btn svg,
.user-btn svg,
.admin-btn svg,
.cart-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.user-btn,
.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--warm-beige);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.search-btn:hover,
.wishlist-btn:hover,
.user-btn:hover,
.admin-btn:hover,
.cart-btn:hover {
    background: var(--soft-terracotta);
    border-color: var(--soft-terracotta);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.3);
    color: var(--warm-white);
}

.search-btn:active,
.wishlist-btn:active,
.user-btn:active,
.admin-btn:active,
.cart-btn:active {
    transform: translateY(-1px) scale(1);
}

.wishlist-btn.has-items {
    border-color: var(--soft-terracotta);
    background: rgba(212, 163, 115, 0.1);
}

.wishlist-btn.has-items svg {
    fill: var(--soft-terracotta);
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--soft-terracotta), var(--warm-brown));
    color: var(--warm-white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(212, 163, 115, 0.4);
    border: 2px solid var(--warm-white);
}

/* Categories Navigation Bar */
.categories-nav {
    background: var(--warm-white);
    border-bottom: 2px solid var(--secondary-beige);
    padding: 0;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(139, 111, 71, 0.08);
}

.categories-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 2rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.category-nav-item-wrapper {
    position: relative;
}

.category-nav-item {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    display: block;
}

.category-nav-item:hover {
    background: var(--secondary-beige);
    color: var(--warm-brown);
    border-color: var(--soft-terracotta);
    transform: translateY(-2px);
}

/* Category Dropdown */
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--warm-white);
    border: 2px solid var(--soft-terracotta);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(139, 111, 71, 0.2);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 0.5rem;
}

.category-nav-item-wrapper:hover .category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-dropdown-item:hover {
    background: var(--secondary-beige);
    color: var(--soft-terracotta);
    padding-left: 1.3rem;
}

/* Category Mega Menu Dropdown - Hover */
.category-nav-dropdown {
    position: relative;
}

.category-nav-dropdown .dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.category-nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--warm-white);
    border: 2px solid var(--soft-terracotta);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(139, 111, 71, 0.2);
    min-width: 220px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.category-nav-dropdown:hover .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    background: var(--secondary-beige);
    color: var(--soft-terracotta);
    padding-left: 1.5rem;
}

/* Mega Menu for Beauty (4 columns) */
.category-nav-mega-dropdown .category-dropdown-menu.mega-menu {
    min-width: 800px;
    max-width: 900px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-nav-mega-dropdown:hover .category-dropdown-menu.mega-menu {
    transform: translateX(-50%) translateY(0);
}

.mega-menu-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--soft-terracotta);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-beige);
}

.mega-menu-column .mt-2 {
    margin-top: 1rem;
}

.dropdown-sublink {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.dropdown-sublink:hover {
    background: var(--secondary-beige);
    color: var(--soft-terracotta);
    padding-left: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-beige) 0%, var(--warm-sand) 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    padding-right: var(--spacing-md);
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.hero-image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 111, 71, 0.2);
}

.hero-image {
    width: 100%;
    height: 350px;
    max-height: 350px;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: var(--radius-lg);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.03);
}

.hero-image-caption {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--warm-brown);
    margin-top: var(--spacing-md);
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.1);
    transition: all 0.3s ease;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--deep-brown);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(253, 251, 247, 0.5);
    line-height: 1.2;
}

.hero-title-translation {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--soft-terracotta);
    margin-bottom: var(--spacing-md);
    letter-spacing: 3px;
    font-style: italic;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(212, 163, 115, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-lg);
}

.btn-cta .arrow {
    transition: transform 0.3s ease;
    font-size: 1.3rem;
}

.btn-cta:hover .arrow {
    transform: translateX(5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.btn-primary {
    background: var(--soft-terracotta);
    color: var(--warm-white);
}

.btn-primary:hover {
    background: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--soft-sage);
    color: var(--warm-white);
}

.btn-secondary:hover {
    background: var(--warm-brown);
}

/* About Preview Section */
.about-preview {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary-beige) 0%, var(--warm-sand) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--warm-brown);
}

.about-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.about-preview .container {
    position: relative;
    z-index: 1;
}

.about-preview-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-preview-cards-left,
.about-preview-cards-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-preview-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--warm-white);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 111, 71, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--soft-terracotta);
}

.about-preview-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-preview-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: var(--spacing-md);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.about-preview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.about-preview-content .section-title {
    font-size: 3rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--warm-brown), var(--soft-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.about-preview-content .section-subtitle {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.preview-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* About Preview Responsive */
@media (max-width: 1024px) {
    .about-preview-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-preview-cards-left,
    .about-preview-cards-right {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .about-preview-card {
        flex: 1;
    }
}

/* Products Section */
.products-section {
    padding: var(--spacing-xl) 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

/* Categories Sidebar */
.categories-sidebar {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    height: fit-content;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.sidebar-header {
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-beige);
    margin-bottom: var(--spacing-md);
}

.sidebar-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--deep-brown);
    letter-spacing: 1px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.category-item {
    border-bottom: 1px solid var(--secondary-beige);
    padding-bottom: var(--spacing-xs);
}

.category-item:last-child {
    border-bottom: none;
}

.category-btn {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.category-btn:hover {
    background: var(--secondary-beige);
}

.category-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
}

.category-arrow {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.category-item.active .category-arrow {
    transform: rotate(180deg);
}

.subcategory-list {
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: var(--spacing-md);
}

.category-item.active .subcategory-list {
    max-height: 1200px !important;
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-sm);
}

.subcategory-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.subcategory-link:hover {
    background: var(--primary-cream);
    color: var(--soft-terracotta);
    padding-left: calc(var(--spacing-sm) + 5px);
}

.subcategory-link.active {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    font-weight: 500;
}

/* Nested subcategories (3rd level - Cura della pelle) */
.subcategory-item-nested {
    margin: 4px 0;
}

.subcategory-btn-nested {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: none;
    border: none;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.subcategory-btn-nested:hover {
    background: var(--primary-cream);
    color: var(--soft-terracotta);
}

.arrow-nested {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.subcategory-item-nested.active .arrow-nested {
    transform: rotate(180deg);
}

.sub-subcategory-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: var(--spacing-md);
}

.subcategory-item-nested.active .sub-subcategory-list {
    max-height: 1000px;
    padding-top: var(--spacing-xs);
}

.sub-subcategory-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.sub-subcategory-link:hover {
    background: var(--primary-cream);
    color: var(--soft-terracotta);
    padding-left: calc(var(--spacing-sm) + 5px);
}

.sub-subcategory-link.active {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    font-weight: 500;
}

.show-all-container {
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid var(--secondary-beige);
    margin-bottom: var(--spacing-sm);
}

.show-all-btn {
    font-weight: 600;
    font-size: 1rem;
    padding: var(--spacing-sm);
}

.show-all-btn.active {
    background: var(--primary-cream);
    color: var(--soft-terracotta);
}

.products-main {
    min-height: 60vh;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--deep-brown);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    width: 100%;
}

.product-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: badgePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgePop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.product-badge-bestseller {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.product-badge-nuovo {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.product-badge-in-offerta {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 50px rgba(139, 111, 71, 0.2);
    border-color: var(--soft-terracotta);
}

.product-card-wishlist-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--warm-white);
    border: 2px solid var(--soft-terracotta);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.2);
    color: var(--soft-terracotta);
}

.product-card-wishlist-btn:hover {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.4);
}

.product-card-wishlist-btn.in-wishlist {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    border-color: var(--warm-brown);
}

.product-card-wishlist-btn.in-wishlist:hover {
    background: var(--warm-brown);
    transform: scale(1.1) rotate(10deg);
}

.product-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Mostra l'immagine intera senza tagliarla */
    object-position: center;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 40%, rgba(212, 163, 115, 0.1) 100%);
}

.product-info {
    padding: 0.8rem 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--soft-terracotta);
    margin-bottom: 0.2rem;
    font-weight: 500;
    line-height: 1.2;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--deep-brown);
    margin-bottom: 0.3rem;
    font-family: var(--font-secondary);
    letter-spacing: 0.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-weight: 300;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.26rem;
    font-weight: 600;
    color: var(--soft-terracotta);
    letter-spacing: 0.5px;
}

.add-to-cart-btn {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 64, 50, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    max-width: 1100px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    border: 3px solid var(--soft-terracotta);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-beige);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--warm-brown);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close:hover {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
    border-bottom: 3px solid var(--soft-terracotta);
}

.modal-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
    background: var(--warm-white);
    padding: 10px;
}

.modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.modal-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--deep-brown);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--warm-brown), var(--soft-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 400;
}

.modal-body {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.modal-text-content {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.modal-intro {
    font-size: 1.3rem;
    color: var(--warm-brown);
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
}

.modal-main-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.modal-closing {
    font-size: 1.2rem;
    color: var(--soft-terracotta);
    text-align: center;
    margin-top: var(--spacing-lg);
    letter-spacing: 1px;
}

.modal-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--soft-terracotta) 50%,
        transparent 100%);
    margin: var(--spacing-lg) 0;
    opacity: 0.5;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--primary-cream);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    color: var(--warm-brown);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--warm-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--secondary-beige);
}

.cart-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--deep-brown);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--soft-terracotta);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
}

.cart-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--secondary-beige);
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--secondary-beige);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: var(--deep-brown);
    margin-bottom: var(--spacing-xs);
}

.cart-item-price {
    color: var(--soft-terracotta);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.qty-btn {
    background: var(--secondary-beige);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: var(--warm-sand);
}

.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: var(--soft-terracotta);
    font-size: 1.8rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.cart-item-remove:hover {
    background: rgba(212, 163, 115, 0.1);
    color: var(--warm-brown);
    transform: rotate(90deg);
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 2px solid var(--secondary-beige);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: var(--spacing-sm);
}

.btn-checkout {
    width: 100%;
}

/* Wishlist Sidebar */
.wishlist-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--warm-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-sidebar.active {
    right: 0;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--secondary-beige);
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
}

.wishlist-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--deep-brown);
}

.wishlist-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.empty-wishlist {
    text-align: center;
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    font-size: 1rem;
}

.wishlist-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--primary-cream);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-item:hover {
    border-color: var(--soft-terracotta);
    transform: translateX(-5px);
}

.wishlist-item-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wishlist-item-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--soft-terracotta);
    font-weight: 600;
}

.wishlist-item-name {
    font-weight: 500;
    color: var(--deep-brown);
    font-size: 1.1rem;
    line-height: 1.3;
}

.wishlist-item-price {
    color: var(--soft-terracotta);
    font-weight: 700;
    font-size: 1.3rem;
}

.wishlist-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.wishlist-add-cart-btn {
    flex: 1;
    background: var(--soft-terracotta);
    color: var(--warm-white);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wishlist-add-cart-btn:hover {
    background: var(--warm-brown);
}

.wishlist-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--warm-white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-remove-btn:hover {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    transform: rotate(90deg);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 64, 50, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.footer {
    background: var(--deep-brown);
    color: var(--warm-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.footer-section h4 {
    font-family: var(--font-secondary);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--secondary-beige);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(245, 241, 232, 0.2);
    color: var(--secondary-beige);
    font-size: 0.9rem;
}

/* Page Content Styles */
.page-content {
    padding: var(--spacing-xl) 0;
    min-height: 70vh;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.breadcrumb a {
    color: var(--soft-terracotta);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--warm-brown);
}

.category-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.category-intro p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 300;
}

.page-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.page-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
    background: var(--warm-white);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-logo img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    border-radius: 50%;
}

.page-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--deep-brown);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--warm-brown), var(--soft-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 400;
}

.page-header-simple {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-beige);
}

.page-body {
    max-width: 900px;
    margin: 0 auto;
}

.text-content {
    margin-bottom: var(--spacing-xl);
}

.intro-text {
    font-size: 1.4rem;
    color: var(--warm-brown);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.5px;
}

.main-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.closing-text {
    font-size: 1.3rem;
    color: var(--soft-terracotta);
    text-align: center;
    margin-top: var(--spacing-xl);
    letter-spacing: 1px;
}

.content-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--soft-terracotta) 50%,
        transparent 100%);
    margin: var(--spacing-xl) 0;
    opacity: 0.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-box {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-box .feature-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--spacing-md);
}

.feature-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-box:hover .feature-image img {
    transform: scale(1.1);
}

.feature-box h3 {
    color: var(--warm-brown);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    font-size: 1.3rem;
}

.feature-box p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    background: var(--warm-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.contact-item h3 {
    color: var(--warm-brown);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.contact-form {
    background: var(--warm-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.contact-form h3 {
    color: var(--deep-brown);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--secondary-beige);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--soft-terracotta);
}

.form-group textarea {
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .whatsapp-contact {
        display: none;
    }

    .categories-nav-list {
        gap: 0.3rem;
        padding: 0.5rem 0;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .category-nav-item {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }

    .category-dropdown {
        min-width: 180px;
        font-size: 0.8rem;
    }

    .category-dropdown-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .category-dropdown-item:hover {
        padding-left: 1.1rem;
    }

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

    .hero-content {
        text-align: center;
        padding-right: 0;
    }

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

    .products-layout {
        grid-template-columns: 1fr;
    }

    .categories-sidebar {
        position: relative;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .feature-box {
        padding: var(--spacing-md);
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 64, 50, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: searchSlideDown 0.4s ease;
    border: 3px solid var(--soft-terracotta);
}

@keyframes searchSlideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-header {
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-beige);
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 3rem;
    border: 2px solid var(--warm-sand);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-dark);
    background: var(--warm-white);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--soft-terracotta);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--soft-terracotta);
    pointer-events: none;
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

.search-close {
    background: var(--soft-terracotta);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--warm-white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: var(--warm-brown);
    transform: rotate(90deg);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.search-result-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: var(--spacing-sm);
}

.search-result-item:hover {
    background: var(--primary-cream);
    border-color: var(--soft-terracotta);
    transform: translateX(5px);
}

.search-result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--soft-terracotta);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.search-result-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--deep-brown);
    margin-bottom: 0.25rem;
}

.search-result-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.search-result-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--soft-terracotta);
    align-self: center;
}

.search-empty {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
}

.search-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.search-empty-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.search-empty-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-suggestions {
    padding: var(--spacing-md);
    border-top: 2px solid var(--secondary-beige);
    background: var(--primary-cream);
}

.search-suggestions-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.search-suggestion-tag {
    background: var(--warm-white);
    border: 1px solid var(--warm-sand);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-suggestion-tag:hover {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    border-color: var(--soft-terracotta);
    transform: translateY(-2px);
}

/* Highlight matched text */
.highlight {
    background: rgba(212, 163, 115, 0.3);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* Product Detail Modal - OPTIMIZED (no shake) */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--warm-white);
    z-index: 2500;
    display: none;
    opacity: 0;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: opacity; /* Optimize transitions */
}

.product-detail-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.65s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.product-detail-content {
    background: var(--warm-white);
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateZ(0); /* Hardware acceleration */
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.995) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

.product-detail-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--soft-terracotta);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--warm-white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(212, 163, 115, 0.5);
}

.product-detail-close:hover {
    background: var(--warm-brown);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 30px rgba(212, 163, 115, 0.7);
}

/* Breadcrumb */
.product-breadcrumb {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    color: var(--warm-brown);
    background: var(--primary-cream);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    flex-shrink: 0;
}

.product-breadcrumb span {
    color: var(--soft-terracotta);
}

/* Brand Badge */
.product-brand-badge {
    display: inline-block;
    background: var(--soft-terracotta);
    color: var(--warm-white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Tags */
.product-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.product-tag {
    background: var(--primary-cream);
    color: var(--warm-brown);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid rgba(212, 163, 115, 0.3);
}

/* Price & Stock Section */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.6rem 0;
}

.product-stock {
    font-size: 0.9rem;
    color: #2d7a3e;
    font-weight: 600;
}

.product-stock.low-stock {
    color: #d97706;
}

.product-stock.out-of-stock {
    color: #dc2626;
}

/* Description Section */
.product-description-section h4 {
    font-size: 0.95rem;
    color: var(--warm-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description-section p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Technical Info */
.product-technical-info {
    background: var(--secondary-beige);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    margin: 0.8rem 0;
}

.product-technical-info h4 {
    font-size: 0.95rem;
    color: var(--warm-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.tech-info-item {
    display: flex;
    flex-direction: column;
}

.tech-info-label {
    font-size: 0.75rem;
    color: var(--warm-brown);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.tech-info-value {
    font-size: 0.9rem;
    color: var(--deep-brown);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 2rem;
    padding: 1.5rem 2rem;
    height: calc(100vh - 60px);
    overflow-y: auto;
    flex: 1;
}

.product-detail-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-beige), var(--warm-sand));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.product-detail-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 40%, rgba(212, 163, 115, 0.15) 100%);
    z-index: 1;
}

.product-detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-detail-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--soft-terracotta);
    font-weight: 600;
}

.product-detail-name {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--deep-brown);
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--soft-terracotta);
    margin-bottom: 0.8rem;
}

.product-detail-divider {
    height: 1px;
    background: linear-gradient(90deg,
        var(--soft-terracotta) 0%,
        transparent 100%);
    margin: 0.6rem 0;
}

.product-detail-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    max-height: none;
    overflow: visible;
    white-space: normal;
}

.product-detail-features {
    background: var(--primary-cream);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.product-detail-features h4 {
    font-size: 1rem;
    color: var(--warm-brown);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-detail-features li {
    padding: 0.4rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-detail-features li::before {
    content: '✓';
    color: var(--soft-terracotta);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-detail-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: 1rem;
    padding-top: 0.8rem;
}

.product-detail-add-btn {
    flex: 1;
    background: var(--soft-terracotta);
    color: var(--warm-white);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.product-detail-add-btn:hover {
    background: var(--warm-brown);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.3);
}

.product-detail-wishlist-btn {
    background: var(--warm-white);
    border: 2px solid var(--soft-terracotta);
    color: var(--soft-terracotta);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-wishlist-btn:hover {
    background: var(--soft-terracotta);
    color: var(--warm-white);
    transform: translateY(-3px);
}

/* Responsive for Product Detail */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }

    .product-detail-image {
        height: 300px;
        font-size: 7rem;
    }

    .product-detail-name {
        font-size: 2rem;
    }

    .product-detail-price {
        font-size: 2rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-wishlist-btn {
        width: 100%;
    }
}

/* ============================================
   TECH FEATURES SECTION
   ============================================ */

.tech-features {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary-beige) 0%, var(--warm-sand) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--warm-brown);
}

.tech-features::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.tech-features .container {
    position: relative;
    z-index: 2;
}

.tech-features-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.tech-features-header .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--warm-brown);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.tech-features-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

.tech-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
    margin: 0 auto;
}

.tech-feature-card {
    background: var(--warm-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 111, 71, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.tech-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--soft-terracotta);
}

.tech-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    filter: grayscale(20%);
}

.tech-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warm-brown);
    margin-bottom: 0.3rem;
    font-family: var(--font-secondary);
}

.tech-feature-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.tech-features-cta-container {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Video Card in Tech Features */
.video-card {
    padding: 0;
    overflow: hidden;
    background: var(--deep-brown);
    grid-column: 1 / -1;
    min-height: 500px;
    max-height: 500px;
}

.tech-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Tech Features */
@media (max-width: 768px) {
    .tech-features {
        padding: var(--spacing-md) 0;
    }

    .tech-features-header .section-title {
        font-size: 2rem;
    }

    .tech-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-sm);
    }

    .tech-feature-card {
        padding: var(--spacing-sm);
        min-height: 160px;
    }

    .tech-feature-icon {
        font-size: 2rem;
    }

    .tech-feature-title {
        font-size: 1rem;
    }

    .tech-feature-description {
        font-size: 0.8rem;
    }

    .video-card {
        grid-column: span 1;
    }
}

/* ============================================
   WHATSAPP WIDGET
   ============================================ */

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    text-decoration: none;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-widget svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-widget:active {
    transform: scale(0.95);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
    }
}

/* Responsive WhatsApp Widget */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .whatsapp-widget svg {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   MICRO-ANIMAZIONI & EFFETTI MIGLIORATI
   ============================================ */

/* Smooth transitions globali */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo breathing animation */
.logo-icon {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Nav link hover migliorato */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--soft-terracotta), var(--warm-brown));
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link:hover::before {
    transform: translateX(0);
}

/* Product card hover effect potenziato */
.product-card {
    overflow: hidden;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 163, 115, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

/* Product image zoom on hover */
.product-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Button ripple effect */
.btn, .add-to-cart-btn, .btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn::after, .add-to-cart-btn::after, .btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after, .add-to-cart-btn:hover::after, .btn-primary:hover::after, .btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

/* Floating shapes animation potenziata */
.floating-shape {
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Category nav item glow effect */
.category-nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.category-nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--soft-terracotta);
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 10px var(--soft-terracotta);
}

.category-nav-item:hover::after {
    width: 100%;
    left: 0;
}

/* Hero content fade-in migliorato */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-image-container {
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tech feature cards hover */
.tech-feature-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* Modal entrance animation */
.product-detail-modal.active .product-detail-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Search modal entrance */
.search-modal.active .search-modal-content {
    animation: searchSlideDown 0.3s ease-out;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price pulse effect */
.product-price {
    animation: pricePulse 2s ease-in-out infinite;
}

@keyframes pricePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(139, 111, 71, 0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 111, 71, 0.15);
}

.trust-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.25);
    border-color: rgba(139, 111, 71, 0.3);
}

.trust-icon {
    font-size: 2.5rem;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-text strong {
    font-size: 1.05rem;
    color: #2d2418;
    font-weight: 800;
    font-family: var(--font-secondary);
}

.trust-text span {
    font-size: 0.9rem;
    color: #3a3126;
    opacity: 1;
    font-weight: 600;
}

/* Dark mode trust badges text */
body.dark-mode .trust-text strong {
    color: #e8dcc4;
}

body.dark-mode .trust-text span {
    color: #c8bca8;
    opacity: 1;
}

/* Responsive trust badges */
@media (max-width: 768px) {
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: var(--spacing-md) 0;
    }

    .trust-badge {
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
    }

    .trust-icon {
        font-size: 2rem;
    }

    .trust-text strong {
        font-size: 0.85rem;
    }

    .trust-text span {
        font-size: 0.75rem;
    }
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */

.theme-toggle-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

.theme-toggle-btn:hover {
    background: rgba(139, 111, 71, 0.1);
    transform: rotate(20deg);
}

.theme-toggle-btn svg {
    width: 22px;
    height: 22px;
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* Dark mode active state */
body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================
   PRODUCT GALLERY (Modal)
   ============================================ */

.product-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-nav {
    position: absolute;
    top: 365px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--soft-terracotta);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--warm-brown);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gallery-nav:hover {
    background: var(--soft-terracotta);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
}

.gallery-prev {
    left: 20%;
}

.gallery-next {
    right: 20%;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-beige);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--soft-terracotta);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: var(--warm-brown);
}

.gallery-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   NEWSLETTER POP-UP
   ============================================ */

.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.newsletter-popup.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-popup-content {
    background: var(--warm-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.newsletter-close:hover {
    background: rgba(139, 111, 71, 0.1);
    transform: rotate(90deg);
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.newsletter-title {
    font-size: 2rem;
    color: var(--deep-brown);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
    font-weight: 600;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.newsletter-subtitle strong {
    color: var(--soft-terracotta);
    font-weight: 700;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.newsletter-input {
    padding: var(--spacing-md);
    border: 2px solid var(--secondary-beige);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--soft-terracotta);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.newsletter-submit {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--soft-terracotta), var(--warm-brown));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Dark mode newsletter popup */
body.dark-mode .newsletter-popup-content {
    background: var(--warm-white);
}

/* Responsive newsletter popup */
@media (max-width: 768px) {
    .newsletter-popup-content {
        padding: var(--spacing-lg);
        max-width: 90%;
    }

    .newsletter-title {
        font-size: 1.6rem;
    }

    .newsletter-subtitle {
        font-size: 1rem;
    }

    .newsletter-icon {
        font-size: 3rem;
    }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--primary-cream) 100%);
}

.how-it-works-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.how-it-works-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--spacing-md);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--warm-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--soft-terracotta), var(--warm-brown));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 111, 71, 0.2);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--soft-terracotta), var(--warm-brown));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.step-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.step-title {
    font-size: 1.8rem;
    color: var(--warm-brown);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
    font-weight: 600;
}

.step-description {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

.step-arrow {
    font-size: 3rem;
    color: var(--soft-terracotta);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive How It Works */
@media (max-width: 968px) {
    .how-it-works-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: var(--spacing-md) 0;
    }

    .step-card {
        padding: var(--spacing-md);
    }

    .step-icon {
        font-size: 3rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 0.95rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 220, 196, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--spacing-lg);
}

.testimonial-card {
    min-width: 100%;
    background: var(--primary-cream);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    font-family: Georgia, serif;
    color: rgba(139, 111, 71, 0.1);
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    color: #FFD700;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(139, 111, 71, 0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--soft-terracotta);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--warm-brown);
    margin: 0 0 4px 0;
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.testimonial-product {
    font-size: 0.85rem;
    color: var(--soft-terracotta);
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* Navigation Buttons */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--warm-brown);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

.testimonial-nav:hover {
    background: var(--soft-terracotta);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

/* Dots Navigation */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-lg);
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 111, 71, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimonial-dot.active {
    background: var(--warm-brown);
    transform: scale(1.3);
}

.testimonial-dot:hover {
    background: var(--soft-terracotta);
}

/* Dark Mode */
body.dark-mode .testimonials {
    background: var(--primary-cream);
}

body.dark-mode .testimonial-card {
    background: var(--warm-white);
}

body.dark-mode .testimonial-card::before {
    color: rgba(232, 220, 196, 0.1);
}

/* ===================================
   FEATURED PRODUCTS CAROUSEL
   =================================== */

.featured-products {
    padding: calc(var(--spacing-section) - 30px) 0;
    background-color: var(--primary-cream);
    position: relative;
    overflow: hidden;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.featured-products-cta {
    text-align: center;
}

/* Responsive Design for Featured Grid */
@media (max-width: 1400px) {
    .featured-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode for Featured Products */
body.dark-mode .featured-products {
    background: transparent;
}

/* Additional Dark Mode Improvements for Readability */
body.dark-mode .nav-link {
    color: #f5ede0;
}

body.dark-mode .nav-link:hover {
    color: #D4A373;
}

body.dark-mode .logo h1 {
    color: #f5ede0;
}

body.dark-mode .logo-separator {
    color: #D4A373;
}

body.dark-mode .logo-aura {
    background: linear-gradient(135deg, #D4A373, #E6C9A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .tagline {
    color: #ddd3c0;
}

body.dark-mode .section-title {
    color: #f5ede0;
}

body.dark-mode .section-subtitle {
    color: #ddd3c0;
}

body.dark-mode .hero-title {
    color: #f5ede0;
}

body.dark-mode .hero-description {
    color: #ddd3c0;
}

body.dark-mode .hero-text {
    color: #ddd3c0;
}

body.dark-mode .testimonial-text {
    color: #f5ede0;
}

body.dark-mode .testimonial-name {
    color: #f5ede0;
}

body.dark-mode .testimonial-location {
    color: #ddd3c0;
}

body.dark-mode .testimonial-product {
    color: #D4A373;
}

body.dark-mode .step-title {
    color: #f5ede0;
}

body.dark-mode .step-description {
    color: #ddd3c0;
}

body.dark-mode .tech-feature-title {
    color: #f5ede0;
}

body.dark-mode .tech-feature-description {
    color: #ddd3c0;
}

body.dark-mode .category-nav-item {
    color: #f5ede0;
}

body.dark-mode .whatsapp-label {
    color: #ddd3c0;
}

body.dark-mode .whatsapp-number {
    color: #D4A373;
}

body.dark-mode .header {
    background: linear-gradient(180deg,
        rgba(26, 22, 18, 0.98) 0%,
        rgba(26, 22, 18, 0.95) 100%);
}

body.dark-mode .hero-title-translation {
    color: #b8935f;
}

/* Dark mode product cards */
body.dark-mode .product-card {
    border: 1px solid rgba(232, 220, 196, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .product-card:hover {
    border-color: rgba(212, 163, 115, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Dark mode categories navigation */
body.dark-mode .categories-nav {
    background: #2a2520;
    border-bottom: 2px solid rgba(212, 163, 115, 0.3);
}

body.dark-mode .category-nav-item {
    color: #e8dcc4;
}

body.dark-mode .category-nav-item:hover {
    background: rgba(212, 163, 115, 0.2);
    color: #D4A373;
}

body.dark-mode .category-dropdown {
    background: #3a342c;
    border: 1px solid rgba(212, 163, 115, 0.3);
}

body.dark-mode .category-dropdown-item {
    color: #ddd3c0;
}

body.dark-mode .category-dropdown-item:hover {
    background: rgba(212, 163, 115, 0.2);
    color: #D4A373;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-slider {
        padding: 0 50px;
    }

    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .testimonial-card::before {
        font-size: 5rem;
        top: 10px;
        left: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonial-name {
        font-size: 1rem;
    }

    .testimonial-location,
    .testimonial-product {
        font-size: 0.85rem;
    }
}
