:root {
    --shop-navy: #0b1f46;
    --shop-blue: #1265cf;
    --shop-cyan: #1ca4e9;
    --shop-green: #13866b;
    --shop-mint: #31c497;
    --shop-soft: #f4f8fc;
    --shop-line: #dfe8f3;
    --shop-muted: #68758d;
    --shop-white: #ffffff;
    --shop-shadow: 0 18px 48px rgba(15, 52, 100, 0.10);
}

/* Shop hero */
.shop-hero {
    position: relative;
    overflow: hidden;
    color: var(--shop-white);
    background: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.15), transparent 25%), linear-gradient(110deg, #0b3698 0%, #1265cf 32%, #1ca4e9 62%, #31c497 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

    .shop-hero::before {
        position: absolute;
        left: 42%;
        bottom: -190px;
        width: 420px;
        height: 420px;
        content: "";
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.045);
        pointer-events: none;
    }

    .shop-hero::after {
        position: absolute;
        top: -180px;
        right: -80px;
        width: 440px;
        height: 440px;
        content: "";
        border: 90px solid rgba(255, 255, 255, 0.07);
        border-radius: 50%;
        pointer-events: none;
    }

.shop-hero-inner {
    position: relative;
    z-index: 1;
    padding: 76px 16px 82px;
}

.shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shop-hero h1 {
    max-width: 720px;
    margin: 20px 0 12px;
    font-size: clamp(2.45rem, 5vw, 4.5rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.shop-hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* Shop listing */
.shop-main {
    padding-top: 54px;
    padding-bottom: 80px;
}

.shop-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

    .shop-heading span,
    .section-label {
        color: var(--shop-green);
        font-size: 0.75rem;
        font-weight: 850;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .shop-heading h2 {
        margin: 4px 0 0;
        color: var(--shop-navy);
        font-size: clamp(1.7rem, 3vw, 2.15rem);
        font-weight: 850;
        letter-spacing: -0.025em;
    }

.shop-count {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: var(--shop-white);
    color: var(--shop-muted);
    font-weight: 750;
    box-shadow: 0 8px 25px rgba(20, 61, 110, 0.06);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: 22px;
    background: var(--shop-white);
    box-shadow: var(--shop-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        border-color: rgba(28, 164, 233, 0.32);
        box-shadow: 0 25px 58px rgba(15, 52, 100, 0.16);
    }

.product-image-wrap {
    position: relative;
    display: block;
    height: 235px;
    overflow: hidden;
    background: linear-gradient(145deg, #edf6ff, #edf9f5);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-placeholder,
.details-image > i {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #eef5ff, #e7f8f1);
    color: #6ca6b9;
    font-size: 4rem;
}

.featured-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--shop-blue), var(--shop-green));
    color: var(--shop-white);
    box-shadow: 0 8px 20px rgba(18, 101, 207, 0.24);
    font-size: 0.72rem;
    font-weight: 850;
}

    .featured-badge.static {
        position: static;
        display: inline-flex;
        margin-bottom: 14px;
    }

.product-body {
    padding: 22px;
}

    .product-body h3 {
        margin: 0 0 8px;
        font-size: 1.18rem;
        font-weight: 850;
    }

        .product-body h3 a {
            color: var(--shop-navy);
            text-decoration: none;
        }

            .product-body h3 a:hover {
                color: var(--shop-blue);
            }

    .product-body p {
        min-height: 44px;
        margin-bottom: 0;
        color: var(--shop-muted);
        font-size: 0.91rem;
        line-height: 1.6;
    }

.stock {
    margin: 15px 0;
    font-size: 0.78rem;
    font-weight: 800;
}

    .stock i {
        margin-right: 4px;
        font-size: 0.45rem;
        vertical-align: middle;
    }

.in-stock {
    color: var(--shop-green);
}

.out-stock {
    color: #c54855;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 17px;
    border-top: 1px solid var(--shop-line);
}

    .product-footer strong,
    .details-price {
        color: var(--shop-navy);
        font-size: 1.18rem;
    }

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--shop-blue), var(--shop-cyan) 58%, var(--shop-green));
    color: var(--shop-white) !important;
    box-shadow: 0 10px 24px rgba(18, 101, 207, 0.24);
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .buy-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow: 0 14px 30px rgba(19, 134, 107, 0.25);
    }

    .buy-btn.disabled {
        pointer-events: none;
        opacity: 0.48;
    }

    .buy-btn.large {
        margin-top: 22px;
        padding: 14px 24px;
    }

    .buy-btn.full {
        width: 100%;
    }

.shop-empty {
    padding: 65px 24px;
    border: 1px dashed #bfcede;
    border-radius: 22px;
    background: linear-gradient(145deg, #fbfdff, #f5fbf8);
    color: var(--shop-muted);
    text-align: center;
}

    .shop-empty i {
        color: var(--shop-green);
        font-size: 3rem;
    }

/* Product details */
.shop-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 25px;
    color: var(--shop-muted);
    font-weight: 750;
    text-decoration: none;
}

    .shop-back:hover {
        color: var(--shop-blue);
    }

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 60px;
}

.details-image {
    height: 500px;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: 26px;
    background: linear-gradient(145deg, #edf6ff, #edf9f5);
    box-shadow: var(--shop-shadow);
}

    .details-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.details-copy h1 {
    margin-bottom: 16px;
    color: var(--shop-navy);
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.details-lead {
    color: var(--shop-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.details-description {
    color: #4f5e75;
    line-height: 1.8;
}

.details-price {
    margin-top: 25px;
    font-size: 1.8rem;
    font-weight: 850;
}

/* Checkout */
.checkout-page {
    max-width: 1120px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
    align-items: start;
    gap: 28px;
}

.checkout-card,
.order-summary {
    padding: 30px;
    border: 1px solid var(--shop-line);
    border-radius: 22px;
    background: var(--shop-white);
    box-shadow: var(--shop-shadow);
}

    .checkout-card h1 {
        margin: 6px 0 25px;
        color: var(--shop-navy);
        font-weight: 850;
        letter-spacing: -0.025em;
    }

    .checkout-card label,
    .order-summary label {
        display: block;
        margin: 15px 0 7px;
        color: #34425a;
        font-size: 0.84rem;
        font-weight: 800;
    }

    .checkout-card input,
    .order-summary input {
        width: 100%;
        padding: 12px 13px;
        border: 1px solid #d5e0ec;
        border-radius: 11px;
        outline: none;
        background: #fbfdff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

        .checkout-card input:focus,
        .order-summary input:focus {
            border-color: var(--shop-cyan);
            background: var(--shop-white);
            box-shadow: 0 0 0 4px rgba(28, 164, 233, 0.12);
        }

    .checkout-card span[data-valmsg-for],
    .order-summary span[data-valmsg-for] {
        color: #c43d4e;
        font-size: 0.78rem;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.order-summary {
    position: sticky;
    top: 105px;
}

    .order-summary h2 {
        color: var(--shop-navy);
        font-size: 1.3rem;
        font-weight: 850;
    }

.summary-product {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 0;
    border-bottom: 1px solid var(--shop-line);
}

    .summary-product img {
        width: 68px;
        height: 68px;
        border-radius: 12px;
        object-fit: cover;
    }

    .summary-product small {
        display: block;
        color: #78859a;
    }

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--shop-line);
}

    .summary-total strong {
        color: var(--shop-navy);
        font-size: 1.25rem;
    }

.secure-note {
    margin: 12px 0 0;
    color: #7a879a;
    font-size: 0.76rem;
    text-align: center;
}

/* Payment and result pages */
.payment-wait {
    display: flex;
    min-height: 65vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--shop-navy);
    text-align: center;
}

.payment-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #e2edf2;
    border-top-color: var(--shop-green);
    border-right-color: var(--shop-cyan);
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
}

@keyframes shop-spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-wait h1 {
    margin: 20px 0 5px;
    font-weight: 850;
}

.status-card {
    max-width: 660px;
    margin: 20px auto;
    padding: 45px;
    border: 1px solid var(--shop-line);
    border-radius: 26px;
    background: var(--shop-white);
    box-shadow: 0 24px 65px rgba(15, 52, 100, 0.13);
    text-align: center;
}

.status-icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #fff3d9;
    color: #b87b04;
    font-size: 2rem;
}

.status-card.success .status-icon {
    background: #dcf7ed;
    color: var(--shop-green);
}

.status-card > span {
    color: #7b879a;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.status-card h1 {
    margin: 8px 0;
    color: var(--shop-navy);
    font-weight: 850;
}

.status-card p {
    color: var(--shop-muted);
}

.status-order {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0 5px;
    padding: 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, #f1f7ff, #edf9f5);
}

    .status-order strong {
        color: var(--shop-navy);
    }

/* Responsive */
@media (max-width: 991.98px) {
    .shop-hero-inner {
        padding: 62px 16px 68px;
    }

    .details-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .details-image {
        height: 430px;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .shop-hero-inner {
        padding: 50px 16px 56px;
    }

    .shop-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
    }

    .shop-hero::after {
        right: -250px;
    }

    .shop-main {
        padding-top: 38px;
        padding-bottom: 60px;
    }

    .shop-heading {
        align-items: flex-start;
    }

    .shop-count {
        display: none;
    }

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

    .product-image-wrap {
        height: 230px;
    }

    .details-image {
        height: 340px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-card, .order-summary {
        padding: 22px;
    }

    .status-card {
        padding: 32px 22px;
    }
}

@media (max-width: 420px) {
    .product-footer {
        align-items: flex-start;
        flex-direction: column;
    }

        .product-footer .buy-btn {
            width: 100%;
        }

    .details-image {
        height: 290px;
    }

    .status-order {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-image,
    .buy-btn {
        transition: none;
    }

    .payment-spinner {
        animation-duration: 1.5s;
    }
}
