/* =====================================================
   MECHABLOX SHOP
===================================================== */

:root {
    --shop-green: #76b900;
    --shop-green-dark: #5f9700;
    --shop-black: #000;
    --shop-dark: #111;
    --shop-gray: #555;
    --shop-muted: #888;
    --shop-light: #f5f6f4;
    --shop-border: #e2e8f0;
    --shop-white: #fff;
}


/* =====================================================
   GENERAL
===================================================== */

.shop-hero,
.shop-intro,
.shop-products,
.shop-learning,
.shop-faq {
    box-sizing: border-box;
}

.shop-hero *,
.shop-intro *,
.shop-products *,
.shop-learning *,
.shop-home-learning *,
.shop-faq * {
    box-sizing: border-box;
}


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

.shop-hero {
    max-width: 1400px;
    margin: 0 auto;

    padding: 120px 40px 100px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    gap: 80px;

    align-items: center;
}


/* Hero content */

.shop-hero-content > span {
    color: var(--shop-green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.7px;
}


.shop-hero h1 {
    margin: 20px 0;

    max-width: 700px;

    font-size: clamp(52px, 6vw, 86px);

    line-height: 0.95;

    letter-spacing: -4px;

    font-weight: 900;

    color: var(--shop-black);
}


.shop-hero h1 span {
    color: var(--shop-green);
}


.shop-hero-content > p {
    max-width: 620px;

    color: var(--shop-gray);

    font-size: 19px;

    line-height: 1.7;

    margin: 0;
}


/* Hero buttons */

.shop-hero-actions {
    display: flex;

    gap: 14px;

    margin-top: 35px;

    flex-wrap: wrap;
}


.shop-btn {
    display: inline-block;

    padding: 15px 25px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 800;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.shop-btn-primary {
    background: var(--shop-green);

    color: white;
}


.shop-btn-primary:hover {
    background: var(--shop-green-dark);
}


.shop-btn-outline {
    border: 1px solid var(--shop-black);

    color: var(--shop-black);
}


.shop-btn-outline:hover {
    background: var(--shop-black);

    color: white;
}


/* Hero image */

.shop-hero-visual {
    position: relative;

    height: 540px;

    overflow: hidden;

    background: #ddd;
}


.shop-hero-visual img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* Image label */

.shop-hero-label {
    position: absolute;

    bottom: 0;
    left: 0;

    padding: 22px 25px;

    background: var(--shop-black);

    color: white;

    display: flex;

    gap: 18px;

    align-items: center;
}


.shop-hero-label span {
    color: var(--shop-green);

    font-size: 12px;

    font-weight: 800;
}


.shop-hero-label strong {
    font-size: 12px;

    letter-spacing: 1.5px;
}


/* =====================================================
   INTRO
===================================================== */

.shop-intro {
    max-width: 1200px;

    margin: 0 auto;

    padding: 100px 40px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    border-top: 1px solid var(--shop-border);
}


.shop-intro .program-page-heading {
    max-width: 600px;
}


.shop-intro > div:last-child {
    padding-top: 10px;
}


.shop-intro p {
    color: var(--shop-gray);

    font-size: 18px;

    line-height: 1.8;

    margin: 0 0 25px;
}


.shop-intro p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   SHARED HEADINGS
===================================================== */

.shop-age .program-page-heading,
.shop-products .program-page-heading,
.shop-learning .program-page-heading,
.shop-faq .program-page-heading {
    max-width: 800px;
}


.shop-age .program-page-heading span,
.shop-products .shop-section-header span,
.shop-learning .program-page-heading span,
.shop-faq .program-page-heading span {
    color: var(--shop-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.6px;
}


/* =====================================================
   SHOP BY AGE
===================================================== */

.shop-age {
    background: var(--shop-black);

    color: white;

    padding: 120px 40px;
}


.shop-age .program-page-heading h2 {
    color: white;
}


.shop-age-grid {
    max-width: 1200px;

    margin: 60px auto 0;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 2px;
}


.shop-age-grid a {
    min-height: 330px;

    padding: 30px;

    background: #151515;

    color: white;

    text-decoration: none;

    display: flex;

    flex-direction: column;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.shop-age-grid a:hover {
    background: #202020;

    transform: translateY(-4px);
}


.shop-age-grid a > span {
    color: var(--shop-green);

    font-size: 13px;

    font-weight: 800;
}


.shop-age-grid strong {
    margin-top: 55px;

    font-size: 27px;

    line-height: 1.1;
}


.shop-age-grid small {
    margin-top: 8px;

    color: #aaa;

    font-size: 13px;
}


.shop-age-grid p {
    margin-top: 20px;

    color: #aaa;

    font-size: 14px;

    line-height: 1.6;
}


.shop-age-grid b {
    margin-top: auto;

    color: var(--shop-green);

    font-size: 13px;
}


/* =====================================================
   PRODUCTS
===================================================== */

.shop-products {
    max-width: 1280px;

    margin: 0 auto;

    padding: 120px 40px;
}


.shop-section-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 60px;

    margin-bottom: 55px;
}


.shop-section-header > div {
    max-width: 700px;
}


.shop-section-header h2 {
    margin: 15px 0 0;

    font-size: clamp(40px, 4vw, 60px);

    line-height: 1;

    letter-spacing: -2.5px;
}


.shop-section-header > p {
    max-width: 350px;

    margin: 0;

    color: var(--shop-gray);

    font-size: 16px;

    line-height: 1.7;
}


/* Product grid */

.product-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* Product card */

.product-card {
    border: 1px solid var(--shop-border);

    background: white;

    display: flex;

    flex-direction: column;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.product-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}


/* Product image */

.product-image {
    position: relative;

    height: 280px;

    overflow: hidden;

    background: var(--shop-light);
}


.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.35s ease;
}


.product-card:hover .product-image img {
    transform: scale(1.04);
}


.product-image > span {
    position: absolute;

    top: 15px;
    left: 15px;

    background: white;

    color: var(--shop-black);

    padding: 7px 10px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.product-image label {
    position: absolute;

    top: 15px;
    right: 15px;

    background: var(--shop-green);

    color: white;

    padding: 7px 10px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* Product content */

.product-content {
    padding: 28px;

    display: flex;

    flex-direction: column;

    flex: 1;
}


.product-content > small {
    color: var(--shop-green);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.product-content h3 {
    margin: 12px 0;

    font-size: 24px;

    line-height: 1.1;

    letter-spacing: -0.5px;
}


.product-content p {
    margin: 0;

    color: var(--shop-gray);

    font-size: 14px;

    line-height: 1.65;
}


.product-meta {
    margin-top: auto;

    padding-top: 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;
}


.product-meta strong {
    font-size: 18px;

    color: var(--shop-black);
}


.product-meta a {
    color: var(--shop-green);

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;
}


.product-meta a:hover {
    color: var(--shop-green-dark);
}


/* Featured product */

.product-featured {
    border: 2px solid var(--shop-green);
}


/* Dark project card */

.product-dark {
    background: var(--shop-black);

    color: white;

    border-color: var(--shop-black);
}


.product-dark .product-content {
    min-height: 280px;
}


.product-dark .product-content h3 {
    font-size: 30px;

    max-width: 300px;
}


.product-dark .product-content p {
    color: #aaa;

    max-width: 350px;
}


.product-dark .product-meta strong {
    color: white;
}


/* =====================================================
   LEARNING / DIFFERENCE
===================================================== */

.shop-learning {
    background: var(--shop-light);

    padding: 120px 40px;
}


.shop-learning .program-page-heading {
    max-width: 700px;

    margin-bottom: 65px;
}


.shop-learning-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 50px;
}


.shop-learning-grid article {
    border-top: 2px solid var(--shop-black);

    padding-top: 25px;
}


.shop-learning-grid article > span {
    color: var(--shop-green);

    font-size: 13px;

    font-weight: 800;
}


.shop-learning-grid h3 {
    margin: 20px 0 12px;

    font-size: 22px;

    line-height: 1.2;
}


.shop-learning-grid p {
    color: var(--shop-gray);

    line-height: 1.7;

    font-size: 15px;
}


/* =====================================================
   HOME LEARNING CTA
===================================================== */

.shop-home-learning {
    max-width: 1200px;

    min-height: 430px;

    margin: 120px auto;

    padding: 70px;

    background:
        linear-gradient(
            120deg,
            #000 0%,
            #111 100%
        );

    color: white;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;
}


/* Decorative green block */

.shop-home-learning::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -120px;
    bottom: -150px;

    background: var(--shop-green);

    transform: rotate(25deg);

    opacity: 0.9;
}


.shop-home-learning > div {
    position: relative;

    z-index: 2;

    max-width: 650px;
}


.shop-home-learning span {
    color: var(--shop-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.shop-home-learning h2 {
    margin: 18px 0;

    font-size: clamp(42px, 5vw, 65px);

    line-height: 0.98;

    letter-spacing: -3px;
}


.shop-home-learning p {
    max-width: 520px;

    color: #aaa;

    font-size: 18px;

    line-height: 1.7;
}


.shop-home-learning a {
    display: inline-block;

    margin-top: 20px;

    color: var(--shop-green);

    text-decoration: none;

    font-weight: 800;
}


.shop-home-learning a:hover {
    color: white;
}


/* =====================================================
   FAQ
===================================================== */

.shop-faq {
    max-width: 900px;

    margin: 0 auto;

    padding: 100px 40px 120px;
}


.shop-faq-list {
    margin-top: 55px;

    border-top: 1px solid var(--shop-border);
}


.shop-faq-list details {
    border-bottom: 1px solid var(--shop-border);

    padding: 25px 0;
}


.shop-faq-list summary {
    cursor: pointer;

    list-style: none;

    position: relative;

    padding-right: 35px;

    font-size: 18px;

    font-weight: 800;
}


.shop-faq-list summary::-webkit-details-marker {
    display: none;
}


/* Plus icon */

.shop-faq-list summary::after {
    content: "+";

    position: absolute;

    right: 0;
    top: -3px;

    color: var(--shop-green);

    font-size: 25px;

    font-weight: 400;
}


.shop-faq-list details[open] summary::after {
    content: "−";
}


.shop-faq-list p {
    max-width: 750px;

    margin: 20px 0 5px;

    color: var(--shop-gray);

    font-size: 15px;

    line-height: 1.7;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .shop-hero {
        grid-template-columns: 1fr;

        gap: 50px;

        padding-top: 90px;
    }


    .shop-hero-visual {
        height: 450px;
    }


    .shop-intro {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .shop-age-grid {
        grid-template-columns: repeat(2, 1fr);
    }


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


    .shop-learning-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .shop-hero {
        padding: 75px 20px 70px;

        gap: 40px;
    }


    .shop-hero h1 {
        font-size: clamp(48px, 14vw, 68px);

        letter-spacing: -3px;
    }


    .shop-hero-content > p {
        font-size: 17px;
    }


    .shop-hero-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .shop-btn {
        text-align: center;
    }


    .shop-hero-visual {
        height: 330px;
    }


    .shop-intro {
        padding: 75px 20px;

        gap: 25px;
    }


    .shop-age {
        padding: 80px 20px;
    }


    .shop-age-grid {
        grid-template-columns: 1fr;

        margin-top: 40px;
    }


    .shop-age-grid a {
        min-height: 240px;
    }


    .shop-age-grid strong {
        margin-top: 30px;
    }


    .shop-products {
        padding: 80px 20px;
    }


    .shop-section-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        margin-bottom: 40px;
    }


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


    .product-image {
        height: 260px;
    }


    .shop-learning {
        padding: 80px 20px;
    }


    .shop-learning-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .shop-home-learning {
        min-height: 400px;

        margin: 70px 20px;

        padding: 40px 30px;
    }


    .shop-home-learning h2 {
        letter-spacing: -2px;
    }


    .shop-faq {
        padding: 75px 20px 90px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .shop-hero h1 {
        font-size: 46px;
    }


    .shop-hero-visual {
        height: 280px;
    }


    .product-content {
        padding: 23px;
    }


    .product-content h3 {
        font-size: 22px;
    }


    .shop-home-learning {
        margin-left: 10px;
        margin-right: 10px;

        padding: 35px 25px;
    }

}
