body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

@font-face {
    font-family: 'UAESymbol';
    src: url('../fonts/font.ttf') format('truetype'),
    url('../fonts/font.otf') format('opentype'),
    /* url('../fonts/font.svg#UAESymbol') format('svg'), */
    url('../fonts/font.woff') format('woff')
    ;
}

.dirham-symbol {
    font-family: 'UAESymbol';
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color) !important;
}

.nav-link {
    color: #fff !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

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

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

.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.product-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* .product-card img {
    height: 250px;
    object-fit: cover;
} */

.product-card .card-body {
    text-align: center;
}

.product-price {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: bold;
}

.btn-custom {
    background-color: var(--accent-color);
    color: var(--accent-text);
    border: none;
    padding: 0.5rem 2rem;
    transition: background-color 0.3s;
}

.btn-custom:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer h5 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

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

.contact-info li {
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

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

@media (min-width: 0) and (max-width: 992px) {
    .offcanvas .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Inner Page Product listing */
.breadcrumb-section {
    background-color: #fff;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
}

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

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

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

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.filter-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filter-section h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.sort-dropdown {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    border-radius: 5px;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: var(--accent-color);
    background-color: #f8f9fa;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Product Details */
.product-image-main {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.product-image-main img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-details {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-title {
    color: var(--dark-navy);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.thumb-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumb-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    gap: 10px;
}
.thumb-container::-webkit-scrollbar {
    display: none;
}

.thumb {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 6px;
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
    background-color: #fff;
    border-radius: 6px;
    border: 2px solid transparent;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.6;
    transition: 0.2s;
}

.thumb.active img {
    opacity: 1;
}
.thumb.active {
    border-color: var(--primary-color);
}

.thumb {
    width: 20%;
}

@media (max-width: 1199px) {
    .thumb {
        width: 25%;
    }
}

@media (max-width: 991px) {
    .thumb {
        width: 20%;
    }
    .product-image-main {
        padding: 1.2rem;
    }
}

@media (max-width: 575px) {
    .thumb {
        width: 35%;
    }
    .product-image-main {
        padding: 1rem;
    }
}

.thumb-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Main carousel square */
.product-image-main .carousel-inner {
    aspect-ratio: 1 / 1;
    background: #f1f1f1;
    /* placeholder */
}

/* Ensure items fill square */
.product-image-main .carousel-item,
.product-image-main .carousel-item img {
    height: 100%;
}

.product-image-main .carousel-item img {
    width: 100%;
    object-fit: cover;
}
