/* WebVerse — Cart Page */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,900;1,300&family=DM+Sans:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #F7F5F2;
    font-family: 'DM Sans', sans-serif;
}

.wc-main {
    padding: 2.5rem 5%;
}

.wc-container {
    max-width: 1100px;
    margin: 0 auto;
}

.wc-page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wc-page-title h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #0f0e0c;
    letter-spacing: -0.03em;
}

.wc-page-title h1 em {
    font-style: italic;
    font-weight: 300;
    color: #E8430A;
}

.wc-item-count {
    font-size: 0.78rem;
    color: rgba(15, 14, 12, 0.4);
    background: rgba(15, 14, 12, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.wc-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

/* Items */
.wc-items {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.wc-item {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem;
    border: 1px solid rgba(15, 14, 12, 0.07);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.25s ease;
}

.wc-item:hover {
    box-shadow: 0 4px 20px rgba(15, 14, 12, 0.08);
}

.wc-item__img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #f5f0ea, #ede8e0);
}

.wc-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-item__info {
    flex: 1;
}

.wc-item__cat {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #E8430A;
    display: block;
    margin-bottom: 0.2rem;
}

.wc-item__name {
    font-family: 'Fraunces', serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f0e0c;
    margin-bottom: 0.25rem;
}

.wc-item__price {
    font-size: 0.8rem;
    color: rgba(15, 14, 12, 0.5);
}

.wc-item__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.wc-qty {
    display: flex;
    align-items: center;
    background: #F7F5F2;
    border-radius: 8px;
    overflow: hidden;
}

.wc-qty__btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #0f0e0c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.wc-qty__btn:hover {
    background: rgba(15, 14, 12, 0.08);
}

.wc-qty__val {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f0e0c;
}

.wc-item__total {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f0e0c;
    min-width: 90px;
    text-align: right;
}

.wc-remove {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(15, 14, 12, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.wc-remove:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

/* Empty */
.wc-empty {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.wc-empty span {
    font-size: 3rem;
}

.wc-empty p {
    font-size: 0.9rem;
    color: rgba(15, 14, 12, 0.5);
}

.wc-empty a {
    background: #0f0e0c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    transition: background 0.2s ease;
}

.wc-empty a:hover {
    background: #E8430A;
}

/* Summary */
.wc-summary {
    position: sticky;
    top: 84px;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 14, 12, 0.07);
    box-shadow: 0 2px 12px rgba(15, 14, 12, 0.05);
}

.wc-summary__title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f0e0c;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.wc-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.wc-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(15, 14, 12, 0.65);
}

.wc-summary__row--total {
    font-size: 1rem;
    font-weight: 700;
    color: #0f0e0c;
}

.free {
    color: #16a34a;
    font-weight: 600;
}

.wc-summary__free-note {
    font-size: 0.72rem;
    color: #E8430A;
    background: rgba(232, 67, 10, 0.06);
    padding: 0.45rem 0.75rem;
    border-radius: 7px;
    text-align: center;
}

.wc-summary__divider {
    height: 1px;
    background: rgba(15, 14, 12, 0.07);
}

/* Promo */
.wc-promo {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.wc-promo__input {
    flex: 1;
    border: 1px solid rgba(15, 14, 12, 0.12);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: #0f0e0c;
    outline: none;
    background: #F7F5F2;
    transition: border-color 0.2s ease;
}

.wc-promo__input:focus {
    border-color: #0f0e0c;
    background: #fff;
}

.wc-promo__input::placeholder {
    color: rgba(15, 14, 12, 0.35);
}

.wc-promo__btn {
    background: #0f0e0c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.wc-promo__btn:hover {
    background: #E8430A;
}

/* Checkout button */
.wc-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #0f0e0c;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
    transition: background 0.22s ease, transform 0.18s ease;
}

.wc-checkout-btn:hover {
    background: #E8430A;
    transform: translateY(-1px);
}

.wc-checkout-btn svg {
    transition: transform 0.2s ease;
}

.wc-checkout-btn:hover svg {
    transform: translateX(4px);
}

.wc-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    color: rgba(15, 14, 12, 0.4);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.wc-continue {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(15, 14, 12, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wc-continue:hover {
    color: #E8430A;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-layout {
        grid-template-columns: 1fr;
    }

    .wc-summary {
        position: static;
    }

    .wc-item__controls {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .wc-main {
        padding: 1.5rem 4%;
    }

    .wc-item {
        flex-wrap: wrap;
    }

    .wc-item__info {
        min-width: 0;
    }
}