/* ==========================================================================
   bw-homepage.css — Brassworks homepage styles
   Inspired by modern hardware e-commerce layout patterns
   Desktop: min-width 768px | Mobile: max-width 767px
   ========================================================================== */

/* --- Hide Magento theme USP/category on redesigned pages --- */
.cms-homepage-v2 .nav-sections .usp-bar-outer,
.cms-homepage-v2 .nav-sections .category-strip-wrapper,
.cms-homepage-v2 .usp-bar-outer,
.cms-homepage-v2 .category-strip-wrapper,
.cms-index-index .nav-sections .usp-bar-outer,
.cms-index-index .nav-sections .category-strip-wrapper,
.cms-index-index .usp-bar-outer,
.cms-index-index .category-strip-wrapper { display: none !important; }

/* --- Reset & Container --- */
.bw-home { margin: 0; padding: 0; font-family: 'Altivo', Arial, sans-serif; color: #111; }
.bw-home * { box-sizing: border-box; }
.bw-container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.bw-hero-banner { display: flex; gap: 20px; margin: 24px auto; }
.bw-hero-main { flex: 3; position: relative; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1a1a1a 0%, #333 100%); min-height: 380px; display: flex; align-items: center; }
.bw-hero-main-inner { display: flex; align-items: center; width: 100%; padding: 40px; }
.bw-hero-text { flex: 1; color: #fff; z-index: 2; }
.bw-hero-badge { display: inline-block; background: #f0af00; color: #111; font-weight: 800; font-size: 12px; padding: 6px 14px; border-radius: 4px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.bw-hero-text h2 { margin: 0 0 12px; font-size: 38px; font-weight: 800; line-height: 1.1; color: #fff; }
.bw-hero-price-tag { display: inline-block; background: #e02020; color: #fff; font-weight: 900; font-size: 48px; line-height: 1; padding: 10px 20px; border-radius: 8px; margin-bottom: 16px; }
.bw-hero-price-tag span { font-size: 16px; font-weight: 500; }
.bw-hero-features { list-style: none; padding: 0; margin: 0 0 20px; }
.bw-hero-features li { font-size: 15px; color: #ddd; margin-bottom: 8px; padding-left: 16px; position: relative; }
.bw-hero-features li::before { content: ""; width: 6px; height: 6px; background: #f0af00; border-radius: 50%; position: absolute; left: 0; top: 8px; }
.bw-hero-cta { display: inline-block; background: #f0af00; color: #111; text-decoration: none; font-weight: 800; font-size: 16px; padding: 14px 32px; border-radius: 8px; transition: background .2s; }
.bw-hero-cta:hover { background: #d69d00; color: #111; text-decoration: none; }
.bw-hero-img { flex: 0 0 45%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.bw-hero-img img { max-width: 100%; max-height: 320px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3)); }

/* Hero side banner */
.bw-hero-side { flex: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #f0af00 0%, #d69d00 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; min-height: 380px; text-decoration: none; color: #111; transition: transform .2s; }
.bw-hero-side:hover { transform: scale(1.02); text-decoration: none; color: #111; }
.bw-hero-side-icon { font-size: 48px; margin-bottom: 12px; }
.bw-hero-side h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.bw-hero-side p { margin: 0 0 16px; font-size: 14px; color: #333; }
.bw-hero-side-btn { background: #111; color: #fff; padding: 10px 24px; border-radius: 6px; font-weight: 700; font-size: 14px; display: inline-block; }

/* Mobile sale banner — shown only on mobile, above Trustpilot */
.bw-hero-side-mobile { display: none; background: linear-gradient(180deg, #f0af00 0%, #d69d00 100%); border-radius: 12px; padding: 20px; text-align: center; margin: 0 auto 32px; text-decoration: none; color: #111; }
.bw-hero-side-mobile h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.bw-hero-side-mobile p { font-size: 13px; color: #333; margin: 0 0 12px; }
.bw-hero-side-mobile .bw-hero-side-btn { background: #111; color: #fff; padding: 10px 24px; border-radius: 6px; font-weight: 700; font-size: 14px; display: inline-block; }

/* ==========================================================================
   TRUST / USP BAR
   ========================================================================== */
.bw-usp-section { background: #f8f8f8; border-radius: 12px; padding: 20px 0; margin: 0 auto 32px; }
.bw-usp-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: nowrap; gap: 16px; }
.bw-usp-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.bw-usp-icon { font-size: 28px; flex-shrink: 0; }
.bw-usp-text strong { display: block; font-size: 13px; font-weight: 800; color: #111; }
.bw-usp-text span { font-size: 12px; color: #666; }

/* ==========================================================================
   CATEGORY STRIP
   ========================================================================== */
.bw-cat-section { margin: 0 auto 40px; }
.bw-cat-section h3 { text-align: center; font-size: 28px; font-weight: 800; margin: 0 0 20px; color: #111; }
.bw-cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.bw-cat-card { text-align: center; text-decoration: none; color: #111; transition: transform .2s; }
.bw-cat-card:hover { transform: translateY(-4px); text-decoration: none; color: #111; }
.bw-cat-card-img { background: #f5f5f5; border-radius: 12px; padding: 16px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; transition: box-shadow .2s; }
.bw-cat-card:hover .bw-cat-card-img { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.bw-cat-card-img img { max-width: 80%; max-height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.bw-cat-card-label { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: #111 !important; }

/* ==========================================================================
   PRODUCT SECTIONS (Most Ordered / Sale)
   ========================================================================== */
.bw-products-section { margin: 0 auto 48px; }
.bw-products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bw-products-header h3 { margin: 0; font-size: 28px; font-weight: 800; color: #111; }
.bw-products-header a { color: #f0af00; font-weight: 700; font-size: 14px; text-decoration: none; }
.bw-products-header a:hover { text-decoration: underline; }
.bw-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Carousel variant */
.bw-products-carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.bw-products-carousel::-webkit-scrollbar { display: none; }
.bw-products-carousel .bw-prod-card { flex: 0 0 260px; scroll-snap-align: start; }
.bw-prod-card { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.bw-prod-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); text-decoration: none; }
.bw-prod-card-ribbon { position: absolute; top: 0; left: 0; background: #f0af00; color: #111; font-size: 11px; font-weight: 800; padding: 6px 12px; border-bottom-right-radius: 8px; z-index: 2; text-transform: uppercase; }
.bw-prod-card-img { position: relative; background: #fafafa; padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 200px; overflow: hidden; }
.bw-prod-card-img img { max-width: 100%; max-height: 160px; object-fit: contain; }
.bw-prod-card-body { padding: 16px; text-align: left; flex: 1; display: flex; flex-direction: column; }
.bw-prod-card-name { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 4px; line-height: 1.3; }
.bw-prod-card-finish { font-size: 13px; color: #666; margin: 0 0 auto; padding-bottom: 12px; }
.bw-prod-card-price { font-size: 24px; font-weight: 900; color: #e02020; }
.bw-prod-card-price span { font-size: 13px; font-weight: 500; }
/* Sale pricing */
.bw-prod-card-was { font-size: 13px; color: #888; text-decoration: line-through; margin-bottom: 2px; }
.bw-prod-card-save { position: absolute; top: -4px; left: -4px; background: #e02020; color: #fff; font-weight: 800; font-size: 11px; width: 72px; height: 72px; border-radius: 50%; z-index: 2; line-height: 1; text-align: center; text-transform: uppercase; letter-spacing: 0.3px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.bw-prod-card-save strong { display: block; font-size: 22px; font-weight: 900; line-height: 1; }
.bw-prod-card-btn { display: block; background: #e02020; color: #fff; text-align: center; font-size: 15px; font-weight: 700; padding: 12px; margin-top: auto; transition: background .2s; }
.bw-prod-card:hover .bw-prod-card-btn { background: #c01010; color: #fff; }

/* ==========================================================================
   TRUSTPILOT REVIEWS SECTION
   ========================================================================== */
.bw-tp-section { background: #f8f8f8; border-radius: 12px; padding: 40px 0; margin: 0 auto 48px; }
.bw-tp-inner { display: flex; gap: 32px; align-items: flex-start; }
.bw-tp-info { flex: 0 0 260px; text-align: center; }
.bw-tp-info h3 { font-size: 26px; font-weight: 800; color: #111; margin: 0 0 8px; }
.bw-tp-stars-big { color: #00b67a; font-size: 28px; letter-spacing: 2px; margin-bottom: 8px; }
.bw-tp-rating { font-size: 14px; color: #00b67a; font-weight: 700; margin-bottom: 4px; }
.bw-tp-count { font-size: 13px; color: #666; margin-bottom: 12px; }
.bw-tp-logo { font-size: 18px; font-weight: 800; color: #191919; }
.bw-tp-logo span { color: #00b67a; }
.bw-tp-carousel { flex: 1; overflow: hidden; }
.bw-tp-track { display: flex; gap: 16px; animation: bw-tp-scroll 45s linear infinite; width: max-content; }
.bw-tp-track:hover { animation-play-state: paused; }
.bw-tp-card { flex: 0 0 280px; background: #fff; border-radius: 10px; padding: 20px; border: 1px solid #eee; }
.bw-tp-card-stars { color: #00b67a; font-size: 16px; letter-spacing: 1px; margin-bottom: 10px; }
.bw-tp-card-text { font-size: 13px; line-height: 1.5; color: #333; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bw-tp-card-author { font-size: 12px; font-weight: 700; color: #666; }
@keyframes bw-tp-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.bw-cta-banner { background: linear-gradient(135deg, #111 0%, #222 100%); border-radius: 12px; padding: 48px 40px; margin: 0 auto 48px; display: flex; align-items: center; justify-content: space-between; }
.bw-cta-banner h3 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.bw-cta-banner p { color: #999; font-size: 15px; margin: 0; }
.bw-cta-banner a { background: #f0af00; color: #111; padding: 14px 32px; border-radius: 8px; font-weight: 800; font-size: 16px; text-decoration: none; flex-shrink: 0; }
.bw-cta-banner a:hover { background: #d69d00; }

/* ==========================================================================
   MOBILE — max-width: 767px
   ========================================================================== */
@media (max-width: 767px) {
    .bw-container { padding: 0 16px; }

    /* Hero */
    .bw-hero-banner { flex-direction: column; gap: 16px; margin: 16px auto; }
    .bw-hero-main { min-height: auto; border-radius: 10px; }
    .bw-hero-main-inner { flex-direction: column; padding: 24px 20px; }
    .bw-hero-text h2 { font-size: 26px; }
    .bw-hero-price-tag { font-size: 36px; padding: 8px 16px; }
    .bw-hero-price-tag span { font-size: 14px; }
    .bw-hero-features li { font-size: 14px; }
    .bw-hero-cta { width: 100%; text-align: center; font-size: 15px; padding: 12px 24px; order: 3; }
    .bw-hero-img { flex: none; padding: 10px; order: 2; }
    .bw-hero-img img { max-height: 200px; }
    .bw-hero-text { order: 1; }
    .bw-hero-main-inner { display: flex; flex-direction: column; }
    .bw-hero-side { display: none !important; }

    /* USP */
    .bw-usp-section { border-radius: 10px; padding: 16px 0; margin-bottom: 24px; overflow-x: auto; }
    .bw-usp-grid { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0; padding: 0 16px; }
    .bw-usp-grid::-webkit-scrollbar { display: none; }
    .bw-usp-item { flex: 0 0 auto; min-width: 200px; }

    /* Category */
    .bw-cat-section h3 { font-size: 22px; margin-bottom: 12px; }
    .bw-cat-grid { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 12px; padding-bottom: 4px; }
    .bw-cat-grid::-webkit-scrollbar { display: none; }
    .bw-cat-card { flex: 0 0 80px; min-width: 80px; }
    .bw-cat-card-img { border-radius: 10px; padding: 10px; }
    .bw-cat-card-label { font-size: 11px; margin-top: 6px; }

    /* Products */
    .bw-products-header h3 { font-size: 22px; }
    .bw-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bw-products-carousel .bw-prod-card { flex: 0 0 200px; }
    .bw-prod-card-img { min-height: 140px; padding: 12px; }
    .bw-prod-card-img img { max-height: 120px; }
    .bw-prod-card-save { width: 56px; height: 56px; font-size: 9px; top: -2px; left: -2px; }
    .bw-prod-card-save strong { font-size: 17px; }
    .bw-prod-card-was { font-size: 11px; }
    .bw-prod-card-body { padding: 12px; }
    .bw-prod-card-name { font-size: 13px; }
    .bw-prod-card-price { font-size: 20px; }
    .bw-prod-card-btn { font-size: 13px; padding: 10px; }

    /* Trustpilot */
    .bw-tp-section { padding: 24px 0; margin-bottom: 32px; border-radius: 10px; }
    .bw-tp-inner { flex-direction: column; gap: 16px; }
    .bw-tp-info { flex: none; width: 100%; }
    .bw-tp-info h3 { font-size: 22px; }
    .bw-tp-track { animation-duration: 30s; }
    .bw-tp-card { flex: 0 0 240px; padding: 16px; }

    /* CTA */
    .bw-cta-banner { flex-direction: column; text-align: center; padding: 32px 20px; gap: 16px; border-radius: 10px; }
    .bw-cta-banner h3 { font-size: 22px; }
    .bw-cta-banner a { width: 100%; text-align: center; }
}

/* ==========================================================================
   TABLET — 768px to 1023px
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .bw-hero-banner { flex-direction: column; }
    .bw-hero-side { min-height: auto; flex-direction: row; padding: 20px 30px; gap: 20px; }
    .bw-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .bw-products-grid { grid-template-columns: repeat(3, 1fr); }
}
