/* ==========================================================
   Elite Fitness
   Public Website - Offers
   File: /public_html/assets/css/offers.css
   ========================================================== */

.public-offers-main {
    background: #f7f7f7;
    color: #171717;
    min-height: 60vh;
}

.public-offers-container {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
    padding: 40px 0 80px;
}

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

.offers-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 205px;
    padding: 38px;
    border: 1px solid #2d2a25;
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 20%, rgba(226,184,94,.18), transparent 28%),
        linear-gradient(135deg, #111111 0%, #171717 62%, #332916 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.10);
}

.offers-hero-copy {
    max-width: 760px;
}

.offers-hero-copy > span,
.offers-access-copy > span,
.offers-section-heading > div > span,
.offers-footer-rule > div:last-child > span {
    display: block;
    color: #d9ae55;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.offers-hero-copy h1 {
    margin: 9px 0 10px;
    color: #fff;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: clamp(42px, 6vw, 66px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.02em;
}

.offers-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #d5d0c8;
    font-size: 14px;
    line-height: 1.7;
}

.offers-hero-badge {
    flex: 0 0 145px;
    width: 145px;
    height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #9b742b;
    border-radius: 50%;
    text-align: center;
}

.offers-hero-badge small,
.offers-hero-badge span {
    color: #b8b0a2;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
}

.offers-hero-badge strong {
    margin: 8px 0 6px;
    color: #f1c96b;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 23px;
    letter-spacing: .03em;
}

/* ==========================================================
   ACCESS STRIP
   ========================================================== */

.offers-access-strip {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #d8e7dc;
    border-radius: 15px;
    background: #fbfffc;
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
}

.offers-access-strip.is-locked {
    border-color: #eadfcb;
}

.offers-access-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e7f8ed;
    color: #16914b;
    font-size: 20px;
    font-weight: 800;
}

.offers-access-strip.is-locked .offers-access-icon {
    background: #fff4df;
    color: #b47717;
}

.offers-access-copy {
    min-width: 0;
    flex: 1;
}

.offers-access-copy > span {
    margin-bottom: 3px;
    color: #9c6e1c;
    font-size: 8px;
}

.offers-access-copy strong,
.offers-access-copy small {
    display: block;
}

.offers-access-copy strong {
    color: #1c2a21;
    font-size: 13px;
    line-height: 1.45;
}

.offers-access-copy small {
    margin-top: 3px;
    color: #68726c;
    font-size: 10px;
    line-height: 1.5;
}

.offers-subscribe-button,
.offers-secondary-button,
.offer-modal-primary,
.offer-modal-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.offers-subscribe-button,
.offer-modal-primary {
    background: #171717;
    color: #fff;
    box-shadow: 0 7px 18px rgba(0,0,0,.10);
}

.offers-subscribe-button:hover,
.offer-modal-primary:hover {
    transform: translateY(-1px);
    background: #2a241b;
    color: #fff;
}

/* ==========================================================
   STATE
   ========================================================== */

.offers-state-card {
    margin-top: 28px;
    padding: 55px 25px;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.offers-state-card.is-error {
    border-color: #efcaca;
}

.offers-state-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border: 1px solid #e7d5af;
    border-radius: 14px;
    background: #fff8e9;
    color: #b68122;
    font-size: 23px;
    font-weight: 800;
}

.offers-state-card h2 {
    margin: 0 0 8px;
    color: #171717;
    font-size: 25px;
}

.offers-state-card p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: #707070;
    font-size: 13px;
    line-height: 1.65;
}

.offers-secondary-button,
.offer-modal-secondary {
    border: 1px solid #d7b36a;
    background: #fffaf0;
    color: #8a611b;
}

.offers-secondary-button:hover,
.offer-modal-secondary:hover {
    background: #fff3d9;
    color: #714c12;
}

/* ==========================================================
   OFFER SECTION
   ========================================================== */

.offers-section {
    margin-top: 42px;
}

.offers-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.offers-section-heading h2 {
    margin: 8px 0 7px;
    color: #171717;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: clamp(31px, 4vw, 44px);
    font-weight: 700;
    line-height: 1;
}

.offers-section-heading p {
    margin: 0;
    color: #69717b;
    font-size: 13px;
}

.offers-count {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #575757;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* ==========================================================
   OFFER BLOCK
   ========================================================== */

.offer-block {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid #dedede;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 13px 35px rgba(0,0,0,.055);
}

.offer-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 0 2px 18px;
}

.offer-block-head > div:first-child > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #e7d09d;
    border-radius: 999px;
    background: #fff9ec;
    color: #9b6a18;
    font-size: 9px;
    font-weight: 900;
}

.offer-block-head h3 {
    margin: 9px 0 6px;
    color: #171717;
    font-size: 25px;
    line-height: 1.15;
}

.offer-block-head p {
    max-width: 800px;
    margin: 0;
    color: #737373;
    font-size: 11px;
    line-height: 1.55;
}

.offer-block-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding-top: 3px;
}

.offer-block-meta span {
    color: #a0711d;
    font-size: 10px;
    font-weight: 800;
}

.offer-block-meta small {
    color: #888;
    font-size: 9px;
    white-space: nowrap;
}

.offer-banner {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 13px;
    background: #f0f0f0;
}

.offer-banner img {
    width: 100%;
    height: 155px;
    object-fit: cover;
}

/* ==========================================================
   PRODUCT GRID / CARD
   ========================================================== */

.offer-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.offer-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.offer-product-card:hover,
.offer-product-card:focus-within,
.offer-product-card:focus-visible {
    border-color: #d6b36a;
    box-shadow: 0 12px 28px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

.offer-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 225px;
    overflow: hidden;
    background: #f8f8f8;
}

.offer-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.offer-product-image-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #aaa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
}

.offer-product-discount-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #171717;
    color: #f1c96b;
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 5px 13px rgba(0,0,0,.15);
}

.offer-product-body {
    padding: 14px;
}

.offer-product-brand {
    display: block;
    margin-bottom: 6px;
    color: #ad7b22;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.offer-product-body h4 {
    min-height: 42px;
    margin: 0 0 11px;
    color: #171717;
    font-size: 13px;
    line-height: 1.35;
}

.offer-product-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
}

.offer-product-prices strong {
    color: #171717;
    font-size: 17px;
    font-weight: 850;
}

.offer-product-prices del {
    color: #929292;
    font-size: 10px;
}

.offer-product-prices small {
    flex-basis: 100%;
    color: #999;
    font-size: 9px;
}

.offer-product-view-button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    border: 1px solid #d8b36a;
    border-radius: 7px;
    background: #fffaf1;
    color: #8b611b;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.offer-product-view-button:hover {
    background: #fff1d4;
    color: #704d13;
}

/* ==========================================================
   MODAL
   ========================================================== */

.offer-product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.offer-product-modal.is-open {
    display: flex;
}

.offer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(3px);
}

.offer-modal-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
    width: min(920px, 100%);
    max-height: min(720px, calc(100vh - 50px));
    overflow: auto;
    border: 1px solid #303030;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0,0,0,.30);
}

.offer-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(17,17,17,.86);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.offer-modal-image {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.offer-modal-image img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
    padding: 35px;
}

.offer-modal-content {
    padding: 42px 35px 35px;
}

.offer-modal-content > span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #e7d09d;
    border-radius: 999px;
    background: #fff9ec;
    color: #9b6a18;
    font-size: 9px;
    font-weight: 900;
}

.offer-modal-content h3 {
    margin: 12px 0 10px;
    color: #171717;
    font-size: 27px;
    line-height: 1.2;
}

.offer-modal-content > p,
.offer-modal-description {
    color: #6e6e6e;
    font-size: 12px;
    line-height: 1.65;
}

.offer-modal-description {
    margin-top: 12px;
    padding: 12px;
    border-radius: 9px;
    background: #f7f7f7;
}

.offer-modal-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 20px;
}

.offer-modal-price strong {
    color: #171717;
    font-size: 24px;
}

.offer-modal-price del {
    color: #999;
    font-size: 11px;
}

.offer-modal-rule {
    margin-top: 20px;
    padding: 13px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fafafa;
}

.offer-modal-rule span {
    color: #8d651e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.offer-modal-rule p {
    margin: 5px 0 0;
    color: #707070;
    font-size: 10px;
    line-height: 1.5;
}

.offer-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

/* ==========================================================
   FOOTER RULE
   ========================================================== */

.offers-footer-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding: 17px 18px;
    border: 1px solid #e2e2e2;
    border-radius: 13px;
    background: #fff;
}

.offers-footer-rule-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff5df;
    color: #b77d1b;
}

.offers-footer-rule > div:last-child > strong,
.offers-footer-rule > div:last-child > p {
    display: block;
}

.offers-footer-rule > div:last-child > strong {
    margin-top: 3px;
    color: #262626;
    font-size: 11px;
}

.offers-footer-rule > div:last-child > p {
    margin: 3px 0 0;
    color: #777;
    font-size: 10px;
    line-height: 1.5;
}

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

@media (max-width: 1050px) {
    .offer-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .offers-hero {
        align-items: flex-start;
        padding: 28px;
    }

    .offers-hero-badge {
        flex-basis: 120px;
        width: 120px;
        height: 120px;
    }

    .offer-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-modal-card {
        grid-template-columns: 1fr;
    }

    .offer-modal-image {
        min-height: 250px;
        max-height: 330px;
    }
}

@media (max-width: 640px) {
    .public-offers-container {
        width: min(calc(100% - 24px), 1180px);
        padding-top: 24px;
    }

    .offers-hero {
        flex-direction: column;
        gap: 25px;
        padding: 24px;
    }

    .offers-hero-badge {
        align-self: center;
    }

    .offers-access-strip {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .offers-subscribe-button {
        width: 100%;
    }

    .offers-section-heading,
    .offer-block-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-block-meta {
        align-items: flex-start;
    }

    .offer-product-grid {
        grid-template-columns: 1fr;
    }

    .offer-product-image {
        height: 270px;
    }

    .offers-footer-rule {
        align-items: flex-start;
    }
}
