/* ============================================
   BW DESIGN SYSTEM
   Structure: GLOBAL → DESKTOP → MOBILE
   ============================================ */


/* ============================================
   1. GLOBAL — applies to all screen sizes
   ============================================ */

/* Reviews carousel */
.bw-reviews-carousel {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.bw-reviews-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px 0;
    flex-wrap: wrap;
}

.bw-reviews-stars {
    color: #00b67a;
    font-size: 20px;
    letter-spacing: 2px;
}

.bw-reviews-score {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.bw-reviews-based {
    display: none !important;
}

.bw-reviews-tp {
    font-size: 13px;
    font-weight: 700;
    color: #00b67a;
    text-decoration: none;
}

.bw-reviews-tp:hover {
    text-decoration: underline;
}

.bw-reviews-track-wrapper {
    overflow: hidden;
    padding: 16px 0 20px;
}

.bw-reviews-track {
    display: flex;
    gap: 16px;
    animation: bw-scroll 40s linear infinite;
    width: max-content;
}

.bw-reviews-track:hover {
    animation-play-state: paused;
}

.bw-review-card {
    flex: 0 0 300px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px 20px;
    box-sizing: border-box;
}

.bw-review-stars {
    color: #f0af00;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.bw-review-text {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bw-review-author {
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

@keyframes bw-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Product card hover — safe on all devices */
.product-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.product-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}


/* ============================================
   2. DESKTOP — min-width: 768px
   ============================================ */

@media (min-width: 768px) {

    /* --- Container system --- */
    .header.content,
    nav.rootmenu,
    .usp-bar-inner,
    .category-strip-inner {
        max-width: 1280px !important;
        margin: 0 auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* --- Header --- */
    .page-header {
        width: 100% !important;
        background: #fff !important;
    }

    .header.content {
        max-width: 1280px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 72px !important;
        box-sizing: border-box !important;
        gap: 20px !important;
    }

    .header.content * {
        float: none !important;
    }

    /* Logo */
    .header.content .logo {
        flex: 0 0 auto !important;
        margin: 0 !important;
        float: none !important;
    }

    .header.content .logo img {
        height: 40px !important;
        width: auto !important;
    }

    /* Search */
    .header.content .block.block-search {
        flex: 1 !important;
        max-width: 520px !important;
        margin: 0 40px !important;
        padding: 0 !important;
        float: none !important;
    }

    form#search_mini_form {
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 24px !important;
        padding: 4px !important;
        transition: all 0.2s ease !important;
    }

    form#search_mini_form:focus-within {
        border-color: #f0af00 !important;
        box-shadow: 0 0 0 2px rgba(240,175,0,0.15) !important;
    }

    .block-search input#search {
        flex: 1 !important;
        border: none !important;
        background: transparent !important;
        height: 40px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    form#search_mini_form .actions {
        position: static !important;
        transform: none !important;
    }

    .block-search .action.search {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 50% !important;
        background: #000 !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Icons */
    .header.content .minicart-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        float: none !important;
        margin-left: auto !important;
    }

    .UserBlocklogin {
        display: flex !important;
        align-items: center !important;
    }

    .UserBlocklogin .header-svg-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .header-basket-wrap {
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: #f0af00 !important;
    }

    .header-basket-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .action.showcart .counter.qty {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
    }

    /* --- Nav bar --- */
    .nav-sections,
    .cms-index-index .nav-sections,
    body.cms-index-index .nav-sections {
        background: #000 !important;
        background-color: #000 !important;
        border-top: 3px solid #f0af00 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    nav.rootmenu {
        background: transparent !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
    }

    nav.rootmenu > ul.rootmenu-list {
        display: flex !important;
        gap: 6px !important;
    }

    nav.rootmenu > ul.rootmenu-list > li > a {
        padding: 16px 14px !important;
        transition: color 0.2s ease !important;
    }

    nav.rootmenu > ul.rootmenu-list > li > a:hover {
        color: #f0af00 !important;
    }

    /* --- USP bar --- */
    .nav-sections .usp-bar-outer,
    .nav-sections .category-strip-wrapper {
        background: #f5f5f5 !important;
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .nav-sections .category-strip-wrapper {
        background: #fff !important;
    }

    .usp-bar-outer {
        background: #f5f5f5 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .usp-bar-inner {
        gap: 20px !important;
    }

    .category-strip-wrapper {
        background: #fff !important;
        width: 100% !important;
        max-width: none !important;
    }

    /* --- Category strip --- */
    .category-strip-inner {
        display: flex !important;
        gap: 12px !important;
        justify-content: flex-start !important;
    }

    .cat-strip-item {
        flex: 0 0 auto !important;
        min-width: 110px !important;
        text-align: center !important;
        background: #fff !important;
        border-radius: 10px !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    .cat-strip-item:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    }

    /* --- Hide mobile-only elements --- */
    .bw-mobile-header-extras {
        display: none !important;
    }

    .bw-trust-strip {
        display: none !important;
    }

    /* --- Hero (desktop) --- */
    .bw-hero {
        display: grid !important;
        grid-template-columns: 1fr 1.2fr !important;
        align-items: center !important;
        min-height: 420px !important;
        max-height: none !important;
        background: #f8f8f8 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .bw-hero-content {
        padding: 40px 50px !important;
    }

    .bw-hero-image {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .bw-hero-image img {
        max-width: 100% !important;
        max-height: 420px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        mix-blend-mode: multiply !important;
        filter: drop-shadow(0 18px 35px rgba(0,0,0,0.15));
    }

}


/* ============================================
   3. MOBILE — max-width: 767px
   ============================================ */

@media (max-width: 767px) {

    /* --- Hero (mobile) --- */
    .bw-hero {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        max-height: none !important;
        text-align: center !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #f8f8f8 !important;
    }

    .bw-hero-content {
        padding: 24px 16px 20px !important;
    }

    .bw-hero-content h2 {
        font-size: 24px !important;
    }

    .bw-hero-image {
        padding: 10px !important;
    }

    .bw-hero-image img {
        max-height: 220px !important;
        mix-blend-mode: multiply !important;
    }

    /* --- Category strip (mobile) --- */
    .category-strip-inner {
        overflow-x: auto !important;
        gap: 10px !important;
    }

    .cat-strip-item {
        min-width: 90px !important;
    }

    /* --- Reviews carousel (mobile) --- */
    .bw-review-card {
        flex: 0 0 260px;
    }

    .bw-reviews-header {
        gap: 8px;
    }

    .bw-reviews-track {
        animation-duration: 30s;
    }

    /* --- Hide duplicate trust strip on mobile too --- */
    .bw-trust-strip {
        display: none !important;
    }

}
