/* BD Catalog Module Frontend Styles */

/* Accessibility: Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

.bd-catalog-module {
    margin-bottom: 1.5rem;
}

.bd-module-banner {
    position: relative;
}

.bd-module-banner .banner-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bd-module-banner .banner-link:hover {
    opacity: 0.95;
}

.bd-module-banner .banner-image {
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
    display: block;
}

.bd-module-banner .banner-link:hover .banner-image {
    transform: scale(1.01);
}

/* Hover effects matching admin preview */
.bd-module-banner .banner-image-hover-glass {
    position: relative;
}

.bd-module-banner .banner-image-hover-glass:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
    transform: translateY(-2px);
    filter: saturate(1.1);
}

.bd-module-banner .banner-image-hover-zoom:hover {
    transform: scale(1.05);
}

.bd-module-banner .banner-image-hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

/* Banner Slider */
.bd-module-banner .banner-slider {
    position: relative;
    overflow: hidden;
}

.bd-module-banner .banner-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.bd-module-banner .banner-slide {
    flex-shrink: 0;
    position: relative;
}

.bd-module-banner .banner-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bd-module-banner .banner-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bd-module-banner .banner-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

.bd-module-banner .banner-pagination-bullet.active {
    background: #fff;
    width: 20px;
    border-radius: 5px;
}

.bd-module-banner .banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bd-module-banner .banner-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.bd-module-banner .banner-nav-prev {
    left: 10px;
}

.bd-module-banner .banner-nav-next {
    right: 10px;
}

/* Overlay texts */
.bd-module-banner .banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.bd-module-banner .banner-slide-text {
    position: absolute;
    z-index: 9;
    color: #fff;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.6);
    pointer-events: none;
    --slide-x-offset: 0px;
    --slide-y-offset: 0px;
}

.bd-module-banner .banner-slide-text-line {
    display: block;
    opacity: 0;
    animation-name: bannerSlideLineFade;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.bd-module-banner .banner-slide:not(.is-active) .banner-slide-text-line {
    animation: none;
    opacity: 0;
}

.bd-module-banner .banner-slide-text-layout-stacked .banner-slide-text-line + .banner-slide-text-line {
    margin-top: var(--slide-line-gap, 8px);
}

.bd-module-banner .banner-slide-text-layout-inline .banner-slide-text-line {
    display: inline-block;
    margin-right: var(--slide-line-gap, 8px);
}

.bd-module-banner .banner-slide-text-layout-inline .banner-slide-text-line:last-child {
    margin-right: 0;
}

.bd-module-banner .banner-slide-text-pos-center {
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + var(--slide-x-offset)), calc(-50% + var(--slide-y-offset)));
}

.bd-module-banner .banner-slide-text-pos-top-left {
    left: 0;
    top: 0;
    transform: translate(var(--slide-x-offset), var(--slide-y-offset));
}

.bd-module-banner .banner-slide-text-pos-top-center {
    left: 50%;
    top: 0;
    transform: translate(calc(-50% + var(--slide-x-offset)), var(--slide-y-offset));
}

.bd-module-banner .banner-slide-text-pos-top-right {
    right: 0;
    top: 0;
    transform: translate(calc(-1 * var(--slide-x-offset)), var(--slide-y-offset));
}

.bd-module-banner .banner-slide-text-pos-bottom-left {
    left: 0;
    bottom: 0;
    transform: translate(var(--slide-x-offset), calc(-1 * var(--slide-y-offset)));
}

.bd-module-banner .banner-slide-text-pos-bottom-center {
    left: 50%;
    bottom: 0;
    transform: translate(calc(-50% + var(--slide-x-offset)), calc(-1 * var(--slide-y-offset)));
}

.bd-module-banner .banner-slide-text-pos-bottom-right {
    right: 0;
    bottom: 0;
    transform: translate(calc(-1 * var(--slide-x-offset)), calc(-1 * var(--slide-y-offset)));
}

.bd-module-banner .banner-slide-text-anim-fade .banner-slide-text-line {
    animation-name: bannerSlideLineFade;
}

.bd-module-banner .banner-slide-text-anim-slide-up .banner-slide-text-line {
    animation-name: bannerSlideLineUp;
}

.bd-module-banner .banner-slide-text-anim-slide-down .banner-slide-text-line {
    animation-name: bannerSlideLineDown;
}

.bd-module-banner .banner-slide-text-anim-slide-left .banner-slide-text-line {
    animation-name: bannerSlideLineLeft;
}

.bd-module-banner .banner-slide-text-anim-slide-right .banner-slide-text-line {
    animation-name: bannerSlideLineRight;
}

.bd-module-banner .banner-slide-text-anim-zoom-in .banner-slide-text-line {
    animation-name: bannerSlideLineZoomIn;
}

@keyframes bannerSlideFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bannerSlideLineFade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes bannerSlideLineUp {
    0% { opacity: 0; transform: translateY(12px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes bannerSlideLineDown {
    0% { opacity: 0; transform: translateY(-12px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(6px); }
}

@keyframes bannerSlideLineLeft {
    0% { opacity: 0; transform: translateX(12px); }
    20% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-6px); }
}

@keyframes bannerSlideLineRight {
    0% { opacity: 0; transform: translateX(-12px); }
    20% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(6px); }
}

@keyframes bannerSlideLineZoomIn {
    0% { opacity: 0; transform: scale(0.95); }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.98); }
}

.bd-module-banner .banner-overlay-content {
    max-width: 80%;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.6);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

.bd-module-banner .banner-slide:hover .banner-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.bd-module-banner .banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bd-module-banner .banner-subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.bd-module-banner .banner-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bd-catalog-modules-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bd-catalog-modules-list .bd-catalog-module {
    flex: 1 1 auto;
}

/* ====================================================================== */
/* PRODUCT MODULE - CARD DESIGN                                           */
/* ====================================================================== */

.bd-module-product .bd-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.bd-product-card-image-wrapper {
    position: relative;
    background: #f9fafb;
    overflow: hidden;
}

.bd-product-card-image-link,
.bd-product-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bd-product-card-image {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bd-product-card-image-placeholder {
    min-height: 220px;
    color: #9ca3af;
    font-size: 2rem;
}

/* Diagonal OUT OF STOCK ribbon */
.bd-product-ribbon {
    position: absolute;
    top: 33px;
    left: -50px;
    width: 180px;
    transform: rotate(-45deg);
    text-align: center;
    pointer-events: none;
}

.bd-product-ribbon span {
    display: block;
    padding: 0.2rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.bd-product-ribbon-danger span {
    background: #dc2626;
}

/* TOP BRAND label */
.bd-product-label-top {
    position: absolute;
    top: 16px;
    right: 16px;
}

.bd-product-label-top span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: #f97316;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bd-product-card-body {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bd-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.bd-product-meta-brand {
    font-weight: 600;
    text-decoration: none;
    color: #2563eb;
}

.bd-product-meta-brand:hover {
    text-decoration: underline;
}

.bd-product-meta-sku {
    color: #9ca3af;
}

.bd-product-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.2rem;
}

.bd-product-title:hover {
    color: #1d4ed8;
}

.bd-product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d4ed8;
}

.bd-product-stock {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bd-product-stock.is-in-stock {
    color: #16a34a;
}

.bd-product-stock.is-out-of-stock {
    color: #dc2626;
}

.bd-product-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.bd-product-qty {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    background-color: #f9fafb;
}

.bd-product-qty-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #4b5563;
}

.bd-product-qty-input {
    width: 42px;
    border: none;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.1rem 0;
    background: transparent;
}

.bd-product-qty-input:focus {
    outline: none;
}

.bd-product-add-to-cart {
    flex: 1 1 auto;
    border: none;
    border-radius: 999px;
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.bd-product-add-to-cart:hover {
    background-color: #1e40af;
}

.bd-product-secondary-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bd-product-secondary-btn {
    flex: 1 1 0;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

.bd-product-secondary-btn.is-ghost {
    background-color: transparent;
}

.bd-product-secondary-btn:hover {
    background-color: #e5e7eb;
}

/* Product Slider/Carousel */
.bd-product-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.bd-product-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.bd-product-slide {
    flex-shrink: 0;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.bd-product-slider-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bd-product-slider-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bd-product-slider-bullet:hover {
    background: rgba(0, 0, 0, 0.5);
}

.bd-product-slider-bullet.active {
    background: #1d4ed8;
    width: 24px;
    height: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.4);
}

.bd-product-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.bd-product-slider:hover .bd-product-slider-nav {
    opacity: 1;
    visibility: visible;
}

.bd-product-slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.bd-product-slider:hover .bd-product-slider-nav[style*="opacity: 0.3"] {
    opacity: 0.3 !important;
    visibility: visible;
}

.bd-product-slider-nav[style*="opacity: 0.3"] {
    pointer-events: none;
}

/* Product Card Hover Overlay */
.bd-product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.bd-product-card:hover .bd-product-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.bd-product-card-overlay-buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 0 1.5rem;
    pointer-events: auto;
}

.bd-product-overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #4b5563;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bd-product-overlay-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bd-product-wishlist-btn:hover {
    color: #dc2626;
}

.bd-product-fastview-btn:hover {
    color: #1d4ed8;
}

.bd-product-compare-btn:hover {
    color: #1d4ed8;
}

.bd-product-overlay-btn:active {
    transform: scale(0.95);
}

.bd-product-overlay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Toast Notification Styles */
.bd-product-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.bd-product-toast.success {
    border-left-color: #16a34a;
}

.bd-product-toast.error {
    border-left-color: #dc2626;
}

.bd-product-toast.info {
    border-left-color: #1d4ed8;
}

.bd-product-toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bd-product-toast.success .bd-product-toast-icon {
    color: #16a34a;
}

.bd-product-toast.error .bd-product-toast-icon {
    color: #dc2626;
}

.bd-product-toast.info .bd-product-toast-icon {
    color: #1d4ed8;
}

.bd-product-toast-content {
    flex: 1;
    font-size: 0.875rem;
    color: #111827;
    line-height: 1.4;
}

.bd-product-toast-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.bd-product-toast-close:hover {
    color: #111827;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.bd-product-toast.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Fast View Modal */
.bd-fastview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.bd-fastview-modal.active {
    display: flex;
}

.bd-fastview-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bd-fastview-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #4b5563;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.bd-fastview-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #111827;
}

.bd-fastview-modal-body {
    padding: 2rem;
}

.bd-fastview-loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.bd-fastview-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.bd-product-slider-prev {
    left: 10px;
}

.bd-product-slider-next {
    right: 10px;
}

/* Product List Layout */
.bd-product-list .bd-product-card {
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
}

.bd-product-list .bd-product-card-image-wrapper {
    width: 200px;
    flex-shrink: 0;
}

.bd-product-list .bd-product-card-body {
    flex: 1;
    padding-left: 1rem;
}

/* Custom column classes for odd numbers that don't divide evenly into 12 */
.bd-col-5 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (min-width: 992px) {
    .bd-col-lg-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1440px) {
    .bd-col-xl-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1920px) {
    .bd-col-xxl-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ====================================================================== */
/* CATEGORY MODULE - CARD DESIGN                                         */
/* ====================================================================== */

.bd-module-category .bd-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.bd-module-category .bd-category-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.bd-category-card-image-wrapper {
    position: relative;
    background: #f9fafb;
    overflow: hidden;
}

.bd-category-card-image-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.bd-category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bd-category-card:hover .bd-category-card-image {
    transform: scale(1.05);
}

.bd-category-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.bd-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.bd-category-title:hover {
    color: #1d4ed8;
}

.bd-category-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.bd-category-product-count {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.bd-category-subcategories {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.bd-category-subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bd-category-subcategories-list li {
    font-size: 0.8rem;
}

.bd-category-subcategories-list a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bd-category-subcategories-list a:hover {
    color: #1d4ed8;
}

.bd-category-more a {
    font-weight: 600;
    color: #2563eb;
}

/* Category List Mode */
/* .bd-category-list styles are defined inline in templates */

.bd-category-list-item .bd-category-card {
    flex-direction: row;
    height: auto;
}

.bd-category-list-item .bd-category-card-image-wrapper {
    width: 200px;
    flex-shrink: 0;
}

.bd-category-list-item .bd-category-card-image-link {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Category Slider/Carousel */
.bd-category-slider {
    position: relative;
    overflow: hidden;
}

.bd-category-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.bd-category-slide {
    flex-shrink: 0;
    padding: 0 0.5rem;
}

.bd-category-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.bd-category-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.bd-category-nav-prev {
    left: 10px;
}

.bd-category-nav-next {
    right: 10px;
}

.bd-category-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bd-category-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bd-category-pagination-bullet.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 5px;
}

/* ====================================================================== */
/* CATEGORY MODULE - DISPLAY STYLES                                      */
/* ====================================================================== */

/* Grid with Items Style (like first image - with items list and View More) */
.bd-category-style-grid-items .bd-category-card {
    border-radius: 12px;
    overflow: hidden;
}

.bd-category-style-grid-items .bd-category-card-image-wrapper {
    height: 180px;
}

.bd-category-style-grid-items .bd-category-card-body {
    padding: 1.25rem;
}

.bd-category-style-grid-items .bd-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bd-category-items-list {
    margin: 0.75rem 0;
}

.bd-category-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bd-category-items li {
    font-size: 0.9rem;
    color: #4b5563;
    position: relative;
    padding-left: 1rem;
}

.bd-category-items li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9ca3af;
}

.bd-category-items li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bd-category-items li a:hover {
    color: #1d4ed8;
}

.bd-category-view-more {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.bd-category-view-more-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bd-category-view-more-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Popular Cards Style (like second image - compact with product count) */
.bd-category-style-popular .bd-category-card {
    border-radius: 12px;
    text-align: center;
    padding: 0;
}

.bd-category-style-popular .bd-category-card-image-wrapper {
    height: 160px;
    border-radius: 12px 12px 0 0;
}

.bd-category-style-popular .bd-category-card-body {
    padding: 1rem;
    align-items: center;
}

.bd-category-style-popular .bd-category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.bd-category-style-popular .bd-category-product-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Compact Style (minimal design) */
.bd-category-style-compact .bd-category-card {
    border-radius: 8px;
    overflow: hidden;
}

.bd-category-style-compact .bd-category-card-image-wrapper {
    height: 140px;
}

.bd-category-style-compact .bd-category-card-body {
    padding: 0.75rem;
    text-align: center;
}

.bd-category-style-compact .bd-category-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

/* ====================================================================== */
/* MINI PRODUCTS MODULE                                                   */
/* ====================================================================== */

.bd-module-mini-product {
    position: relative;
}

.bd-mini-product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
    height: 100px;
}

.bd-mini-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bd-mini-product-image-wrapper {
    position: relative;
    background: #f9fafb;
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
}

.bd-mini-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.bd-mini-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.bd-mini-product-body {
    padding: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.bd-mini-product-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 300;
    color: #111827;
    text-decoration: none;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bd-mini-product-name:hover {
    color: #1d4ed8;
}

/* Slider layout - multi-line ellipsis */
.bd-mini-products-slider .bd-mini-product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-mini-product-rating {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 0.2rem;
}

.bd-mini-product-rating .fa-star {
    color: #fbbf24;
    font-size: 0.6rem;
}

.bd-mini-product-rating .fa-star-o,
.bd-mini-product-rating .fa-regular {
    color: #d1d5db;
    font-size: 0.6rem;
}

.bd-mini-product-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.3rem;
}

.bd-mini-product-add-to-cart {
    width: 100%;
    padding: 0.25rem 0.4rem;
    background: transparent;
    color: #1d4ed8;
    border: 1px solid #1d4ed8;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.bd-mini-product-add-to-cart:hover {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

.bd-mini-product-add-to-cart:active {
    transform: scale(0.98);
}

.bd-mini-product-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bd-mini-product-add-to-cart:hover {
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    background: #eff6ff !important;
    transform: scale(1.05);
}

/* Hover Overlay Mode */
.bd-mini-product-card-hover {
    position: relative;
}

.bd-mini-product-card-hover .bd-mini-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
    border-radius: inherit;
}

.bd-mini-product-card-hover:hover .bd-mini-product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.bd-mini-product-card-hover .bd-mini-product-overlay .bd-mini-product-actions {
    pointer-events: auto;
}

.bd-mini-product-card-hover .bd-mini-product-overlay button {
    transform: scale(1);
    transition: transform 0.2s ease;
}

.bd-mini-product-card-hover .bd-mini-product-overlay button:hover {
    transform: scale(1.1);
}

/* Product name limited to 3 lines in hover mode */
.bd-mini-product-card-hover .bd-mini-product-name {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

/* Mini Product Wishlist and Compare Buttons */
.bd-mini-product-wishlist,
.bd-mini-product-compare {
    transition: all 0.2s ease;
}

.bd-mini-product-wishlist:hover {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    transform: scale(1.05);
}

.bd-mini-product-wishlist.active,
.bd-mini-product-wishlist[style*="color: #dc2626"] {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.bd-mini-product-wishlist.active i,
.bd-mini-product-wishlist[style*="color: #dc2626"] i {
    color: #dc2626;
}

.bd-mini-product-compare:hover {
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    background: #eff6ff !important;
    transform: scale(1.05);
}

.bd-mini-product-compare.active,
.bd-mini-product-compare[style*="color: #1d4ed8"] {
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.bd-mini-product-compare.active i,
.bd-mini-product-compare[style*="color: #1d4ed8"] i {
    color: #1d4ed8;
}

/* Grid Layout */
.bd-mini-products-grid {
    display: grid;
    gap: 0.5rem;
}

@media (max-width: 575px) {
    .bd-mini-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .bd-mini-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .bd-mini-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .bd-mini-products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Line Layout */
.bd-mini-products-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bd-mini-products-line .bd-mini-product-card {
    flex: 0 0 calc(20% - 0.8rem);
    min-width: 150px;
}

@media (max-width: 575px) {
    .bd-mini-products-line .bd-mini-product-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .bd-mini-products-line .bd-mini-product-card {
        flex: 0 0 calc(33.333% - 0.67rem);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .bd-mini-products-line .bd-mini-product-card {
        flex: 0 0 calc(25% - 0.75rem);
    }
}

/* Slider Layout */
.bd-mini-products-slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.bd-mini-products-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.bd-mini-products-slide {
    flex-shrink: 0;
    padding: 0 0.5rem;
}

.bd-mini-products-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bd-mini-products-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bd-mini-products-pagination-bullet:hover {
    background: rgba(0,0,0,0.5);
}

.bd-mini-products-pagination-bullet.active {
    background: #1d4ed8;
    width: 20px;
    border-radius: 5px;
}

.bd-mini-products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #111827;
    border: 1px solid #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.bd-mini-products-nav:hover {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

.bd-mini-products-nav-prev {
    left: 10px;
}

.bd-mini-products-nav-next {
    right: 10px;
}

@media (max-width: 767px) {
    .bd-mini-products-slider {
        padding: 0 40px;
    }
    
    .bd-mini-products-nav {
        width: 35px;
        height: 35px;
    }
    
    .bd-mini-products-nav-prev {
        left: 5px;
    }
    
    .bd-mini-products-nav-next {
        right: 5px;
    }
}

/* ====================================================================== */
/* LAYOUT MODULE STYLES                                                   */
/* ====================================================================== */

.bd-layout-module {
  display: flex;
  box-sizing: border-box;
}

.bd-layout-row {
  box-sizing: border-box;
}

.bd-layout-column {
  box-sizing: border-box;
  min-width: 0; /* Prevent flex items from overflowing */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%; /* Ensure column takes full width for flex children */
  gap: 8px; /* Gap between containers - accounted for in width calculation */
  flex-shrink: 1; /* Allow columns to shrink when wrapping */
  flex-grow: 1; /* Allow columns to grow when wrapping */
}

/* Add margin for other direct children (modules, rows) if needed */
.bd-layout-column > .bd-layout-module-item:not(:last-child),
.bd-layout-column > .bd-layout-row:not(:last-child) {
  margin-right: 8px;
  margin-bottom: 8px;
}

.bd-layout-module-item {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

/* Container Styles */
.bd-layout-container {
  box-sizing: border-box;
  flex-shrink: 0;
  display: block; /* Ensure containers are block-level for proper flex behavior */
  max-width: 100%; /* Prevent container from exceeding its calculated width */
  overflow-x: hidden; /* Prevent horizontal overflow (carousels going off-canvas) */
  overflow-y: visible; /* Allow vertical overflow for dropdowns, etc. */
}

/* Ensure modules inside containers respect container width */
.bd-layout-container > .bd-catalog-module {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure carousel/slider wrappers respect container width */
.bd-layout-container .bd-product-slider {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden; /* Constrain carousel content */
}

.bd-layout-container .bd-product-slider-wrapper {
  max-width: 100%;
  box-sizing: border-box;
}

/* Container Responsive Display */
/* Default: hide all containers unless they have 'all' class */
.bd-layout-container:not(.bd-container-all) {
  display: none;
}

.bd-layout-container.bd-container-all {
  display: block !important;
}

/* Mobile Portrait: show containers with mobile class (max-width: 567px) */
@media (max-width: 567px) {
  .bd-layout-container.bd-container-mobile {
    display: block !important;
  }
  .bd-layout-container.bd-container-mobile-landscape:not(.bd-container-mobile),
  .bd-layout-container.bd-container-tablet:not(.bd-container-mobile),
  .bd-layout-container.bd-container-desktop:not(.bd-container-mobile),
  .bd-layout-container.bd-container-xl:not(.bd-container-mobile) {
    display: none !important;
  }
}

/* Mobile Landscape: show containers with mobile-landscape class (568px - 767px) */
@media (min-width: 568px) and (max-width: 767px) {
  .bd-layout-container.bd-container-mobile-landscape {
    display: block !important;
  }
  .bd-layout-container.bd-container-mobile:not(.bd-container-mobile-landscape),
  .bd-layout-container.bd-container-tablet:not(.bd-container-mobile-landscape),
  .bd-layout-container.bd-container-desktop:not(.bd-container-mobile-landscape),
  .bd-layout-container.bd-container-xl:not(.bd-container-mobile-landscape) {
    display: none !important;
  }
}

/* Tablet: show containers with tablet class (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .bd-layout-container.bd-container-tablet {
    display: block !important;
  }
  .bd-layout-container.bd-container-mobile:not(.bd-container-tablet),
  .bd-layout-container.bd-container-mobile-landscape:not(.bd-container-tablet),
  .bd-layout-container.bd-container-desktop:not(.bd-container-tablet),
  .bd-layout-container.bd-container-xl:not(.bd-container-tablet) {
    display: none !important;
  }
}

/* Desktop: show containers with desktop class (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .bd-layout-container.bd-container-desktop {
    display: block !important;
  }
  .bd-layout-container.bd-container-mobile:not(.bd-container-desktop),
  .bd-layout-container.bd-container-mobile-landscape:not(.bd-container-desktop),
  .bd-layout-container.bd-container-tablet:not(.bd-container-desktop),
  .bd-layout-container.bd-container-xl:not(.bd-container-desktop) {
    display: none !important;
  }
}

/* Extra Large: show containers with xl class (min-width: 1440px) */
@media (min-width: 1440px) {
  .bd-layout-container.bd-container-xl {
    display: block !important;
  }
  .bd-layout-container.bd-container-mobile:not(.bd-container-xl),
  .bd-layout-container.bd-container-mobile-landscape:not(.bd-container-xl),
  .bd-layout-container.bd-container-tablet:not(.bd-container-xl),
  .bd-layout-container.bd-container-desktop:not(.bd-container-xl) {
    display: none !important;
  }
}

/* Row Responsive Display */
/* Default: hide all rows unless they have 'all' class */
.bd-layout-row:not(.bd-row-all) {
  display: none;
}

.bd-layout-row.bd-row-all {
  display: flex !important;
}

/* Mobile Portrait: show rows with mobile class (max-width: 567px) */
@media (max-width: 567px) {
  .bd-layout-row.bd-row-mobile {
    display: flex !important;
  }
  .bd-layout-row.bd-row-mobile-landscape:not(.bd-row-mobile),
  .bd-layout-row.bd-row-tablet:not(.bd-row-mobile),
  .bd-layout-row.bd-row-desktop:not(.bd-row-mobile),
  .bd-layout-row.bd-row-xl:not(.bd-row-mobile) {
    display: none !important;
  }
}

/* Mobile Landscape: show rows with mobile-landscape class (568px - 767px) */
@media (min-width: 568px) and (max-width: 767px) {
  .bd-layout-row.bd-row-mobile-landscape {
    display: flex !important;
  }
  .bd-layout-row.bd-row-mobile:not(.bd-row-mobile-landscape),
  .bd-layout-row.bd-row-tablet:not(.bd-row-mobile-landscape),
  .bd-layout-row.bd-row-desktop:not(.bd-row-mobile-landscape),
  .bd-layout-row.bd-row-xl:not(.bd-row-mobile-landscape) {
    display: none !important;
  }
}

/* Tablet: show rows with tablet class (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .bd-layout-row.bd-row-tablet {
    display: flex !important;
  }
  .bd-layout-row.bd-row-mobile:not(.bd-row-tablet),
  .bd-layout-row.bd-row-mobile-landscape:not(.bd-row-tablet),
  .bd-layout-row.bd-row-desktop:not(.bd-row-tablet),
  .bd-layout-row.bd-row-xl:not(.bd-row-tablet) {
    display: none !important;
  }
}

/* Desktop: show rows with desktop class (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .bd-layout-row.bd-row-desktop {
    display: flex !important;
  }
  .bd-layout-row.bd-row-mobile:not(.bd-row-desktop),
  .bd-layout-row.bd-row-mobile-landscape:not(.bd-row-desktop),
  .bd-layout-row.bd-row-tablet:not(.bd-row-desktop),
  .bd-layout-row.bd-row-xl:not(.bd-row-desktop) {
    display: none !important;
  }
}

/* Extra Large: show rows with xl class (min-width: 1440px) */
@media (min-width: 1440px) {
  .bd-layout-row.bd-row-xl {
    display: flex !important;
  }
  .bd-layout-row.bd-row-mobile:not(.bd-row-xl),
  .bd-layout-row.bd-row-mobile-landscape:not(.bd-row-xl),
  .bd-layout-row.bd-row-tablet:not(.bd-row-xl),
  .bd-layout-row.bd-row-desktop:not(.bd-row-xl) {
    display: none !important;
  }
}

/* Column Responsive Display */
/* Default: hide all columns unless they have 'all' class */
.bd-layout-column:not(.bd-column-all) {
  display: none;
}

.bd-layout-column.bd-column-all {
  display: flex !important;
}

/* Mobile Portrait: show columns with mobile class (max-width: 567px) */
@media (max-width: 567px) {
  .bd-layout-column.bd-column-mobile {
    display: flex !important;
  }
  .bd-layout-column.bd-column-mobile-landscape:not(.bd-column-mobile),
  .bd-layout-column.bd-column-tablet:not(.bd-column-mobile),
  .bd-layout-column.bd-column-desktop:not(.bd-column-mobile),
  .bd-layout-column.bd-column-xl:not(.bd-column-mobile) {
    display: none !important;
  }
}

/* Mobile Landscape: show columns with mobile-landscape class (568px - 767px) */
@media (min-width: 568px) and (max-width: 767px) {
  .bd-layout-column.bd-column-mobile-landscape {
    display: flex !important;
  }
  .bd-layout-column.bd-column-mobile:not(.bd-column-mobile-landscape),
  .bd-layout-column.bd-column-tablet:not(.bd-column-mobile-landscape),
  .bd-layout-column.bd-column-desktop:not(.bd-column-mobile-landscape),
  .bd-layout-column.bd-column-xl:not(.bd-column-mobile-landscape) {
    display: none !important;
  }
}

/* Tablet: show columns with tablet class (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .bd-layout-column.bd-column-tablet {
    display: flex !important;
  }
  .bd-layout-column.bd-column-mobile:not(.bd-column-tablet),
  .bd-layout-column.bd-column-mobile-landscape:not(.bd-column-tablet),
  .bd-layout-column.bd-column-desktop:not(.bd-column-tablet),
  .bd-layout-column.bd-column-xl:not(.bd-column-tablet) {
    display: none !important;
  }
}

/* Desktop: show columns with desktop class (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .bd-layout-column.bd-column-desktop {
    display: flex !important;
  }
  .bd-layout-column.bd-column-mobile:not(.bd-column-desktop),
  .bd-layout-column.bd-column-mobile-landscape:not(.bd-column-desktop),
  .bd-layout-column.bd-column-tablet:not(.bd-column-desktop),
  .bd-layout-column.bd-column-xl:not(.bd-column-desktop) {
    display: none !important;
  }
}

/* Extra Large: show columns with xl class (min-width: 1440px) */
@media (min-width: 1440px) {
  .bd-layout-column.bd-column-xl {
    display: flex !important;
  }
  .bd-layout-column.bd-column-mobile:not(.bd-column-xl),
  .bd-layout-column.bd-column-mobile-landscape:not(.bd-column-xl),
  .bd-layout-column.bd-column-tablet:not(.bd-column-xl),
  .bd-layout-column.bd-column-desktop:not(.bd-column-xl) {
    display: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .bd-layout-row {
    flex-direction: column;
  }
  
  /* When columns wrap, they should expand to full width */
  .bd-layout-column {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ========================================
   Brand Module Styles
   ======================================== */

/* Brand Module Base */
.bd-module-brand {
  margin-bottom: 2rem;
}

/* Brand Card (Grid & Carousel) */
.bd-brand-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bd-brand-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.bd-brand-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  background: #f8f9fa;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* When custom height is set, remove padding-top */
.bd-brand-card-image-wrapper[style*="height"] {
  padding-top: 0 !important;
}

.bd-brand-card:hover .bd-brand-card-image-wrapper {
  background-color: #e9ecef;
}

.bd-brand-card-image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.bd-brand-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.bd-brand-card:hover .bd-brand-card-image {
  transform: scale(1.1);
}

.bd-brand-card-image-link:hover .bd-brand-card-image {
  transform: scale(1.15);
}

.bd-brand-card-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 3rem;
}

.bd-brand-card-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.bd-brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  display: block;
}

.bd-brand-title:hover {
  color: #0d6efd;
}

.bd-brand-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* Brand List Layout */
.bd-brand-list {
  display: flex;
  flex-wrap: wrap;
}

.bd-brand-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.bd-brand-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bd-brand-list-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  position: relative;
  background: #f8f9fa;
  border-radius: 4px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.bd-brand-list-item:hover .bd-brand-list-image {
  background-color: #e9ecef;
}

.bd-brand-list-image a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bd-brand-list-image-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.bd-brand-list-item:hover .bd-brand-list-image-img {
  transform: scale(1.15);
}

.bd-brand-list-image a:hover .bd-brand-list-image-img {
  transform: scale(1.2);
}

.bd-brand-list-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 2rem;
}

.bd-brand-list-content {
  flex-grow: 1;
}

.bd-brand-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  text-decoration: none;
  margin-bottom: 0.25rem;
  display: block;
  transition: color 0.3s ease;
}

.bd-brand-list-title:hover {
  color: #0d6efd;
}

.bd-brand-list-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* Brand Carousel */
.bd-brand-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bd-brand-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bd-brand-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.bd-brand-carousel-slide {
  flex-shrink: 0;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.bd-brand-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dee2e6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bd-brand-carousel-nav:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.bd-brand-carousel-nav-prev {
  left: 10px;
}

.bd-brand-carousel-nav-next {
  right: 10px;
}

.bd-brand-carousel-nav i {
  font-size: 1rem;
  color: #212529;
}

.bd-brand-carousel-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0;
}

.bd-brand-carousel-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.bd-brand-carousel-bullet:hover {
  background: #adb5bd;
  transform: scale(1.2);
}

.bd-brand-carousel-bullet.active {
  background: #0d6efd;
  width: 24px;
  border-radius: 5px;
}

/* Responsive Brand Styles */
@media (max-width: 767px) {
  .bd-brand-list-item {
    flex-direction: column;
    text-align: center;
  }
  
  .bd-brand-list-image {
    width: 100px;
    height: 100px;
  }
  
  .bd-brand-carousel-nav {
    width: 35px;
    height: 35px;
  }
  
  .bd-brand-carousel-nav-prev {
    left: 5px;
  }
  
  .bd-brand-carousel-nav-next {
    right: 5px;
  }
}

/* Ensure carousel wrappers respect container width */
.bd-layout-container .bd-brand-carousel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

.bd-layout-container .bd-brand-carousel-wrapper {
  max-width: 100%;
  box-sizing: border-box;
}

/* Brand Marquee (Continuous Scroll) */
.bd-brand-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.bd-brand-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bd-brand-marquee-track {
  display: flex;
  align-items: center;
  will-change: transform;
}

.bd-brand-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bd-brand-marquee-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease;
}

.bd-brand-marquee-link:hover {
  transform: scale(1.1);
}

.bd-brand-marquee-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.bd-brand-marquee-link:hover .bd-brand-marquee-image {
  background-color: #e9ecef;
}

.bd-brand-marquee-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 4px;
  color: #adb5bd;
  font-size: 1.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.bd-brand-marquee-placeholder:hover {
  background-color: #e9ecef;
  transform: scale(1.1);
}

/* Marquee Animation - Left to Right */
.bd-brand-marquee[data-direction="left"] .bd-brand-marquee-track {
  animation: bd-brand-marquee-left linear infinite;
}

/* Marquee Animation - Right to Left */
.bd-brand-marquee[data-direction="right"] .bd-brand-marquee-track {
  animation: bd-brand-marquee-right linear infinite;
}

@keyframes bd-brand-marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes bd-brand-marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

