:root {
    --primary-color: #800000;
    --primary-dark: #5a0000;
    --primary-light: #a52a2a;
    --accent-color: #ffb347;
    --accent-light: #ffcc33;
    --error-color: #c62828;
    --error-light: #ffebee;
    --border-color: #e0e0e0;
    --bg-light: #fafafa;
    --bg-hover: rgba(128, 0, 0, 0.03);
    --text-dark: #222;
    --text-medium: #333;
    --text-muted: #777;
    --text-light: #666;
    --bg-card: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(128, 0, 0, 0.15);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    --gradient-button: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.wp-block-woocommerce-cart {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.wp-block-woocommerce-cart:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(128, 0, 0, 0.1);
}

.wc-block-cart-items {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.wc-block-cart-items th {
    background: var(--bg-light);
    padding: 1.25rem 1rem;
    text-align: right;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-block-cart-items td {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1rem;
    vertical-align: middle;
    transition: var(--transition);
}

.wc-block-cart-items__row {
    transition: var(--transition);
}

.wc-block-cart-items__row:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.wc-block-cart-item__image {
    position: relative;
}

.wc-block-cart-item__image img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid #fff;
}

.wc-block-cart-item__image:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
}

.wc-block-components-product-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
}

.wc-block-components-product-name:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.wc-block-components-product-metadata {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.wc-block-cart-item__remove-link {
    background: var(--error-light);
    color: var(--error-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wc-block-cart-item__remove-link:hover {
    background: var(--error-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

.wc-block-components-quantity-selector {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    transition: var(--transition);
}

.wc-block-components-quantity-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.wc-block-components-quantity-selector__input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 0.5rem;
    background: #fff;
    font-weight: 600;
    color: var(--text-dark);
}

.wc-block-components-quantity-selector__input:focus {
    outline: none;
    background: var(--bg-light);
}

.wc-block-components-quantity-selector__button {
    background: var(--bg-light);
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-medium);
    transition: var(--transition);
    min-width: 40px;
}

.wc-block-components-quantity-selector__button:hover {
    background: var(--primary-color);
    color: white;
}

.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wc-block-cart__sidebar {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.wc-block-cart__sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.wc-block-cart__totals-title {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.wc-block-components-totals-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.wc-block-components-totals-item:last-child {
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}

.wc-block-components-totals-item__label {
    font-weight: 600;
    color: var(--text-medium);
}

.wc-block-components-totals-item__value {
    font-weight: 700;
    color: var(--primary-color);
}

.wc-block-cart__submit-button {
    background: var(--gradient-button);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    transition: var(--transition);
    width: 100%;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.wc-block-cart__submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.wc-block-cart__submit-button:hover {
    transform: translateY(-2px);
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.4);
}

.wc-block-cart__submit-button:hover::before {
    left: 100%;
}

.wc-block-components-totals-coupon {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.wc-block-components-totals-coupon:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.wc-block-components-totals-coupon__content {
    display: flex;
    gap: 0.5rem;
}

.wc-block-components-totals-coupon .wc-block-components-text-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.wc-block-components-totals-coupon .wc-block-components-text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.wc-block-components-totals-coupon .wc-block-components-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.wc-block-components-totals-coupon .wc-block-components-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.wc-block-cart__empty-cart-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.wc-block-cart__empty-cart-message::before {
    content: "🛒";
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.wc-block-components-loading-mask {
    opacity: 0.7;
    pointer-events: none;
}

.wc-block-cart__continue-shopping {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wc-block-cart__continue-shopping:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .wp-block-woocommerce-cart {
        padding: 1.5rem;
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .wc-block-cart-items th,
    .wc-block-cart-items td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }

    .wc-block-cart-item__image img {
        width: 60px;
        height: 60px;
    }

    .wc-block-cart__sidebar {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .wc-block-components-quantity-selector {
        max-width: 120px;
    }

    .wc-block-components-quantity-selector__input {
        width: 40px;
    }

    .wc-block-cart__submit-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wp-block-woocommerce-cart {
        padding: 1rem;
        border-radius: 12px;
    }

    .wc-block-cart-items {
        font-size: 0.8rem;
    }

    .wc-block-cart-item__image img {
        width: 50px;
        height: 50px;
    }

    .wc-block-cart-item__remove-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .wc-block-components-totals-coupon__content {
        flex-direction: column;
    }
}

@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --bg-light: #fff;
        --shadow: 0 0 0 1px #000;
    }
    
    .wc-block-cart-items__row:hover {
        background: #fff;
        outline: 2px solid #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition: none;
    }
    
    .wc-block-cart-items__row:hover {
        transform: none;
    }
    
    .wc-block-cart__submit-button::before {
        display: none;
    }
    
    .wc-block-cart__submit-button:hover {
        transform: none;
    }
}

:root {
    --primary-color: #800000;
    --primary-dark: #5a0000;
    --border-color: #e0e0e0;
    --bg-light: #fafafa;
    --text-dark: #222;
    --text-muted: #777;
    --border-radius: 8px;
}

.wp-block-woocommerce-checkout {
    margin-bottom: 2rem;
}

.wc-block-components-checkout-step {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.wc-block-components-checkout-step__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.wc-block-components-text-input,
.wc-block-components-country-input,
.wc-block-components-state-input,
.wc-block-components-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.wc-block-components-text-input:focus,
.wc-block-components-country-input:focus,
.wc-block-components-state-input:focus,
.wc-block-components-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.wc-block-components-text-input label,
.wc-block-components-checkbox__label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    display: block;
}

.wc-block-components-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wc-block-components-checkbox__input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
}

.wc-block-components-checkbox__input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.wc-block-components-radio-control__option {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.wc-block-components-radio-control__option--checked {
    border-color: var(--primary-color);
    background: #fff;
}

.wc-block-components-radio-control__label {
    font-weight: 600;
    color: var(--text-dark);
}

.wc-block-checkout__sidebar {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.wc-block-components-order-summary__heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.wc-block-components-order-summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.wc-block-components-order-summary-item__image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.wc-block-components-order-summary-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-block-components-order-summary-item__title {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.wc-block-components-order-summary-item__price {
    font-weight: 700;
    color: var(--primary-color);
}

.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.wc-block-components-totals-item:last-child {
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 0;
}

.wc-block-components-totals-item__label {
    font-weight: 600;
    color: var(--text-dark);
}

.wc-block-components-totals-item__value {
    font-weight: 700;
    color: var(--primary-color);
}

.wc-block-components-checkout-place-order-button {
    background: var(--primary-color);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    width: 100%;
    text-decoration: none;
    display: block;
    margin-top: 1rem;
    cursor: pointer;
}

.wc-block-components-checkout-place-order-button:hover {
    background: var(--primary-dark);
}

.wc-block-checkout__return-to-cart {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.wc-block-checkout__return-to-cart:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.wc-block-components-notice {
    background: #ffebee;
    border: 1px solid #c62828;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #c62828;
    font-weight: 500;
}

@media (max-width: 768px) {
    .wc-block-components-checkout-step {
        padding: 1rem;
    }
    
    .wc-block-checkout__sidebar {
        padding: 1rem;
    }
    
    .wc-block-components-checkout-place-order-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}
#guest-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guest-auth-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}

.guest-auth-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    width: 400px;
    max-width: 95%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10;
    overflow-y: auto;
    max-height: 90vh;
}

.guest-auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
