/**
 * BTA Drawer Cart - Styles
 *
 * @package Astra_For_Trailers
 * @since 1.0.0
 */

/* ==========================================================================
   Variables — BTA Design Tokens
   ========================================================================== */

:root {
    --rc-bg: #ffffff;
    --rc-border: #E2DED6;
    --rc-text: #1A1D23;
    --rc-text-light: #3A3D45;
    --rc-text-muted: #999;
    --rc-primary: #0A7A6E;
    --rc-gold: #F5B731;
}

/* ==========================================================================
   Hide Cart Page Title
   ========================================================================== */

.woocommerce-cart .entry-title,
.page-template-cart .entry-title {
    display: none;
}

/* ==========================================================================
   Hide WooCommerce "added to cart" message — drawer replaces it
   ========================================================================== */

.woocommerce-message {
    display: none !important;
}

/* ==========================================================================
   Reset Focus
   ========================================================================== */

.bta-cart *:focus,
.bta-cart *:active {
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   Cart Container
   ========================================================================== */

.bta-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--rc-bg);
}

/* ==========================================================================
   Empty Cart
   ========================================================================== */

.bta-cart__empty {
    text-align: center;
    padding: 80px 20px;
}

.bta-cart__empty-icon {
    color: var(--rc-text-muted);
    margin-bottom: 24px;
}

.bta-cart__empty h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--rc-text);
    margin: 0 0 24px;
}

/* ==========================================================================
   Cart Content (Filled)
   ========================================================================== */

.bta-cart__content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

/* ==========================================================================
   Cart Items Container
   ========================================================================== */

.bta-cart__items {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    overflow: hidden;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.product-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--rc-border);
    gap: 20px;
    transition: opacity 0.25s ease, transform 0.25s ease, height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    will-change: opacity, transform, height;
}

.product-card.is-removing {
    opacity: 0;
    transform: translateX(-20px);
    overflow: hidden;
    pointer-events: none;
}

.product-card.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-card:last-child {
    border-bottom: none;
}

/* Product Image */
.product-image {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Product Details */
.product-details {
    flex: 1;
    min-width: 0;
}

/* Product Header - Title & Delete aligned */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--rc-text);
    line-height: 1;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Delete Button */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--rc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    text-decoration: none;
    line-height: 1;
}

.delete-btn:hover {
    color: var(--rc-text);
}

.delete-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Product Bottom - Quantity & Price */
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quantity Control */
.bta-cart .quantity-control,
.bta-cart .product-card .quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--rc-border);
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    width: auto;
}

.bta-cart .qty-btn,
.bta-cart .product-card .qty-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: var(--rc-text-light);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.bta-cart .qty-btn:first-child,
.bta-cart .product-card .qty-btn:first-child {
    border-right: 1px solid var(--rc-border);
}

.bta-cart .qty-btn:last-child,
.bta-cart .product-card .qty-btn:last-child {
    border-left: 1px solid var(--rc-border);
}

.bta-cart .qty-btn:hover,
.bta-cart .product-card .qty-btn:hover {
    background-color: #f5f5f5;
}

.bta-cart .qty-input,
.bta-cart .product-card .qty-input {
    width: 32px;
    min-width: 32px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 14px;
    background: transparent;
    color: var(--rc-text);
    padding: 0;
    -moz-appearance: textfield;
    flex-shrink: 0;
}

.bta-cart .qty-input:focus,
.bta-cart .product-card .qty-input:focus {
    outline: none;
    box-shadow: none;
}

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

/* Product Price */
.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-price .amount,
.product-price .sale-price {
    font-size: 18px;
    color: var(--rc-text);
    font-weight: 600;
}

.product-price .original-price {
    font-size: 16px;
    color: var(--rc-text-muted);
    text-decoration: line-through;
}

/* Variation Info */
.variation-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rc-text-light);
    font-size: 14px;
    margin-top: 12px;
}

.variation-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.variation-text {
    line-height: 1.4;
}

.variation-text p {
    margin: 0;
}

/* ==========================================================================
   Legacy Item Styles (Cart Page)
   ========================================================================== */

.bta-cart__item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--rc-border);
}

.bta-cart__item:first-child {
    padding-top: 0;
}

.bta-cart__item:last-child {
    border-bottom: none;
}

.bta-cart__item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.bta-cart__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bta-cart__item-image a {
    display: block;
}

.bta-cart__item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bta-cart__item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--rc-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bta-cart__item-name a {
    color: inherit;
    text-decoration: none;
}

.bta-cart__item-meta {
    font-size: 13px;
    color: var(--rc-gold);
    margin-bottom: 12px;
}

.bta-cart__item-meta p {
    margin: 0;
}

.bta-cart__item-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--rc-border);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.bta-cart__qty-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--rc-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 0;
    line-height: 1;
}

.bta-cart__qty-btn:hover {
    background-color: #f5f5f5;
}

.bta-cart__qty-input {
    width: 24px;
    height: 24px;
    border: none;
    border-left: 1px solid var(--rc-border);
    border-right: 1px solid var(--rc-border);
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: var(--rc-text);
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}

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

.bta-cart__item-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--rc-text);
    text-align: right;
    min-width: 80px;
}

.bta-cart__item-remove {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--rc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.bta-cart__item-remove:hover {
    color: var(--rc-text);
}

/* ==========================================================================
   Cart Summary
   ========================================================================== */

.bta-cart__summary {
    position: sticky;
    top: 20px;
}

.bta-cart__summary-inner {
    background: transparent;
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    padding: 16px 24px 24px;
}

/* Coupon */
.bta-cart__coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.bta-cart__coupon-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--rc-border);
    border-radius: 4px;
    font-size: 14px;
}

.bta-cart__coupon-input::placeholder {
    color: var(--rc-text-muted);
}

.bta-cart__coupon-btn {
    height: 44px;
    padding: 0 20px;
    background-color: #f5f5f5;
    border: 1px solid var(--rc-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bta-cart__coupon-btn:hover {
    background-color: #ebebeb;
}

/* Subtotal */
.bta-cart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}

.bta-cart__subtotal-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--rc-text);
}

.bta-cart__subtotal-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--rc-text);
}

/* Notice */
.bta-cart__notice {
    font-size: 12px;
    color: var(--rc-text);
    margin: 0 0 16px;
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.bta-cart__btn {
    display: block;
    width: 100%;
    height: 52px;
    line-height: 52px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.bta-cart__btn--primary {
    background-color: #E4002B;
    color: #fff;
    border: none;
}

.bta-cart__btn--primary:hover {
    background-color: #b8001f;
    color: #fff;
}

.bta-cart__btn--checkout {
    background-color: #E4002B;
    color: #fff;
    border: none;
}

.bta-cart__btn--checkout:hover {
    background-color: #b8001f;
    color: #fff;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.bta-cart__item.is-loading,
.product-card.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.bta-cart__item.is-removing,
.product-card.is-removing {
    animation: btaFadeOut 0.3s ease forwards;
}

@keyframes btaFadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ==========================================================================
   Responsive - Cart Page
   ========================================================================== */

@media (max-width: 1024px) {
    .bta-cart__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bta-cart__summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .bta-cart {
        padding: 24px 16px;
    }

    .bta-cart__item {
        grid-template-columns: 70px 1fr auto;
        gap: 16px;
    }

    .bta-cart__item-price {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        min-width: auto;
    }

    .bta-cart__item-remove {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .bta-cart__item-image {
        width: 70px;
        height: 70px;
        grid-row: 1 / 3;
    }

    .bta-cart__item-name {
        font-size: 12px;
    }

    .bta-cart__summary-inner {
        padding: 20px;
    }
}

/* ==========================================================================
   Cart Preview Popup (Drawer)
   ========================================================================== */

.cart-preview-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}

.cart-preview-popup.is-open {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s 0s;
}

.cart-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-preview-popup.is-open .cart-preview-overlay {
    opacity: 1;
}

.cart-preview-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 580px;
    height: 100%;
    background: var(--rc-bg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.cart-preview-popup.is-open .cart-preview-content {
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header */
.cart-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--rc-border);
    font-family: 'Inter', sans-serif;
}

.cart-preview-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--rc-text);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-preview-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #E4002B;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 20px;
    text-align: center;
    padding: 0;
    margin: 0;
}

.cart-preview-count.is-hidden {
    display: none;
}

.cart-preview-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cart-preview-close svg {
    display: block;
    width: 24px;
    height: 24px;
}

.cart-preview-close:hover {
    opacity: 0.5;
}

/* Body */
.cart-preview-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cart-preview-body::-webkit-scrollbar {
    display: none;
}

.cart-preview-items {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-preview-items .product-card {
    border-bottom: none;
    border-radius: 0;
    position: relative;
    transition: opacity 0.25s ease, transform 0.25s ease, height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    will-change: opacity, transform, height;
}

.cart-preview-items .product-card.is-removing {
    opacity: 0;
    transform: translateX(-20px);
    overflow: hidden;
    pointer-events: none;
}

.cart-preview-items .product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    border-bottom: 1px solid var(--rc-border);
}

.cart-preview-items .product-card:last-child::after {
    display: none;
}

/* Product image in cart preview - smaller size */
.cart-preview-popup .product-image {
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.cart-preview-popup .product-image a {
    pointer-events: none;
    cursor: default;
}

/* Center product card content in cart preview */
.cart-preview-popup .product-card {
    align-items: center;
}

/* Quantity Control in Cart Preview */
.cart-preview-popup .quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--rc-border);
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    width: auto;
    gap: 0;
}

.cart-preview-popup .qty-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-text-light);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.cart-preview-popup .qty-btn:first-child {
    border-right: 1px solid var(--rc-border);
}

.cart-preview-popup .qty-btn:last-child {
    border-left: 1px solid var(--rc-border);
}

.cart-preview-popup .qty-input {
    width: 30px;
    min-width: 30px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--rc-text);
    padding: 0;
    -moz-appearance: textfield;
    flex-shrink: 0;
}

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

/* Delete Button in Cart Preview */
.cart-preview-popup .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--rc-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    text-decoration: none;
    line-height: 1;
}

.cart-preview-popup .delete-btn:hover {
    color: var(--rc-text-light);
}

.cart-preview-popup .delete-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Product title and price in cart preview */
.cart-preview-popup .product-title {
    font-size: 16px;
}

.cart-preview-popup .product-title a {
    font-size: 16px;
}

.cart-preview-popup .product-price,
.cart-preview-popup .product-price .amount {
    font-size: 14px;
    font-weight: 500;
}

.cart-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--rc-text-muted);
    text-align: center;
}

.cart-preview-empty svg {
    margin-bottom: 16px;
}

.cart-preview-empty p {
    margin: 0;
    font-size: 16px;
}

/* Footer */
.cart-preview-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--rc-border);
}

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

.cart-preview-subtotal-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--rc-text);
}

.cart-preview-subtotal-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--rc-text);
}

.cart-preview-notice {
    font-size: 12px;
    color: var(--rc-text-light);
    margin: 0 0 12px;
    text-align: center;
}

.cart-preview-buttons {
    display: flex;
}

.cart-preview-btn {
    width: 100%;
    height: 48px;
    line-height: 48px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.2s;
}

.cart-preview-btn--primary {
    background-color: #E4002B;
    color: #fff;
    border: 1px solid #E4002B;
}

.cart-preview-btn--primary:hover {
    background-color: #b8001f;
    border-color: #b8001f;
    color: #fff;
}

.cart-preview-btn--secondary {
    background-color: transparent;
    color: var(--rc-text);
    border: 1px solid var(--rc-border);
}

.cart-preview-btn--secondary:hover {
    background-color: #E4002B;
    border-color: #E4002B;
    color: #fff;
}

/* ==========================================================================
   Header Cart Icon
   ========================================================================== */

.bta-header-cart-wrap {
    display: inline-flex;
    align-items: center;
}

.bta-header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rc-text);
    text-decoration: none;
    padding: 4px;
    transition: color 0.2s;
}

.bta-header-cart:hover {
    color: var(--rc-primary);
}

.bta-header-cart svg {
    width: 24px;
    height: 24px;
    display: block;
}

.bta-header-cart .header-cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background-color: #E4002B;
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

/* ==========================================================================
   Responsive - Cart Preview Popup
   ========================================================================== */

@media (max-width: 768px) {
    .cart-preview-content {
        max-width: 100%;
    }

    .cart-preview-header {
        padding: 16px 20px;
    }

    .cart-preview-header h3 {
        font-size: 14px;
    }

    .cart-preview-count {
        width: 18px;
        height: 18px;
        font-size: 9px;
        line-height: 18px;
    }

    .cart-preview-items .product-card {
        padding: 16px 20px;
        gap: 12px;
    }

    .cart-preview-items .product-card::after {
        left: 20px;
        right: 20px;
    }

    .cart-preview-popup .product-image {
        width: 70px;
        height: 70px;
    }

    .cart-preview-popup .product-title,
    .cart-preview-popup .product-title a {
        font-size: 14px;
    }

    .cart-preview-popup .product-price,
    .cart-preview-popup .product-price .amount {
        font-size: 13px;
    }

    .cart-preview-popup .quantity-control {
        border-radius: 4px;
    }

    .cart-preview-popup .qty-btn {
        width: 26px;
        min-width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .cart-preview-popup .qty-input {
        width: 28px;
        min-width: 28px;
        height: 26px;
        font-size: 11px;
    }

    .cart-preview-popup .delete-icon {
        width: 14px;
        height: 14px;
    }

    .cart-preview-footer {
        padding: 16px 20px;
    }

    .cart-preview-notice {
        font-size: 11px;
    }

    .cart-preview-subtotal-label,
    .cart-preview-subtotal-value {
        font-size: 16px;
    }

    .cart-preview-btn {
        height: 44px;
        line-height: 44px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cart-preview-header {
        padding: 14px 16px;
    }

    .cart-preview-items .product-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .cart-preview-items .product-card::after {
        left: 16px;
        right: 16px;
    }

    .cart-preview-popup .product-image {
        width: 60px;
        height: 60px;
    }

    .cart-preview-popup .product-title,
    .cart-preview-popup .product-title a {
        font-size: 13px;
    }

    .cart-preview-popup .product-price,
    .cart-preview-popup .product-price .amount {
        font-size: 12px;
    }

    .cart-preview-popup .qty-btn {
        width: 24px;
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .cart-preview-popup .qty-input {
        width: 26px;
        min-width: 26px;
        height: 24px;
        font-size: 10px;
    }

    .cart-preview-footer {
        padding: 14px 16px;
    }

    .cart-preview-notice {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .cart-preview-subtotal {
        margin-bottom: 10px;
    }

    .cart-preview-subtotal-label,
    .cart-preview-subtotal-value {
        font-size: 14px;
    }

    .cart-preview-btn {
        height: 42px;
        line-height: 42px;
        font-size: 12px;
        border-radius: 4px;
    }
}

@media (max-width: 250px) {
    .cart-preview-popup .product-bottom {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-start;
    }

    .cart-preview-popup .product-price {
        order: -1;
        width: 100%;
        justify-content: flex-start;
    }

    .cart-preview-popup .quantity-control {
        width: auto;
    }

    .cart-preview-popup .product-header {
        margin-bottom: 6px;
    }

    .cart-preview-items .product-card {
        padding: 10px 12px;
        gap: 8px;
    }
}