@import 'variables.css';
@import 'base.css';
@import 'layout.css';
@import 'components.css';

/* Mega Menu Navigation */
.nav-mega-menu { position: relative; }
.nav-item { position: relative; }
.mega-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    min-width: 500px;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.4);
}
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.mega-column-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.mega-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mega-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
}
.mega-link:hover {
    background: var(--bg-secondary);
}
.mega-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.mega-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mega-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.mega-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.theme-toggle-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    left: 4px;
}
[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(28px);
}
.theme-icon {
    width: 16px;
    height: 16px;
    z-index: 1;
    transition: var(--transition);
}
.icon-sun { color: #f59e0b; }
.icon-moon { color: #64748b; }
[data-theme="dark"] .icon-sun { opacity: 0.3; }
[data-theme="dark"] .icon-moon { opacity: 1; color: #fbbf24; }

/* Vercel-style Tabs */
.vercel-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.vercel-tabs {
    display: inline-flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}
.vercel-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}
.vercel-tab:hover {
    color: var(--text);
}
.vercel-tab.active {
    background: white;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --border: #334155;
    --primary: #1e293b;
    --primary-light: #334155;
}
[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.4);
}
[data-theme="dark"] .mega-menu {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.4);
}
[data-theme="dark"] .vercel-tab.active {
    background: var(--primary-light);
}


/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(232, 93, 44, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}



.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

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

/* Collections Carousel */
.collections {
    background: var(--bg-secondary);
}

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

.collection-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-8px);
}

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

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

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

.collection-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.collection-count {
    font-size: 0.875rem;
    opacity: 0.8;
}

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

.product-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

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

.product-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--accent);
    color: white;
}

.quick-add {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.quick-add:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: var(--accent);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 1.125rem;
    font-weight: 700;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Brand Story */
.brand-story {
    background: var(--primary);
    color: white;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.story-text p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.8;
}

.story-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-feature {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0;
}

.story-image {
    position: relative;
}

.story-image img {
    border-radius: var(--radius-lg);
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 20px 0;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 400px;
    scroll-snap-align: start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    background: var(--bg-secondary);
}

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

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Products Page */
.products-page {
    padding-top: 100px;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 32px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.filter-option.active .filter-checkbox {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.filter-option:hover .filter-checkbox {
    border-color: var(--accent);
}

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

.size-btn {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--accent);
    transform: scale(1.1);
}

.price-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

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

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.products-count {
    color: var(--text-light);
}

.products-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-input {
    border: none;
    outline: none;
    font-size: 0.875rem;
    width: 200px;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Product Detail Page */
.product-detail {
    padding-top: 100px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-thumb {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-details .product-brand {
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.detail-price {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-current-price {
    font-size: 2rem;
    font-weight: 700;
}

.detail-original-price {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.detail-discount {
    padding: 4px 12px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.option-section {
    margin-bottom: 24px;
}

.option-label {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.size-guide-link {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

.detail-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-size-btn {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.detail-size-btn:hover,
.detail-size-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.detail-size-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.detail-colors {
    display: flex;
    gap: 12px;
}

.detail-color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.detail-color-btn:hover,
.detail-color-btn.active {
    border-color: var(--text);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

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

.add-to-cart-section {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 18px 32px;
    background: var(--accent-gradient);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.buy-now-btn {
    flex: 1;
    padding: 18px 32px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.buy-now-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.wishlist-btn {
    width: 56px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wishlist-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.product-features {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.feature-item i {
    color: var(--accent);
}

/* Reviews Section */
.reviews-section {
    margin-top: 80px;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.average-rating {
    font-size: 3rem;
    font-weight: 700;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

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

.reviewer-name {
    font-weight: 600;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Page */
.about-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

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

.about-story img {
    border-radius: var(--radius-lg);
}

.about-story h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-story p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.timeline-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Contact Page */
.contact-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-hero p {
    font-size: 1.25rem;
    color: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-input {
    border-color: #ef4444;
}

.form-group.error .form-error {
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-text p {
    color: var(--text-light);
}

.map-placeholder {
    height: 300px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: white;
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .filters-sidebar {
        display: none;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .story-content,
    .about-story,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }

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

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

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

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

    .add-to-cart-section {
        flex-direction: column;
    }

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

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

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

    .section {
        padding: 60px 0;
    }

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

    .feature-list {
        grid-template-columns: 1fr;
    }

    .cart-modal {
        max-width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, #e2e8f0 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Scroll Reveal */
.reveal-element {
  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);
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Payment Badges */
.payment-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-inner { text-align: center; }
.preloader-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 24px;
}
.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: preload 1.2s ease-out forwards;
}
@keyframes preload {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Marquee Strip */
.marquee-strip {
  background: var(--primary);
  color: white;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-block; }
.marquee-content {
  display: inline-flex;
  gap: 32px;
  animation: marquee 20s linear infinite;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.marquee-dot {
  color: var(--accent);
  font-size: 0.75rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Enhanced micro-interactions */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(232, 93, 44, 0.3);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.product-card:hover {
  border-color: rgba(232, 93, 44, 0.2);
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.cart-badge.show {
  animation: badge-pulse 0.4s ease;
}

/* Scroll Reveal */
.reveal-element {
  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);
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Payment Badges */
.payment-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-inner { text-align: center; }
.preloader-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 24px;
}
.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: preload 1.2s ease-out forwards;
}
@keyframes preload {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Marquee Strip */
.marquee-strip {
  background: var(--primary);
  color: white;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-block; }
.marquee-content {
  display: inline-flex;
  gap: 32px;
  animation: marquee 20s linear infinite;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.marquee-dot {
  color: var(--accent);
  font-size: 0.75rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Enhanced micro-interactions */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(232, 93, 44, 0.3);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.product-card:hover {
  border-color: rgba(232, 93, 44, 0.2);
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.cart-badge.show {
  animation: badge-pulse 0.4s ease;
}

/* Mega Menu UI (Floating Pill Match) */
.nav-mega-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.95rem;
}
.nav-link i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 4px;
}
.nav-item:hover .nav-link {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}
.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 50px 100px -20px rgba(50,50,93,0.25), 0 30px 60px -30px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: max-content;
  min-width: 500px;
  z-index: 1000;
  pointer-events: none;
}

/* Invisible bridge to prevent hover loss when moving mouse down */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-column-title {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.mega-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  transition: var(--transition);
}
.mega-link:hover .mega-title {
  color: var(--accent);
}
.mega-link:hover .mega-icon {
  transform: scale(1.1);
}
.mega-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s ease;
}
.mega-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  transition: color 0.3s ease;
}
.mega-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ==========================================================================
   ENTERPRISE UI ENHANCEMENTS (Apple / Vercel / Linear / Stripe Inspired)
   ========================================================================== */

/* 1. High-End Typography & Anti-Aliasing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
}

h1, h2, h3, h4, .section-title, .logo {
  letter-spacing: -0.04em !important;
}

/* 2. Frosted Glassmorphism (Stripe/Apple) */
.mega-menu {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1), 0 20px 40px -20px rgba(0, 0, 0, 0.05) !important;
}

/* 3. Hero Ambient Glow (Vercel Style) */
.hero-image {
  position: relative;
}
.hero-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--accent);
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.25; }
}

/* 4. Bento Box Grid & Spotlight Hover (Linear Style) */
.product-card, .collection-card {
  border: 1px solid rgba(0,0,0,0.04) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: #ffffff !important;
}
.product-card:hover, .collection-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.08), 0 12px 24px -8px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0,0,0,0.1) !important;
}

/* 5. Button Shimmer Effect (Modern Tech UI) */
.btn-primary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-primary:hover::after {
  left: 150%;
}

/* 6. Subtle Image Zoom (Apple Style) */
.product-image img, .collection-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.product-card:hover .product-image img, .collection-card:hover img {
  transform: scale(1.03) !important;
}

/* 7. Vercel Style Segmented Tabs */
.vercel-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.vercel-tabs {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.03);
  padding: 6px;
  border-radius: 9999px;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
}
.vercel-tab {
  position: relative;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.vercel-tab:hover {
  color: var(--text);
}
.vercel-tab.active {
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
}

/* ==========================================================================
   Search Overlay
   ========================================================================== */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

.search-overlay-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 24px;
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.open .search-overlay-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.search-close-btn {
    position: absolute;
    top: -60px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 16px;
    position: relative;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
}

.search-input-icon {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 16px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper:focus-within .search-input-icon {
    color: var(--accent);
}

.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    outline: none;
    width: 100%;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-shortcut-hint {
    display: flex;
    gap: 4px;
    align-items: center;
}

.search-shortcut-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-trending {
    margin-top: 40px;
}

.search-trending-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 700;
}

.search-trending-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
}

.search-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.search-results-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.search-result-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-brand {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.search-no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-overlay-input {
        font-size: 1.25rem;
    }
    
    .search-shortcut-hint {
        display: none;
    }
    
    .search-close-btn {
        top: -50px;
        right: 0;
    }
}

/* ==========================================================================
   Wishlist
   ========================================================================== */

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@keyframes heartShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.pop-anim svg {
    animation: heartPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shake-anim svg {
    animation: heartShake 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-active svg,
.product-action-btn.active svg,
.wishlist-btn.active svg,
.wishlist-detail-btn.active svg {
    fill: #ef4444 !important;
    color: #ef4444 !important;
}

#wishlistBadge {
    background: #ef4444;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */

.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 110000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 90%;
    max-width: 900px;
    background: var(--bg);
    border-radius: 20px;
    z-index: 110001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
    display: flex;
}

.quick-view-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quick-view-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.quick-view-content {
    display: flex;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
}

.qv-gallery {
    flex: 1;
    position: relative;
    background: var(--bg-secondary);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease-in-out;
}

.qv-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.qv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qv-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.qv-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.qv-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.qv-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.qv-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.qv-original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.qv-options {
    margin-bottom: 24px;
}

.qv-add-to-cart {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    margin-top: 16px;
    margin-bottom: 16px;
}

.qv-full-details-link {
    text-align: center;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 32px;
}

.qv-full-details-link:hover {
    color: var(--primary);
}

.qv-trust-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: auto;
}

.qv-trust-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .quick-view-content {
        flex-direction: column;
    }
    .qv-details {
        padding: 24px;
    }
    .qv-gallery {
        min-height: 300px;
    }
    .quick-view-close {
        top: 12px;
        right: 12px;
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        z-index: 10;
    }
    .qv-trust-badges {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Product Card Swatches
   ========================================================================== */

.product-swatches {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    align-items: center;
}

.swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), outline 0.2s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
    padding: 0;
}

.swatch:hover {
    transform: scale(1.15);
}

.swatch.active {
    outline-color: currentColor;
    transform: scale(1.15);
}
/* ==========================================================================
   Image Zoom
   ========================================================================== */

.product-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    cursor: crosshair;
}

.zoom-result {
    position: absolute;
    left: calc(100% + 20px);
    top: 0;
    width: 400px;
    height: 100%;
    background-repeat: no-repeat;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    background-color: var(--bg);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.mobile-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 110002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-x pan-y pinch-zoom;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

@media (max-width: 768px) {
    .zoom-result {
        display: none !important;
    }
    .gallery-main {
        cursor: zoom-in;
    }
}
/* ==========================================================================
   Price Range Slider
   ========================================================================== */
/* ==========================================================================
   Dark Mode & Theme Toggle
   ========================================================================== */

body {
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.theme-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--border);
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    cursor: pointer;
    transition: background 0.4s ease;
    margin: 0 4px;
}

[data-theme="dark"] .theme-toggle {
    background: var(--accent);
}

.theme-icon {
    width: 12px !important;
    height: 12px !important;
    z-index: 1;
    color: var(--text-light);
    transition: color 0.4s ease;
}

[data-theme="dark"] .icon-moon {
    color: white;
}

[data-theme="light"] .icon-sun {
    color: var(--primary);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(20px);
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--text);
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.transition-overlay.active {
    opacity: 0.15;
}
.price-slider-wrapper {
    width: 100%;
}

.price-slider-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    text-align: right;
}

.price-slider-container {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.price-slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
}

.price-slider-fill {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

.price-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    position: absolute;
    pointer-events: none;
    background: transparent;
    z-index: 2;
    margin: 0;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.price-range-input::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.price-range-input:active::-webkit-slider-thumb {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(232, 93, 44, 0.2);
}

.price-range-input:active::-moz-range-thumb {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(232, 93, 44, 0.2);
}

/* ==========================================================================
   Size Guide Modal
   ========================================================================== */

.sg-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 90%;
    max-width: 640px;
    background: var(--bg);
    border-radius: 20px;
    z-index: 110001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
}

.sg-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.sg-content {
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.sg-close-btn {
    top: 24px;
    right: -60px;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 4px;
}

.sg-close-btn:hover {
    background: transparent;
    transform: none;
    opacity: 0.7;
}

.sg-esc-hint {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .sg-close-btn {
        right: 20px;
        top: 20px;
        color: var(--text-light);
        flex-direction: row;
    }
    .sg-esc-hint {
        display: none;
    }
    .sg-content {
        padding: 32px 24px;
    }
}

.sg-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.sg-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.sg-tab {
    background: transparent;
    border: none;
    padding: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.sg-tab:hover {
    color: var(--primary);
}

.sg-tab.active {
    color: var(--primary);
}

.sg-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-tab.active::after {
    transform: scaleX(1);
}

.sg-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sg-tab-content.active {
    display: block;
    opacity: 1;
}

/* Tab 1: Chart */
.sg-table-wrapper {
    overflow-x: auto;
}

.sg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.sg-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 16px;
    letter-spacing: 1px;
}

.sg-table th:first-child {
    color: var(--accent);
}

.sg-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.sg-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.sg-table tr:last-child td {
    border-bottom: none;
}

.sg-table td:first-child {
    font-weight: 700;
    color: var(--primary);
}

/* Tab 2: Measure */
.sg-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sg-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.sg-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.sg-step-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sg-step-num {
    color: var(--accent);
}

.sg-step-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
.sg-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sg-footer p {
    font-weight: 500;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .sg-footer {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
}

/* ==========================================================================
   Cart Upgrades
   ========================================================================== */

.shipping-progress {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.shipping-text-container {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.shipping-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.shipping-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease;
}

.cart-upsells {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.cart-upsells-title {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.cart-upsells-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.cart-upsells-list::-webkit-scrollbar {
    height: 4px;
}

.cart-upsells-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.cart-upsell-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-width: 200px;
    flex-shrink: 0;
}

.cart-upsell-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

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

.cart-upsell-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.cart-upsell-price {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-upsell-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s ease;
}

.cart-upsell-add:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================================================
   Mobile Sticky Cart
   ========================================================================== */

.mobile-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 72px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .mobile-sticky-cart {
        display: flex;
    }
}

.mobile-sticky-cart.visible {
    transform: translateY(0);
}

.mobile-sticky-info {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.mobile-sticky-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sticky-size {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.mobile-sticky-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sticky-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.mobile-sticky-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 12px var(--accent-glow);
    cursor: pointer;
}

.pulse-highlight {
    animation: pulseHighlight 1.5s ease-out;
}

@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(232, 93, 44, 0.4); border-radius: 12px; }
    50% { box-shadow: 0 0 0 15px rgba(232, 93, 44, 0); border-radius: 12px; }
    100% { box-shadow: 0 0 0 0 rgba(232, 93, 44, 0); border-radius: 12px; }
}

/* ==========================================================================
   Custom Sort Dropdown
   ========================================================================== */

.custom-sort {
    position: relative;
    min-width: 180px;
}

.custom-sort-btn {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-sort-btn:hover {
    border-color: var(--text-light);
}

.custom-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-sort-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-sort-option {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-sort-option:hover {
    background: var(--bg-secondary);
}

.custom-sort-option.active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-glow);
}
/* ==========================================================================
   Expert UI Refinements (Human-crafted feel)
   ========================================================================== */

/* Premium Typography */
h1, h2, h3, h4, h5, h6, .hero-text h1, .product-name, .logo, .cart-header h3 {
    font-family: 'Outfit', -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

/* Custom App-like Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Tactile Button Feedback */
button, .btn, .add-to-cart-btn, .buy-now-btn, .mobile-sticky-btn {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, box-shadow 0.2s, border-color 0.2s !important;
    transform-origin: center;
}
button:active:not(:disabled), .btn:active:not(:disabled), .add-to-cart-btn:active:not(:disabled) {
    transform: scale(0.96) !important;
}

/* Expert Accessibility (Focus Visible) */
*:focus:not(:focus-visible) {
    outline: none;
}
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}
button:focus-visible, input:focus-visible {
    border-radius: inherit;
}

/* Advanced Shadow Layering (Non-AI generated look) */
.product-card:hover {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 12px 16px -4px rgba(0, 0, 0, 0.08),
        0 24px 32px -8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .product-card:hover {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 12px 16px -4px rgba(0, 0, 0, 0.4),
        0 24px 32px -8px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-light);
}
