/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f97316;
    --secondary-color: #1e3a5f;
    --accent-color: #059669;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    color: var(--text-color);
    line-height: 1.7;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Announcement Bar ===== */
.announcement-bar {
    background: linear-gradient(90deg, #f97316, #fb923c);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

    .announcement-bar i {
        margin-left: 8px;
    }

/* ===== Header ===== */
.header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    direction: ltr;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cart,
.header-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    color: var(--text-color);
    font-size: 14px;
}

    .header-cart:hover,
    .header-login:hover {
        background: var(--bg-gray);
    }

.header-cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f97316;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    line-height: 1;
}

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

.search-box {
    display: flex;
    background: var(--bg-gray);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .search-box input {
        flex: 1;
        padding: 12px 20px;
        border: none;
        background: transparent;
        font-size: 14px;
        outline: none;
        font-family: inherit;
        color: var(--text-color);
    }

        .search-box input::placeholder {
            color: var(--text-light);
        }

    .search-box button {
        padding: 12px 20px;
        background: var(--primary-color);
        border: none;
        color: var(--white);
        cursor: pointer;
        transition: background 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .search-box button:hover {
            background: #ea580c;
        }

        .search-box button:focus {
            outline: none;
        }

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo-yadaki {
    color: var(--secondary-color);
}

.logo-run {
    color: var(--primary-color);
}

/* ===== Navigation ===== */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

    .nav-menu > li > a {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 15px 18px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-color);
        transition: color 0.3s;
    }

        .nav-menu > li > a:hover {
            color: var(--primary-color);
        }

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 200;
    padding: 5px 0;
    margin-top: 5px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

    .dropdown-menu li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 20px;
        font-size: 14px;
        color: var(--text-color);
        transition: all 0.3s;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a:hover {
        background: var(--bg-gray);
        color: var(--primary-color);
        padding-right: 25px;
    }

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    right: 100%;
    top: 0;
    background: var(--white);
    min-width: 180px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

    .submenu li {
        margin: 0;
        padding: 0;
    }

        .submenu li a {
            display: block;
            padding: 6px 20px;
            font-size: 14px;
            color: var(--text-color);
            transition: all 0.3s;
            border-bottom: 1px solid var(--border-color);
        }

        .submenu li:last-child a {
            border-bottom: none;
        }

        .submenu li a:hover {
            background: var(--bg-gray);
            color: var(--primary-color);
            padding-right: 25px;
        }

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    justify-content: center;
}

    .hero .container {
        max-width:100%;
        padding:0;
        margin:0;
    }
/* Banner Slider */
.banner-slider-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;
}

.banner-swiper {
    width: 100%;
    height: 450px;
}

    .banner-swiper .swiper-slide {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    }

        .banner-swiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .banner-swiper .swiper-slide a {
            display: block;
            width: 100%;
            height: 100%;
        }

    .banner-swiper .swiper-pagination {
        bottom: 20px;
    }

    .banner-swiper .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        background: var(--white);
        opacity: 0.5;
    }

    .banner-swiper .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--primary-color);
    }

    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        color: var(--white);
        background: rgba(0, 0, 0, 0.3);
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

        .banner-swiper .swiper-button-next:after,
        .banner-swiper .swiper-button-prev:after {
            font-size: 18px;
        }

        .banner-swiper .swiper-button-next:hover,
        .banner-swiper .swiper-button-prev:hover {
            background: rgba(0, 0, 0, 0.5);
        }

@media (max-width: 768px) {
    .banner-swiper {
        height: 250px;
    }

        .banner-swiper .swiper-button-next,
        .banner-swiper .swiper-button-prev {
            display: none;
        }
}

.brands-section {
    background: var(--bg-light);
    padding: 30px 0;
}

.brand-slider {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    min-width: 100px;
    box-shadow: var(--shadow);
}

    .brand-item img {
        height: 85px;
        width: auto;
        object-fit: contain;
        filter: grayscale(30%);
        transition: filter 0.3s;
    }

    .brand-item:hover img {
        filter: grayscale(0%);
    }

    .brand-item span {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-color);
    }

/* ===== Section Styles ===== */
section {
    padding: 40px 0;
}

.section-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.section-title-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-header-box h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

    .view-all-link:hover {
        text-decoration: underline;
    }

/* ===== Countdown ===== */
.section-countdown {
    display: flex;
    align-items: center;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
}

.countdown-num {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

.countdown-sep {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ===== Products Slider ===== */
.products-slider-container {
    position: relative;
    padding: 0 50px;
}

.products-swiper {
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

.swiper-button-next {
    right: 0;
}

.swiper-button-prev {
    left: 0;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

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

.product-image {
    position: relative;
    height: 180px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
}

    .product-badge.out-of-stock {
        background: #6b7280;
    }

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-light);
}

    .product-rating i {
        color: #fbbf24;
    }

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 12px;
}

    .product-price.unavailable {
        color: #ef4444;
        font-size: 14px;
    }

.product-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    flex: 1;
}

    .btn-primary:hover {
        background: #ea580c;
    }

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

    .btn-secondary:hover {
        background: var(--border-color);
    }

.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    flex: 1;
}

/* ===== Special Offers ===== */
.special-offers {
    background: var(--white);
}

/* ===== Best Sellers ===== */
.best-sellers {
    background: var(--bg-light);
}

/* ===== Promo Banners ===== */
.promo-banners {
    padding: 30px 0;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.banner-item {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: var(--radius);
    padding: 30px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

    .banner-item img {
        position: absolute;
        left: 20px;
        bottom: 0;
        height: 140px;
        opacity: 0.9;
    }

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-tag {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
    display: block;
}

.banner-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

    .banner-item h3 span {
        color: var(--primary-color);
    }

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.3s;
}

.banner-item:hover .banner-btn {
    background: #ea580c;
}

/* ===== Category Buttons ===== */
.category-buttons {
    padding: 20px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius);
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

    .category-btn:hover {
        transform: translateY(-5px);
    }

    .category-btn span {
        font-size: 12px;
        opacity: 0.8;
    }

    .category-btn strong {
        font-size: 16px;
        margin-top: 5px;
    }

    .category-btn i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        opacity: 0.5;
    }

.cat-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.cat-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cat-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.cat-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

/* ===== Blog Section ===== */
.blog-section {
    background: var(--white);
}

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

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

    .blog-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-5px);
    }

.blog-card-image {
    height: 180px;
    background: var(--bg-gray);
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 15px;
}

.blog-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-light);
}

.about-box {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 25px;
}

    .about-header h2 {
        font-size: 18px;
    }

.about-content {
    padding: 25px;
}

    .about-content p {
        font-size: 14px;
        color: var(--text-light);
        line-height: 2;
        margin-bottom: 15px;
    }

        .about-content p:last-child {
            margin-bottom: 0;
        }

/* ===== Features Section ===== */
.features-section {
    background: var(--white);
    padding: 30px 0;
}

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

.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 15px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== Newsletter ===== */
.newsletter-section {
    background: var(--secondary-color);
    padding: 30px 0;
}

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

    .newsletter-box h3 {
        color: var(--white);
        font-size: 16px;
    }

.newsletter-form {
    display: flex;
    gap: 10px;
}

    .newsletter-form input {
        padding: 12px 20px;
        border: none;
        border-radius: var(--radius-sm);
        font-size: 14px;
        width: 280px;
        font-family: inherit;
    }

    .newsletter-form button {
        padding: 12px 25px;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: var(--radius-sm);
        font-size: 14px;
        cursor: pointer;
        font-family: inherit;
        transition: background 0.3s;
    }

        .newsletter-form button:hover {
            background: #ea580c;
        }

/* ===== Footer ===== */
.footer {
    background: #1f2937;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col > p {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more-link {
    color: var(--primary-color);
    font-size: 13px;
}

.footer-contact,
.footer-links {
    list-style: none;
}

    .footer-contact li,
    .footer-links li {
        margin-bottom: 12px;
        font-size: 13px;
        color: #9ca3af;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .footer-links li a {
            color: #9ca3af;
            transition: color 0.3s;
        }

            .footer-links li a:hover {
                color: var(--primary-color);
            }

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

/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-light);
        font-size: 11px;
        flex: 1;
        text-align: center;
    }

        .mobile-bottom-nav .nav-item i {
            font-size: 20px;
        }

        .mobile-bottom-nav .nav-item.active {
            color: var(--primary-color);
        }

    .mobile-bottom-nav .nav-item {
        position: relative;
    }

.nav-badge {
    position: absolute;
    top: -2px;
    right: 50%;
    transform: translateX(calc(50% + 8px));
    background: #f97316;
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        overflow-y: auto;
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu > li {
            width: 100%;
        }

            .nav-menu > li > a {
                padding: 12px 0;
                border-bottom: 1px solid var(--border-color);
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .nav-menu > li.has-dropdown > a {
                padding: 12px 0;
            }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        width: 100%;
        min-width: auto;
    }

        .dropdown-menu li {
            width: 100%;
        }

            .dropdown-menu li a {
                padding: 10px 15px;
                border-bottom: 1px solid var(--border-color);
            }

    .has-submenu > a {
        cursor: pointer;
    }

        .has-submenu > a i {
            transition: transform 0.3s;
        }

    .has-submenu.active > a i {
        transform: rotate(-90deg);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .has-submenu.active .submenu {
        max-height: 1000px;
        transition: max-height 0.3s ease-in;
    }

    .submenu li a {
        padding: 8px 15px 8px 30px;
        border-bottom: 1px solid var(--border-color);
        font-size: 13px;
    }

    .submenu li:first-child a.category-main-link {
        font-weight: 600;
        color: var(--primary-color);
        background: var(--bg-gray);
        padding: 10px 15px 10px 30px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-center {
        order: 3;
        max-width: none;
        width: 100%;
        margin-top: 15px;
    }

    .header-right {
        order: 1;
    }

    .header-left {
        order: 2;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-mascot {
        width: 150px;
    }

    .banners-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .footer {
        padding-bottom: 80px;
    }

    .products-slider-container {
        padding: 0 35px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

        .swiper-button-next::after,
        .swiper-button-prev::after {
            font-size: 12px;
        }

    .section-header-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

        .newsletter-form input {
            width: 100%;
        }
}

@media (max-width: 480px) {
    .header-cart .cart-text {
        display: none;
    }

    .header-login span {
        display: none;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .brand-slider {
        gap: 10px;
    }

    .brand-item {
        min-width: 80px;
        padding: 8px 12px;
    }
}

/* ===== Form Page ===== */
.form-page {
    padding: 40px 0;
    background: var(--bg-light);
    min-height: calc(100vh - 300px);
}

.form-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    .form-container h1 {
        font-size: 20px;
        color: var(--secondary-color);
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-color);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-family: inherit;
        outline: none;
        transition: border-color 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: var(--primary-color);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }

.form-actions {
    margin-top: 25px;
}

    .form-actions .btn {
        width: 100%;
        padding: 14px;
    }

/* OTP Input Styles */
.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    transition: all 0.2s;
    font-family: monospace;
    direction: ltr;
}

    .otp-input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
        transform: scale(1.05);
    }

    .otp-input.input-validation-error {
        border-color: #ef4444;
        background: #fee;
    }

.otp-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 8px;
}

.otp-timer--expired {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .otp-inputs {
        gap: 8px !important;
    }
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

    .contact-info-item:last-of-type {
        border-bottom: none;
        margin-bottom: 20px;
    }

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #ea580c);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-details p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.8;
}

.contact-support-box {
    background: linear-gradient(135deg, var(--primary-color), #ea580c);
    padding: 25px;
    border-radius: var(--radius);
    color: var(--white);
    margin-top: 20px;
}

    .contact-support-box h3 {
        font-size: 16px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .contact-support-box p {
        font-size: 13px;
        line-height: 2;
        opacity: 0.95;
    }

/* About Page Grid */
.about-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.about-main .about-box {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.about-main .about-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px 25px;
}

    .about-main .about-header h2 {
        font-size: 20px;
        margin: 0;
    }

.about-main .about-content {
    padding: 30px;
}

    .about-main .about-content p {
        font-size: 15px;
        color: var(--text-light);
        line-height: 2.2;
        margin-bottom: 20px;
    }

    .about-main .about-content h3 {
        color: var(--secondary-color);
        font-size: 18px;
        margin: 30px 0 15px;
        display: flex;
        align-items: center;
    }

.about-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .about-features-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 14px;
        color: var(--text-color);
        line-height: 1.8;
    }

        .about-features-list li:last-child {
            border-bottom: none;
        }

        .about-features-list li i {
            color: var(--accent-color);
            font-size: 16px;
            margin-top: 3px;
        }

@media (max-width: 768px) {
    .contact-grid,
    .auth-grid,
    .about-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Product Detail Page ===== */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.product-detail-image {
    background: var(--bg-gray);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

    .product-detail-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

.product-detail-brand {
    margin-bottom: 15px;
}

    .product-detail-brand span {
        background: var(--bg-gray);
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 13px;
        color: var(--text-light);
    }

.product-detail-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.product-detail-price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
}

.product-detail-features {
    margin-bottom: 25px;
}

    .product-detail-features ul {
        list-style: none;
        padding: 0;
        background: var(--bg-light);
        padding: 20px;
        border-radius: var(--radius);
    }

    .product-detail-features li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        font-size: 14px;
        color: var(--text-color);
    }

        .product-detail-features li i {
            color: var(--accent-color);
        }

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .product-detail-actions form {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

    .quantity-selector button {
        background: var(--bg-gray);
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 16px;
        transition: background 0.3s;
    }

        .quantity-selector button:hover {
            background: var(--border-color);
        }

    .quantity-selector input {
        width: 50px;
        text-align: center;
        border: none;
        padding: 8px 0;
        font-size: 14px;
        font-family: inherit;
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    flex: 1;
}

.product-detail-tabs {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--bg-gray);
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 18px 35px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: all 0.3s;
}

    .tab-btn:hover {
        color: var(--primary-color);
    }

    .tab-btn.active {
        color: var(--primary-color);
        background: var(--white);
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary-color);
        }

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

.product-detail-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

    .product-detail-description h3 {
        font-size: 18px;
        color: var(--secondary-color);
        margin-bottom: 15px;
    }

/* Product Tabs */
.product-tabs {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    background: var(--bg-gray);
    border-bottom: 2px solid var(--border-color);
}

.tabs-content {
    padding: 30px;
}

.tab-pane h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.tab-pane h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.tab-pane p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 15px;
}

.tab-pane ul {
    padding-right: 20px;
    margin-bottom: 20px;
}

    .tab-pane ul li {
        font-size: 14px;
        color: var(--text-light);
        line-height: 2;
    }

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

    .specs-table tr {
        border-bottom: 1px solid var(--border-color);
    }

        .specs-table tr:last-child {
            border-bottom: none;
        }

    .specs-table th,
    .specs-table td {
        padding: 15px;
        text-align: right;
        font-size: 14px;
    }

    .specs-table th {
        background: var(--bg-gray);
        color: var(--secondary-color);
        font-weight: 500;
        width: 180px;
    }

    .specs-table td {
        color: var(--text-light);
    }

/* Reviews Section */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

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

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}

.rating-text {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.rating-stars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .rating-stars i {
        font-size: 20px;
    }

    .rating-stars span {
        font-size: 13px;
        color: var(--text-light);
    }

.no-reviews {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

    .no-reviews i {
        font-size: 48px;
        color: #d1d5db;
        margin-bottom: 15px;
        display: block;
    }

    .no-reviews p {
        margin-bottom: 5px;
        color: var(--text-light);
    }

.add-review {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
}

    .add-review h4 {
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 18px;
        color: var(--secondary-color);
    }

.star-rating {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

    .star-rating i {
        font-size: 24px;
        color: #d1d5db;
        cursor: pointer;
        transition: color 0.2s;
    }

        .star-rating i:hover {
            color: #fbbf24;
        }

        .star-rating i.fas {
            color: #fbbf24;
        }

.review-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        min-height: 300px;
    }

        .product-detail-image img {
            height: 300px;
        }

    .product-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-detail-actions form {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg {
        width: 100%;
    }

    .tab-buttons {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 15px 20px;
        white-space: nowrap;
    }

    .tabs-header {
        overflow-x: auto;
    }

    .tabs-content {
        padding: 20px;
    }

    .reviews-summary {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .specs-table th,
    .specs-table td {
        padding: 10px;
        font-size: 13px;
    }

    .specs-table th {
        width: 120px;
    }
}

/* ===== Products Page ===== */
.products-page {
    padding: 40px 0;
    background: var(--bg-light);
}

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

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

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

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

.filters-box {
    background: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

    .filters-row .filter-select {
        flex: 0 1 auto;
        min-width: 180px;
        max-width: 285px;
    }

.filter-select {
    padding: 10px 15px;
    padding-left: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    background: var(--bg-gray);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    color: var(--text-color);
    appearance: none;
}

    .filter-select:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.filter-apply-btn {
    padding: 10px 25px;
    font-size: 14px;
    white-space: nowrap;
    margin-right: auto;
}

.filter-clear-btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        max-width: 100%;
        width: 100%;
    }

    .filter-apply-btn,
    .filter-clear-btn {
        width: 100%;
        margin: 0;
    }

    .filter-apply-btn {
        order: 2;
        margin-bottom: 10px;
    }

    .filter-clear-btn {
        order: 3;
    }
}

.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-info {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 14px;
    min-height: 40px;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.product-card-header {
    position: relative;
    height: 180px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.product-card-body {
    padding: 15px;
}

.product-card-brand {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

    .product-card-brand span {
        background: var(--bg-gray);
        padding: 4px 10px;
        border-radius: 12px;
    }

.product-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .product-card-title a {
        color: inherit;
        text-decoration: none;
    }

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

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-light);
}

    .product-card-rating i {
        color: #fbbf24;
    }

        .product-card-rating i.active {
            color: #fbbf24;
        }

.product-card-price {
    margin-bottom: 12px;
}

.product-card-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 10px;
}

.product-card-price-current {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-add-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

    .modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: var(--text-color);
        display: flex;
        align-items: center;
        gap: 10px;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

    .modal-close:hover {
        color: var(--text-color);
        background: var(--bg-light);
    }

.modal-body {
    padding: 25px;
}

    .modal-body p {
        margin: 0;
        font-size: 15px;
        line-height: 1.6;
        color: var(--text-color);
    }

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

    .modal-footer .btn {
        min-width: 120px;
    }

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
}

/* Comment Modal Styles */
.modal.hidden {
    display: none;
}

.modal-success .modal-header h3 {
    color: #28a745;
}

    .modal-success .modal-header h3::before {
        content: "✓";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: #28a745;
        color: white;
        border-radius: 50%;
        font-size: 18px;
        margin-left: 10px;
    }

.modal-error .modal-header h3 {
    color: #dc3545;
}

    .modal-error .modal-header h3::before {
        content: "!";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        font-size: 18px;
        font-weight: bold;
        margin-left: 10px;
    }

.modal-body .error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

    .modal-body .error-list li {
        padding: 8px 0;
        color: #dc3545;
        font-size: 14px;
    }

/* ===== Blog Detail Page ===== */
.blog-detail-page {
    padding: 40px 0;
    background: var(--bg-light);
}

.breadcrumb {
    margin-bottom: 30px;
}

    .breadcrumb ol {
        display: flex;
        align-items: center;
        gap: 10px;
        list-style: none;
        font-size: 14px;
        color: var(--text-light);
    }

        .breadcrumb ol li span {
            color: var(--text-light);
        }

        .breadcrumb ol li a {
            color: var(--primary-color);
            transition: color 0.3s;
        }

            .breadcrumb ol li a:hover {
                color: var(--secondary-color);
            }

.blog-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-detail-main {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.blog-detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.blog-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .meta-item i {
        color: var(--primary-color);
    }

.blog-detail-hero {
    margin-bottom: 25px;
    border-radius: var(--radius);
    overflow: hidden;
}

    .blog-detail-hero img {
        width: 100%;
        height: auto;
        display: block;
        max-height: 500px;
        object-fit: cover;
    }

.blog-detail-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: var(--radius);
    border-right: 4px solid var(--primary-color);
    margin-bottom: 25px;
}

    .blog-detail-summary p {
        font-size: 16px;
        line-height: 1.8;
        color: var(--text-color);
        margin: 0;
    }

.blog-detail-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 30px;
}

    .blog-detail-content h2 {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-color);
        margin: 30px 0 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--border-color);
    }

    .blog-detail-content h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-color);
        margin: 25px 0 12px;
    }

    .blog-detail-content p {
        margin-bottom: 15px;
    }

    .blog-detail-content img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-sm);
        margin: 20px 0;
    }

    .blog-detail-content ul,
    .blog-detail-content ol {
        margin: 15px 0;
        padding-right: 25px;
    }

    .blog-detail-content li {
        margin-bottom: 8px;
    }

.blog-detail-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.blog-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.tags-label {
    font-weight: 600;
    color: var(--text-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 6px 15px;
    background: var(--bg-gray);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

    .tag-item:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.blog-detail-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 18px;
}

    .share-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-3px);
    }

/* Sidebar */
.blog-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

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

.author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.author-role {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

    .related-post-item:hover {
        background: var(--bg-gray);
        transform: translateX(-5px);
    }

.related-post-image {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

    .related-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.related-post-content {
    flex: 1;
}

.related-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .related-post-meta i {
        font-size: 11px;
    }

/* Comments Section */
.blog-comments-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.comment-form-wrapper {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.comment-form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-weight: 600;
        color: var(--text-color);
        font-size: 14px;
    }

.form-input,
.form-textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-color);
}

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    }

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.validation-summary {
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius-sm);
    color: #c33;
    font-size: 14px;
}

.validation-error {
    color: #c33;
    font-size: 12px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

    .comment-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.comment-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 20px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.comment-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.comment-replies {
    margin-top: 20px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-reply {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

    .comment-reply:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .comment-reply .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-detail-sidebar {
        order: -1;
    }

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

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

    .blog-detail-main {
        padding: 20px;
    }

    .blog-detail-title {
        font-size: 22px;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-detail-footer {
        gap: 15px;
    }

    .blog-detail-tags,
    .blog-detail-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .related-posts {
        grid-template-columns: 1fr;
    }

    .comment-replies {
        margin-right: 10px;
        padding-right: 10px;
    }
}
