/* =========================================
   BOSCH STORE - RULES PAGE
   Red / Black / White
========================================= */

.bosch-rules-page {
    direction: rtl;
    background: #f7f7f7;
    color: #222;
    font-family: inherit;
    line-height: 2;
}

.bosch-rules-page *,
.bosch-rules-page *::before,
.bosch-rules-page *::after {
    box-sizing: border-box;
}


/* Container */

.bosch-rules-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================
   HERO
========================================= */

.bosch-rules-hero {
    background: #111;
    color: #fff;
    padding: 65px 0 70px;
    position: relative;
    overflow: hidden;
}

.bosch-rules-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 70px solid rgba(220, 0, 0, 0.12);
    border-radius: 50%;
    left: -120px;
    top: -130px;
}

.bosch-rules-hero::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 180px;
    background: #d90000;
    right: 0;
    top: 0;
}

.bosch-rules-badge {
    display: inline-block;
    background: #d90000;
    color: #fff;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
}

.bosch-rules-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

.bosch-rules-hero p {
    max-width: 700px;
    margin: 0;
    color: #cfcfcf;
    font-size: 15px;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.bosch-rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 70px;
}


/* =========================================
   SIDEBAR
========================================= */

.bosch-rules-sidebar {
    position: sticky;
    top: 25px;
}

.bosch-rules-menu {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
}

.bosch-rules-menu-title {
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 17px 20px;
    border-right: 4px solid #d90000;
}

.bosch-rules-menu a {
    display: block;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    padding: 9px 18px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.bosch-rules-menu a:last-child {
    border-bottom: 0;
}

.bosch-rules-menu a:hover {
    color: #d90000;
    background: #fafafa;
    padding-right: 23px;
}


/* =========================================
   CONTENT
========================================= */

.bosch-rules-content {
    min-width: 0;
}


/* Intro */

.bosch-rules-intro {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 20px 22px;
    margin-bottom: 22px;
    border-right: 4px solid #d90000;
}

.bosch-rules-intro-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #d90000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.bosch-rules-intro strong {
    display: block;
    color: #111;
    font-size: 15px;
    margin-bottom: 3px;
}

.bosch-rules-intro p {
    margin: 0;
    color: #666;
    font-size: 13px;
}


/* =========================================
   RULE SECTIONS
========================================= */

.bosch-rule-section {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 18px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    scroll-margin-top: 30px;
    transition: box-shadow 0.2s ease;
}

.bosch-rule-section:hover {
    box-shadow: 0 7px 30px rgba(0, 0, 0, 0.05);
}


/* Number */

.bosch-rule-number {
    width: 54px;
    height: 54px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    position: relative;
}

.bosch-rule-number::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 16px;
    height: 16px;
    background: #d90000;
    border-radius: 50%;
}


/* Heading */

.bosch-rule-body h2 {
    margin: 0 0 13px;
    color: #111;
    font-size: 21px;
    font-weight: 800;
    position: relative;
    padding-bottom: 9px;
}

.bosch-rule-body h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    background: #d90000;
    border-radius: 10px;
}

.bosch-rule-body p {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
}

.bosch-rule-body p:last-child {
    margin-bottom: 0;
}


/* =========================================
   PAYMENT CARDS
========================================= */

.bosch-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.bosch-info-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.bosch-info-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #d90000;
}

.bosch-info-card span {
    display: inline-block;
    color: #d90000;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.bosch-info-card h3 {
    margin: 0 0 5px;
    font-size: 17px;
    color: #111;
}

.bosch-info-card p {
    font-size: 13px;
}


/* =========================================
   SHIPPING
========================================= */

.bosch-shipping-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 18px;
}

.bosch-shipping-box > div {
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 22px;
    border-top: 3px solid #d90000;
}

.bosch-shipping-box strong {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}

.bosch-shipping-box p {
    color: #ccc;
    font-size: 13px;
}


/* =========================================
   WARNING
========================================= */

.bosch-warning {
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    border-right: 4px solid #d90000;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 18px 0;
}

.bosch-warning strong {
    color: #d90000;
    display: block;
    margin-bottom: 4px;
}

.bosch-warning p {
    margin: 0;
}


/* =========================================
   GUARANTEE
========================================= */

.bosch-guarantee {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f8f8;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}

.bosch-guarantee-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #d90000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.bosch-guarantee strong {
    display: block;
    color: #111;
    font-size: 15px;
}

.bosch-guarantee p {
    margin: 2px 0 0;
    font-size: 13px;
}


/* =========================================
   FOOTER NOTE
========================================= */

.bosch-rules-footer-note {
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bosch-rules-footer-note span {
    color: #aaa;
    font-size: 13px;
}

.bosch-rules-footer-note strong {
    color: #fff;
    font-size: 14px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .bosch-rules-layout {
        grid-template-columns: 1fr;
    }

    .bosch-rules-sidebar {
        position: relative;
        top: auto;
    }

    .bosch-rules-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .bosch-rules-menu-title {
        grid-column: 1 / -1;
    }

    .bosch-rules-menu a {
        border-left: 1px solid #eee;
    }

}


@media (max-width: 650px) {

    .bosch-rules-container {
        width: min(100% - 24px, 1180px);
    }

    .bosch-rules-hero {
        padding: 45px 0 50px;
    }

    .bosch-rules-hero h1 {
        font-size: 26px;
    }

    .bosch-rules-hero p {
        font-size: 13px;
    }

    .bosch-rules-layout {
        padding-top: 20px;
    }

    .bosch-rules-menu {
        display: block;
    }

    .bosch-rules-menu a {
        border-left: 0;
    }

    .bosch-rule-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .bosch-rule-number {
        width: 46px;
        height: 46px;
        font-size: 13px;
    }

    .bosch-rule-body h2 {
        font-size: 18px;
    }

    .bosch-rule-body p {
        font-size: 13px;
        line-height: 2.1;
    }

    .bosch-info-grid,
    .bosch-shipping-box {
        grid-template-columns: 1fr;
    }

    .bosch-rules-intro {
        padding: 16px;
    }

    .bosch-rules-footer-note {
        padding: 15px;
    }

}