/* =========================================================
   BAARAYESH - LUXURY BEAUTY STORE
   Main Stylesheet
========================================================= */

:root {
    /* Color Palette - Luxury Gold & Deep Charcoal */
    --color-primary: #c9a05c;        /* طلایی لوکس */
    --color-primary-dark: #a9803c;
    --color-primary-light: #e8cf9f;
    --color-dark: #1a1714;           /* پس‌زمینه تیره / متن اصلی */
    --color-dark-soft: #2b2622;
    --color-cream: #faf6ef;          /* پس‌زمینه روشن */
    --color-cream-dark: #f0e8d8;
    --color-text: #2b2622;
    --color-text-light: #6f665c;
    --color-white: #ffffff;
    --color-danger: #c0392b;
    --color-success: #3f7a52;
    --color-border: #e6ddc9;

    --font-main: 'Vazirmatn', 'Yekan Bakh', Tahoma, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(26,23,20,0.06);
    --shadow-md: 0 8px 30px rgba(26,23,20,0.10);
    --shadow-lg: 0 20px 50px rgba(26,23,20,0.15);

    --transition: all 0.3s ease;
    --container-width: 1240px;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--color-cream);
    color: var(--color-text);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- SECTION HEADING ---------- */
.section-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 50px;
}
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary-dark);
    background: rgba(201,160,92,0.12);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
}
.section-tag.light { color: var(--color-primary-light); background: rgba(255,255,255,0.15); }
.section-heading h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-dark);
}
.section-heading p { color: var(--color-text-light); font-size: 15px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline {
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: var(--color-white); }
.btn-white {
    background: var(--color-white);
    color: var(--color-dark);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* =========================================================
   HEADER (assumed structure - matches previous file)
========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(250,246,239,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
    position: relative;
    padding: 80px 0 40px;
    background: radial-gradient(circle at 80% 20%, rgba(201,160,92,0.15), transparent 50%),
                linear-gradient(180deg, #fdfbf6, var(--color-cream));
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}
.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary-dark);
    background: rgba(201,160,92,0.15);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-dark);
    margin-bottom: 20px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content > p {
    color: var(--color-text-light);
    font-size: 16px;
    max-width: 480px;
    margin-bottom: 34px;
}
.hero-buttons { display: flex; gap: 16px; margin-bottom: 50px; }

.hero-stats { display: flex; gap: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-dark);
}
.stat-item strong i { color: var(--color-primary); font-size: 18px; }
.stat-item span { font-size: 13px; color: var(--color-text-light); }

/* Hero Visual */
.hero-visual { position: relative; height: 460px; }
.hero-float-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    width: 220px;
    animation: floatY 4s ease-in-out infinite;
}
.hero-float-card img { border-radius: var(--radius-sm); width: 100%; height: 140px; object-fit: cover; margin-bottom: 10px; }
.hero-float-card.card-1 { top: 10px; right: 20px; }
.hero-float-card.card-2 { bottom: 30px; left: 0; animation-delay: 1.5s; }
.float-card-info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.float-card-info .price { font-size: 13px; color: var(--color-primary-dark); font-weight: 700; display: flex; gap: 8px; }
.float-card-info .price del { color: var(--color-text-light); font-weight: 400; }

.hero-guarantee-badge {
    position: absolute;
    top: 50%;
    left: -10px;
    background: var(--color-dark);
    color: var(--color-primary-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Brand Marquee */
.brand-marquee {
    margin-top: 60px;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
}
.marquee-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--color-text-light);
    opacity: 0.6;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================================
   CATEGORIES
========================================================= */
.categories-section { padding: 80px 0; }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.category-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 34px 20px;
    text-align: center;
    transition: var(--transition);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.category-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,160,92,0.12);
    border-radius: 50%;
    font-size: 28px;
    color: var(--color-primary-dark);
}
.category-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.category-card span { font-size: 13px; color: var(--color-text-light); }

/* =========================================================
   PRODUCTS GRID (Best Sellers / Product List)
========================================================= */
.bestsellers-section { padding: 40px 0 80px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.product-badges {
    position: absolute;
    top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 6px;
    z-index: 2;
}
.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    color: var(--color-white);
}
.badge-sale { background: var(--color-danger); }
.badge-new { background: var(--color-success); }
.badge-special { background: var(--color-primary-dark); }
.badge-best { background: var(--color-dark); }

.product-img { display: block; overflow: hidden; height: 240px; background: var(--color-cream-dark); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img img { transform: scale(1.06); }

.product-info { padding: 18px; }
.product-brand { font-size: 12px; color: var(--color-primary-dark); font-weight: 700; letter-spacing: 1px; }
.product-info h3 { font-size: 15px; font-weight: 700; margin: 6px 0 8px; line-height: 1.6; }
.product-info h3 a:hover { color: var(--color-primary-dark); }

.product-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--color-primary-dark); margin-bottom: 12px; }
.product-rating span { color: var(--color-text-light); }

.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.product-price strong { font-size: 17px; font-weight: 800; color: var(--color-dark); }
.product-price del { font-size: 13px; color: var(--color-text-light); }

.btn-add-cart {
    width: 100%;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
}
.btn-add-cart:hover { background: var(--color-primary-dark); }

.section-footer-btn { text-align: center; margin-top: 40px; }

/* =========================================================
   FLASH DEAL
========================================================= */
.flash-deal-section {
    background: linear-gradient(135deg, var(--color-dark), #322b24);
    padding: 70px 0;
    color: var(--color-white);
}
.flash-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.flash-text h2 { font-size: 30px; font-weight: 800; margin: 14px 0 12px; }
.flash-text p { color: rgba(255,255,255,0.7); max-width: 420px; margin-bottom: 26px; }

.countdown { display: flex; gap: 14px; }
.cd-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    text-align: center;
    min-width: 70px;
}
.cd-box span { display: block; font-size: 28px; font-weight: 800; color: var(--color-primary-light); }
.cd-box small { font-size: 12px; color: rgba(255,255,255,0.6); }

/* =========================================================
   TOP BRANDS
========================================================= */
.brands-section { padding: 60px 0; }
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}
.brands-grid span {
    display: block;
    padding: 26px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-text-light);
    transition: var(--transition);
}
.brands-grid span:hover { color: var(--color-primary-dark); border-color: var(--color-primary); }

/* =========================================================
   FEATURES
========================================================= */
.features-section {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    text-align: center;
    padding: 30px 16px;
}
.feature-item i {
    font-size: 36px;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}
.feature-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--color-text-light); }

/* =========================================================
   REVIEWS
========================================================= */
.reviews-section { background: var(--color-cream-dark); padding: 80px 0; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--color-border); margin-bottom: 16px; font-size: 15px; }
.review-stars .filled { color: var(--color-primary); }
.review-card p { color: var(--color-text); margin-bottom: 20px; font-size: 15px; }
.review-author strong { display: block; font-size: 14px; }
.review-author span { font-size: 12px; color: var(--color-text-light); }

/* =========================================================
   BLOG / BEAUTY JOURNAL
========================================================= */
.blog-section { padding: 80px 0; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-img { position: relative; height: 200px; overflow: hidden; background: var(--color-cream-dark); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-category {
    position: absolute; bottom: 10px; right: 10px;
    background: var(--color-dark);
    color: var(--color-primary-light);
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 30px;
}
.blog-info { padding: 20px; }
.blog-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.6; }
.blog-info p { font-size: 13px; color: var(--color-text-light); margin-bottom: 16px; }
.blog-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-light); margin-bottom: 12px; }
.read-more { color: var(--color-primary-dark); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }

/* =========================================================
   INSTAGRAM
========================================================= */
.instagram-section { padding: 0 0 80px; }
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.insta-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.insta-item i {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(26,23,20,0.5);
    color: var(--color-white);
    font-size: 24px;
    opacity: 0;
    transition: var(--transition);
}
.insta-item:hover i { opacity: 1; }
.insta-item:hover img { transform: scale(1.08); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { height: 320px; margin-top: 30px; }
    .categories-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .features-section { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid, .blog-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .flash-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 576px) {
    .hero-content h1 { font-size: 32px; }
    .categories-grid, .products-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .countdown { flex-wrap: wrap; justify-content: center; }
}