/* ========================================
   Cart Page
    Matches the Growhub forest / parchment theme used across
   the site.
   ======================================== */

/*
 * Navbar clearance is now handled globally by .site-main's padding-top,
 * so the cart page just uses the shared .simple-page-hero decorative
 * spacing - no page-specific override needed anymore.
 */

.mytheme-cart-section {
    padding: 24px 0 90px;
    animation: mythemeCartFadeIn 0.5s ease both;
}

/* Alternate editorial palette. */
.mytheme-cart-section {
    color: #002f34;
}

.mytheme-cart-section a {
    color: #004a52;
}

.cart-page-hero {
    padding: 96px 0 28px;
}

.mytheme-cart-section .container,
.mytheme-cart-wrap,
.mytheme-cart-main,
.cart-collaterals {
    min-width: 0;
    max-width: 100%;
}

@keyframes mythemeCartFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mytheme-cart-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.mytheme-cart-main {
    flex: 1 1 620px;
    width: 100%;
    min-width: 0;
}

/* ========================================
   Cart items table
   ======================================== */

.mytheme-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--shop-radius, 16px);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--shop-border, #f9fafb);
    transition: box-shadow 0.3s ease;
}

.mytheme-cart-table thead th {
    background: linear-gradient(135deg, var(--shop-ink, #1f2937) 0%, #002f34 100%);
    color: #ffffff;
    text-align: left;
    padding: 18px 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.mytheme-cart-table thead th.product-remove,
.mytheme-cart-table thead th.product-thumbnail {
    width: 1%;
}

.mytheme-cart-table thead th.product-remove {
    text-align: right;
}

.mytheme-cart-table tbody tr.cart_item {
    border-bottom: 1px solid #f9fafb;
    transition: background 0.25s ease;
    animation: mythemeCartRowIn 0.45s ease both;
}

.mytheme-cart-table tbody tr.cart_item:hover {
    background: #f9fafb;
}

.mytheme-cart-table tbody tr.cart_item:nth-child(1) {
    animation-delay: 0.03s;
}

.mytheme-cart-table tbody tr.cart_item:nth-child(2) {
    animation-delay: 0.09s;
}

.mytheme-cart-table tbody tr.cart_item:nth-child(3) {
    animation-delay: 0.15s;
}

.mytheme-cart-table tbody tr.cart_item:nth-child(4) {
    animation-delay: 0.21s;
}

.mytheme-cart-table tbody tr.cart_item:nth-child(5) {
    animation-delay: 0.27s;
}

.mytheme-cart-table tbody tr.cart_item:nth-child(n+6) {
    animation-delay: 0.3s;
}

@keyframes mythemeCartRowIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mytheme-cart-table tbody tr.cart_item:last-child {
    border-bottom: none;
}

.mytheme-cart-table td {
    padding: 20px 14px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--shop-ink, #1f2937);
}

/* --- Remove / delete column (now the last column, right-aligned) --- */

.mytheme-cart-table .product-remove {
    text-align: right;
}

.mytheme-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #6b7280;
    background: #f9fafb;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mytheme-cart-remove svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.mytheme-cart-remove:hover {
    background: var(--shop-maroon, #f59e0b);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 47, 52, 0.35);
}

.mytheme-cart-remove:active {
    transform: scale(0.95);
}

/* --- Product image preview --- */

.mytheme-cart-table .product-thumbnail {
    text-align: center;
}

.mytheme-cart-table .product-thumbnail a {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
}

.mytheme-cart-table .product-thumbnail img {
    width: 76px !important;
    height: 76px !important;
    max-width: 76px !important;
    object-fit: cover !important;
    border-radius: 12px;
    display: block;
    transition: transform 0.4s ease;
}

.mytheme-cart-table tr.cart_item:hover .product-thumbnail img {
    transform: scale(1.08);
}

.mytheme-cart-table .product-name a {
    color: var(--shop-ink, #1f2937);
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    background-image: linear-gradient(var(--shop-maroon, #f59e0b), var(--shop-maroon, #f59e0b));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1.5px;
    transition: color 0.2s ease, background-size 0.3s ease;
    display: inline-block;
}

.mytheme-cart-table .product-name a:hover {
    color: var(--shop-maroon, #f59e0b);
    background-size: 100% 1.5px;
}

.mytheme-cart-table .product-name dl {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.mytheme-cart-table .product-price,
.mytheme-cart-table .product-subtotal {
    font-weight: 700;
    white-space: nowrap;
}

.mytheme-cart-table .product-price {
    color: #1f2937;
}

.mytheme-cart-table .product-subtotal {
    color: var(--shop-maroon, #f59e0b);
    font-size: 15px;
}

/* ========================================
   Quantity stepper (− / input / +)
   ======================================== */

.mytheme-qty-box {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid var(--shop-border, #f9fafb);
    border-radius: 50px;
    overflow: hidden;
    background: #f9fafb;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mytheme-qty-box:hover {
    border-color: #e5e7eb;
}

.mytheme-qty-box:focus-within {
    border-color: var(--shop-maroon, #f59e0b);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 47, 52, 0.1);
}

.mytheme-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    border: none;
    background: transparent;
    color: var(--shop-ink, #1f2937);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.mytheme-qty-btn:hover {
    background: var(--shop-maroon, #f59e0b);
    color: #ffffff;
}

.mytheme-qty-btn:active {
    transform: scale(0.9);
}

.mytheme-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
    color: var(--shop-ink, #1f2937);
    transform: none;
}

.mytheme-qty-box .quantity {
    display: inline-flex;
}

.mytheme-qty-box .qty {
    width: 42px;
    border: none;
    background: transparent;
    text-align: center;
    padding: 9px 2px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: var(--shop-ink, #1f2937);
    -moz-appearance: textfield;
}

.mytheme-qty-box .qty::-webkit-outer-spin-button,
.mytheme-qty-box .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mytheme-qty-box .qty:focus {
    outline: none;
}

/* Real WooCommerce "Update cart" submit button - kept in the DOM (so its
   name="update_cart" value still posts, which WooCommerce needs to save
   quantity changes) but hidden from view. The quantity +/- buttons and
   typing in the field trigger a click on it automatically - see cart.js. */
.mytheme-update-cart-trigger {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========================================
   Coupon box - a separate card below the items table
   ======================================== */

.mytheme-cart-coupon {
    margin-top: 20px;
    background: #ffffff;
    border-radius: var(--shop-radius, 16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--shop-border, #f9fafb);
    padding: 22px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    animation: mythemeCartFadeIn 0.5s ease 0.05s both;
}

.mytheme-cart-coupon-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shop-ink, #1f2937);
    flex: 0 0 auto;
}

.mytheme-cart-coupon-label svg {
    color: var(--shop-maroon, #f59e0b);
    flex-shrink: 0;
}

.mytheme-cart-coupon-fields {
    display: flex;
    flex: 1 1 260px;
    flex-wrap: wrap;
    gap: 10px;
}

.mytheme-cart-coupon .input-text {
    flex: 1 1 180px;
    padding: 12px 18px;
    border: 1.5px solid var(--shop-border, #f9fafb);
    border-radius: 50px;
    font-size: 13.5px;
    background: #f9fafb;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mytheme-cart-coupon .input-text:focus {
    outline: none;
    border-color: var(--shop-maroon, #f59e0b);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 47, 52, 0.1);
}

.mytheme-cart-coupon .button {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    padding: 12px 26px;
    background: var(--shop-ink, #1f2937) !important;
    color: #ffffff !important;
    border: 2px solid var(--shop-ink, #1f2937) !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.mytheme-cart-coupon .button:disabled,
.mytheme-cart-coupon .button[disabled] {
    background: var(--shop-ink, #1f2937) !important;
    color: #ffffff !important;
    border-color: var(--shop-ink, #1f2937) !important;
    opacity: 1 !important;
    cursor: pointer;
}

.mytheme-cart-coupon .button:hover {
    background: var(--shop-maroon, #f59e0b);
    border-color: var(--shop-maroon, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 47, 52, 0.25);
}

.mytheme-cart-coupon .button:active {
    transform: translateY(0);
}

/* ========================================
   Totals / checkout sidebar
   ======================================== */

.cart-collaterals {
    flex: 0 1 360px;
    width: 100%;
    min-width: 300px;
}

.cart-collaterals .cart_totals {
    position: relative;
    width: 100% !important;
    float: none !important;
    background: #ffffff;
    border-radius: var(--shop-radius, 16px);
    padding: 28px 26px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--shop-border, #f9fafb);
    position: sticky;
    top: 24px;
    overflow: hidden;
    animation: mythemeCartFadeIn 0.5s ease 0.1s both;
    box-sizing: border-box;
}

.cart-collaterals .cart_totals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--shop-maroon, #f59e0b), var(--shop-maroon-dark, #002f34));
}

.cart-collaterals .cart_totals>h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--shop-ink, #1f2937);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.cart-collaterals table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.cart-collaterals table.shop_table tr {
    border-bottom: 1px solid #f9fafb;
    transition: background 0.2s ease;
}

.cart-collaterals table.shop_table tr:hover {
    background: #f9fafb;
}

.cart-collaterals table.shop_table th,
.cart-collaterals table.shop_table td {
    padding: 13px 2px;
    font-size: 14px;
    color: var(--shop-ink, #1f2937);
    text-align: left;
    vertical-align: top;
}

.cart-collaterals table.shop_table th {
    font-weight: 600;
    color: #6b7280;
}

.cart-collaterals table.shop_table .order-total th,
.cart-collaterals table.shop_table .order-total td {
    border-top: 2px solid var(--shop-ink, #1f2937);
    border-bottom: none;
    font-size: 17px;
    font-weight: 800;
    padding-top: 18px;
}

.cart-collaterals table.shop_table .order-total th {
    padding-left: 10px;
}

.cart-collaterals table.shop_table .order-total .amount {
    color: var(--shop-maroon, #f59e0b);
}

/* Only the Total (and the coupon/discount row, when a coupon is applied)
   should show in the totals card - no subtotal breakdown, no shipping
   method, address, or "Change address" link. */
.cart-collaterals table.shop_table tr.cart-subtotal,
.cart-collaterals table.shop_table tr.shipping {
    display: none !important;
}

/* --- Shipping row (methods list + "change address" link) --- */

.cart-collaterals .woocommerce-shipping-totals ul#shipping_method {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-collaterals .woocommerce-shipping-totals ul#shipping_method li {
    font-size: 13.5px;
    color: var(--shop-ink, #1f2937);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-collaterals .woocommerce-shipping-totals ul#shipping_method input[type="radio"] {
    accent-color: var(--shop-maroon, #f59e0b);
    width: 15px;
    height: 15px;
}

.cart-collaterals .woocommerce-shipping-destination {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: #6b7280;
}

.cart-collaterals .shipping-calculator-button {
    display: inline-block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--shop-maroon, #f59e0b) !important;
    text-decoration: none !important;
}

.cart-collaterals .shipping-calculator-button:hover {
    text-decoration: underline !important;
}

.cart-collaterals .shipping-calculator-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--shop-border, #f9fafb);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-collaterals .shipping-calculator-form select,
.cart-collaterals .shipping-calculator-form input[type="text"] {
    padding: 9px 12px;
    border: 1.5px solid var(--shop-border, #f9fafb);
    border-radius: 10px;
    font-size: 13px;
    background: #f9fafb;
}

.cart-collaterals .shipping-calculator-form .button {
    align-self: flex-start;
    padding: 9px 20px;
    background: var(--shop-ink, #1f2937);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
}

.wc-proceed-to-checkout {
    margin-top: 22px;
}

.wc-proceed-to-checkout a.checkout-button {
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    box-sizing: border-box;
    padding: 16px 18px !important;
    background: linear-gradient(135deg, var(--shop-ink, #1f2937) 0%, #002f34 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.35s ease;
}

.wc-proceed-to-checkout a.checkout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background: linear-gradient(135deg, var(--shop-maroon, #f59e0b) 0%, var(--shop-maroon-dark, #002f34) 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 47, 52, 0.35);
}

.wc-proceed-to-checkout a.checkout-button:hover::before {
    left: 120%;
}

.wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(-1px);
}

/* ========================================
   Empty cart state
   ======================================== */

.mytheme-cart-empty {
    position: relative;
    max-width: 460px;
    margin: 30px auto 0;
    text-align: center;
    padding: 60px 36px 50px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--shop-border, #f9fafb);
    overflow: hidden;
    animation: mythemeCartFadeIn 0.55s ease both;
}

.mytheme-cart-empty::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 47, 52, 0.08) 0%, rgba(0, 47, 52, 0) 70%);
    border-radius: 50%;
}

.mytheme-cart-empty::after {
    content: '';
    position: absolute;
    bottom: -90px;
    left: -90px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.05) 0%, rgba(26, 26, 26, 0) 70%);
    border-radius: 50%;
}

.mytheme-cart-empty svg {
    position: relative;
    display: block;
    color: var(--shop-maroon, #f59e0b);
    margin: 0 auto 24px;
    width: 74px;
    height: 74px;
    animation: mythemeCartBagFloat 3.2s ease-in-out infinite;
}

@keyframes mythemeCartBagFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(-4deg);
    }
}

.mytheme-cart-empty-message {
    position: relative;
    font-size: 19px;
    font-weight: 700;
    color: var(--shop-ink, #1f2937);
    margin-bottom: 8px;
}

.mytheme-cart-empty-action {
    position: relative;
    margin-top: 24px;
}

/*
 * Specificity note: WooCommerce's own core stylesheet styles ".button"
 * links as "<context> a.button" (a class + a tag = higher specificity
 * than a plain 2-class selector), which was silently beating this rule
 * and leaving the "Return to shop" link rendered in WooCommerce's washed
 * out default gray instead of this theme's button style. Matching that
 * same "context a.button" shape (and adding explicit, non-variable
 * fallback colors with !important) guarantees this always wins.
 */
.mytheme-cart-empty-action a.mytheme-checkout-button,
.mytheme-cart-empty a.button,
.mytheme-cart-empty-action .mytheme-checkout-button,
.mytheme-cart-empty .button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    width: auto;
    background: var(--shop-ink, #1f2937) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none;
    transition: all 0.3s ease;
}

.mytheme-cart-empty-action a.mytheme-checkout-button::after,
.mytheme-cart-empty a.button::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

.mytheme-cart-empty-action a.mytheme-checkout-button:hover,
.mytheme-cart-empty a.button:hover {
    background: var(--shop-maroon, #f59e0b) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 47, 52, 0.3);
}

.mytheme-cart-empty-action a.mytheme-checkout-button:hover::after,
.mytheme-cart-empty a.button:hover::after {
    transform: translateX(4px);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
    .mytheme-cart-wrap {
        flex-direction: column;
        /* Match the coupon box's own spacing above it (margin-top: 20px
           on .mytheme-cart-coupon) instead of the wider desktop gap,
           so the stacked coupon -> totals gap doesn't look oversized. */
        gap: 20px !important;
    }

    .cart-collaterals {
        flex-basis: auto;
    }

    .cart-collaterals .cart_totals {
        position: static;
    }
}

@media (max-width: 700px) {
    .cart-page-hero {
        margin-top: 24px;
    }

    .mytheme-cart-table thead {
        display: none;
    }

    .mytheme-cart-table,
    .mytheme-cart-table tbody,
    .mytheme-cart-table tr.cart_item {
        display: block;
        width: 100%;
    }

    .mytheme-cart-table tr.cart_item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name     remove"
            "size     size"
            "pot      pot"
            "qty      subtotal";
        align-items: center;
        gap: 10px 12px;
        padding: 16px 14px;
        box-sizing: border-box;
        margin-bottom: 12px;
        border: 1px solid var(--shop-border, #f9fafb);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    }

    .mytheme-cart-table td {
        padding: 0;
        border: none;
    }

    .mytheme-cart-table .product-name {
        grid-area: name;
    }

    .mytheme-cart-table .product-size {
        grid-area: size;
    }

    .mytheme-cart-table .product-pot {
        grid-area: pot;
    }

    .mytheme-cart-table .product-quantity {
        grid-area: qty;
    }

    .mytheme-cart-table .product-subtotal {
        grid-area: subtotal;
        text-align: right;
    }

    .mytheme-cart-table .product-remove {
        grid-area: remove;
        align-self: start;
        justify-self: end;
        text-align: right;
        padding-right: 0;
    }

    /* Small captions for the size / pot cells (e.g. "PLANT SIZE"). */
    .mytheme-cart-table .product-size::before,
    .mytheme-cart-table .product-pot::before {
        content: attr(data-title);
        display: block;
        margin-bottom: 4px;
        color: #6b7280;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .mytheme-cart-table .product-size .mytheme-cart-extra-name {
        display: inline;
        margin-right: 8px;
    }

    .mytheme-cart-table .product-size .mytheme-cart-cell-price {
        display: inline;
    }

    .mytheme-cart-coupon {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
    }

    .mytheme-cart-coupon-fields {
        display: grid;
        flex: 0 0 auto;
        gap: 6px;
        width: 100%;
    }

    .mytheme-cart-coupon .button {
        width: 100%;
        height: 36px !important;
        min-height: 0 !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        margin: 0 !important;
        justify-content: center;
    }

    .mytheme-cart-coupon .input-text {
        width: 100%;
        height: 36px !important;
        min-height: 0 !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        line-height: 36px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .mytheme-cart-empty {
        padding: 46px 22px 40px;
    }

    .cart-collaterals .cart_totals {
        padding: 18px 14px 20px;
    }

    .cart-collaterals .cart_totals>h2 {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .cart-collaterals table.shop_table th,
    .cart-collaterals table.shop_table td {
        padding: 8px 0;
        font-size: 12px;
    }

    .cart-collaterals table.shop_table .order-total th,
    .cart-collaterals table.shop_table .order-total td {
        padding-top: 12px;
        font-size: 15px;
    }

    .cart-collaterals table.shop_table .order-total td {
        padding-right: 10px;
        text-align: right;
    }

    .cart-collaterals .shipping-calculator-form {
        gap: 6px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .cart-collaterals .shipping-calculator-form select,
    .cart-collaterals .shipping-calculator-form input[type="text"],
    .cart-collaterals .shipping-calculator-form .button {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 12px;
        box-sizing: border-box;
    }

    .wc-proceed-to-checkout {
        margin-top: 12px;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .wc-proceed-to-checkout a.checkout-button {
        padding: 11px 14px !important;
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .cart-page-hero {
        padding: 64px 0 24px;
    }

    .mytheme-cart-section {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .mytheme-cart-wrap {
        margin-top: 10px;
    }

    .mytheme-cart-table tr.cart_item {
        gap: 8px 10px;
        padding: 14px 10px;
    }

    .mytheme-cart-table .product-thumbnail a,
    .mytheme-cart-table .product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
    }

    .mytheme-cart-table .product-name a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .cart-collaterals .cart_totals {
        padding: 16px 12px 10px;
    }
}

/* ========================================
   WooCommerce notices (coupon apply/remove,
   cart errors) - core WooCommerce prints
   these via wc_print_notices(), but the
   theme never styled them, so they were
   rendering essentially invisible.
   ======================================== */

.woocommerce-notices-wrapper {
    max-width: 900px;
    margin: 0 auto 24px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    position: relative;
    list-style: none;
    margin: 0 0 16px;
    padding: 16px 20px 16px 50px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    animation: mythemeCartFadeIn 0.4s ease both;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.woocommerce-error {
    background: #f9fafb;
    color: var(--shop-maroon, #f59e0b);
    border: 1.5px solid rgba(0, 47, 52, 0.25);
}

.woocommerce-error::before {
    background: var(--shop-maroon, #f59e0b);
}

.woocommerce-message {
    background: #f9fafb;
    color: #004a52;
    border: 1.5px solid rgba(0, 74, 82, 0.25);
}

.woocommerce-message::before {
    background: #004a52;
}

.woocommerce-info {
    background: #f9fafb;
    color: #002f34;
    border: 1.5px solid rgba(0, 47, 52, 0.25);
}

.woocommerce-info::before {
    background: #002f34;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    list-style: none;
    margin: 0;
}

.woocommerce-error a.button,
.woocommerce-message a.button,
.woocommerce-info a.button {
    display: inline-block;
    margin-left: 12px;
    padding: 6px 16px;
    background: var(--shop-ink, #1f2937) !important;
    color: #ffffff !important;
    border-radius: 50px;
    font-size: 12.5px;
    text-decoration: none !important;
}

/* ========================================
   Plant + size + pot: one cart line = ONE row
   Columns: Product | Plant size | Pot | Quantity | Total | Actions
   ======================================== */

.mytheme-cart-table thead th.product-name {
    width: 30%;
}

.mytheme-cart-table thead th.product-remove {
    width: 1%;
    text-align: center;
    padding-left: 10px;
    padding-right: 20px;
}

.mytheme-cart-table td.product-remove {
    text-align: center;
    padding-right: 20px;
}

/* image + text, side by side (used by the Product and Pot cells) */
.mytheme-cart-cell-media {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mytheme-cart-cell-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mytheme-cart-cell-price {
    display: block;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mytheme-cart-table .product-pot .product-thumbnail a,
.mytheme-cart-table .product-pot .product-thumbnail img,
.mytheme-cart-table .mytheme-cart-static-thumb,
.mytheme-cart-table .mytheme-cart-static-thumb img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
}

.mytheme-cart-table .mytheme-cart-static-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    cursor: default;
}

/* The default plastic pot looks "selected" (same ring as the selected pot
   card on the product page) but isn't a link. */
.mytheme-cart-table .is-default-pot .mytheme-cart-static-thumb {
    box-shadow: 0 0 0 2px var(--shop-maroon, #002f34);
}

.mytheme-cart-table .product-pot a {
    color: var(--shop-ink, #1f2937);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.mytheme-cart-table .product-size,
.mytheme-cart-table .product-pot {
    vertical-align: middle;
}

.mytheme-cart-table .product-size .mytheme-cart-extra-name {
    display: block;
    margin-bottom: 3px;
}

.mytheme-cart-extra-name {
    color: var(--shop-ink, #1f2937);
    font-size: 14px;
    font-weight: 700;
}

.mytheme-cart-free {
    color: var(--shop-maroon, #002f34);
    font-weight: 700;
}

.mytheme-cart-none {
    color: #9ca3af;
}

@media (max-width: 1000px) {
    .mytheme-cart-table td {
        padding: 16px 10px;
    }

    .mytheme-cart-table thead th {
        padding: 16px 10px;
    }
}

.mytheme-cart-cell-media .product-thumbnail {
    flex-shrink: 0;
}