/* Product Grid */
.product-grid {
    display: flex;
}

.products-grid_item {
    padding: 0 10px 25px;
    width: 50%;
}

/* Product Card */
.product-card {
    color: #000;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    height: 100%;
    letter-spacing: .03em;
    line-height: 1.2;
    position: relative;
    text-align: center;
    z-index: 0;
}

.product-image-container {
    -webkit-tap-highlight-color: transparent;
    background: #f5f5f5;
    display: block;
    overflow: hidden;
    padding: 0 0 151%;
    position: relative;
    width: 100%;
}

.product-badge {
    height: 30%;
    left: 0;
    min-height: 100px;
    pointer-events: none;
    position: absolute;
    top: 0;
    writing-mode: vertical-rl;
    z-index: 1;
}

.product-card-label {
    bottom: 40px;
    min-width: 45%;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 1;
}

/* Badges */
.badge {
    background-color: #000;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-rounded-left {
    border-radius: 25px 0 0 25px;
}

.badge-transparent {
    background-color: #000000b3;
}

.badge-text-center {
    text-align: center;
}

.badge-text-left {
    text-align: left;
}

.badge-full-width {
    display: block;
    width: 100%;
}

.badge-full-height {
    display: block;
    height: 100%;
}

.badge-sm {
    font-size: 10px;
    padding: 5px 10px;
}

.badge-medium {
    font-size: 12px;
    padding: 6px 12px;
}

.badge-vertical {
    text-align: right;
    transform: rotate(180deg);
    writing-mode: vertical-rl;
}

    .badge-vertical .badge-medium {
        padding: 12px 6px;
    }

/* Product Link & Images */
.product-link {
    -webkit-tap-highlight-color: transparent;
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
}

.product-image {
    position: absolute;
    width: 100%;
}

/* Carousel */
.carousel {
    width: 100%;
}

.carousel-wrapper {
    height: 100%;
    opacity: 1;
}

.product-card-image-slider-carousel {
    height: 100%;
}

.product-card-image-slider-dots {
    background-color: #0006;
    border-radius: 8px;
    bottom: 6px;
    display: inline-flex !important;
    font-size: 0;
    justify-content: center;
    left: 50%;
    line-height: 0;
    padding: 2px;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateX(-50%);
    width: max-content;
    z-index: 1;
}

/* Product Actions */
.product-action-remove,
.product-action-wishlist {
    background-color: initial;
    border: 0;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 1;
}

    .product-action-wishlist:hover {
        background-color: #fff6;
        box-shadow: 0 0 5px #3333334d;
    }

.product-action-wishlist-icon {
    fill: #0000;
    stroke: #000;
    height: 25px;
    pointer-events: none;
    position: relative;
    top: 1px;
    width: 25px;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    min-height: 108px;
    padding-top: 15px;
}

.product-brand {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-name {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #000;
    display: -webkit-box;
    font-size: 10px;
    line-height: 11px;
    margin-bottom: 10px;
    overflow: hidden;
    text-align: left;
}

/* Price Styles */
.product-price {
    margin-top: auto;
}

.price-container {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    width: 100%;
}

.price-content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 1em;
    font-weight: 700;
}

.price-inner {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

    .price-inner > span {
        padding: 0 5px;
    }

.price-old {
    text-decoration: line-through;
}

.price-special {
    color: #f80000;
}

.price-highlighted .price-label {
    margin-top: 6px;
}

.price-content .price-label {
    margin-top: 2px;
}

.price-label {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: .666em;
}

.price-highlighted .price-percent {
    background-color: #1e1e1e;
    border: 1px solid #1e1e1e;
    border-radius: 0 4px 4px 0;
    color: #fff;
    padding: 2px 4px;
    z-index: 2;
}

.price-highlighted .price-separator {
    display: none;
}

.price-separator {
    margin: 0 4px;
}

.price-highlighted .price-percent .price-code {
    margin-left: -4px;
    padding-left: 10px;
}

.price-highlighted .price-code {
    border: 1px solid #b5b5b5;
    border-radius: 0 4px 4px 0;
    padding: 2px 6px;
}

/* Panel Widget */
.panel-widget-carousel {
    height: 100%;
    padding: 0 5px;
    width: 159px;
}

.panel-widget-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Product Color Button */
.product-card-color-btn {
    align-items: center;
    background: #fff;
    border-radius: 20px;
    bottom: 8px;
    box-shadow: 0 1px 1px 0 #0003;
    display: flex;
    font-size: 12px;
    height: 20px;
    justify-content: space-around;
    left: 8px;
    line-height: 1;
    min-width: 38px;
    padding: 0 5px;
    position: absolute;
}

.product-card-color-btn-icon {
    display: block;
    height: 10px;
    position: relative;
    width: 15px;
}

    .product-card-color-btn-icon:after,
    .product-card-color-btn-icon:before {
        border: 1px solid #fff;
        border-radius: 50%;
        content: "";
        display: block;
        height: 10px;
        position: absolute;
        width: 10px;
    }

    .product-card-color-btn-icon:before {
        background-image: linear-gradient(90deg, #6bceb4 0, #f98cc2 48%, #fff781 101%);
        left: 0;
    }

    .product-card-color-btn-icon:after {
        background-image: linear-gradient(90deg, #3023ae 0, #53a0fd 48%, #b4ec51 101%);
        left: 5px;
    }


.color-group__content--entered {
    transform: none;
}

.color-group__content {
    background-color: #fff;
    bottom: 0;
    left: 0;
    position: absolute;
    transition: transform .2s;
    width: 100%;
    will-change: transform;
    z-index: 2;
}

.color-group__layout {
    display: flex;
    padding: 0 3px 10px;
}

.color-group__item {
    padding: 0 3px;
    width: 20%;
}

.color-group__link {
    display: block;
    overflow: hidden;
    padding-bottom: 128%;
    position: relative;
    width: 100%;
}

.color-group__image {
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Slick slider customization */
.slick-slider-container {
    margin-bottom: 0;
    height: 100%;
}

    .slick-slider-container .slick-dots {
        background-color: #0006;
        border-radius: 8px;
        bottom: 6px;
        display: inline-flex !important;
        font-size: 0;
        justify-content: center;
        left: 50%;
        line-height: 0;
        padding: 2px;
        /* pointer-events: none; */
        position: absolute;
        right: 0;
        transform: translateX(-50%);
        width: max-content;
        z-index: 1;
    }


        .slick-slider-container .slick-dots li {
            display: inline-block;
            margin: 0 1px;
            width: 7px;
            height: 7px;
        }

    .slick-slider-container img {
        width: 100%;
    }

    .slick-slider-container .slick-dots li button {
        background-color: #ccc;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        height: 7px;
        opacity: .5;
        padding: 0;
        pointer-events: auto;
        width: 7px;
    }

        .slick-slider-container .slick-dots li button::before {
            border: none;
            border-radius: 50%;
            cursor: pointer;
            height: 7px;
            opacity: .5;
            padding: 0;
            pointer-events: auto;
            width: 7px;
            color: transparent;
        }

    .slick-slider-container .slick-dots li[class*=slick-active] button {
        background: #fff;
        opacity: 1
    }

.color-group__content {
    display: none;
    position: absolute;
    /* Assuming you want it positioned relative to the container */
    z-index: 10;
    /* Ensure it appears above other elements */
}

    .product-card-color-btn:hover ~ .color-group__content,
    .color-group__content:hover {
        display: block;
    }

.color-group__image:hover {
    transform: scale(1.1);
    border-color: #000;
}

/* Main product image area */
.product-link .slick-slider-container > div:first-child {
    display: block !important;
    /* Ensure first image is visible */
}

/* Style for our hover image container */
.hover-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

    .hover-image-container img {
        width: 100%;
        height: auto;
    }

    .hover-image-container img {
        transition: opacity 0.3s ease;
    }

/* Custom Dropdown (cdd) container */
.cdd-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown toggle element */
.cdd-dropdown-toggle {
    padding: 8px 0px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
}

    .cdd-dropdown-toggle:hover {
        background-color: var(--color-bg-tertiary);
    }

/* Dropdown menu - hidden by default */
.cdd-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 8px 0;
    margin: 2px 0 0;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border-primary);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Show dropdown menu on hover */
.cdd-dropdown:hover .cdd-dropdown-menu {
    display: block;
}

/* Dropdown items */
.cdd-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease 0s;
}

    .cdd-dropdown-item:hover {
        background-color: var(--color-primary-light);
        color: var(--color-primary-dark);
    }

    /* Active state */
    .cdd-dropdown-item.active {
        background-color: var(--color-primary-lighter);
        color: var(--color-primary);
        font-weight: 500;
    }

/* Dropdown divider */
.cdd-dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background-color: var(--color-border-primary);
}

/* Dropdown header */
.cdd-dropdown-header {
    display: block;
    padding: 8px 16px;
    color: var(--color-text-muted);
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Danger variant */
.cdd-dropdown-item.danger {
    color: var(--color-accent-danger);
}

    .cdd-dropdown-item.danger:hover {
        background-color: rgba(212, 44, 54, 0.1);
    }

/* Right-aligned dropdown */
.cdd-dropdown-right .cdd-dropdown-menu {
    left: auto;
    right: 0;
}

/* Dropdown with icons */
.cdd-dropdown-item.with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cdd-dropdown-item.with-icon .cdd-icon {
        color: var(--color-text-muted);
        width: 18px;
        height: 18px;
    }


.image-container-h300 {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 4px; /* optional */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* optional */
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease; /* for hover effect */
}

/* Optional hover effect */
.image-container-h300:hover .cover-image {
    transform: scale(1.05);
}

.circle-card {
    text-align: center;
    margin: 0 auto;
    max-width: 150px;
}

.circle-card__content {
    display: block;
    text-decoration: none;
    color: inherit;
}

.circle-card__image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
    transition: transform 0.3s ease;
}

.circle-card:hover .circle-card__image-wrapper {
    transform: scale(1.05);
}

.circle-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.circle-card__title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-top: 10px;
}

.carousel-container {
    margin: 0 auto;
    position: relative;
    max-width: 1140px;
}

.category-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.5rem;
}

    .category-carousel::-webkit-scrollbar {
        display: none;
    }

.category-item {
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
    user-select: none;
}

    .category-item img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 50%;
        border: 2.5px solid transparent;
        cursor: pointer;
        transition: border-color 0.3s ease;
    }

    .category-item.active img {
        border-color: #8a75ff;
    }

.category-label {
    font-size: 0.65rem;
    font-weight: 500;
    margin-top: 6px;
    color: #000;
    white-space: nowrap;
}

.big-deals-img {
    background: #8a75ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    user-select: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 2.5px solid #8a75ff;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #555;
    cursor: pointer;
    z-index: 5;
    user-select: none;
    padding: 0 0.25rem;
    transition: color 0.2s ease;
}

    .carousel-nav:hover {
        color: var(--color-primary);
    }

    .carousel-nav.left {
        left: -2rem;
    }

    .carousel-nav.right {
        right: -2rem;
    }

.slick-carousel {
    overflow: hidden;
    margin: 0 -12px;
}

    .slick-carousel .card-1 {
        margin-right: 12px;
        margin-left: 12px;
    }
.discount-grid {
    /*max-width: 960px;*/
    /*max-width: 960px;*/
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 2px;
}

.discount-item {
    position: relative;
    background-color: #beb7af;
    color: white;
    overflow: hidden;
    cursor: pointer;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .discount-item img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 0.9;
        transition: transform 0.3s ease;
        z-index: 1;
    }

    .discount-item:hover img {
        transform: scale(1.05);
        opacity: 1;
    }

.discount-text {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}
.discount-brand-text {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.85;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
    white-space: nowrap;
    z-index: 2;
}
 /* Sidebar filter */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-reset {
    background-color: #0d0d0d;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.6rem;
    border-radius: 0.4rem;
    border: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

    .btn-reset:hover {
        background-color: #3a3a3a;
    }

.accordion-button {
    padding-left: 0;
    font-weight: 300;
    color: #0d0d0d;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

    .accordion-button:not(.collapsed) {
        color: #0d0d0d;
        box-shadow: none;
    }

    .accordion-button::after {
        filter: brightness(0);
    }
/* Scrollbar styling */
.scrollable-list {
    max-height: 9rem; /* Approx 140px */
    overflow-y: auto;
    padding-right: 0.5rem;
}

    .scrollable-list::-webkit-scrollbar {
        width: 6px;
    }

    .scrollable-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .scrollable-list::-webkit-scrollbar-thumb {
        background: #0d0d0d;
        border-radius: 10px;
    }

.form-check-label {
    font-size: 0.9rem;
    color: #333333;
    cursor: pointer;
    user-select: none;
}

.form-check-input {
    cursor: pointer;
}

.product-type-header, .brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 0.35rem;
    user-select: none;
}

.checkbox-all {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0d0d0d;
    background-color: #0d0d0d;
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
}

    .checkbox-all span {
        color: white;
        margin-left: 0.15rem;
        font-weight: 700;
        font-family: monospace;
        font-size: 0.85rem;
    }

.selected-count {
    font-size: 0.75rem;
    color: #777777;
    margin-bottom: 0.6rem;
    user-select: none;
}

.brand-search {
    margin-bottom: 0.75rem;
    margin-top: 0.2rem;
}

    .brand-search input {
        font-size: 0.9rem;
        border-radius: 0.25rem;
        border: 1px solid #d9d9d9;
        padding: 0.3rem 0.6rem;
        transition: border-color 0.3s;
    }

        .brand-search input:focus {
            border-color: #0d0d0d;
            outline: none;
            box-shadow: 0 0 5px rgba(13, 13, 13, 0.3);
        }

.price-range-container {
    font-size: 0.75rem;
    color: #0d0d0d;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    user-select: none;
}

.range-slider {
    width: 100%;
}

.accordion-body {
    padding-top: 0.2rem;
    padding-bottom: 0.1rem;
    padding-left: 0;
    padding-right: 0;
}
/* Hide small caret on bootstrap collapsed if needed */
.accordion-button::after {
    filter: brightness(0) invert(0);
    -webkit-filter: brightness(0) invert(0);
}

.border-none {
    border: none !important;
}

.border-bottom {
    border: none !important;
    border-bottom: 1px solid var(--color-border-primary) !important;
}

.sidebar-width {
    width: 270px !important;
}

.product-color-images {
    display: flex;
    max-height: 100px;
    overflow: hidden;
}
.product-color-images img {
    max-width: 100px;
}

.select-size {
    width: 30%;
    padding: 5px;
    border: 1px solid var(--color-border-primary);
}

.error-border {
    border: 2px solid red !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5) !important;
}

.search-separator {
    background-color: #000;
    display: block;
    height: 22px;    
    width: 1px;
}

#searchModal .modal-content {
    background: transparent;
    border: none;
}

#searchModal .modal-header {
    border: none;
    padding-bottom: 0;
}

#searchModal .search-input-container {
    position: relative;
    width: 100%;
}

#searchModal .search-input {
    background: transparent;
    border: none;    
    font-size: 18px;
    border-bottom: 1px solid white;
    border-radius: 0;
    color: white;
    padding-right: 40px;
    padding-bottom: 0px;
}

    #searchModal .search-input:focus {
        background: transparent;
        color: white;
        border-bottom-width: 2px;
        box-shadow: none;
    }

    #searchModal .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

#searchModal .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: none;
    border: none;
    padding: 0;
}

#searchModal .search-results {
    background: white;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

#searchModal .product-row {
    display: flex;
    gap: 15px;
    padding: 15px;
    justify-content: flex-start;
}

#searchModal .product-card {
    width: calc(20% - 12px); /* 5 cards in a row with gap */
    min-width: 0; /* Allow flex shrinking */
    transition: transform 0.3s;
}

    #searchModal .product-card:hover {
        transform: translateY(-5px);
    }

#searchModal .product-img-container {
    height: 200px;
    overflow: hidden;
}

#searchModal .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#searchModal .product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    margin-bottom: 0;
    padding: 8px 5px;
}

#searchModal .no-results {
    padding: 40px 0;
    text-align: center;
    color: #666;
}


/* Responsive */
@media (max-width: 576px) {
    .discount-item {
        min-height: 240px;
    }

    .discount-text {
        font-size: 1.2rem;
    }

    .discount-brand-text {
        font-size: 1rem;
        bottom: 8px;
    }
}

@media (max-width: 600px) {
    .category-carousel {
        gap: 1rem;
        padding: 1rem 0.25rem;
    }

    .category-item img, .big-deals-img {
        width: 60px;
        height: 60px;
    }

    .category-label {
        font-size: 0.55rem;
    }

    .carousel-nav.left {
        left: -1rem;
    }

    .carousel-nav.right {
        right: -1rem;
    }
}

@media (min-width: 768px) {
    .products-grid_item {
        width: 25%;
    }

    .panel-widget-carousel {
        padding: 0 10px;
        width: auto;
    }

.circle-card {
    max-width: 120px;
}

.circle-card__image-wrapper {
    width: 120px;
    height: 120px;
}

.circle-card__title {
    font-size: 12px;
}
}

@media (min-width: 1025px) {
    .color-group__layout {
        padding: 6px 3px;
    }

    a {
        transform: translateZ(0);
        transition: opacity .3s ease;
    }

    .slick-slider-container .slick-dots li button {
        height: 7px;
        width: 7px
    }
}
