body {
    margin: 0;
    font-family: Helvetica, sans-serif;
    background: #f5f8fc;
    color: #07152f;
}

/* HEADER */

.topbar {
    height: 76px;
    padding: 0 7%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .5px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 700;
}

.nav-links a:hover {
    color: #00aa7a;
}

/* PRODUCTS */

.products-section {
    padding: 55px 5%;
}

.section-head {
    margin-bottom: 40px;
}

.section-head h2 {
    margin: 0;
    font-size: 46px;
    font-weight: 900;
}

.section-head p {
    margin-top: 10px;
    color: #64748b;
    font-size: 17px;
}

/* GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

/* CARD */

.product-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}

.product-card > img {
    width: 100%;
    object-fit: contain;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 75%);
    box-sizing: border-box;
    transition: .35s ease;
}

.product-card:hover > img {
    transform: scale(1.03);
}

/* BODY */

.product-card-body {
    padding: 18px 18px 22px;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.product-card-body h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 500;
    color: #1e293b;
    min-height: 60px;
}

.product-price {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.product-card-body p {
    margin: 10px 0 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
}

/* COLORS */

.product-colors {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.product-colors span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

.product-colors span:nth-child(1) {
    background: #111827;
}

.product-colors span:nth-child(2) {
    background: #475569;
}

.product-colors span:nth-child(3) {
    background: #d1d5db;
}

.product-colors span:nth-child(4) {
    background: #1d4ed8;
}

/* BUTTON */

.customize-btn {
    width: 100%;
    margin-top: auto;
    border: 0;
    background: #00aa7a;
    color: #fff;
    padding: 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: .25s ease;
}

.customize-btn:hover {
    background: #008f68;
    transform: translateY(-2px);
}

/* MODAL */

body.modal-open {
    overflow: hidden !important;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.product-modal.is-open {
    display: block;
}

.product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 21, 47, .68);
    backdrop-filter: blur(7px);
}

.product-modal__dialog {
    position: relative;
    width: min(1100px, calc(100% - 40px));
    max-height: calc(100vh - 50px);
    margin: 25px auto;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 100px rgba(0,0,0,.35);
}

.product-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #07152f;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
}

.product-modal__header {
    height: 125px;
    padding: 24px 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.product-modal__header img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #f3f6fb;
    border-radius: 20px;
    padding: 10px;
}

.product-modal__header h3 {
    margin: 0;
    font-size: 28px;
}

.product-modal__header p {
    margin: 6px 0 0;
    color: #64748b;
}

.product-modal__grid {
    padding: 26px 28px 34px;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    background: #f8fafc;
}

/* TEMPLATE CARDS */

.start-card {
    position: relative;
    min-height: 400px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #07152f;
    overflow: hidden;
    transition: .25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.start-card:hover {
    transform: translateY(-6px);
    border-color: #00aa7a;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
}

.start-card__thumb {
    position: absolute;
    inset: 14px 14px 95px;
    background: #f4f7fb;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.start-card__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.start-card h4 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 900;
}

.start-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #64748b;
    line-height: 1.5;
    font-size: 14px;
}

.start-card--primary {
    background: linear-gradient(135deg, #00aa7a, #007f61);
    color: #fff;
    border: 0;
}

.start-card--primary h4,
.start-card--primary p {
    color: #fff;
}

.start-card__icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 28px;
    margin-bottom: auto;
}

.start-card--disabled {
    opacity: .6;
    pointer-events: none;
}

/* SCROLL FIX */

html,
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100%;
}

/* RESPONSIVE */

@media (max-width: 1500px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

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


}

@media (max-width: 700px) {
    .topbar {
        height: auto;
        padding: 18px;
        flex-direction: column;
        gap: 16px;
    }

    .products-section {
        padding: 35px 18px;
    }

    .section-head h2 {
        font-size: 34px;
    }

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



    .product-modal__dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
        border-radius: 22px;
    }

    .product-modal__header {
        height: auto;
        padding: 20px 70px 20px 20px;
    }

    .product-modal__grid {
        max-height: calc(100vh - 190px);
    }
}
