/*
 * Untouched Hair - Premium Hair Extensions
 * Luxury Minimalist Design inspired by high-end aesthetics
 * © 2025 Untouched Hair. All rights reserved.
 */

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

/* ===========================================
   SECURITY & PROTECTION STYLES
   =========================================== */

/* Disable text selection globally (except inputs) */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form elements */
input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Disable image dragging and selection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events for clickable images */
.product-image img,
.hero-img,
.about-img {
    pointer-events: auto;
}

/* Disable print styles - hide content when printing */
@media print {
    body {
        display: none !important;
    }
    body::after {
        content: '© Untouched Hair - Printing is disabled';
        display: block;
        text-align: center;
        padding: 50px;
        font-size: 24px;
    }
}

:root {
    --black: #000000;
    --white: #ffffff;
    --off-white: #faf9f7;
    --cream: #f5f3f0;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --accent: #d4a574;
    --accent-light: #e8d5c4;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
}

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

.btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Announcement Bar - Marquee Style */
.announcement-bar {
    background: var(--black);
    color: var(--white);
    padding: 12px 0;
    overflow: hidden;
}

.announcement-bar p {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    animation: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.logo {
    text-decoration: none;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text {
    display: block;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--black);
}

.logo-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 8px;
    color: var(--gray-500);
    margin-top: 2px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text-new {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--black);
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--gray-600);
    margin-top: 2px;
}

.logo-subtitle::before,
.logo-subtitle::after {
    content: '';
    width: 10px;
    height: 1px;
    background: var(--gray-600);
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .logo-text-new {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .logo-subtitle {
        font-size: 6px;
        letter-spacing: 2px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    position: relative;
    padding: 4px 0;
}

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

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

.nav-actions {
    display: flex;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--black);
    transition: var(--transition-fast);
}

.icon-btn:hover {
    opacity: 0.6;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--black);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
    align-items: center;
}

.hero-content {
    padding: 80px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 72px;
    margin-bottom: 28px;
    line-height: 1.05;
    font-weight: 300;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 48px;
    max-width: 420px;
    line-height: 1.8;
}

.hero-image {
    background: var(--cream);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    object-position: center top;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--off-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    margin-bottom: 20px;
    color: var(--black);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1;
}

.feature h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.feature p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Products Section */
.products-section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 300;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--gray-500);
    letter-spacing: 1px;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--gray-300);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-500);
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

.filter-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* Color Filter */
.color-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-500);
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid transparent;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.color-btn:hover {
    background: var(--gray-100);
}

.color-btn.active {
    border-color: var(--black);
    background: var(--gray-100);
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.color-btn span:last-child {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-600);
}

.color-btn.active span:last-child {
    color: var(--black);
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.product-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--cream);
    overflow: hidden;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--cream) 0%, var(--gray-100) 100%);
    transition: var(--transition);
}

.product-card:hover .product-image-placeholder {
    transform: scale(1.03);
}

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

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 50px;
}

.product-actions {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.product-info {
    padding: 24px;
    text-align: center;
}

.product-category {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--black);
    font-weight: 400;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.price-current {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
}

.price-compare {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* Size Selector */
.size-selector {
    margin: 16px 0;
}

.size-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23525252' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.size-dropdown:hover {
    border-color: var(--black);
}

.size-dropdown:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.size-dropdown option:disabled {
    color: var(--gray-400);
}

.product-info .add-btn {
    margin-top: 12px;
    padding: 14px 24px;
    font-size: 10px;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.9;
    font-size: 17px;
}

.about-content .btn {
    margin-top: 24px;
}

.about-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Newsletter */
.newsletter-section {
    padding: 120px 0;
    background: var(--black);
    color: var(--white);
}

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

.newsletter-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 300;
}

.newsletter-content p {
    color: var(--gray-400);
    margin-bottom: 40px;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 24px;
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    background: transparent;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--white);
}

.newsletter-form .btn {
    background: var(--white);
    color: var(--black);
}

.newsletter-form .btn:hover {
    background: var(--gray-200);
}

/* Footer */
.footer {
    padding: 100px 0 48px;
    background: var(--off-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer .logo-text {
    font-size: 24px;
}

.footer-desc {
    color: var(--gray-500);
    margin-top: 20px;
    max-width: 280px;
    font-size: 15px;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--black);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--black);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--gray-500);
}

.payment-methods {
    display: flex;
    gap: 24px;
}

.payment-methods span {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--gray-400);
    letter-spacing: 1px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-lg);
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 150;
    transition: var(--transition);
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
}

.close-cart {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--gray-400);
    line-height: 1;
    transition: var(--transition-fast);
}

.close-cart:hover {
    color: var(--black);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 100px;
    height: 120px;
    background: var(--cream);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--gray-300);
}

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

.cart-item-name {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.cart-item-variant {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.cart-item-price {
    font-family: var(--font-sans);
    font-weight: 500;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    border-color: var(--black);
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.cart-footer {
    padding: 32px;
    border-top: 1px solid var(--gray-200);
    background: var(--off-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cart-shipping-note {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: var(--radius-lg);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--black);
}

.modal-body {
    padding: 48px;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 80px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 80px 24px;
        text-align: center;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-description {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        position: relative;
        left: auto;
        transform: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 10px;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 16px;
    }
}

/* ===========================================
   AI HAIR ADVISOR CHATBOT
   =========================================== */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-sans);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.chat-toggle.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-status {
    font-size: 11px;
    opacity: 0.8;
}

.chat-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chat-minimize:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8f8f8;
}

.chat-message {
    display: flex;
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.bot {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.user .message-content {
    background: #000;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.bot .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-content strong {
    font-weight: 600;
}

.message-content .bullet,
.message-content .check,
.message-content .cross {
    display: inline-block;
    margin-right: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.suggestion-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-user-select: text;
    user-select: text;
}

.suggestion-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.chat-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-user-select: text;
    user-select: text;
}

.chat-input:focus {
    border-color: #000;
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.chat-send:hover {
    background: #333;
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-toggle {
        width: 54px;
        height: 54px;
    }

    .chat-window {
        bottom: 70px;
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        right: -8px;
    }

    .chat-messages {
        padding: 16px;
    }

    .message-content {
        font-size: 13px;
    }
}

/* ===========================================
   COOKIE CONSENT POPUP
   =========================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    color: white;
    padding: 20px;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--accent);
}

.cookie-consent-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.cookie-consent-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--black);
}

.cookie-btn-accept:hover {
    background: var(--accent-light);
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.cookie-btn-decline:hover {
    border-color: white;
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    padding: 12px;
}

.cookie-btn-settings:hover {
    color: white;
}

/* ===========================================
   PWA INSTALL MODAL
   =========================================== */

.pwa-install-banner {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    max-width: 360px;
    width: calc(100% - 40px);
    transition: transform 0.4s ease;
}

.pwa-install-banner.show {
    transform: translateX(-50%) translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pwa-icon {
    width: 48px;
    height: 48px;
    background: var(--black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.pwa-info h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    margin-bottom: 4px;
}

.pwa-info p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 12px;
}

.pwa-buttons {
    display: flex;
    gap: 8px;
}

.pwa-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.pwa-btn-install {
    background: var(--black);
    color: white;
}

.pwa-btn-install:hover {
    background: var(--gray-800);
}

.pwa-btn-later {
    background: var(--gray-100);
    color: var(--gray-600);
}

.pwa-btn-later:hover {
    background: var(--gray-200);
}

.pwa-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 20px;
}

.pwa-close:hover {
    color: var(--black);
}

/* PWA Install Instructions Modal */
.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.install-modal.show {
    opacity: 1;
    visibility: visible;
}

.install-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.install-modal.show .install-modal-content {
    transform: translateY(0);
}

.install-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.install-modal-header h3 {
    font-family: var(--font-serif);
    font-size: 24px;
}

.install-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-600);
}

.install-modal-close:hover {
    background: var(--gray-200);
}

.install-modal-body {
    padding: 24px;
}

.install-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.install-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.install-tab.active {
    background: var(--black);
    color: white;
}

.install-tab:not(.active):hover {
    background: var(--gray-200);
}

.install-steps {
    display: none;
}

.install-steps.active {
    display: block;
}

.install-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.install-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .pwa-install-banner {
        bottom: 80px;
    }
}
