
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #D9B2AF;
    --brand-dark: #c08d89;
    --text: #2f2a28;
    --muted: #6f6461;
    --border: #e6dedc;
    --surface: #f9f6f5;
    --surface-strong: #ffffff;
}

body {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: var(--surface);
    min-height: 100vh;
    padding: 32px 20px;
    color: var(--text);
}

.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--surface-strong);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border);
}


.cart-hero {
    padding: 18px 28px 12px;
    text-align: center;
}

.cart-hero h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.2px;
}

.cart-hero p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
}

.premium-badge-header {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.premium-indicator {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cart-content-wrapper {
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-strong);
}

.shop-table thead {
    background: #f4efee;
}

.shop-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.shop-table td {
    padding: 20px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.shop-table tbody tr:hover {
    background: #fdfbfb;
    transition: background 0.15s;
}

.product-remove {
    width: 44px;
    vertical-align: middle;
}

.remove-btn {
    background: transparent;
    color: var(--muted);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
}

.remove-btn:hover {
    background: #faf8f8;
    color: #8a3a3a;
    opacity: 1;
    transform: scale(1.1);
}

.product-thumbnail {
    width: 92px;
    vertical-align: middle;
}

.product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f4efee;
}

.shop-table td.product-name {
    vertical-align: middle !important;
    padding: 20px 12px !important;
}

.product-name {
    font-weight: 600;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.product-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.product-name a:hover {
    color: var(--brand-dark);
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #2f1d1c;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 60px;
}

.product-price {
    font-weight: 500;
    color: var(--muted);
    font-size: 14px;
}

.product-subtotal {
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
}

.product-edit {
    font-size: 12px;
    color: var(--brand-dark);
    text-decoration: underline;
    width: fit-content;
}

.product-edit:hover {
    color: var(--text);
}

.icon-trash {
    font-size: 14px;
    line-height: 1;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 500;
}

.qty-btn:hover {
    background: #faf8f8;
    border-color: #d8cbc8;
    color: var(--text);
}

.qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    background: var(--surface-strong);
    color: var(--text);
}

.qty-input:focus {
    outline: none;
    border-color: var(--brand);
}


.cart-totals {
    position: sticky;
    top: 16px;
    height: fit-content;
    grid-column: 2;
}

.totals-box {
    background: var(--surface-strong);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.totals-box h2 {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.totals-row:not(.totals-total) {
    border-bottom: none;
    margin-bottom: 4px;
}

.totals-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.total-value {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.discount-value {
    color: var(--brand-dark);
}

.coupon-section {
    margin-top: 12px;
    padding-top: 16px;
    border-top: none !important;
}

.btn-coupon-toggle {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.btn-coupon-toggle:hover {
    color: var(--brand-dark);
}

.coupon-form {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    align-items: stretch;
}

.coupon-form.show {
    display: flex;
}

@media (min-width: 481px) {
    .coupon-form.show {
        flex-direction: row;
        align-items: center;
    }
}

.coupon-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--surface-strong);
    color: var(--text);
    transition: border-color 0.2s;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--brand);
}

.coupon-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.btn-coupon-apply {
    padding: 10px 20px;
    background: var(--brand);
    color: #2f1d1c;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-coupon-apply:hover {
    background: #d4a9a5;
    transform: translateY(-1px);
}

.btn-coupon-apply:active {
    transform: translateY(0);
}

.totals-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.shipping-icon {
    font-size: 13px;
    opacity: 0.7;
    flex-shrink: 0;
}

.premium-guarantee {
    font-size: 12px;
    color: var(--text);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.guarantee-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.checkout-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 20px;
    padding: 0 28px;
}

.checkout-trust span:first-child {
    opacity: 0.7;
    flex-shrink: 0;
}

.payments-section {
    grid-column: 2;
    padding: 0 28px 28px;
}

.payments-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.payments {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.payment-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.payment-logo:hover {
    opacity: 1;
}

/* Remove confirmation modal */
.remove-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.remove-modal-content {
    background: var(--surface-strong);
    border-radius: 8px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.remove-modal-content p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 500;
}

.remove-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-remove-cancel,
.btn-remove-confirm {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.btn-remove-cancel {
    background: transparent;
    color: var(--text);
}

.btn-remove-cancel:hover {
    background: #faf8f8;
}

.btn-remove-confirm {
    background: var(--brand);
    color: #2f1d1c;
    border-color: var(--brand);
}

.btn-remove-confirm:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* Coupon message modal */
.coupon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.coupon-modal-content {
    background: var(--surface-strong);
    border-radius: 8px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.coupon-modal-icon {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1;
}

.coupon-modal-content p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.5;
}

.btn-coupon-close {
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--brand);
    color: #2f1d1c;
    font-family: inherit;
}

.btn-coupon-close:hover {
    background: #d4a9a5;
    transform: translateY(-1px);
}

.btn-coupon-close:active {
    transform: translateY(0);
}

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--brand);
    color: #2f1d1c;
    padding: 20px;
    margin-top: 16px;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(217, 178, 175, 0.35);
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 12px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 178, 175, 0.45);
    background: #d4a9a5;
    color: #2f1d1c;
    text-decoration: none;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    font-size: 1.3em;
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-continue {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-continue:hover {
    background: #f4efee;
}

/* Responsividade */
@media (max-width: 1200px) {
    .cart-container {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .cart-content-wrapper {
        grid-template-columns: 1fr 340px;
        gap: 24px;
    }
}

@media (max-width: 968px) {
    body {
        padding: 20px 16px;
        padding-bottom: 40px;
    }
    
    .cart-content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
        padding-bottom: 32px;
        display: flex;
        flex-direction: column;
    }

    .woocommerce-cart-form {
        order: 1;
    }

    .cart-totals {
        grid-column: 1 / -1;
        width: 100%;
        position: static;
        order: 2;
    }
    
    .checkout-trust {
        order: 3;
        padding: 0;
        margin-top: 16px;
    }
    
    .payments-section {
        order: 4;
        padding: 0;
        margin-top: 16px;
        margin-bottom: 24px;
        display: block !important;
        width: 100%;
        grid-column: unset !important;
    }
    
    .payments-label {
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .payments {
        padding: 0;
        margin-top: 12px;
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .cart-hero {
        padding: 16px 24px 10px;
    }
    
    .cart-hero h1 {
        font-size: 20px;
    }
    
    .cart-content-wrapper {
        padding: 20px;
    }
    
    .shop-table {
        font-size: 14px;
    }

    .shop-table th,
    .shop-table td {
        padding: 14px 10px;
    }
    
    .shop-table td.product-name {
        padding: 14px 10px !important;
    }

    .product-thumbnail {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 0;
    }
    
    .product-thumbnail img {
        width: 120px;
        height: 120px;
    }
    
    .remove-btn {
        width: 32px;
        height: 32px;
    }
    
    .totals-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
        padding-bottom: 40px;
    }
    
    .cart-container {
        border-radius: 12px;
    }
    
    .cart-hero {
        padding: 14px 20px 8px;
    }
    
    .cart-hero h1 {
        font-size: 18px;
    }
    
    .cart-hero p {
        font-size: 13px;
    }
    
    .premium-badge-header {
        gap: 10px;
        margin-top: 10px;
    }
    
    .premium-indicator {
        font-size: 11px;
    }
    
    .cart-content-wrapper {
        padding: 16px;
        padding-bottom: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .woocommerce-cart-form {
        order: 1;
    }

    .cart-totals {
        order: 2;
    }
    
    .checkout-trust {
        order: 3;
        padding: 0;
        margin-top: 16px;
        margin-bottom: 8px;
        display: flex !important;
        justify-content: center;
    }
    
    .payments-section {
        order: 4;
        margin-bottom: 0;
        margin-top: 16px;
        padding: 0;
        display: block !important;
        width: 100%;
        grid-column: unset !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .payments-label {
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
        font-size: 13px;
        color: var(--muted);
        font-weight: 500;
    }
    
    .payments {
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    
    .payment-logo {
        height: 24px;
        width: auto;
        display: block !important;
        opacity: 0.8;
    }

    .shop-table {
        font-size: 13px;
    }
    
    .shop-table thead {
        display: none;
    }
    
    .shop-table thead th.product-remove {
        display: none !important;
    }

    .shop-table tbody tr {
        display: block;
        position: relative;
        margin-bottom: 16px;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 16px;
        padding-top: 48px;
        background: var(--surface-strong);
    }

    .shop-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid var(--border);
    }
    
    .shop-table tbody td.product-remove {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        width: 0 !important;
        height: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
    }
    
    .shop-table tbody td.product-thumbnail {
        justify-content: center;
    }
    
    .shop-table tbody td.product-price,
    .shop-table tbody td.product-quantity {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .shop-table tbody td.product-price::before,
    .shop-table tbody td.product-quantity::before {
        margin-right: 0;
        margin-bottom: 0;
        order: -1;
    }
    
    .shop-table tbody td:last-child {
        border-bottom: none;
    }

    .shop-table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        margin-right: 12px;
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .product-remove {
        position: absolute;
        top: 8px;
        right: 8px;
        width: auto;
        display: block !important;
    }
    
    .shop-table tbody tr .remove-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 10;
    }
    
    .product-thumbnail {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 12px 0;
    }
    
    .product-thumbnail img {
        width: 140px;
        height: 140px;
    }
    
    .product-name {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .totals-box {
        padding: 16px;
    }
    
    .btn-checkout {
        padding: 16px;
        font-size: 16px;
    }
    
    .payments {
        gap: 8px;
    }
    
    .payment-logo {
        height: 20px;
    }
    
    .coupon-section {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .btn-coupon-apply {
        width: 100%;
    }
}
.coupon-form {
    display: none;
}

.coupon-form.show {
    display: block;
}

/* Container dos pagamentos */
body.woocommerce-cart .payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

/* Logos dos pagamentos */
body.woocommerce-cart .payments .payment-logo {
  height: 26px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}

/* Container */
body.woocommerce-cart .payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Normaliza IMG diretas */
body.woocommerce-cart .payments img.payment-logo {
  height: 26px !important;
  width: auto !important;
  max-width: 90px !important;
  max-height: 26px !important;
  object-fit: contain;
  display: block;
}

/* NORMALIZA <picture> (PayPal) */
body.woocommerce-cart .payments picture.payment-logo {
  display: flex !important;
  align-items: center;
  height: 26px !important;
  max-width: 90px !important;
}

/* Normaliza IMG dentro do picture */
body.woocommerce-cart .payments picture.payment-logo img {
  height: 26px !important;
  width: auto !important;
  max-width: 90px !important;
  max-height: 26px !important;
  object-fit: contain;
}

/* CART – remover botões + e - */
body.woocommerce-cart .product-quantity input.plus,
body.woocommerce-cart .product-quantity input.minus {
    display: none !important;
}

/* Ajustar input para ficar centralizado */
body.woocommerce-cart .product-quantity input.qty,
body.woocommerce-cart .product-quantity input.qty-input {
    width: 60px !important;
    text-align: center !important;
    padding: 6px !important;
}

