/* =====================================================
   GREFINED E-COMMERCE - MAIN STYLESHEET
   =====================================================
   Table of Contents:
   1. CSS Variables
   2. Global Styles & Reset
   3. Typography
   4. Buttons
   5. Header & Navigation
   6. Mobile Menu
   7. Hero Slider
   8. Sections & Containers
   9. Product Grid & Cards
   10. Categories
   11. Features Section
   12. Promo Banners
   13. Stats Section
   14. Footer
   15. Breadcrumb
   16. Products Page
   17. Categories Page
   18. Category Detail Page
   19. Product Detail Page
   20. Blog Page
   21. Blog Single Page
   22. Contact Page
   23. Cart Page
   24. Language Switcher
   25. Animations
   26. Responsive Design
   ===================================================== */

/* ===== 1. CSS VARIABLES ===== */
:root {
    --primary-color: #000000;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --light-bg: #f8f9fa;
}

/* ===== 2. GLOBAL STYLES & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ===== 4. BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background: #ff5252;
}

.btn-white {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid transparent;
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* ===== 5. HEADER & NAVIGATION ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 12px;
}

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

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

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.header-icon {
    position: relative;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.header-icon:hover {
    background: var(--secondary-color);
}

.header-icon.active {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ===== 6. MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-list.mobile-open {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateX(0);
    gap: 0;
}

.nav-list.mobile-open .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    color: var(--primary-color);
}

.nav-list.mobile-open .nav-link:hover {
    color: var(--accent-color);
    background: var(--secondary-color);
    padding-left: 10px;
}

.mobile-menu-open {
    overflow: hidden;
}

/* ===== 7. HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    max-height: 700px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

.slide-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.slide-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--white);
    border-color: var(--white);
}

/* ===== 8. SECTIONS & CONTAINERS ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 9. PRODUCT GRID & CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-new {
    background: var(--success);
    color: var(--white);
}

.badge-sale {
    background: var(--accent-color);
    color: var(--white);
}

.badge-hot {
    background: var(--warning);
    color: var(--white);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-title:hover {
    color: var(--accent-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 12px;
    color: #ddd;
}

.star.filled {
    color: #ffa500;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

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

.original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-percent {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Product Grid List View */
.product-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: none;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.product-grid.list-view .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 20px;
}

.product-grid.list-view .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    padding: 0;
}

.product-grid.list-view .product-title {
    font-size: 18px;
    margin: 10px 0;
}

.product-grid.list-view .product-category {
    font-size: 12px;
    margin-bottom: 5px;
}

.product-grid.list-view .product-rating {
    margin: 5px 0;
}

.product-grid.list-view .product-price {
    margin: 10px 0;
}

.product-grid.list-view .add-to-cart {
    align-self: flex-start;
    margin-top: auto;
}

/* ===== 10. CATEGORIES ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.category-info {
    text-align: center;
    color: var(--white);
}

.category-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== 11. FEATURES SECTION ===== */
.features-section {
    padding: 60px 0;
    background: var(--white);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

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

.feature-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===== 12. PROMO BANNERS ===== */
.promo-section {
    padding: 60px 0;
    background: var(--secondary-color);
}

.promo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    height: 400px;
}

.promo-banner {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.promo-banner:hover {
    transform: scale(1.02);
}

.promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.promo-banner:hover .promo-bg {
    transform: scale(1.1);
}

.promo-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    color: var(--white);
}

.promo-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.promo-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.promo-content h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.promo-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.promo-small-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
}

.promo-banner.small .promo-content {
    padding: 25px;
    text-align: center;
    align-items: center;
}

.promo-banner.small h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.promo-banner.small p {
    font-size: 14px;
    margin-bottom: 15px;
}

/* ===== 13. STATS SECTION ===== */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== 14. FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 18px;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

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

/* ===== 15. BREADCRUMB ===== */
.breadcrumb {
    background: var(--light-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-item i {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 5px;
}

/* Breadcrumb Section (Cart Page) */
.breadcrumb-section {
    padding: 20px 0;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-section .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    background: transparent;
    padding: 0;
    border-bottom: none;
}

.breadcrumb-section .breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb-section .breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-section .breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb-section .breadcrumb .current {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== 16. PRODUCTS PAGE ===== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.products-count {
    color: var(--text-light);
    font-size: 14px;
}

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

.view-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 30px 0;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== 17. CATEGORIES PAGE ===== */
.categories-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.categories-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.categories-hero p {
    color: #ccc;
    font-size: 1.2rem;
}

.categories-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-main-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-main-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-main-card:hover img {
    transform: scale(1.1);
}

.category-main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.category-main-card:hover .category-main-overlay {
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.category-main-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-main-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    text-align: center;
}

.category-main-count {
    background: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.subcategories {
    margin-top: 4rem;
}

.subcategory-section {
    margin-bottom: 4rem;
}

.subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.subcategory-title {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.view-all-btn {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

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

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.subcategory-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.subcategory-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.subcategory-info {
    padding: 20px;
    text-align: center;
}

.subcategory-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.subcategory-count {
    color: var(--text-muted);
    font-size: 14px;
}

.featured-brands {
    background: var(--secondary-color);
    padding: 4rem 0;
    margin-top: 4rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.brand-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.brand-logo img {
    max-height: 40px;
    max-width: 120px;
    filter: grayscale(100%);
    transition: var(--transition);
}

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

/* ===== 18. CATEGORY DETAIL PAGE ===== */
.category-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1595950653106-6c9ebd614d3a?w=1200&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.category-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-hero p {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.9;
}

.category-stats {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: -30px auto 30px;
    max-width: 600px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.category-stats .stat-item {
    padding: 0 20px;
}

.category-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.category-stats .stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

.category-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.filter-item label:hover {
    color: var(--primary-color);
}

.filter-item input[type="checkbox"] {
    accent-color: var(--primary-color);
}

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

.price-input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.color-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.color-swatch:hover,
.color-swatch.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.main-content {
    min-height: 600px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.results-count {
    color: var(--text-light);
}

.sort-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.grid-toggle {
    display: flex;
    gap: 5px;
}

.grid-btn {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.grid-btn.active,
.grid-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.subcategory-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.subcategory-link {
    padding: 10px 20px;
    background: var(--secondary-color);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.subcategory-link:hover,
.subcategory-link.active {
    background: var(--primary-color);
    color: var(--white);
}

.load-more-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ===== 19. PRODUCT DETAIL PAGE ===== */
.product-detail {
    padding: 40px 0;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.product-detail .product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.product-sku {
    color: var(--text-muted);
    font-size: 14px;
}

.product-availability {
    color: var(--success);
    font-weight: 500;
}

.product-detail .product-price {
    margin-bottom: 2rem;
}

.product-detail .current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
}

.product-detail .original-price {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 10px;
}

.product-detail .discount-percent {
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.size-option:hover,
.size-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.color-option.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

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

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-value {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 500;
}

.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-add-cart {
    flex: 1;
    min-width: 200px;
}

.btn-wishlist,
.btn-compare {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-wishlist:hover,
.btn-compare:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-features {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.product-detail .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-detail .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    padding: 0;
    background: transparent;
    border: none;
}

.product-detail .feature-item:hover {
    transform: none;
    box-shadow: none;
}

.product-detail .feature-icon {
    color: var(--primary-color);
    width: auto;
    height: auto;
    background: transparent;
    font-size: 16px;
}

.product-tabs {
    margin-top: 4rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

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

.tab-content {
    display: none;
}

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

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

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

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bar-fill {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.bar-progress {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: var(--text-muted);
    font-size: 14px;
}

.related-products {
    margin-top: 4rem;
}

/* ===== 20. BLOG PAGE ===== */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.blog-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.blog-hero p {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.blog-main {
    min-height: 600px;
}

.blog-grid {
    display: grid;
    gap: 2rem;
}

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

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

.blog-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 300px;
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-card-large .blog-image {
    height: 100%;
}

.blog-card-small .blog-image {
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    color: var(--primary-color);
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-read-more {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.blog-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.search-widget input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 8px;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 0;
    transition: var(--transition);
}

.category-item a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.category-item .category-count {
    background: var(--secondary-color);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-image {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.recent-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-title a:hover {
    color: var(--accent-color);
}

.recent-post-date {
    color: var(--text-muted);
    font-size: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    background: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    transition: var(--transition);
}

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

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 30px 0;
}

.featured-post {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff5252 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=400&h=300&fit=crop') center/cover;
    opacity: 0.3;
}

.featured-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.featured-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.featured-excerpt {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== 21. BLOG SINGLE PAGE ===== */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

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

.post-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px;
    color: var(--white);
}

.post-category {
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.post-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-body {
    padding: 40px;
}

.post-body h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.post-body h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.post-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-body img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.post-body ul, .post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.post-body blockquote {
    background: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 2rem 0;
    font-style: italic;
    border-radius: var(--border-radius);
}

.post-tags {
    border-top: 1px solid var(--border-color);
    padding: 30px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.post-share {
    border-top: 1px solid var(--border-color);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.author-info {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 2rem 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-details h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-bio {
    color: var(--text-light);
    line-height: 1.6;
}

.related-posts {
    margin-top: 3rem;
}

.related-posts h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.related-content {
    padding: 20px;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-title a:hover {
    color: var(--accent-color);
}

.related-meta {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== 22. CONTACT PAGE ===== */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.contact-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-hero p {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

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

.contact-page .section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-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: 18px;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

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

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

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

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

.working-hours {
    background: var(--accent-color);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 2rem;
}

.working-hours h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.hours-list {
    list-style: none;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hours-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
}

.time {
    opacity: 0.9;
}

.map-section {
    margin-top: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container {
    height: 400px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-contact {
    margin-top: 2rem;
    text-align: center;
}

.social-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    color: var(--white);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.faq-section {
    margin-top: 4rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.faq-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 23. CART PAGE ===== */
.cart-section {
    padding: 60px 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    margin: 0 auto;
    max-width: 600px;
}

.empty-cart-icon {
    font-size: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.empty-cart p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Cart Grid */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

/* Cart Items Section */
.cart-items-section {
    background: var(--white);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.btn-clear-cart {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-cart:hover {
    background: var(--danger);
    color: var(--white);
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

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

.cart-item-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-remove,
.cart-item-actions .btn-wishlist {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-remove:hover {
    color: var(--danger);
}

.cart-item-actions .btn-wishlist:hover {
    color: var(--accent-color);
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 5px;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 5px;
    background: var(--secondary-color);
}

.quantity-control .quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--white);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control .quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-control .quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-control .quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    height: auto;
}

/* Coupon Section */
.coupon-section {
    margin: 30px 0;
    padding: 25px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.coupon-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.coupon-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    display: none;
}

.coupon-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.coupon-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    display: block;
}

/* Continue Shopping */
.continue-shopping {
    margin-top: 20px;
}

/* Cart Summary Section */
.cart-summary-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.summary-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-row span:first-child {
    color: var(--text-light);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.discount-row .discount-amount {
    color: var(--success);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.total-row {
    font-size: 1.3rem;
    margin-top: 20px;
}

.total-row span {
    font-weight: 700;
}

.total-amount {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Free Shipping Progress */
.free-shipping-progress {
    margin: 20px 0;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.progress-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.progress-text i {
    color: var(--accent-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--success));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Payment Methods */
.payment-methods {
    margin: 20px 0;
    text-align: center;
}

.payment-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 28px;
    color: var(--text-light);
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.security-badge i {
    color: var(--success);
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.trust-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.trust-item span {
    font-size: 12px;
    color: var(--text-light);
}

/* Recommended Products */
.recommended-section {
    padding: 60px 0;
    background: var(--secondary-color);
}

/* ===== 24. LANGUAGE SWITCHER ===== */
.language-switcher {
    position: relative;
    margin-right: 15px;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

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

.language-btn i.fa-chevron-down {
    font-size: 12px;
    transition: var(--transition);
}

.language-dropdown.show .language-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.language-option img {
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===== 25. ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Loading State */
.cart-loading {
    text-align: center;
    padding: 60px 20px;
}

.cart-loading i {
    font-size: 48px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* ===== 26. RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
        position: static;
    }

    .blog-card-large {
        grid-template-columns: 1fr;
        height: auto;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .post-header {
        height: 250px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-body {
        padding: 30px 20px;
    }

    .post-tags,
    .post-share {
        padding: 20px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

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

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        min-width: 200px;
        justify-content: center;
    }

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

    .sidebar {
        position: static;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .category-stats {
        flex-direction: column;
        gap: 15px;
    }

    .category-stats .stat-item {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .category-stats .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .header-main .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-list {
        display: none;
    }

    .nav-list.mobile-open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        order: 1;
    }

    .search-box {
        order: 3;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 60vh;
        max-height: 500px;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-text {
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 15px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .feature-icon {
        margin-bottom: 15px;
    }

    /* Promo Banners Mobile */
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        height: auto;
    }

    .promo-banner {
        height: 250px;
    }

    .promo-content {
        padding: 20px;
        text-align: center;
        align-items: center;
    }

    .promo-content h3 {
        font-size: 1.5rem;
    }

    .promo-small-grid {
        grid-template-rows: auto auto;
        gap: 1.5rem;
    }

    .promo-banner.small {
        height: 200px;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Products Page */
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-options {
        width: 100%;
        justify-content: space-between;
    }

    /* Product Grid List View */
    .product-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }

    .product-grid.list-view .product-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .product-grid.list-view .product-info {
        height: auto;
    }

    .product-grid.list-view .add-to-cart {
        align-self: stretch;
    }

    /* Categories Page */
    .categories-main {
        grid-template-columns: 1fr;
    }

    .subcategory-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .subcategory-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    /* Category Detail */
    .category-hero h1 {
        font-size: 2rem;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .sort-options {
        width: 100%;
        justify-content: space-between;
    }

    .subcategory-nav {
        gap: 10px;
    }

    .subcategory-link {
        padding: 8px 15px;
        font-size: 13px;
    }

    /* Product Detail */
    .product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-image {
        height: 300px;
    }

    .product-actions-detail {
        flex-direction: column;
    }

    .btn-add-cart {
        min-width: auto;
    }

    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Blog */
    .blog-grid {
        gap: 1.5rem;
    }

    .blog-content {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .featured-content {
        padding: 30px 20px;
    }

    /* Contact */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    .faq-section {
        padding: 30px 20px;
    }

    .working-hours {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contact-icon {
        align-self: center;
    }

    /* Cart */
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-summary-section {
        position: static;
        order: -1;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-right {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .cart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .coupon-form {
        flex-direction: column;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    /* Language Switcher */
    .language-switcher {
        margin-right: 10px;
    }

    .language-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .language-menu {
        min-width: 130px;
    }

    .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

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

    .section {
        padding: 40px 0;
    }

    /* Hero Slider Very Mobile */
    .hero-slider {
        height: 50vh;
        max-height: 400px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-text {
        font-size: 0.9rem;
    }

    .slide-content {
        max-width: 100%;
    }

    .slide-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    /* Features Very Mobile */
    .features-section {
        padding: 40px 0;
    }

    .feature-item {
        padding: 15px;
    }

    /* Stats Very Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Promo Very Mobile */
    .promo-banner {
        height: 200px;
    }

    .promo-banner.small {
        height: 150px;
    }

    .promo-content {
        padding: 15px;
    }

    .promo-content h3 {
        font-size: 1.2rem;
    }

    .promo-content h4 {
        font-size: 1rem;
    }

    /* Cart Very Mobile */
    .cart-section {
        padding: 30px 0;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        padding: 15px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-title {
        font-size: 1rem;
    }

    .cart-item-price {
        font-size: 1.1rem;
    }

    .quantity-control {
        gap: 5px;
    }

    .quantity-control .quantity-btn {
        width: 28px;
        height: 28px;
    }

    .quantity-control .quantity-input {
        width: 40px;
    }

    .cart-summary {
        padding: 20px;
    }

    .summary-title {
        font-size: 1.3rem;
    }

    .total-amount {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   27. TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.testimonial-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

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

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.author-info .rating {
    display: flex;
    gap: 2px;
}

.author-info .rating .star {
    color: #ddd;
    font-size: 14px;
}

.author-info .rating .star.filled {
    color: #ffc107;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.testimonial-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* ==========================================================================
   28. PRODUCTS FILTER SECTION
   ========================================================================== */

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

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

.filters-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-header h3 i {
    color: var(--accent-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.filter-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-color);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    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 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.filter-input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
}

.filter-input:hover,
.filter-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.products-count {
    color: var(--text-color);
    font-size: 0.95rem;
}

.products-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.sort-select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-color);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    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 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 180px;
}

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

/* ==========================================================================
   29. RESPONSIVE - TESTIMONIALS & FILTERS
   ========================================================================== */

@media (max-width: 768px) {
    .testimonials-section {
        padding: 50px 0;
    }

    .testimonial-content {
        padding: 30px 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .quote-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

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

    .author-info .rating {
        justify-content: center;
    }

    .testimonial-controls {
        margin-top: 20px;
    }

    .testimonial-btn {
        width: 45px;
        height: 45px;
    }

    /* Filters Mobile */
    .filters-section {
        padding: 20px;
    }

    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-buttons .btn {
        width: 100%;
    }

    /* Products Header Mobile */
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .view-options {
        justify-content: space-between;
    }

    .sort-select {
        min-width: unset;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .testimonials-slider {
        min-height: 350px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-info h4 {
        font-size: 1rem;
    }
}

/* ==========================================================================
   30. BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
