/* Variables */
:root {
    --primary-color: #fca311;
    --primary-dark: #e88d05;
    --secondary-color: #14213d;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(20, 33, 61, 0.95);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 20px 0;
}

.mobile-nav-list a {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.mobile-nav-list a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px - 300px);
    /* Approx calc */
}

/* Slider Section */
.slider-section {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
    margin-bottom: 50px;
}

.slider-container {
    position: relative;
    height: 400px;
}

@media (min-width: 768px) {
    .slider-container {
        height: 500px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.slide-content {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: var(--primary-color);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* Product Grid */
.products-wrapper {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 350px;
    overflow: hidden;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    background-color: #fff;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0f182b;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: auto;
}

/* Categories Section */
.categories-section {
    padding: 30px 0;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
}

.categories-slider-wrapper {
    position: relative;
    padding: 0 45px;
}
.categories-container {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.categories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}
.slider-arrow:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
.slider-arrow.prev-arrow {
    right: 0px;
}
.slider-arrow.next-arrow {
    left: 0px;
}
.category-item {
    flex: 0 0 auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fdfdfd;
}

.category-item:hover .category-circle {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.2);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.category-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
}

/* Product Details Page */
.product-details-container {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .product-details-container {
        grid-template-columns: 1fr 1fr;
    }
}

.product-details-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-details-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.product-details-category {
    display: inline-block;
    background: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    color: #666;
    margin-bottom: 20px;
}

.product-details-price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.product-details-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    font-size: 18px;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}


/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 16px;
}

.search-box button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.category-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-filter select {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 16px;
    background: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget p {
    color: #b2bec3;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b2bec3;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.contact-info li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 15px;
    color: #b2bec3;
}

.contact-info i {
    position: absolute;
    right: 0;
    top: 5px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
/* Features Bar Styles */
.features-bar-section {
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0;
    padding: 30px 0;
}
.features-bar-section.full-width-features {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.features-bar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.feature-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
}
.feature-item:hover .feature-icon {
    color: var(--primary-color);
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: inherit;
    transition: color 0.3s ease;
}
.feature-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
}
.feature-text p {
    font-size: 14px;
    color: #bbb;
    margin: 0;
}
@media(max-width: 768px) {
    .features-bar-section {
        margin-top: 20px;
    }
    .features-bar-container {
        padding: 20px;
    }
    .features-bar-grid {
        flex-direction: column;
        gap: 20px;
    }
    .feature-item {
        margin-bottom: 10px;
    }
}

/* Responsive Fixes for Small Devices */
@media (max-width: 767px) {
    .slider-container {
        height: 300px;
    }
    .slide-content {
        font-size: 16px;
    }
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 220px;
    }
    .slide-content {
        font-size: 14px;
        padding: 8px 15px;
        bottom: 10px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        height: 250px;
    }
}