/*
Theme Name: AURA & OAK
Theme URI: https://auraandoak.com/
Author: Senior Front-End Developer
Description: A custom luxury e-commerce theme for the street-luxury brand AURA & OAK.
Version: 1.0.0
Text Domain: aura-and-oak
Requires at least: 5.6
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ---------------------------------------------------------
   1. VARIABLES & TYPOGRAPHY
--------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --color-charcoal: #121212;
    --color-cream: #F5F5F7;
    --color-slate: #E5E5E5;
    --color-sand: #E6DFD5;
    --color-white: #FFFFFF;
    --color-accent: #C5A880; /* Muted Gold / Luxury Sand accent */
    --color-charcoal-muted: #1e1e1e;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------------------------------------------------------
   2. RESET & BASE STYLES
--------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

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

/* ---------------------------------------------------------
   3. HEADER & NAVIGATION
--------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 229, 229, 0.08);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.site-logo a {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
}

.site-navigation {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-sand);
    position: relative;
    padding: 8px 0;
}

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

.nav-link:hover {
    color: var(--color-white);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-cart-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.cart-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

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

/* Mobile Menu Trigger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
    .site-navigation {
        display: none; /* Can be toggled via JS */
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ---------------------------------------------------------
   4. LIQUID BUTTON EFFECT
--------------------------------------------------------- */
.btn-luxury {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: border-color 0.4s ease;
}

.btn-luxury .btn-liquid-bg {
    position: absolute;
    top: 100%;
    left: -25%;
    width: 150%;
    height: 190%;
    background-color: var(--color-white);
    border-radius: 40%;
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(0) rotate(0deg);
}

.btn-luxury:hover {
    color: var(--color-charcoal);
    border-color: var(--color-white);
}

.btn-luxury:hover .btn-liquid-bg {
    transform: translateY(-80%) rotate(180deg);
}

.btn-luxury.secondary {
    border-color: rgba(229, 229, 229, 0.1);
    color: var(--color-sand);
}

.btn-luxury.secondary .btn-liquid-bg {
    background-color: var(--color-sand);
}

.btn-luxury.secondary:hover {
    color: var(--color-charcoal);
    border-color: var(--color-sand);
}

/* ---------------------------------------------------------
   5. HERO FEATURED SLIDER (Swiper)
--------------------------------------------------------- */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background-color: #0b0b0b;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide-content-half {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    background-color: var(--color-charcoal);
    position: relative;
    z-index: 10;
}

.slide-image-half {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #171717;
}

.slide-image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1.05);
}

.hero-swiper .swiper-slide-active .slide-image-half img {
    transform: scale(1);
}

/* Left Side Content Styling */
.slide-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
}

.slide-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.slide-category {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--color-sand);
}

.slide-price {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
}

.slide-description {
    font-size: 14px;
    font-weight: 300;
    color: #a0a0a0;
    max-width: 440px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.slide-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

/* Active slide animation trigger */
.hero-swiper .swiper-slide-active .slide-badge,
.hero-swiper .swiper-slide-active .slide-title,
.hero-swiper .swiper-slide-active .slide-meta-row,
.hero-swiper .swiper-slide-active .slide-description,
.hero-swiper .swiper-slide-active .slide-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Navigation & Pagination */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-white) !important;
    width: 60px !important;
    height: 60px !important;
    background-color: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    transition: var(--transition-fast) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--color-white);
    color: var(--color-charcoal) !important;
    border-color: var(--color-white);
}

.hero-swiper-pagination {
    position: absolute;
    bottom: 40px !important;
    left: 10% !important;
    width: auto !important;
    z-index: 100;
    display: flex;
    gap: 12px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 0;
    opacity: 1 !important;
    transition: var(--transition-smooth) !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-accent) !important;
    width: 60px;
}

@media (max-width: 1024px) {
    .hero-slide {
        flex-direction: column;
    }
    .slide-content-half,
    .slide-image-half {
        width: 100%;
        height: 50%;
    }
    .slide-content-half {
        padding: 40px 20px;
        order: 2;
    }
    .slide-image-half {
        order: 1;
    }
    .hero-swiper-pagination {
        bottom: 50% !important;
        left: 20px !important;
        transform: translateY(50%);
    }
}

/* ---------------------------------------------------------
   6. DYNAMIC PRODUCT GRID
--------------------------------------------------------- */
.catalog-section {
    padding: 140px 0;
    background-color: var(--color-cream);
    color: var(--color-charcoal);
}

.catalog-header {
    text-align: center;
    margin-bottom: 80px;
}

.catalog-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.catalog-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    color: var(--color-charcoal);
}

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

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

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

/* PRODUCT CARD STYLING */
.product-card {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid rgba(18, 18, 18, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.5s ease;
    transform: translateY(30px);
    opacity: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f7f7f7;
    margin-bottom: 20px;
    transform: translateZ(20px);
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card-image-wrap .image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Hover cross-fade secondary image */
.product-card:hover .product-card-image-wrap .image-primary {
    opacity: 0;
}

.product-card:hover .product-card-image-wrap .image-secondary {
    opacity: 1;
    transform: scale(1.03);
}

.product-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 10px;
    z-index: 5;
}

.product-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: translateY(15px) translateZ(30px);
    transition: var(--transition-smooth);
    z-index: 5;
    display: flex;
    justify-content: center;
}

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

.product-card-info {
    text-align: center;
    transform: translateZ(15px);
}

.product-card-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8c8c8c;
    margin-bottom: 6px;
}

.product-card-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.product-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal);
}

.product-card-price del {
    color: #8c8c8c;
    font-size: 13px;
    margin-right: 6px;
}

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

/* ---------------------------------------------------------
   7. FOOTER SECTION
--------------------------------------------------------- */
.site-footer {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .footer-logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-brand p {
    font-size: 13px;
    color: #8c8c8c;
    max-width: 300px;
    line-height: 1.8;
}

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 13px;
    color: #8c8c8c;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-newsletter p {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
}

.newsletter-form input {
    background: none;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 13px;
    flex-grow: 1;
}

.newsletter-form button {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    font-size: 11px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ---------------------------------------------------------
   8. AJAX FEEDBACK, NOTIFICATIONS & LOADER
--------------------------------------------------------- */
.cart-added-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
    padding: 16px 28px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
}

.cart-added-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 4px;
    height: 4px;
    background-color: currentColor;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: .2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes blink {
    0% {
        opacity: .2;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: .2;
    }
}
