/**
 * ShopWave Luxe - Ultra-Modern Main Stylesheet
 * Inspired by Zara, Cartier, and premium fashion brands
 *
 * @package ShopWave
 * @version 2.0.0
 */

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-charcoal);
    background: var(--color-white);
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY - Editorial Style
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-6);
}

h1, .display-1 {
    font-size: var(--text-6xl);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: var(--tracking-tighter);
}

h2, .display-2 {
    font-size: var(--text-5xl);
    font-family: var(--font-display);
    font-weight: 500;
}

h3, .display-3 {
    font-size: var(--text-4xl);
}

h4 {
    font-size: var(--text-3xl);
}

h5 {
    font-size: var(--text-2xl);
}

h6 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.body-large {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.body-small {
    font-size: var(--text-sm);
}

.tiny {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: var(--tracking-tight);
}

.tracking-wide {
    letter-spacing: var(--tracking-wide);
}

.tracking-wider {
    letter-spacing: var(--tracking-wider);
}

.tracking-widest {
    letter-spacing: var(--tracking-widest);
}

.tracking-ultra {
    letter-spacing: 0.25em;
}

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

a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-full {
    width: 100%;
    padding: 0;
}

/* Spacing Utilities */
.py-24 {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.py-20 {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.py-12 {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-pearl);
    transition: transform var(--duration-base) var(--ease-out);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: var(--space-6) var(--space-8);
    gap: var(--space-8);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    justify-self: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--space-10);
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: var(--space-3) 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: width var(--duration-base) var(--ease-out);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-6);
}

.header-action-btn {
    background: none;
    border: none;
    padding: var(--space-3);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out);
}

.header-action-btn:hover {
    transform: scale(1.1);
}

.header-action-btn svg {
    width: 20px;
    height: 20px;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    margin: 5px 0;
    transition: all var(--duration-base) var(--ease-out);
}

/* ==========================================================================
   BUTTONS - Premium Style
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    border: none;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--color-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn-full {
    width: 100%;
}

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

.btn-gold:hover {
    background: var(--color-gold-dark);
}

/* ==========================================================================
   FORMS - Minimal & Elegant
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background: var(--color-white);
    border: 1px solid var(--color-stone);
    border-radius: 0;
    transition: all var(--duration-base) var(--ease-out);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-black);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ==========================================================================
   PRODUCT CARDS - Ultra Modern
   ========================================================================== */

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-media {
    position: relative;
    overflow: hidden;
    background: var(--color-pearl);
    aspect-ratio: 3/4;
    margin-bottom: var(--space-5);
}

.product-card-link {
    display: block;
    height: 100%;
}

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

.product-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.product-card-image-hover {
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

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

.product-card:hover .product-card-image-hover {
    opacity: 1;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    background: var(--color-white);
    color: var(--color-black);
    z-index: 10;
}

.badge-sale {
    background: var(--color-black);
    color: var(--color-white);
}

.badge-new {
    background: var(--color-gold);
    color: var(--color-white);
}

.badge-out-of-stock {
    background: var(--color-slate);
    color: var(--color-white);
}

/* Product Actions */
.product-card-actions {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s var(--ease-out);
    z-index: 10;
}

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

.product-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

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

.product-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Product Content */
.product-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-categories {
    color: var(--color-slate);
}

.product-categories a {
    color: inherit;
}

.product-categories a:hover {
    color: var(--color-black);
}

.product-title {
    font-size: var(--text-base);
    font-weight: 500;
    font-family: var(--font-heading);
    margin: 0;
    line-height: var(--leading-snug);
}

.product-title a {
    color: var(--color-black);
    transition: color var(--duration-base) var(--ease-out);
}

.product-title a:hover {
    color: var(--color-slate);
}

.product-price {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-top: var(--space-2);
}

.product-price del {
    color: var(--color-slate);
    font-weight: 400;
    margin-right: var(--space-2);
}

.product-price ins {
    text-decoration: none;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.star-rating {
    display: flex;
    color: var(--color-gold);
    font-size: var(--text-sm);
}

/* Color Swatches */
.product-color-swatches {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-stone);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out);
}

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

/* Quick Add Button */
.product-quick-add {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    width: 100%;
    text-align: center;
}

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

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */

.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-6);
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: var(--color-white);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.quick-view-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all var(--duration-fast) var(--ease-out);
}

.quick-view-close:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    padding: var(--space-12);
}

.quick-view-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.quick-view-image {
    width: 100%;
    height: auto;
}

.quick-view-summary {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h3 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-6);
}

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

.footer-widget li {
    margin-bottom: var(--space-3);
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--duration-base) var(--ease-out);
}

.footer-widget a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: var(--space-6);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--duration-base) var(--ease-out);
}

.footer-social a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

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

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

.animate-fade-in {
    animation: fadeIn var(--duration-base) var(--ease-out);
}

.animate-slide-up {
    animation: slideUp var(--duration-slow) var(--ease-out);
}

.animate-scale-in {
    animation: scaleIn var(--duration-base) var(--ease-out);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

[data-scroll] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-scroll].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .quick-view-product {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --text-6xl: clamp(2.5rem, 6vw, 4rem);
        --text-5xl: clamp(2rem, 5vw, 3rem);
        --text-4xl: clamp(1.75rem, 4vw, 2.5rem);
    }

    .header-inner {
        padding: var(--space-4) var(--space-6);
    }

    .header-actions {
        gap: var(--space-4);
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

    .quick-view-modal {
        padding: var(--space-4);
    }

    .quick-view-product {
        padding: var(--space-6);
        gap: var(--space-8);
    }

    .quick-view-gallery {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 var(--space-4);
    }

    .btn {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-xs);
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .header-actions,
    .product-card-actions,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
    }
}
