/* Homepage Layout Styles */
.shop-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    padding: 10px 5px;
}

.shop-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 5px;
}

.shop-list-wrapper .shop-bubble-premium {
    flex-direction: row;
    min-width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.shop-list-wrapper .shop-logo-circle-lg {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

/* Product Section Layouts */
.product-grid-refined {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.product-list-refined {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-list-refined .product-card {
    display: flex;
    flex-direction: row !important;
    max-width: 100%;
    height: auto;
}

.product-list-refined .product-img-wrapper {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.product-list-refined .product-info-wrapper {
    padding-left: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-slider-refined {
    display: flex !important;
    overflow-x: auto !important;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    flex-wrap: nowrap !important;
}

.product-slider-refined .product-card {
    min-width: 260px;
    max-width: 260px;
}

.product-slider-refined>.col {
    flex: 0 0 auto;
    width: auto;
}

@media (max-width: 576px) {
    .product-grid-refined {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-list-refined .product-img-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Slider Navigation - Flex Side Buttons */
.slider-with-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.slider-with-nav .product-slider-refined {
    flex: 1;
    min-width: 0;
    /* Important: prevent flex overflow */
}

.slider-side-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #444;
    font-size: 0.8rem;
    align-self: center;
}

.slider-side-btn:hover {
    background: #feee00;
    border-color: #e6d500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    color: #222;
    transform: scale(1.08);
}

/* RTL Icon rotation in flex layout */
[dir="rtl"] .slider-side-btn i {
    transform: rotate(180deg);
}

.slider-side-btn:active {
    transform: scale(0.95);
}

@media (max-width: 576px) {
    .slider-side-btn {
        display: none;
    }
}