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

body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background: #f8f9fa;
    direction: rtl;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: #1a2a1f;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar a {
    color: #ddd;
    text-decoration: none;
}

/* ========== MAIN HEADER ========== */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #1a2a1f;
}

.search {
    flex: 1;
    max-width: 500px;
}

.search form {
    display: flex;
    gap: 0;
}

.search input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
}

.search input:focus {
    outline: none;
    border-color: #c6a43e;
}

.search button {
    background: #c6a43e;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
}

.actions {
    display: flex;
    gap: 20px;
}

.actions a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* ========== MAIN MENU ========== */
.main-menu {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #c6a43e;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    margin: 0 0 30px 0;
    position: relative;
    overflow: hidden;
    max-height: 600px;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.4);
    padding: 20px 35px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slide-price {
    font-size: 28px;
    font-weight: bold;
    color: #c6a43e;
    margin-bottom: 15px;
}

.slide-btn {
    background: #c6a43e;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    display: inline-block;
    transition: 0.3s;
}

.slide-btn:hover {
    background: #a8892e;
    transform: scale(1.05);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #c6a43e;
}

/* ========== CATEGORIES SECTION - استایل جذاب دسته‌بندی ========== */
.categories-section {
    padding: 40px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #1a2a1f;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #c6a43e;
    margin: 15px auto 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
    border-color: #c6a43e;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-img-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c6a43e, #a8892e);
    border-radius: 50%;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-link {
    font-size: 13px;
    color: #c6a43e;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover .category-link {
    opacity: 1;
}

.no-categories {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
}

/* ========== BANNERS SECTION ========== */
.banners-section {
    padding: 40px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.banner-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.banner-card:hover img {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.banner-text h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.banner-text a {
    color: #c6a43e;
    text-decoration: none;
    font-weight: bold;
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
    padding: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-img {
    height: 220px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c6a43e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.product-title {
    font-size: 16px;
    margin: 15px 0 10px;
    text-align: center;
}

.product-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #c6a43e;
}

.product-price {
    text-align: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #1a2a1f;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.add-to-cart {
    width: 100%;
    background: #1a2a1f;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #c6a43e;
}

/* ========== FOOTER ========== */
.footer {
    background: #1a2a1f;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #c6a43e;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    .search {
        width: 100%;
        max-width: none;
    }
    .main-menu ul {
        gap: 15px;
    }
    .banner-grid {
        grid-template-columns: 1fr;
    }
    .slide-content {
        padding: 10px 20px;
        right: 5%;
    }
    .slide-content h2 {
        font-size: 18px;
    }
    .slide-content p {
        font-size: 12px;
    }
    .slide-price {
        font-size: 16px;
    }
    .slide img {
        min-height: 250px;
        max-height: 350px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .category-icon {
        font-size: 32px;
    }
    .category-img-wrapper {
        width: 70px;
        height: 70px;
    }
    .category-card h3 {
        font-size: 14px;
    }
}