/* ==========================================
   NBS COSMETICS — E-COMMERCE STYLES
   Palette: Soft Rose, Tortora, Beige
   Fonts: Cinzel (headings), Lato (body)
   ========================================== */

/* CSS Variables */
:root {
    --rose: #D4A5A5;
    --rose-light: #E8D5D0;
    --rose-dark: #B88383;
    --tortora: #A89F91;
    --tortora-light: #C4BDB1;
    --tortora-dark: #8A7F70;
    --beige: #F5F0E8;
    --beige-light: #FAF8F5;
    --beige-dark: #EAE0D5;
    --text-dark: #3E3633;
    --text-medium: #6B5F5A;
    --text-light: #9E9089;
    --white: #FFFFFF;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-soft: 0 4px 20px rgba(62, 54, 51, 0.06);
    --shadow-medium: 0 8px 30px rgba(62, 54, 51, 0.1);
    --shadow-strong: 0 20px 50px rgba(62, 54, 51, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--beige-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
 input, textarea, select {
    font-size: 16px;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Three.js Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-medium);
    background: transparent;
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    padding: 0.875rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-link {
    display: inline-block;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
    line-height: 1;
}

.logo-nbs {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-dark);
    display: inline-block;
    white-space: nowrap;
}

.logo-cosmetics {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0em;
    text-transform: lowercase;
    color: var(--tortora);
    display: inline-block;
    white-space: nowrap;
    margin-top: 0.15rem;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-medium);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--rose-dark);
    transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    background: var(--rose-light);
    color: var(--rose-dark);
    transform: translateY(-2px);
}

.cart-btn .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--rose-dark);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.cart-btn .cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-overline {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tortora);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-slow) forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s var(--transition-slow) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) { animation-delay: 0.5s; }

.hero-title .accent {
    color: var(--rose-dark);
    font-weight: 600;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 1s 0.7s var(--transition-slow) forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s 0.9s var(--transition-slow) forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--beige-light);
    border-color: var(--text-dark);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--beige-light);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* Hero Visual / Product 3D */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.hero-product-3d {
    position: relative;
    width: 420px;
    height: 420px;
    transform-style: preserve-3d;
    animation: heroFloat 6s ease-in-out infinite;
}

.product-float {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.glass-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-40px);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.2), rgba(168, 159, 145, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(168, 159, 145, 0.2),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
    animation: glassPulse 4s ease-in-out infinite;
}

.product-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(20px);
    width: 280px;
    height: 360px;
    border-radius: 120px 120px 12px 12px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: transform 0.5s ease;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 40%, transparent 70%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

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

.hero-product-3d:hover .product-img {
    transform: scale(1.05);
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 100px;
    height: 100px;
    background: var(--rose);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 70px;
    height: 70px;
    background: var(--tortora);
    bottom: 15%;
    right: 10%;
    animation-delay: -3s;
}

.orb-3 {
    width: 50px;
    height: 50px;
    background: var(--beige-dark);
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--tortora);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--tortora);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

/* ==========================================
   SECTIONS COMMON
   ========================================== */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
}

.section-overline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rose-dark);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title.light {
    color: var(--beige-light);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 520px;
}

.section-desc.light {
    color: var(--beige-dark);
}

.section-footer {
    margin-top: 3rem;
}

.section-footer.center {
    text-align: center;
}

/* ==========================================
   PHILOSOPHY SECTION
   ========================================== */
.philosophy {
    background: var(--beige);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.philosophy-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-strong);
    transition: transform var(--transition-medium);
}

.image-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--rose-light);
    border-radius: 4px;
    pointer-events: none;
    z-index: -1;
}

.features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--rose-light);
    color: var(--rose-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.feature:hover .feature-icon {
    background: var(--rose);
    color: var(--white);
    transform: scale(1.1) rotateY(180deg);
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
.products {
    background: var(--beige-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-medium);
    transform-style: preserve-3d;
}

.product-card:hover {
    box-shadow: var(--shadow-strong);
}

.product-card-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(135deg, var(--beige) 0%, var(--rose-light) 100%);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--text-dark);
    color: var(--beige-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    z-index: 2;
}

.product-badge.new {
    background: var(--rose-dark);
}

.product-quickview {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 2;
}

.product-card:hover .product-quickview {
    opacity: 1;
    transform: translateY(0);
}

.product-quickview:hover {
    background: var(--rose-dark);
    color: var(--white);
    transform: scale(1.1);
}

.product-card-info {
    padding: 1.5rem;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rose-dark);
}

.product-price del {
    color: var(--text-light);
    font-weight: 400;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.btn-add-cart {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--beige);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--rose-dark);
    color: var(--white);
    transform: scale(1.1) rotateZ(-10deg);
}

/* ==========================================
   CATEGORIES SECTION
   ========================================== */
.categories {
    background: var(--beige);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
    transition: all var(--transition-medium);
}

.category-card:hover {
    box-shadow: var(--shadow-strong);
}

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

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(62, 54, 51, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
    transition: background var(--transition-medium);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(62, 54, 51, 0.85) 0%, rgba(62, 54, 51, 0.2) 100%);
}

.category-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transform: translateY(0);
    transition: transform var(--transition-medium);
}

.category-overlay span {
    font-size: 0.85rem;
    opacity: 0.8;
    transform: translateY(0);
    transition: transform var(--transition-medium);
}

.category-card:hover .category-overlay h3,
.category-card:hover .category-overlay span {
    transform: translateY(-5px);
}

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter {
    background: var(--tortora-dark);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(212, 165, 165, 0.1);
    filter: blur(80px);
}

.newsletter-inner {
    position: relative;
    z-index: 1;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--beige-light);
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: var(--tortora-light);
}

.newsletter-input:focus {
    border-color: var(--rose-light);
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--text-dark);
    color: var(--tortora-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-nbs {
    color: var(--beige-light);
}

.footer-brand .logo-cosmetics {
    color: var(--tortora);
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beige-light);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--rose-dark);
    border-color: var(--rose-dark);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--beige-light);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--tortora-light);
    transition: color var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rose-light);
    transition: width var(--transition-fast);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--tortora);
}

/* ==========================================
   CART SIDEBAR
   ========================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(62, 54, 51, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: var(--beige-light);
    z-index: 2001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--beige-dark);
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: all var(--transition-fast);
}

.cart-close:hover {
    background: var(--rose-light);
    color: var(--rose-dark);
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-light);
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--beige-dark);
    animation: fadeIn 0.4s ease;
}

.cart-item-img {
    width: 70px;
    height: 85px;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--rose-dark);
    font-weight: 600;
}

.cart-item-remove {
    color: var(--text-light);
    transition: color var(--transition-fast);
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #c44;
}

.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--beige-dark);
    background: var(--beige);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--beige-dark);
    background: var(--beige);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}

.qty-value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* ==========================================
   CHECKOUT PAGE
   ========================================== */
.checkout-page {
    background: var(--beige);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.checkout-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.checkout-panel {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--beige-dark);
}

.checkout-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.checkout-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--beige-dark);
}

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

.checkout-item img {
    width: 60px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

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

.checkout-item-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.checkout-item-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkout-item-price {
    font-weight: 600;
    color: var(--rose-dark);
    text-align: right;
}

.checkout-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--beige-dark);
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.checkout-row.total {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--beige-dark);
}

.checkout-form .form-group {
    margin-bottom: 1.2rem;
}

.checkout-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-weight: 600;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--beige-dark);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--beige);
    transition: border-color 0.3s;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--rose);
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--beige-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--rose);
    background: rgba(212,165,165,0.05);
}

.payment-method input {
    width: auto;
}

.promo-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.promo-box input {
    flex: 1;
}

.promo-box .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.promo-message {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.promo-message.success { color: var(--success); }
.promo-message.error { color: #c44; }

.checkout-actions {
    margin-top: 1.5rem;
}

.checkout-actions .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.checkout-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.checkout-empty h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.order-success {
    text-align: center;
    padding: 3rem 2rem;
}

.order-success h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.order-success p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-15px) rotateY(2deg); }
}

@keyframes glassPulse {
    0%, 100% { transform: translate(-50%, -50%) translateZ(-40px) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) translateZ(-40px) scale(1.05); opacity: 1; }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 10px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   3D TILT EFFECT
   ========================================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.tilt-card .product-card-info,
.tilt-card .category-overlay,
.tilt-card .feature-icon {
    transform: translateZ(30px);
}

/* Mobile Menu Overlay */.nav-overlay {    display: none;    position: fixed;    inset: 0;    background: rgba(0,0,0,0.4);    z-index: 1400;    opacity: 0;    transition: opacity 0.3s ease;}.nav-overlay.active {    display: block;    opacity: 1;}@media (max-width: 768px) {    .nav-overlay.active { display: block; }}
/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-product-3d {
        width: 320px;
        height: 320px;
    }
    
    .product-image-wrapper {
        width: 220px;
        height: 280px;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .philosophy-text {
        text-align: center;
    }
    
    .features {
        align-items: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: var(--beige-light);
        z-index: 1500;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-medium);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1600;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cart-sidebar {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-product-3d {
        width: 260px;
        height: 260px;
    }
    
    .product-image-wrapper {
        width: 180px;
        height: 230px;
    }
    
    .glass-circle {
        width: 240px;
        height: 240px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================
   AUTH & ACCOUNT STYLES
   ========================================== */

.account-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-strong);
    border-radius: 4px;
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1100;
}

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

.dropdown-menu a, .dropdown-menu .dropdown-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--text-medium);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover, .dropdown-menu .dropdown-link:hover {
    background: var(--rose-light);
    color: var(--rose-dark);
}

/* Auth Modal */
.auth-modal {
    max-width: 440px;
    padding: 2.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--beige-dark);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.auth-tab.active {
    color: var(--rose-dark);
    border-bottom-color: var(--rose-dark);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.btn-block {
    width: 100%;
}

/* Promo Banner */
#promoBanner {
    background: linear-gradient(90deg, var(--rose-light), var(--beige));
    padding: 0.875rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dark);
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

#promoBanner strong {
    font-family: var(--font-heading);
    color: var(--rose-dark);
    letter-spacing: 0.05em;
}

#promoBanner .close-promo {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-medium);
    cursor: pointer;
}

body.has-promo {
    padding-top: 38px;
}

@media (max-width: 768px) {
    .auth-modal {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    #promoBanner {
        top: 60px;
        font-size: 0.8rem;
        padding: 0.6rem 2rem 0.6rem 0.75rem;
    }
}

/* ==========================================
   WOW EFFECTS — Premium Animations
   ========================================== */

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--rose-dark);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    mix-blend-mode: difference;
    will-change: left, top;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(212, 165, 165, 0.15);
    border-color: var(--rose);
}

.custom-cursor.click {
    width: 15px;
    height: 15px;
    background: var(--rose-dark);
    border-color: var(--rose-dark);
}

@media (pointer: coarse) {
    .custom-cursor { display: none; }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rose-dark), var(--tortora), var(--rose-dark));
    z-index: 10000;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 165, 165, 0.5);
}

/* Text Reveal Animation */
.reveal-text {
    display: inline-block;
}

.reveal-text .char {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.animate .char {
    opacity: 0;
    transform: translateY(100%);
}

.reveal-text.animate.visible .char {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text .char.space {
    width: 0.3em;
}

/* Magnetic Button Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Glow Effect on Cards */
.product-card {
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--rose-light), transparent, var(--tortora-light));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    filter: blur(20px);
}

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

/* Parallax Image Wrapper */
.parallax-img {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Floating Label Effect for Inputs */
.form-group-c {
    position: relative;
}

/* Stagger Animation for Grid Items */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll anchor offset */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .custom-cursor { display: none; }
    .reveal-text .char { opacity: 1; transform: none; }
    .stagger-item { opacity: 1; transform: none; }
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--beige-light);
    border-top: 1px solid var(--beige-dark);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 -4px 20px rgba(62, 54, 51, 0.08);
    transform: translateY(0);
    transition: transform 0.5s var(--transition-medium);
}

.cookie-banner.hidden {
    transform: translateY(120%);
    pointer-events: none;
}

.cookie-banner-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    flex: 1;
}

.cookie-banner-text a {
    color: var(--rose-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: var(--text-dark);
}

.cookie-banner-btn {
    background: var(--text-dark);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.cookie-banner-btn:hover {
    background: var(--rose-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.25rem 1.5rem;
    }
    .cookie-banner-btn {
        width: 100%;
        text-align: center;
    }
}
