
/* Bootstrap Carousel Overrides and Custom Styles - ALL CAROUSELS USE BOOTSTRAP 4 */

/* Global Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
}

/* Banner Carousel Styles - 100% Image Display */
.banner-carousel-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.banner-carousel-container .carousel-inner {
    border-radius: 15px;
}

.banner-carousel-container .carousel-item {
    height: 400px;
}

.banner-carousel-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .banner-carousel-container .carousel-item {
        height: 250px;
    }
}

/* Categories Carousel Styles - Bootstrap 4 Full Implementation */
.categories-carousel-container {
    position: relative;
    /*background: linear-gradient(135deg, rgb(105, 182, 61) 0%, #764ba2 100%);*/
    border-radius: 24px;
    padding: 40px 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.categories-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.categories-carousel-container .carousel-inner {
    z-index: 1;
    position: relative;
}

.categories-grid {
    display: grid;
    gap: 24px;
    padding: 20px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
    }
}

/* Products Carousel Styles - Bootstrap 4 Full Implementation */
.products-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.products-carousel-container .carousel-inner {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Two Line Products Carousel - Bootstrap 4 Full Implementation */
.two-line-carousel-container .carousel-inner {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.two-line-products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-row {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .product-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .product-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-row {
        grid-template-columns: 1fr;
    }
}

/* Brands Carousel Styles - Bootstrap 4 Full Implementation */
.brands-carousel-container {
    position: relative;
    overflow: hidden;
}

.brands-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    padding: 20px;
}

@media (max-width: 1199px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Offer Carousel Specific - 100% Image Display */
.offer-carousel-container .carousel-item {
    height: 300px;
}

.offer-carousel-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* Custom Carousel Controls - Universal for All Carousels */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
    color: white;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
    width: 20px;
    height: 20px;
}

.categories-carousel-container .carousel-control-prev-icon,
.categories-carousel-container .carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(90deg);
}

/* Carousel Indicators - Universal */
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: -40px;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 12px;
    height: 12px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.4);
    background-clip: padding-box;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
    border-radius: 50%;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Full Width Image Display - Universal */
.carousel-item img {
    width: 180px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

/* Language Images Container */
.language-images-container {
    padding: 20px 0;
}

.language-image {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto 25px auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.3) translateY(50px);
    animation: floatIn 1s ease-out forwards;
    cursor: pointer;
}

.language-image:nth-child(1) {
    animation-delay: 0.3s;
    animation-name: floatInLeft;
}

.language-image:nth-child(2) {
    animation-delay: 0.6s;
    animation-name: floatInCenter;
}

.language-image:nth-child(3) {
    animation-delay: 0.9s;
    animation-name: floatInRight;
}

.language-image:hover {
    transform: scale(1.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
    z-index: 10;
    position: relative;
}

.image-link {
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    z-index: 1;
    border-radius: 15px;
}

.image-link:hover::before {
    left: 100%;
}

.image-link:active .language-image {
    transform: scale(1.05) translateY(-10px);
}

@keyframes floatInLeft {
    0% {
        opacity: 0;
        transform: scale(0.2) translateX(-200px) translateY(80px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) translateX(20px) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0);
    }
}

@keyframes floatInCenter {
    0% {
        opacity: 0;
        transform: scale(0.1) translateY(150px);
    }
    30% {
        opacity: 0.5;
        transform: scale(0.8) translateY(-30px);
    }
    70% {
        opacity: 0.9;
        transform: scale(1.15) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatInRight {
    0% {
        opacity: 0;
        transform: scale(0.2) translateX(200px) translateY(80px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) translateX(-20px) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0);
    }
}

@keyframes floatingWave {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes simpleGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(52, 152, 219, 0.2);
    }
}

.image-link:hover::before {
    left: 100%;
}

.language-image {
    animation-fill-mode: both;
}

.language-image.loaded {
    animation: floatingWave 4s ease-in-out infinite;
    animation-delay: 2s;
}

@media (max-width: 768px) {
    .language-image {
        max-width: 280px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .language-image {
        max-width: 250px;
        margin-bottom: 18px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .language-image {
        max-width: 220px;
        margin-bottom: 15px;
    }
}

/* Ultra Modern & Simple Menu Styles */
.link-menu {
    width: 100%;
    margin-bottom: 24px;
    position: relative;
}

.horizontal-menu {
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.menu-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.menu-item {
    position: relative;
    flex: 1;
    min-width: 100px;
}

.menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 0, 0, 0.08),
            transparent);
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    gap: 8px;
    border-radius: 12px;
    margin: 4px;
    z-index: 1;
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.1) 0%,
            rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.menu-link:hover::before {
    opacity: 1;
}

.menu-link:hover {
    color: #6366f1;
    transform: translateY(-1px);
    text-decoration: none;
    background: rgba(99, 102, 241, 0.05);
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-link:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.2),
        0 4px 20px rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.menu-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.menu-icon {
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-link:hover .menu-icon {
    opacity: 1;
    transform: scale(1.1) rotate(2deg);
}

.menu-link[target="_blank"]::after {
    content: '↗';
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
    font-weight: 600;
}

.menu-link[target="_blank"]:hover::after {
    opacity: 1;
    transform: translate(1px, -1px);
}

.menu_preload {
    height: 56px;
    background: linear-gradient(90deg,
            rgba(243, 244, 246, 0.8) 25%,
            rgba(229, 231, 235, 0.8) 50%,
            rgba(243, 244, 246, 0.8) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.no-menu {
    text-align: center;
    padding: 32px 20px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.language-switcher-container {
    text-align: right;
    padding: 12px 0;
}

.language-switcher-buttons {
    display: inline-flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 6px;
    border-radius: 20px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher {
    border-radius: 14px !important;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.025em;
}

.language-switcher .flag {
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.language-switcher.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow:
        0 2px 8px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.language-switcher.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #6b7280;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.language-switcher:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-switcher:active {
    transform: translateY(-1px);
}

.horizontal-menu {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-item.active .menu-link {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.1) 0%,
            rgba(168, 85, 247, 0.1) 100%);
    color: #6366f1;
    font-weight: 600;
    box-shadow:
        inset 0 2px 4px rgba(99, 102, 241, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.menu-item.active .menu-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

@media (prefers-color-scheme: dark) {
    .menu-list {
        background: rgba(17, 24, 39, 0.95);
        border-color: rgba(55, 65, 81, 0.3);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .menu-link {
        color: #f9fafb;
    }

    .menu-link:hover {
        color: #a5b4fc;
        background: rgba(99, 102, 241, 0.15);
    }

    .menu-item:not(:last-child)::after {
        background: linear-gradient(to bottom,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent);
    }

    .no-menu {
        color: #9ca3af;
        background: rgba(31, 41, 55, 0.8);
        border-color: rgba(75, 85, 99, 0.5);
    }
}

@media (max-width: 992px) {
    .menu-list {
        flex-direction: column;
        border-radius: 20px;
    }

    .menu-item {
        flex: none;
        width: 100%;
    }

    .menu-item:not(:last-child)::after {
        display: none;
    }

    .menu-item:not(:last-child) {
        border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    }

    .menu-link {
        justify-content: flex-start;
        border-radius: 0;
        margin: 0;
        padding: 16px 24px;
    }

    .menu-link:first-child {
        border-radius: 16px 16px 0 0;
    }

    .menu-link:last-child {
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 768px) {
    .menu-link {
        padding: 14px 20px;
        font-size: 13px;
    }

    .menu-icon {
        font-size: 14px;
    }

    .language-switcher-container {
        text-align: center;
    }

    .language-switcher-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .link-menu {
        margin-bottom: 16px;
    }

    .menu-link {
        padding: 12px 16px;
        font-size: 12px;
        gap: 6px;
    }

    .menu-icon {
        font-size: 12px;
    }

    .language-switcher {
        font-size: 11px;
        padding: 5px 10px;
    }

    .menu-list {
        border-radius: 16px;
    }
}

@media (hover: hover) {
    .menu-link {
        position: relative;
        overflow: hidden;
    }

    .menu-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
        transition: all 0.6s ease;
        transform: translate(-50%, -50%);
        border-radius: 50%;
    }

    .menu-link:hover::before {
        width: 300px;
        height: 300px;
    }
}

.menu-link:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .menu-link,
    .language-switcher,
    .horizontal-menu {
        transition: none;
        animation: none;
    }

    .menu-link:hover::before {
        transition: none;
    }
}

/* Modern Category Card Styles */
.modern-category-card {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
    height: 100%;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    display: flex;
}

.card-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-inner:hover::before {
    left: 100%;
}

.category-image-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #6ca749, #6ca749);
    padding: 3px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
    background: white;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6ca749,rgba(129, 145, 119, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.card-inner:hover .category-image {
    transform: scale(1.1);
}

.card-inner:hover .image-overlay {
    opacity: 1;
}

.promo-badge-modern {
    position: absolute;
    top: 20px;
    right: -1px;
    z-index: 10;
}

.badge-text {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: badgePulse 2s infinite;
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.6), transparent);
    border-radius: 50%;
    animation: glowPulse 2s infinite;
    z-index: 1;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.category-info {
    text-align: center;
    position: relative;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    transition: color 0.3s ease;
}

.card-inner:hover .category-title {
    color: #6ca749;
}

.category-arrow {
    display: inline-flex;
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6ca749, #6ca749);
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.card-inner:hover .category-arrow {
    opacity: 1;
    transform: translateY(0) rotate(45deg);
}

.main-categories-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.main-categories-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgb(105, 182, 61), #764ba2);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.main-categories-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(105, 182, 61), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    position: relative;
}

.main-categories-subtitle {
    font-size: 18px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

.modern-category-card {
    height: 100%;
}

.category-link {
    height: 100%;
    display: flex;
}

@media (max-width: 767px) {
    .card-inner {
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    .category-image-container {
        margin-bottom: 0 !important;
        margin-right: 15px !important;
    }
    .category-title{
        margin-top: 15px !important;
    }
    .category-info {
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .slider-navigation {
        display: none;
    }
    
    .slider-indicators {
        margin-top: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 767px) {
    .category-link {
        min-height: 60px;
    }
    
    .slider-indicators {
        padding: 10px 0;
    }
    
    .indicator {
        width: 14px;
        height: 14px;
        margin: 0 6px;
    }
}

@media (max-width: 767px) {
    .card-inner {
        transition: transform 0.2s ease;
    }
    
    .card-inner:hover {
        transform: translateY(-2px);
    }
    
    .category-image {
        transition: transform 0.2s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modern-category-slider,
    .category-image,
    .card-inner,
    .nav-btn,
    .indicator,
    .slider-track {
        transition: none !important;
        animation: none !important;
    }
    
    .modern-category-card {
        animation: none !important;
        opacity: 1 !important;
    }
}

@media (prefers-color-scheme: dark) {
    .card-inner {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .category-title {
        color: #e2e8f0;
    }
    
    .card-inner:hover .category-title {
        color: #90cdf4;
    }
    
    .main-categories-subtitle {
        color: #a0aec0;
    }
    
    .no-categories-modern {
        background: rgba(45, 55, 72, 0.9);
    }
    
    .no-categories-modern h3 {
        color: #e2e8f0;
    }
    
    .no-categories-modern p {
        color: #a0aec0;
    }
}

.product_withimage_slogon {
    background: #f8f9fa;
}

.category-image-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.category-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-main-image:hover {
    transform: scale(1.05);
}

.slogan-container {
    text-align: center;
    background: linear-gradient(135deg, rgb(105, 182, 61) 0%, #6ca749 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slogan-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .slogan-text {
        font-size: 1.4rem;
    }
    
    .category-image-container {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .product_withimage_slogon .col-lg-2,
    .product_withimage_slogon .col-lg-10 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .slogan-text {
        font-size: 1.2rem;
    }
    
    .slogan-container {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* Modern Product Card Styles */
.modern-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-container:hover .product-image-overlay {
    opacity: 1;
}

.product-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-badge {
    background: linear-gradient(135deg, rgb(105, 182, 61), #6ca749);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bestselling-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.stock-out-badge {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.product-category {
    margin-bottom: 8px;
}

.category-text {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.price-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(105, 182, 61);
}

.price-display del {
    color: #a0aec0;
    font-size: 1rem;
    margin-right: 8px;
    text-decoration: line-through;
}

.product-rating {
    margin-bottom: 16px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.rating-stars i.fas.fa-star {
    color: #ffd700;
    font-size: 1rem;
}

.rating-count {
    color: #718096;
    font-size: 0.85rem;
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-image-container:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-action-btn:hover {
    background: rgb(105, 182, 61);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2d3748;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: rgb(105, 182, 61);
}

.product-price-container {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(105, 182, 61);
}

.product-price-sale {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e53e3e;
}

.product-price-regular {
    font-size: 1rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.product-rating {
    margin-bottom: 16px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.stars {
    color: #ffd700;
    font-size: 1rem;
}

.rating-count {
    color: #718096;
    font-size: 0.85rem;
}

.product-add-to-cart {
    background: linear-gradient(135deg,rgb(105, 182, 61), #6ca749);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.product-add-to-cart:hover {
    background: linear-gradient(135deg, #6CA749, #1f3d0e);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .product-image-container {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
}

.content-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Main Product Showcase Styles */
.main-product-showcase {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
}

.main-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.main-product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f8f9fa;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.main-product-link:hover .main-product-image {
    transform: scale(1.1);
}

.main-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-product-link:hover .main-product-overlay {
    opacity: 1;
}

.main-product-sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    animation: pulse 2s infinite;
}

.main-badge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 22px;
    z-index: -1;
    filter: blur(4px);
    opacity: 0.7;
}

.main-product-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.main-product-image-container:hover .main-product-actions {
    opacity: 1;
    transform: translateY(0);
}

.main-product-action-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    justify-content: center;
    text-decoration: none;
    color: #333;
}

.main-product-action-btn:hover {
    background: #6ca749;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.main-product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.main-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-product-title a:hover {
    color: #6ca749;
}

.main-product-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.main-product-price {
    font-size: 28px;
    font-weight: bold;
    color: #27ae60;
}

.main-product-price-sale {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
}

.main-product-price-regular {
    font-size: 20px;
    color: #7f8c8d;
    text-decoration: line-through;
}

.main-product-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.main-product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.main-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #27ae60;
    font-weight: 500;
}

.main-feature-item svg {
    color: #27ae60;
}

.main-product-add-to-cart {
    background: linear-gradient(135deg, #6ca749, #0056b3);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.main-product-add-to-cart:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

/* Compact Product Card Styles */
.compact-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compact-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.compact-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.compact-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.compact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.compact-image-link:hover .compact-image {
    transform: scale(1.05);
}

.compact-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compact-image-link:hover .compact-image-overlay {
    opacity: 1;
}

.compact-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.compact-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.compact-image-container:hover .compact-actions {
    opacity: 1;
    transform: translateX(0);
}

.compact-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.compact-action-btn:hover {
    background: #6ca749;
    color: white;
    transform: scale(1.1);
}

.compact-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.compact-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.compact-title a:hover {
    color: #6ca749;
}

.compact-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.compact-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.compact-price-sale {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.compact-price-regular {
    font-size: 14px;
    color: #7f8c8d;
    text-decoration: line-through;
}

@media (max-width: 1199px) {
    .main-product-title {
        font-size: 20px;
    }

    .main-product-price,
    .main-product-price-sale {
        font-size: 24px;
    }

    .main-product-image-container {
        height: 220px;
    }
}

@media (max-width: 991px) {
    .main-product-showcase {
        padding: 15px;
        margin-bottom: 20px;
    }

    .main-product-info {
        padding: 20px;
    }

    .main-product-actions {
        flex-direction: column;
    }

    .compact-image-container {
        height: 160px;
    }
}

@media (max-width: 767px) {
    .main-product-title {
        font-size: 18px;
    }

    .main-product-price,
    .main-product-price-sale {
        font-size: 20px;
    }

    .main-product-image-container {
        height: 200px;
    }

    .main-product-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .main-feature-item {
        font-size: 14px;
    }

    .compact-image-container {
        height: 140px;
    }

    .compact-info {
        padding: 12px;
    }

    .compact-title {
        font-size: 14px;
    }

    .compact-price,
    .compact-price-sale {
        font-size: 16px;
    }
}

.main-product-preload {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 15px;
}

.last-products-preload {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Brand Card Styles */
.brand-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.brand-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100%;
    position: relative;
}

.brand-image-container {
    position: relative;
    width: 150px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    filter: grayscale(0.3);
}

.brand-card:hover .brand-image {
    transform: scale(1.1);
    filter: grayscale(0);
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.brand-card:hover .brand-overlay {
    opacity: 1;
}

.brand-info {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 14px;
    font-weight: 600;
    color: #6ca749;
    margin: 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.brand-card:hover .brand-name {
    color: #6ca749;
}

.brand-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #6ca749;
    display: flex;
    align-items: center;
}

.brand-card:hover .brand-arrow {
    opacity: 1;
    transform: translateX(0);
}

.brand-card.featured {
    background: linear-gradient(135deg, #6ca749 0%, #0056b3 100%);
    color: white;
}

.brand-card.featured .brand-name {
    color: white;
}

.brand-card.featured .brand-image {
    filter: brightness(1.2) contrast(1.1);
}

.brand-card.featured:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.brands-preload {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 1199px) {
    .brand-card {
        height: 110px;
    }

    .brand-image-container {
        width: 70px;
        height: 50px;
    }

    .brand-name {
        font-size: 13px;
        max-width: 100px;
    }
}

@media (max-width: 991px) {
    .brand-card {
        height: 100px;
    }

    .brand-card-inner {
        padding: 15px;
    }

    .brand-image-container {
        width: 60px;
        height: 45px;
        margin-bottom: 8px;
    }

    .brand-name {
        font-size: 12px;
        max-width: 90px;
    }
}

@media (max-width: 767px) {
    .brand-card {
        height: 90px;
    }

    .brand-card-inner {
        padding: 12px;
    }

    .brand-image-container {
        width: 50px;
        height: 35px;
        margin-bottom: 6px;
    }

    .brand-name {
        font-size: 11px;
        max-width: 80px;
    }
}

@media (max-width: 575px) {
    .brand-card {
        height: 80px;
    }

    .brand-card-inner {
        padding: 10px;
    }

    .brand-image-container {
        width: 40px;
        height: 30px;
        margin-bottom: 4px;
    }

    .brand-name {
        font-size: 10px;
        max-width: 70px;
    }

    .brand-arrow {
        display: none;
    }
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.brand-card:hover::before {
    left: 100%;
}

@media (prefers-color-scheme: dark) {
    .brand-card {
        background: #3a3a3a;
        color: #e9ecef;
    }

    .brand-name {
        color: #e9ecef;
    }

    .brand-card:hover .brand-name {
        color: #6ca749;
    }
}

.cate-scroll {
    height: auto !important;
}

   /* Enhanced Product Card Styles */

        /* Badges Container */
        .product-badges {
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 2;
        }

        .product-badge {
            align-self: flex-start;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sale-badge {
            background: #ff4757;
            color: white;
        }

        .stock-out-badge {
            background: #2f3542;
            color: white;
        }

        .trending-badge {
            background: #6CA749;
            color: white;
        }

        .bestselling-badge {
            background: #f39c12;
            color: white;
        }

        /* Product Category */
        .product-category {
            margin-bottom: 8px;
        }

        .product-category span {
            color: #718093;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        /* Product Rating */
        .product-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0;
        }

        .product-rating .stars {
            display: flex;
            gap: 2px;
        }

        .product-rating .stars i {
            color: #feca57;
            font-size: 12px;
        }

        .product-rating .review-count {
            color: #718093;
            font-size: 12px;
        }

        /* Enhanced Cart Button States */
        .product-add-to-cart {
            width: 100%;
            padding: 12px 20px;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            color: white;

        }

        .product-add-to-cart:hover {

            transform: translateY(-2px);
        }

        .product-add-to-cart.out-of-stock {
            background: #dfe4ea;
            color: #718093;
            cursor: not-allowed;
        }

        .product-add-to-cart.out-of-stock:hover {
            transform: none;
            background: #dfe4ea;
        }

        .product-add-to-cart.view-options {
            background: #6CA749;
        }

        .product-add-to-cart.view-options:hover {
            background: #6CA749;
        }

        /* Price Container Adjustments */
        .product-price-container {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 12px 0;
        }

        .product-price-regular {
            text-decoration: line-through;
            color: #718093;
            font-size: 14px;
        }

        .product-price-sale {
            color: #ff4757;
            font-size: 18px;
            font-weight: 700;
        }

        .product-price {
            color: #2f3542;
            font-size: 18px;
            font-weight: 700;
        }

        /* Card Animation */
        .modern-product-card {
            opacity: 0;
            animation: fadeInUp 0.5s ease forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Shipping Information */
        .product-shipping-info {
            margin: 12px 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .shipping-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #27ae60;
        }

        .shipping-badge.free-shipping {
            color: #27ae60;
        }

        .shipping-badge.rapid-shipping {
            color: #6CA749;
        }

        .shipping-badge svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        .shipping-badge.free-shipping svg {
            stroke: #27ae60;
        }

        .shipping-badge.rapid-shipping svg {
            stroke: #6CA749;
        }

        .shipping-badge span {
            font-weight: 1000;
            font-size: larger;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .product-badge {
                font-size: 10px;
                padding: 3px 8px;
            }

            .product-rating .stars i {
                font-size: 10px;
            }

            .product-add-to-cart {
                padding: 10px 16px;
                font-size: 13px;
            }

            .shipping-badge {
                font-size: 12px;
            }

            .shipping-badge svg {
                width: 14px;
                height: 14px;
            }
        }
/* Bootstrap Carousel Overrides and Custom Styles - COMPACT VERSION */

/* Global Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
}

/* Banner Carousel Styles - Compact */
.banner-carousel-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.banner-carousel-container .carousel-inner {
    border-radius: 8px;
}

.banner-carousel-container .carousel-item {
    height: 300px;
}

.banner-carousel-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .banner-carousel-container .carousel-item {
        height: 200px;
    }
}

/* Categories Carousel Styles - Compact */
.categories-carousel-container {
    position: relative;
    border-radius: 12px;
    padding: 15px 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.categories-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.categories-carousel-container .carousel-inner {
    z-index: 1;
    position: relative;
}

.categories-grid {
    display: grid;
    gap: 8px;
    padding: 8px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 6px;
    }
}

@media (max-width: 991px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
        gap: 4px;
    }
}

/* Products Carousel Styles - Compact */
.products-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
}

.products-carousel-container .carousel-inner {
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Two Line Products Carousel - Compact */
.two-line-carousel-container .carousel-inner {
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.two-line-products-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .product-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 991px) {
    .product-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .product-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Brands Carousel Styles - Compact */
.brands-carousel-container {
    position: relative;
    overflow: hidden;
}

.brands-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    padding: 8px;
}

@media (max-width: 1199px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

@media (max-width: 991px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

/* Offer Carousel Specific - Compact */
.offer-carousel-container .carousel-item {
    height: 200px;
}

.offer-carousel-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Custom Carousel Controls - Compact */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
    color: white;
}

.carousel-control-prev {
    left: 8px;
}

.carousel-control-next {
    right: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
    width: 14px;
    height: 14px;
}

.categories-carousel-container .carousel-control-prev-icon,
.categories-carousel-container .carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(90deg);
}

/* Carousel Indicators - Compact */
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: -25px;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 8px;
    height: 8px;
    margin-right: 2px;
    margin-left: 2px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.4);
    background-clip: padding-box;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
    border-radius: 50%;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Language Images Container - Compact */
.language-images-container {
    padding: 8px 0;
}

.language-image {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 12px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.3) translateY(30px);
    animation: floatIn 1s ease-out forwards;
    cursor: pointer;
}

.language-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.05);
    z-index: 10;
    position: relative;
}

/* Menu Styles - Compact */
.link-menu {
    width: 100%;
    margin-bottom: 8px;
    position: relative;
}

.horizontal-menu {
    width: 100%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.menu-item {
    position: relative;
    flex: 1;
    min-width: 80px;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    gap: 6px;
    border-radius: 6px;
    margin: 2px;
    z-index: 1;
}

.menu-link:hover {
    color: #6366f1;
    transform: translateY(-1px);
    text-decoration: none;
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.12);
}

.menu-icon {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu_preload {
    height: 40px;
    background: linear-gradient(90deg,
            rgba(243, 244, 246, 0.8) 25%,
            rgba(229, 231, 235, 0.8) 50%,
            rgba(243, 244, 246, 0.8) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.no-menu {
    text-align: center;
    padding: 16px 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

/* Modern Category Card Styles - Compact */
.modern-category-card {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
    height: 100%;
}

.card-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.category-image-container {
    position: relative;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #6ca749, #6ca749);
    padding: 2px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
    background: white;
}

.promo-badge-modern {
    position: absolute;
    top: 8px;
    right: -1px;
    z-index: 10;
}

.badge-text {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    transition: color 0.3s ease;
    text-align: center;
}

/* Product Styles - Compact */
.product_withimage_slogon {
    background: #f8f9fa;
}

.category-image-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.category-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.slogan-container {
    text-align: center;
    background: linear-gradient(135deg, rgb(105, 182, 61) 0%, #6ca749 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px 12px;
    margin-bottom: 8px;
}

.slogan-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1.3;
}

/* Modern Product Card Styles - Compact */
.modern-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

.modern-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #2d3748;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-container {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: rgb(105, 182, 61);
}

.product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-action-btn {
    width: 28px;
    height: 28px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.product-add-to-cart {
    background: linear-gradient(135deg,rgb(105, 182, 61), #6ca749);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
    font-size: 13px;
}

/* Main Product Showcase Styles - Compact */
.main-product-showcase {
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    height: 100%;
}

.main-product-image-container {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #f8f9fa;
}

.main-product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.main-product-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.main-product-price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
}

.main-product-add-to-cart {
    background: linear-gradient(135deg, #6ca749, #0056b3);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

/* Compact Product Card Styles */
.compact-product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.compact-image-container {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
}

.compact-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
}

.compact-price-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.compact-price {
    font-size: 14px;
    font-weight: bold;
    color: #27ae60;
}

/* Brand Card Styles - Compact */
.brand-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    height: 100%;
    position: relative;
}

.brand-image-container {
    position: relative;
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.brand-name {
    font-size: 11px;
    font-weight: 600;
    color: #6ca749;
    margin: 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Enhanced Product Badges - Compact */
.product-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.product-badge {
    align-self: flex-start;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Product Category - Compact */
.product-category {
    margin-bottom: 4px;
}

.product-category span {
    color: #718093;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Product Rating - Compact */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0;
}

.product-rating .stars i {
    color: #feca57;
    font-size: 10px;
}

.product-rating .review-count {
    color: #718093;
    font-size: 10px;
}

/* Shipping Information - Compact */
.product-shipping-info {
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shipping-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #27ae60;
}

.shipping-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.shipping-badge span {
    font-weight: 600;
}

/* Compact Shipping for Two-Line Products */
.compact-shipping-info {
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compact-shipping-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
}

.compact-shipping-badge.free-shipping {
    color: #27ae60;
}

.compact-shipping-badge.rapid-shipping {
    color: #6CA749;
}

.compact-shipping-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* Responsive Adjustments - More Compact */
@media (max-width: 768px) {
    .slogan-text {
        font-size: 1.1rem;
    }
    
    .category-image-container {
        padding: 4px;
        margin-bottom: 8px;
    }
    
    .product_withimage_slogon .col-lg-2,
    .product_withimage_slogon .col-lg-10 {
        margin-bottom: 8px;
    }
    
    .product-image-container {
        height: 140px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .brand-card {
        height: 70px;
    }
    
    .brand-image-container {
        width: 50px;
        height: 35px;
    }
    
    .brand-name {
        font-size: 9px;
        max-width: 60px;
    }
}

@media (max-width: 576px) {
    .slogan-text {
        font-size: 1rem;
    }
    
    .slogan-container {
        padding: 6px 8px;
        margin-bottom: 6px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 24px;
        height: 24px;
    }
    
    .carousel-control-prev {
        left: 4px;
    }
    
    .carousel-control-next {
        right: 4px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 10px;
        height: 10px;
    }
    
    .product-title {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .brand-card {
        height: 60px;
    }
    
    .brand-card-inner {
        padding: 4px;
    }
    
    .brand-image-container {
        width: 40px;
        height: 25px;
        margin-bottom: 2px;
    }
    
    .brand-name {
        font-size: 8px;
        max-width: 50px;
    }
}

/* Additional Compact Utilities */
.carousel-indicators li {
    margin: 0 1px;
}

.menu-link {
    min-height: 32px;
}

.image-wrapper {
    width: 100px;
    height: 100px;
}

@media (max-width: 767px) {
    .image-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-title {
        font-size: 12px;
        min-height: 30px;
    }
}

/* Loading Animations - Maintained */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cate-scroll li a {
    padding-bottom: 2px !important;
    padding-top: 2px!important;
}
.main-categories-section {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}
.banner-part {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}
#dynamic_category_sections {
    margin-bottom: 0px !important;
}
#dynamic_category_sections section {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

 /* Page Background */
 body {
    background-color: #ffffff !important;
}

.main-wrapper,
.wrapper,
.container,
.container-fluid {
    background-color: #ffffff !important;
}

/* Reduce margins and padding for sections */
section {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

/* Banner section adjustments */
.banner-part {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
    margin-top: 20px !important;
}

.banner-part .row {
    margin: 0 !important;
}

.banner-part .col-md-2,
.banner-part .col-md-10,
.banner-part .col-lg-2,
.banner-part .col-lg-4,
.banner-part .col-lg-8 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Container adjustments */
.container9 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Categories section */
.main-categories-section {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

.main-categories-section .row {
    margin: 0 !important;
}

/* trending Products section */
.trend-part {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

.trend-part .ml-1 {
    margin-left: 0px !important;
}

.trend-part .mr-2 {
    margin-right: 0px !important;
}

.trend-part .row {
    margin: 0 !important;
}

/* Slogan container */
.slogan-container {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

.slogan-text {
    margin-bottom: 0px !important;
    font-size: 1.5rem !important;
}

/* Dynamic category sections */
#dynamic_category_sections {
    margin-bottom: 0px !important;
}

#dynamic_category_sections section {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

/* Product sections */
.product_withimage_slogon,
.product_with_mainproduct {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

.product_withimage_slogon .row,
.product_with_mainproduct .row {
    margin: 0 !important;
}

/* Brands section */
.main_brands {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

.main_brands .row {
    margin: 0 !important;
}

/* Ads sections */
.add-part {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

.offer-part {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

/* Column adjustments */
.col-lg-12,
.col-md-12,
.col-sm-4,
.col-lg-2,
.col-lg-4,
.col-lg-8,
.col-lg-10,
.col-md-2,
.col-md-8,
.col-md-10 {
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-bottom: 5px !important;
}

/* Carousel adjustments */
.carousel-inner {
    padding: 0px 0 !important;
}

.carousel-item {
    padding: 0px 0 !important;
}

/* Category cards */
.modern-category-card,
.category-card {
    margin-bottom: 0px !important;
}

/* Product cards */
.modern-product-card,
.product-card,
.compact-product-card {
    margin-bottom: 0px !important;
}

/* Brand cards */
.brand-card {
    margin-bottom: 0px !important;
}

/* Menu adjustments */
.link-menu {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
}

.horizontal-menu {
    padding: 0px 0 !important;
}

.menu-list {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.menu-item {
    margin-right: 0px !important;
}

/* Categories sidebar */
.banner-cate {
    margin-bottom: 0px !important;
}

.cate-heading {
    padding: 10px 0px !important;
    margin-bottom: 7px !important;
}

/* Language images */
.language-images-container {
    padding: 5px !important;
}

.language-image {
    margin-bottom: 3px !important;
}

/* Loading placeholders */
.content-placeholder {
    margin-bottom: 5px !important;
}

/* Grids */
.categories-grid,
.products-grid,
.brands-grid,
.two-line-products-grid {
    padding: 5px !important;
    gap: 5px !important;
}

/* Product rows in two-line layout */
.product-row {
    margin-bottom: 3px !important;
}

/* Banner carousel container */
.banner-carousel-container {
    margin-bottom: 5px !important;
}

/* Additional spacing reductions */
.carousel-control-prev,
.carousel-control-next {
    width: 35px !important;
}

.carousel-indicators {
    bottom: 5px !important;
}

.carousel-indicators li {
    width: 8px !important;
    height: 8px !important;
    margin: 0 2px !important;
}

/* Remove extra margins from Bootstrap columns on mobile */
@media (max-width: 768px) {
    .col-md-2,
    .col-md-8,
    .col-md-10,
    .col-md-12 {
        margin-bottom: 3px !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    section {
        margin-bottom: 8px !important;
        padding: 5px 0 !important;
    }
}

/* Additional background color enforcement */
* {
    box-sizing: border-box;
}

.main-content,
.page-content,
.content-wrapper {
    background-color: #ffffff !important;
}

/* Ensure no unwanted margins on first/last elements */
section:first-child {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

section:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 5px !important;
}

.image-link {
    margin-bottom: 10px !important;
}

/* ========================================
   BOOTSTRAP 4 DROPDOWN CATEGORIES STYLES
======================================== */

/* Main Categories Container */
.dropdown-categories-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
}

/* Category Item */
.category-item {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    overflow: visible;
}

.category-item:last-child {
    border-bottom: none;
}

/* Dropdown Category Item */
.category-item.dropdown {
    position: relative;
}

/* Category Link */
.category-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.category-link:hover {
    background-color: #f8f9fa;
    color: #6ca749;
    text-decoration: none;
}

.category-link:focus {
    outline: none;
    box-shadow: inset 3px 0 0 #6ca749;
}

/* Category Icon */
.category-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
}

.category-link:hover .category-icon {
    color: #6ca749;
}

/* Category Text */
.category-text {
    flex: 1;
    font-weight: 500;
}

/* Dropdown Arrow */
.dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    transition: all 0.3s ease;
}

.category-item.dropdown.show .dropdown-arrow {
    color: #6ca749;
    transform: rotate(180deg);
}

/* Bootstrap Dropdown Menu - Floating Left */
.dropdown-menu {
    position: fixed;
    left: 20px;
    top: auto;
    min-width: 280px;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin: 0;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    align-items: center;
    padding: 0px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #6ca749;
    margin-bottom: 10px;
}

.dropdown-header .category-icon {
    color: #6ca749;
    margin-right: 10px;
}

/* Subcategory Items */
.subcategory-item {
    padding: 0;
}

.subcategory-link {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    border-radius: 0;
    border: none;
    background: none;
}

.subcategory-link:hover {
    background-color: #f8f9fa;
    color: #6ca749;
    text-decoration: none;
    padding-left: 25px;
}

.subcategory-link .category-icon {
    font-size: 12px;
    margin-right: 12px;
    color: #999;
    min-width: 16px;
}

.subcategory-link:hover .category-icon {
    color: #6ca749;
}

/* Enhanced floating dropdown positioning */
.category-item.dropdown {
    position: relative;
    overflow: visible;
}

.category-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Custom positioning for floating left */
.dropdown-menu.floating-left {
    position: fixed;
    left: 20px;
    transform-origin: right center;
}

/* Hover effect for floating dropdown */
.category-item.dropdown:hover .dropdown-menu.floating-left {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* Mobile Responsive - disable floating on mobile */
@media (max-width: 768px) {
    .dropdown-menu,
    .dropdown-menu.floating-left {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        box-shadow: inset 0 0 0 1px #e9ecef !important;
        border-left: 3px solid #6ca749 !important;
        margin: 5px 0 5px 20px !important;
        border-radius: 0 8px 8px 0 !important;
        background: #f8f9fa !important;
        max-height: none !important;
        overflow-y: visible !important;
        transform: none !important;
        backdrop-filter: none !important;
    }

    .dropdown-arrow {
        display: inline-block !important;
    }

    .category-link {
        padding: 12px 15px;
        font-size: 13px;
    }

    .subcategory-link {
        padding: 10px 15px;
        font-size: 12px;
    }

    .category-icon {
        width: 18px;
        font-size: 14px;
        margin-right: 10px;
    }
}

/* Add floating backdrop for better visual separation */
.dropdown.show .dropdown-menu.floating-left::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
    pointer-events: none;
}

/* Enhanced floating effect */
.dropdown-menu.floating-left {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
    .category-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    .subcategory-link {
        padding: 8px 12px;
        font-size: 11px;
    }

    .category-icon {
        width: 16px;
        font-size: 12px;
        margin-right: 8px;
    }

    .category-text {
        font-size: 12px;
    }
}

/* Custom Scrollbar for Dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for floating dropdown */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* Loading Animation */
.categories-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.categories-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6ca749;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .dropdown-categories-container,
    .categories-list,
    .dropdown-menu {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .category-link,
    .subcategory-link {
        color: #e2e8f0;
    }

    .category-link:hover,
    .subcategory-link:hover {
        background-color: #4a5568;
        color: #63b3ed;
    }

    .category-item {
        border-bottom-color: #4a5568;
    }

    .dropdown-header {
        color: #e2e8f0;
        border-color: #4b5563;
    }
}

/* Hide FontAwesome chevron content */
.fa-chevron-right:before {
    content: "" !important;
}

/* Ensure proper z-index for dropdowns */
.banner-cate {
    position: relative;
    z-index: 100;
    overflow: visible;
}

.dropdown-categories-container {
    position: relative;
    z-index: 100;
    overflow: visible;
}

.col-md-2, .col-lg-2 {
    overflow: visible;
}

.col-md-8,
.col-lg-8 {
    position: relative;
    z-index: 10;
}

/* Prevent content overflow */
.banner-part,
.container9 {
    overflow: visible !important;
}

.row {
    overflow: visible !important;
}
.dropdown-toggle::after {
     display: none  !important;}
.category-link {
    padding: 2px 20px;
}
.dropdown-menu {
    max-height: 2000px !important;
        background: #fff !important;
}
.subcategory-link {
    padding: 0px 20px;
    font-size: 12px;
}
.dropdown-header{
    padding: 0px 16px!important;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown.show .dropdown-menu.floating-left::before {
    background: #fff !important;
}