/* Cart: floating cart button, Add to Cart box, cart page */

/* Make sure anything marked hidden really stays hidden */
[hidden] {
    display: none !important;
}

/* Honeypot: moved off-screen so people never see it, but bots still find and fill it */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cart-badge {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    padding: 12px 22px;
    background: #1d1d2b;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-badge:hover,
.cart-badge:focus-visible {
    background: #ff2e93;
    transform: translateY(-2px);
}

.cart-badge:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Product pages */
.add-to-cart .price {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 6px;
}

.cart-message {
    text-align: center;
    font-weight: bold;
    min-height: 1.3em;
    margin: 12px 0 0;
}

.cart-message a,
.cart-empty a,
.cart-item-name {
    color: #1d1d2b;
}

.order-form button:disabled {
    background: #777777;
    cursor: not-allowed;
    transform: none;
}

/* Cart page */
.cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.cart-item-name {
    flex: 1 1 100%;
    font-weight: bold;
}

.cart-item-price {
    min-width: 90px;
}

.cart-item-total {
    min-width: 70px;
    margin-left: auto;
    font-weight: bold;
    text-align: right;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qty {
    min-width: 1.5em;
    text-align: center;
    font-weight: bold;
}

.order-form .qty-controls button,
.order-form .remove-button {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 6px 12px;
    font-size: 16px;
    box-shadow: none;
}

.order-form .remove-button {
    background: transparent;
    color: #1d1d2b;
    text-decoration: underline;
    padding: 6px 4px;
}

.order-form .remove-button:hover,
.order-form .remove-button:focus-visible {
    background: transparent;
    color: #ff2e93;
    transform: none;
}

.totals {
    margin-top: 18px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.totals-deal {
    color: #1b7f3b;
    font-weight: bold;
}

.totals-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid #1d1d2b;
    font-size: 1.25em;
    font-weight: bold;
}

.cart-empty {
    text-align: center;
    font-size: 1.15em;
}

.order-total {
    font-size: 1.2em;
    font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
    .cart-badge {
        transition: none;
    }
}
