:root {
    --primary-color: #fabf35;
    --secondary-color: #f8a32f;
    --accent-color: #eb6119;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
}

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

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
#mainNavbar {
    transition: all 0.3s ease;
    padding: 12px 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

#mainNavbar.scrolled {
    background: rgba(26, 26, 46, 0.98) !important;
    padding: 8px 0;
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
    color: rgba(255,255,255,0.9) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

/* Hero Slider */
.hero-carousel {
    margin-top: 80px;
}

.hero-slide {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content .row {
    width: 100%;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(235,97,25,0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235,97,25,0.4);
}

.btn-gradient-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-gradient-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(235,97,25,0.15);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.discount-badge {
    top: 10px;
    right: 10px;
}

.product-card-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.9);
    transition: bottom 0.3s;
    z-index: 2;
}

.product-card:hover .product-card-actions {
    bottom: 0;
}

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

.product-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
}

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

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

.product-price {
    margin-top: 10px;
}

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

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
}

.category-card-image {
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.category-overlay h4 {
    font-weight: 700;
}

.product-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Why Choose Us */
.choose-card {
    padding: 30px 20px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.choose-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* Statistics */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color), #2d2d44);
    color: #fff;
}

.stat-card {
    padding: 30px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

/* Testimonials */
.testimonial-card {
    padding: 40px 20px;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f5e6d3 0%, #f0d4bc 50%, #e8c4a8 100%);
    padding: 80px 0;
}

.cta-card {
    color: #2c2c2c;
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.cta-card .btn-gradient {
    background: var(--dark-color);
    color: #fff !important;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-card .btn-gradient:hover {
    background: #2a2a4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

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

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

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

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

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Floating Buttons */
.float-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.float-btn.show {
    opacity: 1;
    visibility: visible;
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    bottom: 120px;
    background: #25D366;
}

.call-btn {
    bottom: 60px;
    background: var(--accent-color);
}

.scroll-top-btn {
    bottom: 180px;
    background: var(--primary-color);
    color: #333;
}

.whatsapp-btn.show,
.call-btn.show,
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: #fff;
    height: 450px;
    margin-top: 75px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
    justify-content: center;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: #fff;
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Category Circles */
.category-circles-section {
    padding: 30px 0 10px;
    background: #f8f9fa;
}

.category-circles-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    width: 100px;
}

.category-circle:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.category-circle:hover .circle-icon {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(235,97,25,0.2);
}

.category-circle.active {
    color: var(--accent-color);
}

.category-circle.active .circle-icon {
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(235,97,25,0.25);
}

.category-circle .circle-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #888;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 3px solid transparent;
    overflow: hidden;
}

.category-circle .circle-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-circle .circle-icon i {
    color: #888;
    font-size: 1.8rem;
}

.category-circle span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: crosshair;
}

.product-main-image {
    width: 100%;
    border-radius: 15px;
}

.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 3;
}

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

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Product Detail */
.product-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.spec-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* About Cards */
.about-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    height: 100%;
}

.about-card h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: #fff !important;
    border: none !important;
    position: relative;
    z-index: 1031;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Image zoom container */
.img-zoom-container {
    position: relative;
    overflow: hidden;
}

.img-zoom-result {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-repeat: no-repeat;
    display: none;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-slide {
        height: 280px;
    }
    
    .hero-content {
        height: 280px;
    }
    
    .page-header {
        height: 280px;
    }
    
    .product-card-image {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .product-card-image {
        height: 200px;
    }
}

/* Products Toolbar */
.products-toolbar {
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.products-count {
    font-size: 0.95rem;
    color: #555;
    white-space: nowrap;
}

/* Toolbar Search */
.toolbar-search {
    max-width: 320px;
}

.toolbar-search .input-group {
    border-radius: 50px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

[dir="rtl"] .toolbar-search .input-group {
    flex-direction: row-reverse;
}

.toolbar-search .form-control {
    border: 2px solid #e0e0e0;
    border-right: none;
    padding: 7px 14px;
    font-size: 0.88rem;
    border-radius: 50px 0 0 50px;
    transition: border-color 0.3s ease;
}

.toolbar-search .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    outline: none;
}

.toolbar-search .btn-filter {
    border-radius: 0 50px 50px 0;
    border-left: none;
}

/* Filter & Sort Buttons */
.btn-filter,
.btn-sort {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--dark-color);
    border-radius: 50px;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-filter:hover,
.btn-sort:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(235,97,25,0.3);
    transform: translateY(-1px);
}

.btn-filter:active,
.btn-sort:active {
    transform: translateY(0);
}

/* Filter Offcanvas */
.offcanvas#filterOffcanvas {
    --bs-offcanvas-width: 340px;
}

.offcanvas#filterOffcanvas .offcanvas-header {
    background: var(--dark-color);
    color: #fff;
    padding: 16px 20px;
}

.offcanvas#filterOffcanvas .offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
}

.offcanvas#filterOffcanvas .offcanvas-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.offcanvas#filterOffcanvas .offcanvas-body {
    padding: 20px;
}

@media (max-width: 575px) {
    .offcanvas#filterOffcanvas {
        --bs-offcanvas-width: 100%;
    }
    .products-toolbar {
        padding: 10px 14px;
    }
    .products-toolbar .d-flex {
        gap: 8px;
    }
    .toolbar-search {
        max-width: 100%;
        flex-basis: 100%;
    }
    .toolbar-search .form-control {
        font-size: 0.82rem;
        padding: 6px 12px;
    }
    .btn-filter,
    .btn-sort {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
}

/* Sort Dropdown */
.dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
}

.dropdown-menu .dropdown-item:active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}
