:root {
    --primary: #1fb5cf;
    --primary-rgb: 31, 181, 207;
    --primary-dark: #14a2ba;
    --primary-light: #40c8de;
    --primary-contrast: #ffffff;
    --secondary: #e91e63;
    --secondary-rgb: 233, 30, 99;
    --secondary-dark: #c1134a;
    --secondary-light: #f27ba0;
    --secondary-contrast: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--dark-text);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--primary-dark) !important;
        border-color: var(--primary-dark) !important;
    }

.text-secondary {
    color: var(--secondary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

    .btn-secondary:hover, .btn-secondary:focus {
        background-color: var(--secondary-dark);
        border-color: var(--secondary-dark);
    }

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Header/Navigation Styles */
.nav-link, .dropdown-item {
    color: inherit;
    transition: all 0.2s ease-in-out;
}

.hover-bg-light-10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hero Slider Styles */
.hero-slider {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
}

    .hero-slider .carousel.slide {
        height: 300px;
        max-height: 300px;
        overflow: hidden;
    }

.hero-slide-image {
    height: 100%;
    max-height: 300px;
    object-fit: scale-down;
}

.carousel-caption-bg-text {
    background-color: #999797ab
}

/* Product Card Styles */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-translate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-translate:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }

.hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Category Menu */
.category-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1050;
    animation: fadeIn 0.3s ease forwards;
    background-color: white;
    max-height: 500px;
    overflow-y: auto;
}

    .category-mega-menu .list-unstyled li a:hover {
        color: var(--primary) !important;
    }

/* Search Dialog */
.search-dialog {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease forwards;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 1040;
    overflow-y: auto;
    animation: slideUp 0.3s ease forwards;
}

/* Custom Carousel */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.object-fit-cover {
    object-fit: cover;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* RTL Support */
html[dir="rtl"] .fa-arrow-right::before {
    content: "\f060"; /* fa-arrow-left code */
}

html[dir="rtl"] .fa-arrow-left::before {
    content: "\f061"; /* fa-arrow-right code */
}

html[dir="rtl"] .fa-chevron-right::before {
    content: "\f053"; /* fa-chevron-left code */
}

html[dir="rtl"] .fa-chevron-left::before {
    content: "\f054"; /* fa-chevron-right code */
}

html[dir="rtl"] .me-1, html[dir="rtl"] .me-2, html[dir="rtl"] .me-3, html[dir="rtl"] .me-4, html[dir="rtl"] .me-5 {
    margin-right: 0 !important;
}

html[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
}

html[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
}

html[dir="rtl"] .me-4 {
    margin-left: 1.5rem !important;
}

html[dir="rtl"] .me-5 {
    margin-left: 3rem !important;
}

html[dir="rtl"] .ms-1, html[dir="rtl"] .ms-2, html[dir="rtl"] .ms-3, html[dir="rtl"] .ms-4, html[dir="rtl"] .ms-5 {
    margin-left: 0 !important;
}

html[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
}

html[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
}

html[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
}

html[dir="rtl"] .ms-4 {
    margin-right: 1.5rem !important;
}

html[dir="rtl"] .ms-5 {
    margin-right: 3rem !important;
}

/* Scroll To Top Button */
#scrollToTopBtn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    #scrollToTopBtn.show {
        opacity: 1;
        visibility: visible;
    }

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-image-container {
    aspect-ratio: 1;
    background: #f8f9fa;
}

.product-wishlist {
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default Grid Layout (4 columns) */
.products-container.view-grid .product-col {
    /* width: 100%; */
}

.products-container.view-grid .product-layout {
    flex-direction: column;
}

/* List Layout (1 column row, horizontal layout) */
.products-container.view-list .row {
    flex-direction: column;
}

.products-container.view-list .product-col {
    width: 100%;
    max-width: 100%;
}

.products-container.view-list .product-layout {
    flex-direction: row;
}

.products-container.view-list .product-image {
    /* width: 30%; */
    max-width: 300px;
}

.products-container.view-list .product-info {
    width: 70%;
    padding-left: 1rem;
}

/*a.hover-text-primary:hover {
    background-color: var(--primary) !important;
    color: white;
/*}*/

.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 10px;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

.subcategory-list {
    list-style: none;
    padding-left: 0;
}

.subcategory-item {
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

    .subcategory-item:hover {
        background-color: #f8f9fa;
    }

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 15px;
}