.commerce-body {
    background: #f6f8fb;
}

.commerce-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 14px 96px;
}

@media (min-width: 1024px) {
    .commerce-shell {
        padding-top: 34px;
    }
}

.commerce-titlebar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.commerce-eyebrow {
    margin: 0 0 4px;
    color: #ef233c;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.commerce-titlebar h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

.commerce-titlebar p:not(.commerce-eyebrow) {
    max-width: 560px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.commerce-primary,
.commerce-secondary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.commerce-primary {
    border: 1px solid #ef233c;
    background: #ef233c;
    color: #fff;
    box-shadow: 0 16px 34px rgba(239, 35, 60, .22);
}

.commerce-secondary {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #0f172a;
}

.commerce-primary:hover,
.commerce-secondary:hover,
.commerce-icon-btn:hover {
    transform: translateY(-1px);
}

.commerce-primary svg,
.commerce-secondary svg,
.commerce-icon-btn svg,
.cart-service-strip svg,
.wishlist-panel li svg,
.cart-save svg {
    width: 18px;
    height: 18px;
}

.commerce-full {
    width: 100%;
}

.commerce-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.commerce-search {
    position: relative;
    display: block;
}

.commerce-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #0f172a;
}

.commerce-search input {
    width: 100%;
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    padding: 0 18px 0 46px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.commerce-search input:focus {
    border-color: #ef233c;
    box-shadow: 0 0 0 4px rgba(239, 35, 60, .1);
}

.commerce-chip-row,
.cart-service-strip {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.commerce-chip-row::-webkit-scrollbar,
.cart-service-strip::-webkit-scrollbar {
    display: none;
}

.commerce-chip {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
    padding: 0 15px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.commerce-chip.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

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

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wishlist-card,
.cart-item,
.commerce-panel {
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.wishlist-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.wishlist-image,
.cart-thumb,
.commerce-modal-media {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
}

.wishlist-image {
    min-height: 142px;
}

.wishlist-image img,
.cart-thumb img,
.commerce-modal-media img {
    width: 74%;
    max-height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .12));
}

.wishlist-info,
.cart-info {
    min-width: 0;
}

.wishlist-heading,
.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.wishlist-heading span,
.cart-item-top span,
.commerce-modal-content span {
    display: block;
    margin-bottom: 4px;
    color: #ef233c;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.wishlist-heading h2,
.cart-item-top h2,
.commerce-modal-content h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
}

.wishlist-info p,
.cart-item-top p,
.commerce-modal-content p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.commerce-icon-btn {
    flex: 0 0 auto;
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #dbe3ee;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    transition: transform .18s ease, color .18s ease, border-color .18s ease;
}

.commerce-icon-btn.is-liked {
    border-color: rgba(239, 35, 60, .22);
    color: #ef233c;
    background: #fff5f6;
}

.commerce-icon-btn.is-liked svg path {
    fill: currentColor;
}

.commerce-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.commerce-price-row strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.commerce-price-row del {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.commerce-price-row span {
    border-radius: 999px;
    background: #e8f7ef;
    padding: 5px 8px;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
}

.wishlist-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}

.commerce-panel {
    position: sticky;
    top: 92px;
    padding: 16px;
}

.commerce-panel h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.wishlist-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    padding: 14px;
    color: #fff;
}

.wishlist-stat span {
    font-size: 34px;
    font-weight: 950;
}

.wishlist-stat p {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.wishlist-panel ul {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.wishlist-panel li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.wishlist-panel li svg {
    flex: 0 0 auto;
    color: #ef233c;
}

.cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.cart-main {
    min-width: 0;
}

.cart-service-strip {
    margin-bottom: 12px;
}

.cart-service-strip span {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 0 13px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.cart-service-strip span:nth-child(1) {
    background: #fff1f2;
    color: #be123c;
}

.cart-service-strip span:nth-child(2) {
    background: #eff6ff;
    color: #1d4ed8;
}

.cart-service-strip span:nth-child(3) {
    background: #ecfdf5;
    color: #047857;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.cart-thumb {
    min-height: 124px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.cart-qty {
    display: inline-grid;
    grid-template-columns: 36px 42px 36px;
    height: 36px;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
}

.cart-qty button,
.cart-qty input {
    border: 0;
    background: transparent;
    color: #0f172a;
    font-weight: 900;
    text-align: center;
    outline: none;
}

.cart-qty button {
    display: grid;
    place-items: center;
}

.cart-qty svg {
    width: 16px;
    height: 16px;
}

.cart-qty input {
    width: 42px;
    appearance: textfield;
}

.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.cart-price {
    text-align: right;
}

.cart-price strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
}

.cart-price small {
    color: #16a34a;
    font-size: 11px;
    font-weight: 900;
}

.cart-save {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #ef233c;
    font-size: 12px;
    font-weight: 900;
}

.summary-lines {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.summary-lines p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.summary-lines p:last-child {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    color: #0f172a;
}

.summary-lines strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.coupon-box {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.coupon-box span {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.coupon-box div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.coupon-box input {
    min-width: 0;
    height: 42px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

.coupon-box button {
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    padding: 0 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.coupon-note {
    min-height: 18px;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.cart-summary .commerce-primary {
    margin-bottom: 9px;
}

.cart-mobile-bar {
    position: fixed;
    inset: auto 10px 72px;
    z-index: 39;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    background: #0f172a;
    padding: 8px 8px 8px 18px;
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .26);
}

.cart-mobile-bar span {
    display: block;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
}

.cart-mobile-bar strong {
    font-size: 16px;
    font-weight: 950;
}

.cart-mobile-bar a,
.cart-mobile-bar button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    background: #ef233c;
    padding: 0 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.cart-mobile-bar svg {
    width: 16px;
    height: 16px;
}

.commerce-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 28px 18px;
    text-align: center;
}

.commerce-empty h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
}

.commerce-empty p {
    margin: 0 auto 16px;
    max-width: 320px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.commerce-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .54);
    backdrop-filter: blur(8px);
}

.commerce-modal[hidden] {
    display: none;
}

.commerce-modal-panel {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    width: min(620px, 100%);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.commerce-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.commerce-modal-media {
    min-height: 210px;
}

.commerce-modal-content {
    align-self: center;
    padding-right: 26px;
}

.commerce-toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 100;
    max-width: calc(100vw - 28px);
    transform: translateX(-50%) translateY(18px);
    border-radius: 999px;
    background: #0f172a;
    padding: 12px 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
    transition: opacity .18s ease, transform .18s ease;
}

.commerce-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 18px;
}

.commerce-confirm-modal[hidden] {
    display: none;
}

.commerce-confirm-panel {
    width: min(360px, 100%);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.commerce-confirm-panel h2 {
    margin: 0;
    color: #071437;
    font-size: 18px;
    font-weight: 900;
}

.commerce-confirm-panel p {
    margin: 8px 0 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.commerce-confirm-panel div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.commerce-confirm-panel button {
    min-height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.commerce-confirm-panel [data-commerce-confirm-ok] {
    border-color: #fecaca;
    background: #ef233c;
    color: #fff;
}

.commerce-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
    .commerce-shell {
        padding: 14px 10px 150px;
    }

    .commerce-titlebar {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .commerce-titlebar h1 {
        font-size: 25px;
    }

    .commerce-titlebar p:not(.commerce-eyebrow) {
        font-size: 13px;
    }

    .commerce-title-action {
        display: none;
    }

    .commerce-tools {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .commerce-chip-row {
        margin: 0 -10px;
        padding: 0 10px 2px;
    }

    .wishlist-layout,
    .cart-layout {
        display: block;
    }

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

    .wishlist-panel,
    .cart-summary {
        position: static;
        margin-top: 12px;
    }

    .cart-mobile-bar {
        display: flex;
    }
}

@media (max-width: 560px) {
    .commerce-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .commerce-search input {
        height: 46px;
        font-size: 13px;
    }

    .wishlist-card,
    .cart-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .wishlist-image,
    .cart-thumb {
        min-height: 96px;
    }

    .wishlist-image img,
    .cart-thumb img {
        width: 76%;
        max-height: 58px;
    }

    .wishlist-heading h2,
    .cart-item-top h2 {
        font-size: 15px;
    }

    .wishlist-info p,
    .cart-item-top p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 12px;
    }

    .commerce-icon-btn {
        width: 36px;
        height: 36px;
    }

    .commerce-price-row {
        gap: 5px;
        margin-top: 9px;
    }

    .commerce-price-row strong,
    .cart-price strong {
        font-size: 15px;
    }

    .commerce-price-row del {
        display: none;
    }

    .commerce-price-row span {
        padding: 4px 7px;
        font-size: 10px;
    }

    .wishlist-actions {
        grid-template-columns: 1fr 58px;
        gap: 7px;
        margin-top: 10px;
    }

    .commerce-primary,
    .commerce-secondary {
        min-height: 38px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .cart-item-bottom {
        align-items: flex-end;
        gap: 8px;
    }

    .cart-qty {
        grid-template-columns: 32px 36px 32px;
        height: 34px;
    }

    .cart-qty input {
        width: 36px;
    }

    .cart-save {
        margin-top: 8px;
        font-size: 11px;
    }

    .commerce-panel {
        padding: 14px;
    }

    .cart-summary {
        display: grid;
        gap: 10px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .cart-summary h2 {
        margin-bottom: 4px;
        font-size: 17px;
    }

    .cart-summary .summary-lines {
        gap: 8px;
        margin-bottom: 4px;
    }

    .coupon-box {
        gap: 7px;
        margin-bottom: 2px;
    }

    .coupon-box div {
        grid-template-columns: minmax(0, 1fr) 74px;
        gap: 7px;
    }

    .coupon-box input,
    .coupon-box button {
        height: 40px;
        border-radius: 10px;
    }

    .coupon-box input {
        padding-inline: 11px;
        font-size: 12px;
    }

    .coupon-box button {
        padding-inline: 10px;
    }

    .coupon-note {
        margin-bottom: 2px;
        font-size: 11px;
        line-height: 1.35;
    }

    .cart-summary-action {
        display: none;
    }

    .commerce-modal-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .commerce-modal-media {
        min-height: 150px;
    }

    .commerce-modal-media img {
        max-height: 86px;
    }

    .commerce-modal-content {
        padding-right: 0;
    }
}

/* Liked page without internal tools/sidebar */
.wishlist-page .wishlist-layout {
    grid-template-columns: 1fr;
}

.wishlist-page .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.wishlist-page .commerce-titlebar {
    margin-bottom: 14px;
}

@media (max-width: 560px) {
    .wishlist-page .wishlist-grid {
        grid-template-columns: 1fr;
    }
}
