/* ================================

   BOSTON HEATING ELEMENTS DESIGN SYSTEM

   ================================ */



/* ---------- Global Typography ---------- */

html, body {
    font-family: 'Cairo', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
}

p, span, a, li, button {
    font-weight: 400;
}

.strong, .bold {
    font-weight: 600;
}

/* ---------- Colors ---------- */

:root {
    /* Light Mode Colors (Default) */
    --primary: #FE3F22;
    --primary-light: #F7A97A;
    --dark: #1E1E1E;
    --text-gray: #6B6B6B;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1E1E1E;
    --text-secondary: #6B6B6B;

    --font-main: 'Cairo', sans-serif;
    --radius: 10px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}



body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}



.bg-primary { background-color: var(--primary) !important; color: var(--white); }

.text-primary { color: var(--primary) !important; }

.text-gray { color: var(--text-gray) !important; }

.shadow-soft { box-shadow: var(--shadow); }

.rounded-main { border-radius: var(--radius); }

/* Navbar Styles */
.navbar {
    background: #FE3F22 !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF !important;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    right: 0;
}

/* ================================
   GLASSMORPHISM SECTIONS
   ================================ */

.glassmorphism-section {
    background: linear-gradient(135deg, rgba(254, 63, 34, 0.05) 0%, rgba(247, 169, 122, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.glassmorphism-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(254, 63, 34, 0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(254, 63, 34, 0.2);
    border-color: rgba(254, 63, 34, 0.3);
}

.stats-card {
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-card h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.feature-card h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
    
    .stats-card {
        min-height: 100px;
        padding: 1rem;
    }
    
    .stats-card h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        min-height: 180px;
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* ================================
   HERO SECTION REFINEMENT
   ================================ */

.hero-slider {
    margin-top: 0;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 140px;
    transition: background 0.3s ease;
}

.hero-slide-1 {
    background: linear-gradient(135deg, #1E1E2D 0%, #2a1a18 50%, #3d1f1c 100%);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #1E1E2D 0%, #2a1a18 50%, #3d1f1c 100%);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #1E1E2D 0%, #2a1a18 50%, #3d1f1c 100%);
    color: white;
}


.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--white);
}

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

.btn-outline-hero:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: var(--primary);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255,255,255,0.3);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.5);
    border-color: var(--primary);
}

/* ================================
   GLOBAL LAYOUT FIXES
   ================================ */

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.container {
    padding-left: 60px;
    padding-right: 60px;
}

/* ================================
   CATEGORY SECTION REFINEMENT
   ================================ */

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

.categories-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


.category-products .product-image-small img {
    object-fit: contain;
    height: 120px;
    width: 100%;
}

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

.categories-carousel-wrapper {
    margin-top: 50px;
    position: relative;
}

.category-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-products {
    padding: 25px 30px;
}

.category-product-item {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-product-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.product-image-small {
    width: 100%;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.category-product-item:hover .product-image-small img {
    transform: scale(1.05);
}

.product-info-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.product-name-small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
    flex-grow: 1;
}

.btn-view-category {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-view-category:hover {
    background: rgba(255,255,255,0.3);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-view-product-small {
    background: var(--primary);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-view-product-small:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
    color: var(--white);
}

.categories-control-prev,
.categories-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.categories-control-prev {
    left: -60px;
}

.categories-control-next {
    right: -60px;
}

.categories-control-prev:hover,
.categories-control-next:hover {
    opacity: 1;
    background: var(--primary);
}

.categories-indicators {
    position: relative;
    margin-top: 30px;
    margin-bottom: 0;
    bottom: auto;
}

.categories-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(254, 63, 34, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.categories-indicators button.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* ================================
   PRODUCT CARDS REDESIGN
   ================================ */

.products-section {
    padding: 80px 0;
    background: var(--light-bg);
    border-top: 3px solid var(--primary);
}

.product-card-square {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card-square:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}


.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image-square,
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-square:hover .product-overlay {
    opacity: 1;
}

.btn-view-product {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title-square {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category-square {
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(254, 63, 34, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ================================
   RESPONSIVE FIXES
   ================================ */

@media (max-width: 768px) {
    /* Hero Section */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-slide {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Section padding */
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    /* Stats - 2 columns on mobile */
    .glassmorphism-section .row .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Products - 1 column on mobile */
    .products-section .col-lg-3,
    .products-section .col-md-6,
    .products-section .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    /* Category section */
    .categories-section .section-title {
        font-size: 24px;
        text-align: center;
    }
    
    .categories-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-control-prev {
        left: 10px;
    }
    
    .categories-control-next {
        right: 10px;
    }
    
    .category-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .category-products {
        padding: 20px;
    }
    
    .category-product-item {
        padding: 12px;
    }
    
    .product-image-small {
        height: 60px;
    }
    
    .product-name-small {
        font-size: 0.8rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    /* Text alignment */
    .text-center-mobile {
        text-align: center;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    /* Tablet: 2 columns for categories */
    .categories-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}


/* ================================

   BOSTON HEATING ELEMENTS DESIGN SYSTEM

   ================================ */



/* ---------- Global Typography ---------- */

html, body {
    font-family: 'Cairo', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
}

p, span, a, li, button {
    font-weight: 400;
}

.strong, .bold {
    font-weight: 600;
}

/* ---------- Colors ---------- */

:root {
    /* Light Mode Colors (Default) */
    --primary: #E8432F;
    --primary-light: #F7A97A;
    --dark: #1E1E1E;
    --text-gray: #6B6B6B;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1E1E1E;
    --text-secondary: #6B6B6B;

    --font-main: 'Cairo', sans-serif;
    --radius: 10px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}



body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}



.bg-primary { background-color: var(--primary) !important; color: var(--white); }

.text-primary { color: var(--primary) !important; }

.text-gray { color: var(--text-gray) !important; }

.shadow-soft { box-shadow: var(--shadow); }

.rounded-main { border-radius: var(--radius); }

/* ================================
   GLASSMORPHISM SECTIONS
   ================================ */

.glassmorphism-section {
    background: linear-gradient(135deg, rgba(232, 67, 47, 0.05) 0%, rgba(247, 169, 122, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.glassmorphism-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(232, 67, 47, 0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(232, 67, 47, 0.2);
    border-color: rgba(232, 67, 47, 0.3);
}

.stats-card {
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-card h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.feature-card h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
    
    .stats-card {
        min-height: 100px;
        padding: 1rem;
    }
    
    .stats-card h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        min-height: 180px;
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* ================================
   HERO SECTION REFINEMENT
   ================================ */

.hero-slider {
    margin-top: 0;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 140px;
    transition: background 0.3s ease;
}

.hero-slide-1 {
    background: linear-gradient(135deg, #1E1E2D 0%, #2c3e50 50%, #34495e 100%);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1E1E1E;
}


.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--white);
}

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

.btn-outline-hero:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: var(--primary);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255,255,255,0.3);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.5);
    border-color: var(--primary);
}

/* ================================
   GLOBAL LAYOUT FIXES
   ================================ */

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.container {
    padding-left: 60px;
    padding-right: 60px;
}

/* ================================
   CATEGORY SECTION REFINEMENT
   ================================ */

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

.categories-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


.category-products .product-image-small img {
    object-fit: contain;
    height: 120px;
    width: 100%;
}

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

.categories-carousel-wrapper {
    margin-top: 50px;
    position: relative;
}

.category-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-products {
    padding: 25px 30px;
}

.category-product-item {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-product-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.product-image-small {
    width: 100%;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.category-product-item:hover .product-image-small img {
    transform: scale(1.05);
}

.product-info-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.product-name-small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
    flex-grow: 1;
}

.btn-view-category {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-view-category:hover {
    background: rgba(255,255,255,0.3);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-view-product-small {
    background: var(--primary);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-view-product-small:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
    color: var(--white);
}

.categories-control-prev,
.categories-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.categories-control-prev {
    left: -60px;
}

.categories-control-next {
    right: -60px;
}

.categories-control-prev:hover,
.categories-control-next:hover {
    opacity: 1;
    background: var(--primary);
}

.categories-indicators {
    position: relative;
    margin-top: 30px;
    margin-bottom: 0;
    bottom: auto;
}

.categories-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(232, 67, 47, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.categories-indicators button.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* ================================
   PRODUCT CARDS REDESIGN
   ================================ */

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

.product-card-square {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card-square:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}


.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image-square,
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-square:hover .product-overlay {
    opacity: 1;
}

.btn-view-product {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title-square {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category-square {
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ================================
   RESPONSIVE FIXES
   ================================ */

@media (max-width: 768px) {
    /* Hero Section */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-slide {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Section padding */
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    /* Stats - 2 columns on mobile */
    .glassmorphism-section .row .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Products - 1 column on mobile */
    .products-section .col-lg-3,
    .products-section .col-md-6,
    .products-section .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    /* Category section */
    .categories-section .section-title {
        font-size: 24px;
        text-align: center;
    }
    
    .categories-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-control-prev {
        left: 10px;
    }
    
    .categories-control-next {
        right: 10px;
    }
    
    .category-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .category-products {
        padding: 20px;
    }
    
    .category-product-item {
        padding: 12px;
    }
    
    .product-image-small {
        height: 60px;
    }
    
    .product-name-small {
        font-size: 0.8rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    /* Text alignment */
    .text-center-mobile {
        text-align: center;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    /* Tablet: 2 columns for categories */
    .categories-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

