/* Top Contact Bar */
.top-contact-bar {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-contact-bar .contact-info span {
    margin-inline-end: 20px;
}

.top-contact-bar .contact-info i {
    margin-inline-end: 5px;
}

.top-contact-bar .social-links a {
    color: #fff;
    margin-inline-start: 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.top-contact-bar .social-links a:hover {
    color: #f39c12;
}

/* Main Navbar */
.main-navbar {
    padding: 15px 0;
    z-index: 1000;
}

.main-navbar .navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50 !important;
}

.main-navbar .nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    margin-inline: 10px;
    transition: color 0.3s;
}

.main-navbar .nav-link:hover {
    color: #f39c12 !important;
}

.main-navbar .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    padding: 2px 6px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
}

.hero-carousel .carousel {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-carousel .carousel-inner {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-carousel .carousel-item {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-slide picture {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-slide-image {
    width: 100vw;
    height: 600px;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    min-height: 600px;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-btn {
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 0.3s, background 0.3s;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
}

.hero-carousel .carousel-control-prev {
    left: 20px;
    right: auto;
}

.hero-carousel .carousel-control-next {
    right: 20px;
    left: auto;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.hero-carousel .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0;
    transition: all 0.3s;
    opacity: 1;
    flex-shrink: 0;
}

.hero-carousel .carousel-indicators button.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
    border-color: #fff;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.btn-action {
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-action:hover {
    background: #f39c12;
    color: #fff;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-description {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-price-section {
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 14px;
    margin-inline-end: 10px;
}

.final-price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.discount-badge {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-inline-start: 10px;
}

.product-weight {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
}

.product-weight i {
    margin-inline-end: 5px;
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #f39c12;
    border-radius: 2px;
}

/* Products Section */
.products-section {
    padding: 40px 0;
}

/* Services Section */
.service-card {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 20px;
}

.service-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}

/* Products Slider */
.bestsellers-section {
    position: relative;
}

.products-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.slider-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: #f39c12;
    color: #fff;
}

.slider-btn-prev {
    right: 20px;
}

.slider-btn-next {
    left: 20px;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wholesale Contact Section */
.wholesale-contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.wholesale-contact-section h2,
.wholesale-contact-section p,
.wholesale-contact-section li {
    color: #fff;
}

.contact-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-form-card h4 {
    color: #2c3e50;
}

/* Footer */
.footer {
    background: #2c3e50;
    margin-top: auto;
}

/* Sticky Footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #f39c12 !important;
}

/* RTL Support */
[dir="rtl"] .slider-btn-prev {
    left: 20px;
    right: auto;
}

[dir="rtl"] .slider-btn-next {
    right: 20px;
    left: auto;
}

[dir="rtl"] .hero-carousel .carousel-control-prev {
    right: 20px;
    left: auto;
}

[dir="rtl"] .hero-carousel .carousel-control-next {
    left: 20px;
    right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-btn {
        padding: 10px 30px;
        font-size: 16px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-carousel .carousel-control-prev {
        left: 10px;
        right: auto;
    }
    
    .hero-carousel .carousel-control-next {
        right: 10px;
        left: auto;
    }
    
    .hero-carousel .carousel-indicators {
        bottom: 10px;
    }
    
    [dir="rtl"] .hero-carousel .carousel-control-prev {
        right: 10px;
        left: auto;
    }
    
    [dir="rtl"] .hero-carousel .carousel-control-next {
        left: 10px;
        right: auto;
    }
    
    .slider-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .top-contact-bar .contact-info {
        font-size: 12px;
    }
    
    .top-contact-bar .contact-info span {
        display: block;
        margin-bottom: 5px;
    }
}

@media (min-width: 1920px) {
    .hero-carousel {
        height: 700px;
        overflow: visible;
    }
    
    .hero-slide {
        overflow: visible;
    }
    
    .hero-slide-image {
        width: 100%;
        height: calc(100% + 100px);
        object-fit: cover;
        object-position: center bottom;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}

