/* =========================================
   SUPERMARKET PRODUCT DETAIL PAGE
   ========================================= */

.sm-detail {
    overflow-x: clip;
    /* background: #fff; */
}

.sm-detail .container {
    max-width: 1240px;
}

.sm-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #108948;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm-kicker--light {
    color: #7ddea8;
}

.sm-section {
    padding: clamp(56px, 7vw, 88px) 0;
}

.sm-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(32px, 5vw, 48px);
}

.sm-section__head h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.15;
    color: #1a1a5e;
    font-weight: 800;
}

.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-btn--primary {
    background: linear-gradient(135deg, #1a1a5e, #2d2a7b);
    color: #fff;
    box-shadow: 0 14px 28px rgba(26, 26, 94, 0.22);
}

.sm-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(26, 26, 94, 0.28);
}

/* Hero */
.sm-hero {
    padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 72px);
}

.sm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.sm-hero__media {
    position: relative;
}

.sm-hero__dots {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 180px;
    height: 120px;
    background-image: radial-gradient(#b7b7ff 1.8px, transparent 1.8px);
    background-size: 18px 18px;
    opacity: 0.65;
    z-index: 0;
}

.sm-hero__image-card {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #9cb2ce 0%, #bdd0e8 100%);
    box-shadow: 0 24px 50px rgba(26, 26, 94, 0.12);
    min-height: 360px;
}

.sm-hero__image-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.sm-hero__content h1 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    color: #1a1a5e;
    font-weight: 800;
    margin-bottom: 18px;
}

.sm-hero__content p {
    color: #5a6578;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 54ch;
}

/* Highlights */
.sm-highlights {
    background: #fff;
}

.sm-highlights__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.sm-highlight-card {
    background: #f3f1ff;
    border-radius: 18px;
    padding: 22px 20px;
    min-height: 180px;
}

.sm-highlight-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 42, 123, 0.1);
    color: #2d2a7b;
    font-size: 18px;
    margin-bottom: 14px;
}

.sm-highlight-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a5e;
    margin-bottom: 8px;
}

.sm-highlight-card p {
    font-size: 13px;
    line-height: 1.7;
    color: #5a6578;
}

/* Benefits */
.sm-benefits {
    background: linear-gradient(135deg, #1a1a5e 0%, #2d2a7b 100%);
    color: #fff;
}

.sm-benefits__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.sm-benefits__content h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 16px;
}

.sm-benefits__content p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 56ch;
}

.sm-benefits__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sm-stat strong {
    display: block;
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.2;
    margin-bottom: 6px;
}

.sm-stat span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.sm-benefits__media img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
    object-fit: cover;
    min-height: 320px;
}

/* Showcase */
.sm-showcase {
    background: #fff;
}

.sm-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sm-showcase-card {
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(26, 26, 94, 0.06);
}

.sm-showcase-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f7;
}

.sm-showcase-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-showcase-card__body {
    padding: 20px 20px 24px;
}

.sm-showcase-card__body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a5e;
    margin-bottom: 8px;
}

.sm-showcase-card__body p {
    font-size: 14px;
    line-height: 1.7;
    color: #5a6578;
}

/* Related */
.sm-related {
    background: #fafbfd;
}

.sm-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sm-related-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(26, 26, 94, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sm-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(26, 26, 94, 0.12);
}

.sm-related-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f7;
}

.sm-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-related-card__label {
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a5e;
    background: #fff;
}

/* FAQ */
.sm-faq {
    background: #f3f1ff;
}

.sm-faq__list {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sm-faq__item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e7e9f3;
    overflow: hidden;
}

.sm-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 22px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a5e;
    position: relative;
}

.sm-faq__item summary::-webkit-details-marker {
    display: none;
}

.sm-faq__item summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #2d2a7b;
    transition: transform 0.2s ease;
}

.sm-faq__item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.sm-faq__item p {
    padding: 0 22px 18px;
    color: #5a6578;
    line-height: 1.75;
    font-size: 14px;
}

/* Our Work */
.sm-our-work {
    background: #fff;
}

.sm-our-work__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sm-our-work__item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(26, 26, 94, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.sm-our-work__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(26, 26, 94, 0.15);
}

.sm-our-work__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.sm-our-work__serial {
    display: block;
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #1a1a5e;
    background: #f8faff;
    border-top: 1px solid #e8ebf5;
}

.sm-our-work__item.is-pending {
    display: none;
}

.sm-our-work__sentinel {
    height: 1px;
    width: 100%;
}

.sm-our-work__loader {
    text-align: center;
    margin-top: 28px;
}

.sm-our-work__spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.2em solid rgba(26, 26, 94, 0.15);
    border-top-color: #1a1a5e;
    border-radius: 50%;
    animation: sm-our-work-spin 0.75s linear infinite;
}

@keyframes sm-our-work-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .sm-highlights__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .sm-hero__grid,
    .sm-benefits__grid {
        grid-template-columns: 1fr;
    }

    .sm-benefits__media {
        order: -1;
    }

    .sm-showcase__grid,
    .sm-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm-our-work__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .sm-benefits__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sm-highlights__grid,
    .sm-showcase__grid,
    .sm-related__grid,
    .sm-our-work__grid {
        grid-template-columns: 1fr;
    }

    .sm-hero__image-card,
    .sm-hero__image-card img {
        min-height: 260px;
    }

    .sm-hero__content p,
    .sm-benefits__content p {
        max-width: none;
    }
}
