/*
Theme Name: IranKasbino Luxe
Theme URI: https://irankasbino.ir
Author: IranKasbino
Description: قالب فروشگاهی پرمیوم با طراحی دارک لاکچری
Version: 2.0
Text Domain: irankasbino-luxe
*/

/* ═══ Variables — اینها را برای هر دسته تغییر بده ═══ */
:root {
    --bg: #0A0514;
    --bg-2: #120A24;
    --bg-3: #1A0F30;
    --card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #F8F5FF;
    --text-muted: #9A8FB8;
    --gold: #D4AF37;
    --gold-soft: #F0D78C;
    --primary: #EC4899;
    --primary-2: #8B5CF6;
    --success: #10B981;
    --danger: #EF4444;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px rgba(0,0,0,0.5);
    --glow: 0 0 40px rgba(236,72,153,0.3);
}

/* ═══ Reset ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    line-height: 1.75;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at top right, rgba(236,72,153,0.08), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(139,92,246,0.08), transparent 50%);
    background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* ═══ Typography ═══ */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
.gold-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 999px;
    font-weight: 800; font-size: 14px;
    border: 0; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 30px rgba(236,72,153,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(236,72,153,0.6); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1a0f05;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(212,175,55,0.5); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ═══ HEADER ═══ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,5,20,0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 32px;
    padding: 18px 24px;
}
.logo a {
    display: flex; align-items: center; gap: 12px;
    font-size: 22px; font-weight: 900;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 22px;
    box-shadow: var(--glow);
}
.main-nav ul { display: flex; justify-content: center; gap: 8px; list-style: none; }
.main-nav a {
    display: block; padding: 10px 18px;
    font-size: 14px; font-weight: 600;
    border-radius: 10px;
    color: var(--text-muted);
}
.main-nav a:hover, .main-nav .current-menu-item > a {
    background: rgba(255,255,255,0.06);
    color: var(--gold);
}
.header-actions { display: flex; gap: 8px; }
.icon-btn {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text); font-size: 18px;
    position: relative; transition: 0.3s;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--gold); border-color: var(--gold); }
.cart-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--primary); color: #fff;
    border-radius: 999px; font-size: 11px; font-weight: 800;
    display: grid; place-items: center;
    box-shadow: 0 4px 12px rgba(236,72,153,0.6);
}
.mobile-toggle { display: none; }

/* ═══ HERO ═══ */
.hero {
    padding: 100px 24px 120px;
    position: relative; overflow: hidden;
    text-align: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,72,153,0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139,92,246,0.25), transparent 40%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,175,55,0.4);
    padding: 10px 20px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    color: var(--gold); margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.hero h1 { margin-bottom: 20px; }
.hero p {
    font-size: clamp(15px, 1.5vw, 19px);
    color: var(--text-muted);
    max-width: 600px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══ SECTION TITLE ═══ */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ═══ CATEGORIES ═══ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.cat-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex; align-items: flex-end;
    transition: all 0.4s;
    cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.cat-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s;
}
.cat-card:hover .cat-card-bg { transform: scale(1.1); }
.cat-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,5,20,0.95) 0%, rgba(10,5,20,0.4) 50%, transparent 100%);
}
.cat-card-body {
    position: relative; z-index: 2;
    padding: 24px; width: 100%;
}
.cat-card h3 { margin-bottom: 4px; }
.cat-card span {
    color: var(--gold); font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
}

/* ═══ PRODUCTS ═══ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}
.product-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-3);
}
.product-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.product-card:hover .product-thumb img { transform: scale(1.1); }
.product-badge {
    position: absolute; top: 14px; right: 14px;
    padding: 6px 14px; border-radius: 999px;
    font-size: 11px; font-weight: 800;
    z-index: 2;
}
.product-badge.sale { background: var(--danger); color: #fff; }
.product-badge.new { background: var(--gold); color: #1a0f05; }
.product-actions {
    position: absolute; inset: auto 14px 14px 14px;
    display: flex; gap: 8px;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s;
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-actions .btn {
    flex: 1; justify-content: center;
    padding: 10px 16px; font-size: 12px;
}
.product-body { padding: 18px; }
.product-cat {
    font-size: 11px; color: var(--gold);
    font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; margin-bottom: 6px;
}
.product-title {
    font-size: 15px; font-weight: 800;
    color: var(--text); display: block;
    margin-bottom: 8px; line-height: 1.5;
    min-height: 44px;
}
.product-title:hover { color: var(--gold); }
.product-price { display: flex; align-items: center; gap: 8px; }
.product-price del { color: var(--text-muted); font-size: 13px; }
.product-price ins {
    color: var(--gold); font-size: 17px; font-weight: 900;
    text-decoration: none;
}
.product-price span { color: var(--gold); font-size: 17px; font-weight: 900; }
.stars { color: var(--gold); font-size: 13px; margin-bottom: 6px; }

/* ═══ FEATURES ═══ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 32px 24px; text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: 0.3s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: grid; place-items: center;
    font-size: 28px;
    box-shadow: var(--glow);
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 13px; }

/* ═══ NEWSLETTER ═══ */
.newsletter {
    background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(139,92,246,0.15));
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    position: relative; overflow: hidden;
}
.newsletter::before {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--gold), transparent 70%);
    opacity: 0.15;
    top: -200px; left: -200px;
}
.newsletter h2 { margin-bottom: 12px; position: relative; }
.newsletter p { color: var(--text-muted); margin-bottom: 28px; position: relative; }
.newsletter-form {
    display: flex; gap: 12px; max-width: 500px;
    margin: 0 auto; position: relative;
}
.newsletter-form input {
    flex: 1; padding: 16px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text); font-family: inherit; font-size: 14px;
    outline: none; transition: 0.3s;
}
.newsletter-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.1); }
.newsletter-form button {
    padding: 16px 32px; border-radius: 999px;
    background: var(--gold); color: #1a0f05;
    border: 0; font-weight: 800; font-size: 14px;
    transition: 0.3s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-soft); transform: scale(1.05); }

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 80px 24px 40px;
    margin-top: 100px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1300px; margin: 0 auto 60px;
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.9; max-width: 320px; }
.footer-col h4 {
    font-size: 15px; margin-bottom: 20px;
    color: var(--text); font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-col a {
    display: block; padding: 8px 0;
    color: var(--text-muted); font-size: 14px;
}
.footer-col a:hover { color: var(--gold); padding-right: 6px; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
    color: var(--text-muted); font-size: 13px;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 16px;
    max-width: 1300px; margin: 0 auto;
}
.payment-icons { display: flex; gap: 12px; font-size: 20px; opacity: 0.7; }

/* ═══ WOOCOMMERCE OVERRIDES ═══ */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.woocommerce ul.products li.product {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.4s !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:hover {
    border-color: var(--gold) !important;
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.woocommerce ul.products li.product img { border-radius: 0 !important; transition: transform 0.6s; }
.woocommerce ul.products li.product:hover img { transform: scale(1.08); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 16px 18px 8px !important;
    font-size: 15px !important; color: var(--text) !important; font-weight: 800 !important;
}
.woocommerce ul.products li.product .price {
    padding: 0 18px !important;
    color: var(--gold) !important;
    font-weight: 900 !important;
    font-size: 17px !important;
}
.woocommerce ul.products li.product .button {
    margin: 12px 18px 18px !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
    color: #fff !important; border-radius: 999px !important;
    padding: 12px 24px !important; font-weight: 800 !important;
    font-size: 13px !important; text-align: center;
    transition: 0.3s;
}
.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236,72,153,0.5);
}
.woocommerce ul.products li.product .onsale {
    background: var(--danger) !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    min-height: auto !important; min-width: auto !important;
    line-height: 1.5 !important; top: 14px !important; right: 14px !important;
}

/* ═══ SINGLE PRODUCT ═══ */
.product-detail {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; padding: 60px 0;
}
.product-gallery {
    position: sticky; top: 100px; align-self: start;
}
.product-gallery .woocommerce-product-gallery__image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.product-info h1 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
}
.product-info .price {
    font-size: 32px !important;
    color: var(--gold) !important;
    font-weight: 900 !important;
    margin-bottom: 24px !important;
}
.product-info .woocommerce-product-details__short-description {
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.product-info .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
    color: #fff !important;
    padding: 18px 48px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    border: 0 !important;
    box-shadow: 0 10px 30px rgba(236,72,153,0.4) !important;
    transition: 0.3s !important;
}
.product-info .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(236,72,153,0.6) !important;
}
.product-info .quantity input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    padding: 16px !important;
    border-radius: var(--radius-sm) !important;
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb-bar {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    font-size: 13px;
}
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--gold); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 968px) {
    .header-inner { grid-template-columns: auto 1fr auto; }
    .main-nav { display: none; }
    .mobile-toggle { display: grid; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .product-gallery { position: static; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 60px 16px 80px; }
    .newsletter { padding: 40px 20px; border-radius: 24px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}
