.shop-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 16, 25, 0.96);
    border-bottom: 1px solid #283246;
    backdrop-filter: blur(12px);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: min(1400px, calc(100% - 40px));
    min-height: 74px;
    margin: 0 auto;
}

.shop-logo {
    font-size: 22px;
    font-weight: 800;
}

.shop-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    color: #aeb8c9;
    border-radius: 8px;
}

.shop-navigation a:hover,
.shop-navigation a.active {
    color: #ffffff;
    background: #1b2433;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    color: #ffffff;
    font-size: 12px;
    background: #4a7dba;
    border-radius: 20px;
}

.shop-container {
    width: min(1400px, calc(100% - 40px));
    margin: 38px auto 70px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 7px 0 8px;
    font-size: clamp(32px, 5vw, 48px);
}

.page-heading p {
    margin: 0;
    color: #929db1;
}

.page-kicker {
    color: #78a9e2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.alert {
    padding: 15px 17px;
    margin-bottom: 20px;
    border-radius: 9px;
}

.alert-success {
    color: #b8f3cd;
    background: #183529;
    border: 1px solid #2d694c;
}

.alert-error {
    color: #ffc4c9;
    background: #3b1d25;
    border: 1px solid #773442;
}

.cart-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        390px;
    gap: 25px;
    align-items: start;
}

.cart-products,
.cart-summary,
.empty-cart {
    background: #D9E2E9FF;
    border: 1px solid #283246;
    border-radius: 14px;
}

.cart-products {
    padding: 24px;
}

.cart-product-list {
    display: flex;
    flex-direction: column;
}

.cart-product {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #283246;
}

.cart-product:first-child {
    padding-top: 0;
}

.cart-product-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0c111b;
    border-radius: 10px;
}

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

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #8a96aa;
    font-weight: 800;
}

.cart-product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cart-product-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-product-name {
    font-size: 19px;
    font-weight: 800;
}

.cart-product-name:hover {
    color: #78a9e2;
}

.digital-product {
    display: block;
    margin-top: 7px;
    color: #111111;
    font-size: 13px;
}

.cart-product-price {
    white-space: nowrap;
    font-size: 18px;
    color: #111111;
}

.cart-product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}

.quantity-box {
    display: grid;
    grid-template-columns: auto 75px;
    gap: 7px 10px;
    align-items: center;
}

.quantity-box label {
    color: #111;
    font-size: 13px;
}

.quantity-box input {
    width: 75px;
    padding: 9px;
    color: #111;
    background: #fff;
    border: 1px solid #344057;
    border-radius: 7px;
}

.quantity-box small {
    grid-column: 1 / -1;
    color: #7f8ba0;
}

.remove-product-button,
.remove-promo-button {
    padding: 0;
    color: #ff0019;
    background: none;
    border: 0;
    cursor: pointer;
    font-weight:bold;
}

.remove-product-button:hover,
.remove-promo-button:hover {
    text-decoration: underline;
}

.cart-update-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
}

.continue-shopping {
    color: #0082F4FF;
}

.continue-shopping:hover {
    color: #0062b7;
}

.cart-summary {
    position: sticky;
    top: 99px;
    padding: 25px;
}

.cart-summary h2 {
    margin: 0 0 22px;
    font-size: 23px;
    color: #111111;
}

.summary-lines {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #283246;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.summary-line span {
    color: #111111;
}

.promo-code{color: #111111;}

.cart-subtotal{color:#111111;}

.discount-line strong {
    color: #02db56;
}

.promo-box {
    padding: 21px 0;
    border-bottom: 1px solid #283246;
}

.promo-box > label {
    display: block;
    margin-bottom: 9px;
    font-weight: 700;
}

.promo-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 8px;
}

.promo-row input {
    min-width: 0;
    padding: 12px 13px;
    color: #111111;
    text-transform: uppercase;
    background: #FFFFFF;
    border: 1px solid #c4c4c4;
    border-radius: 8px;
    outline: none;
}

.promo-row input:focus {
    border-color: #4a7dba;
}

.remove-promo-button {
    margin-top: 12px;
}

.promo-message {
    min-height: 19px;
    margin: 11px 0 0;
    color: #aeb8c9;
    font-size: 16px;
}

.promo-message.success {
    color: #02db56;
    font-weight: bold;
}

.promo-message.error {
    color: #ff0019;
}

.summary-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    color: #111111;
}

.summary-total span {
    font-size: 16px;
    font-weight: 700;
}

.summary-total strong {
    font-size: 27px;
}

.checkout-button {
    width: 100%;
    min-height: 50px;
}

.checkout-information {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 19px;
}

.checkout-information p {
    margin: 0;
    color: #8490a4;
    font-size: 12px;
    line-height: 1.5;
}

.empty-cart {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 70px 30px;
    text-align: center;
}

.empty-cart-icon {
    margin-bottom: 12px;
    font-size: 50px;
}

.empty-cart h2 {
    margin: 0 0 10px;
}

.empty-cart p {
    max-width: 500px;
    margin: 0 0 25px;
    color: #929db1;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 700px) {
    .shop-header-inner,
    .page-heading,
    .cart-update-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-header-inner {
        padding: 16px 0;
    }

    .shop-navigation {
        flex-wrap: wrap;
    }

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

    .cart-product-image {
        max-width: 320px;
    }

    .cart-product-heading,
    .cart-product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .promo-row {
        grid-template-columns: 1fr;
    }
}

.creator-code-box {
    margin-top: 20px;
    padding: 18px;

    background: #151c29;

    border: 1px solid #283246;
    border-radius: 12px;
}

.creator-code-label {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

.creator-code-description {
    margin: 0 0 12px;

    color: #8491a5;

    font-size: 12px;
    line-height: 1.5;
}

.creator-code-row {
    display: flex;
    align-items: center;

    gap: 8px;
}

.creator-code-row input {
    flex: 1;

    min-width: 0;

    padding: 11px 12px;

    color: #ffffff;

    background: #0f1622;

    border: 1px solid #35435c;
    border-radius: 8px;

    outline: none;
}

.creator-code-row input:focus {
    border-color: #4a7dba;
}

.creator-code-message {
    min-height: 18px;

    margin-top: 10px;

    color: #8491a5;

    font-size: 12px;
}

.creator-code-message.success {
    color: #6fd19a;
}

.creator-code-message.error {
    color: #e95768;
}

@media (
    max-width: 600px
) {

    .creator-code-row {
        align-items: stretch;
        flex-direction: column;
    }
}