/*
Theme Name: Lohary Luxury Cosmetics
Theme URI: https://lohary.sudowork.ir
Author: Lohary Team
Description: Ultra-luxury cosmetics e-commerce theme
Version: 2.0
License: GPL v2 or later
Text Domain: lohary
*/

/* ============================================
   LUXURY DESIGN SYSTEM
   ============================================ */
:root {
    /* Brand Colors */
    --brown-dark: #2C1810;
    --brown-medium: #5C4033;
    --brown-light: #8B7355;
    --gold: #D4AF37;
    --gold-light: #F4E4C1;
    --gold-dark: #B8941F;
    --cream: #FFF8E7;
    --white: #FFFFFF;
    --black: #1A1A1A;
    
    /* Luxury Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4C1 50%, #D4AF37 100%);
    --gradient-brown: linear-gradient(135deg, #2C1810 0%, #5C4033 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.1);
    --shadow-md: 0 8px 24px rgba(44, 24, 16, 0.15);
    --shadow-lg: 0 16px 48px rgba(44, 24, 16, 0.2);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.4);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Palatino Linotype', 'Book Antiqua', serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--brown-dark);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ============================================
   HEADER - LUXURY STYLE
   ============================================ */
.site-header {
    background: var(--gradient-brown);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--gold);
}

.header-top {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--gold-light);
}

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

.header-info span {
    margin-right: 30px;
    opacity: 0.9;
}

.header-main {
    padding: 15px 0;
}

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

.site-logo {
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    position: relative;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.main-navigation a {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.main-navigation a:hover::before {
    width: 100%;
}

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

.header-btn {
    background: var(--gradient-gold);
    color: var(--brown-dark);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    transition: left 0.6s ease;
}

.header-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.header-btn:hover::before {
    left: 100%;
}

/* ============================================
   HERO SECTION - ULTRA LUXURY
   ============================================ */
.hero-section {
    background: var(--gradient-brown);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease-out;
}

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

.hero-subtitle {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 600;
    opacity: 0.95;
}

.hero-title {
    font-size: 72px;
    font-weight: 200;
    letter-spacing: 4px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.hero-description {
    font-size: 19px;
    color: var(--gold-light);
    margin-bottom: 50px;
    opacity: 0.9;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--brown-dark);
    padding: 20px 55px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-secondary {
    background: transparent;
    color: var(--gold-light);
    padding: 20px 55px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--brown-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   CATEGORIES - LUXURY CARDS
   ============================================ */
.categories-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-subtitle {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    font-size: 52px;
    font-weight: 200;
    letter-spacing: 3px;
    color: var(--brown-dark);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-description {
    font-size: 17px;
    color: var(--brown-light);
    max-width: 750px;
    margin: 30px auto 0;
    line-height: 1.8;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.category-card {
    background: var(--gradient-brown);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 24, 16, 0.9) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.category-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: var(--gold);
}

.category-card:hover::before {
    opacity: 0.7;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-image {
    transform: scale(1.15);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    z-index: 2;
    text-align: center;
}

.category-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.category-count {
    font-size: 14px;
    color: var(--gold-light);
    letter-spacing: 1px;
}

/* ============================================
   PRODUCTS - ULTRA LUXURY GRID
   ============================================ */
.products-section {
    padding: 120px 0;
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 45px;
}

.shop-page {
    padding: 80px 0;
    background: var(--cream);
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-gold);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

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

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

.product-image {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: var(--gold-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.2) rotate(2deg);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 24, 16, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-gold);
    color: var(--brown-dark);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--gold);
    z-index: 2;
}

.product-info {
    padding: 35px;
}

.product-category {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 700;
}

.product-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--brown-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--gold-dark);
}

.product-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--brown-light);
    margin-bottom: 25px;
    min-height: 45px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid var(--gold-light);
}

.product-price {
    font-size: 28px;
    font-weight: 600;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.add-to-cart {
    background: var(--gradient-brown);
    color: var(--gold-light);
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--brown-dark);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    transition: left 0.6s ease;
}

.add-to-cart:hover {
    background: var(--gold);
    color: var(--brown-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.add-to-cart:hover::before {
    left: 100%;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 0;
    background: var(--white);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.feature-item:hover {
    background: var(--cream);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 56px;
    color: var(--gold);
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-title {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--brown-dark);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 14px;
    color: var(--brown-light);
    line-height: 1.7;
}

/* ============================================
   FOOTER - LUXURY STYLE
   ============================================ */
.site-footer {
    background: var(--gradient-brown);
    color: var(--gold-light);
    padding: 100px 0 40px;
    border-top: 4px solid var(--gold);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 70px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.9;
    color: var(--gold-light);
    opacity: 0.9;
}

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

.footer-section ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    transition: left 0.3s ease;
}

.footer-section ul li:hover {
    padding-left: 30px;
    color: var(--gold);
}

.footer-section ul li:hover::before {
    left: 5px;
}

.footer-section a {
    color: var(--gold-light);
    transition: all 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold);
    font-size: 20px;
    color: var(--gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--brown-dark);
    transform: translateY(-8px) rotate(360deg);
    box-shadow: var(--shadow-gold);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--gold);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-light);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: var(--gold-light);
    opacity: 0.6;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.newsletter-form button {
    padding: 15px 35px;
    background: var(--gradient-gold);
    color: var(--brown-dark);
    border: 2px solid var(--gold);
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 40px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--gold-light);
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .site-logo {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .product-image {
        height: 300px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: var(--shadow-gold); }
    50% { box-shadow: var(--shadow-glow); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gold {
    color: var(--gold);
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}
/* Fix oversized icons in header-top */
.header-top {
    padding: 6px 0;
    font-size: 11px;
    min-height: auto;
}

.header-info {
    display: flex;
    align-items: center;
}

.header-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-info .icon,
.header-info svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
}

.header-main {
    padding: 10px 0;
}

.site-logo {
    font-size: 28px;
    letter-spacing: 3px;
}

.site-logo a {
    display: inline-block;
}

.main-navigation ul {
    gap: 30px;
}

.main-navigation a {
    font-size: 12px;
    padding: 6px 0;
}

.header-icon {
    width: auto;
    height: auto;
}

.header-icon .icon,
.header-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.header-btn {
    padding: 9px 20px;
    font-size: 11px;
}

.header-actions {
    gap: 15px;
}

/* Fix oversized feature icons on homepage */
.feature-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 28px !important;
}

.feature-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}
