.header-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #0b6bcf;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.catalog-products,
.cart-page,
.checkout-page {
    padding-top: 52px;
    padding-bottom: 72px;
}

.catalog-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.catalog-products-head h2,
.cart-summary h2,
.checkout-form h2,
.checkout-summary h2,
.cart-empty-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    color: #0f2f4c;
}

.catalog-products-cart-link,
.secondary-dark-link,
.cart-clear-btn,
.cart-remove-btn,
.product-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(15, 47, 76, .14);
    background: #fff;
    color: #0f2f4c;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.catalog-products-cart-link:hover,
.secondary-dark-link:hover,
.cart-clear-btn:hover,
.cart-remove-btn:hover,
.product-add-btn:hover {
    background: #eef5ff;
    color: #0b6bcf;
}

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

.product-card,
.cart-summary,
.checkout-form,
.checkout-summary,
.cart-item-card,
.cart-empty-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(16, 47, 77, .08);
}

.product-card {
    overflow: hidden;
}

.product-card-image {
    aspect-ratio: 1.15 / 1;
    overflow: hidden;
}

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

.product-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.product-card-meta,
.cart-item-category,
.checkout-item-category {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0b6bcf;
}

.product-card-content h3,
.cart-item-content h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    color: #0f2f4c;
}

.product-card-content p,
.cart-empty-card p,
.checkout-empty-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #34536c;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.product-price,
.cart-item-price,
.cart-item-sum,
.checkout-item-meta strong {
    font-size: 24px;
    font-weight: 700;
    color: #0f2f4c;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .78fr);
    gap: 24px;
}

.cart-items,
.checkout-items {
    display: grid;
    gap: 18px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

.cart-item-image {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

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

.cart-item-content,
.cart-item-actions,
.cart-summary-actions {
    display: grid;
    gap: 12px;
}

.cart-item-actions {
    justify-items: end;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5f8fc;
}

.cart-qty button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0f2f4c;
    font-size: 22px;
    line-height: 1;
}

.cart-summary,
.checkout-form,
.checkout-summary,
.cart-empty-card {
    padding: 32px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(15, 47, 76, .08);
    font-size: 16px;
    color: #34536c;
}

.total-row {
    margin-top: 4px;
    font-size: 18px;
}

.total-row strong {
    font-size: 28px;
    color: #0f2f4c;
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.checkout-grid label,
.checkout-textarea {
    display: grid;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f2f4c;
}

.checkout-grid input,
.checkout-textarea textarea {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 47, 76, .12);
    border-radius: 18px;
    background: #f8fbff;
    font-size: 15px;
    color: #13304a;
}

.checkout-textarea {
    margin-top: 18px;
}

.checkout-textarea textarea {
    min-height: 150px;
    resize: vertical;
}

.checkout-submit {
    margin-top: 24px;
}

.checkout-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(15, 47, 76, .08);
}

.checkout-item-row strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    line-height: 1.5;
    color: #0f2f4c;
}

.checkout-item-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    font-size: 14px;
    color: #34536c;
}

.cart-empty-card,
.checkout-empty-card {
    display: grid;
    gap: 16px;
}

@media (max-width: 1180px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .cart-item-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        justify-items: start;
    }
}

@media (max-width: 768px) {
    .catalog-products-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

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


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

.product-card,
.cart-summary,
.checkout-form,
.checkout-summary,
.cart-item-card,
.cart-empty-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(16, 47, 77, .08);
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 47, 76, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(16, 47, 77, .14);
    border-color: rgba(11, 107, 207, .18);
}

.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 22px;
    background: radial-gradient(circle at top, #ffffff 0%, #f4f8fd 58%, #edf3fa 100%);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

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

.product-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    flex: 1 1 auto;
}

.product-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.product-card-meta,
.cart-item-category,
.checkout-item-category {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0b6bcf;
}

.product-card-category {
    font-size: 13px;
    color: #6a8095;
}

.product-card-content h3,
.cart-item-content h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
    color: #0f2f4c;
}

.product-card-content h3 a {
    color: inherit;
}

.product-card-content p,
.cart-empty-card p,
.checkout-empty-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #34536c;
}

.product-card-bottom {
    display: grid;
    gap: 16px;
    margin-top: auto;
}

.product-price,
.cart-item-price,
.cart-item-sum,
.checkout-item-meta strong {
    font-size: 26px;
    font-weight: 700;
    color: #0f2f4c;
}

.product-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.catalog-products-cart-link,
.secondary-dark-link,
.cart-clear-btn,
.cart-remove-btn,
.product-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(15, 47, 76, .14);
    background: #fff;
    color: #0f2f4c;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.product-details-btn {
    background: #fff;
}

.product-buy-btn {
    border-color: #0b6bcf;
    background: #0b6bcf;
    color: #fff;
}

.catalog-products-cart-link:hover,
.secondary-dark-link:hover,
.cart-clear-btn:hover,
.cart-remove-btn:hover,
.product-details-btn:hover {
    background: #eef5ff;
    color: #0b6bcf;
}

.product-buy-btn:hover {
    background: #0958a8;
    border-color: #0958a8;
    color: #fff;
}

.product-layout-grid {
    align-items: start;
}

.product-main-card {
    overflow: hidden;
}

.product-showcase-card {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.product-showcase-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 28px;
    border-radius: 26px;
    background: radial-gradient(circle at top, #ffffff 0%, #f4f8fd 58%, #edf3fa 100%);
}

.product-showcase-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
}

.product-showcase-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-showcase-bottom {
    align-items: start;
}

.product-showcase-actions {
    max-width: 420px;
    width: 100%;
}

@media (max-width: 1180px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .product-grid,
    .product-card-actions,
    .product-showcase-actions {
        grid-template-columns: 1fr;
    }

    .product-card-content {
        padding: 20px;
    }

    .product-showcase-image {
        min-height: 280px;
        padding: 20px;
    }
}
