/* Use Montserrat font everywhere */
.shopping-list-table,
.shopping-list-table th,
.shopping-list-table td,
.shopping-list-add-to-cart-btn,
.shopping-list-empty,
.view-shopping-list-link {
    font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Main table wrapper */
.shopping-list-table-wrapper {
    margin: 2rem auto;
    text-align: center;
    width: 100%;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
}

/* Shopping List Table */
.shopping-list-table {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 44px;
    font-size: 15px;
    width: 100%;
    min-width: 320px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    box-sizing: border-box;
}

.shopping-list-table th,
.shopping-list-table td {
    padding: 15px 12px;
    text-align: center !important;
    vertical-align: middle;
    font-size: 15px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.shopping-list-table th {
    font-weight: 700;
    font-size: 1.1rem;
    color: #363636;
    background: #fff;
    text-align: center !important;
}

.shopping-list-table tbody tr:nth-child(even) {
    background: #f7fafb;
}

.shopping-list-table img {
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 5px;
    max-width: 80px;
}

/* Normal state */
.shopping-list-button {
    background: #C9B98A !important;
    border: none;
    color: #fff !important;
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 600;
    border-radius: 20px;
    padding: 10px 16px 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 1px !important;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(201,185,138,0.07);
    margin: 0 auto 18px auto;
    outline: none;
}

.shopping-list-button i {
    color: #fff !important;
    font-size: 12px !important;
    margin-right: 9px;
    transition: color 0.2s;
    display: inline-block;
    vertical-align: middle;
}


/* Active/Added state */
.shopping-list-button.shopping-list-added,
.shopping-list-button:active {
    background: #000 !important;
    color: #fff !important;
}

.shopping-list-button.shopping-list-added i,
.shopping-list-button:active i {
    color: #fff !important; /* White heart */
}

/* On hover */
.shopping-list-button:hover,
.shopping-list-button:focus {
    background: #000 !important;
    color: #fff !important;
}
.shopping-list-button:hover i,
.shopping-list-button:focus i {
    color: #fff !important;
}

/* Add to Cart Button - Centered and Responsive */
.shopping-list-add-to-cart-btn {
    background: #000 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 26px;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 15px !important;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    outline: none;
    border: none;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 auto !important;
}
.shopping-list-add-to-cart-btn:hover {
    background: #C9B98A !important;
    color: #000 !important;
}

/* Trash (Remove) Button */
.remove-from-shopping-list {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    transition: color 0.2s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 52px;
    width: 100%;
    margin: 0 !important;
    font-size: 17px !important;
}
.remove-from-shopping-list i {
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
    vertical-align: middle !important;
}
.remove-from-shopping-list:hover i {
    color: #C9B98A !important;
}

/* Empty State */
.shopping-list-empty {
    text-align: center;
    color: #bbb;
    font-size: 22px;
    margin: 60px 0;
    font-family: 'Montserrat', Arial, sans-serif !important;
    width: 100%;
}

/* "View Shopping List" Link */
.view-shopping-list-link {
    font-size: 15px !important;
    color: #000 !important;
    font-weight: 600;
    margin-left: 12px;
    display: inline-block;
    text-align: center;
}
.view-shopping-list-link:hover {
    color: #C9B98A !important;
    text-decoration: underline !important;
}

/* Table Cell and Button Centering */
.shopping-list-table td > * {
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
    display: block;
}

/* Responsive label font size */
.shopping-list-label, .redirect-to-product {
    font-size: 13px !important;
    text-align: center !important;
    display: block;
}

/* Trash icon cell: full center */
.shopping-list-table td:first-child,
.shopping-list-table th:first-child {
    vertical-align: middle !important;
    text-align: center !important;
    width: 64px;
    min-width: 48px;
    max-width: 72px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ----------- RESPONSIVE STACKING FOR MOBILE ----------- */
@media (max-width: 700px) {
    .shopping-list-table-wrapper {
        max-width: 99vw;
        padding: 0 2vw;
    }
    .shopping-list-table {
        font-size: 13px;
    }
}

/* STACK EACH PRODUCT ROW ON MOBILE */
@media (max-width: 600px) {
    .shopping-list-table,
    .shopping-list-table thead,
    .shopping-list-table tbody,
    .shopping-list-table th,
    .shopping-list-table td,
    .shopping-list-table tr {
        display: block;
        width: 100%;
    }
    .shopping-list-table thead tr {
        display: none;
    }
    .shopping-list-table tbody tr {
        margin-bottom: 32px;
        background: #fff !important;
        border-radius: 12px;
        box-shadow: 0 2px 7px rgba(201,185,138,0.07);
        padding: 0 0 18px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #eee;
        width: 100%;
    }
    .shopping-list-table td {
        padding: 8px 6px;
        text-align: center;
        border: none;
        width: 100%;
        box-sizing: border-box;
    }
    .shopping-list-table td > * {
        margin: 0 auto 0 auto;
        width: 100%;
        max-width: 98vw;
        display: block;
        text-align: center !important;
    }
    .shopping-list-add-to-cart-btn,
    .shopping-list-view-options-btn {
        width: 100%;
        min-width: 90px;
        padding: 12px 0;
        font-size: 14px !important;
        margin: 10px auto 0 auto !important;
        border-radius: 20px;
    }
    .remove-from-shopping-list {
        margin-bottom: 0;
        margin-top: 10px;
        justify-content: center !important;
        width: 100%;
    }
    .shopping-list-table img {
        max-width: 90vw;
        height: auto;
        margin-bottom: 10px;
    }
}


/* Ultra small screens */
@media (max-width: 420px) {
    .shopping-list-label {
        font-size: 10px !important;
    }
    .shopping-list-add-to-cart-btn {
        font-size: 12px !important;
    }
}

/* Center table headers and cells */
.goldnote-shopping-list-table th,
.goldnote-shopping-list-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Product name, price, and stock status font size */
.goldnote-shopping-list-table .shopping-list-product-name,
.goldnote-shopping-list-table .shopping-list-product-price,
.goldnote-shopping-list-table .shopping-list-stock-status {
    font-size: 15px !important;
}

/* Hide variation details under product name */
.goldnote-shopping-list-table .shopping-list-product-variation {
    display: none !important;
}

/* Center the trash/remove button perfectly */
.goldnote-shopping-list-table td:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.goldnote-shopping-list-table .remove-from-shopping-list {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add to Cart button tweaks (smaller, but keep bold) */
.shopping-list-add-to-cart-btn {
    font-size: 15px !important;
    padding: 8px 24px !important;
    border-radius: 26px !important;
    font-weight: 700;
}

/* Product image (if needed) center and size tweak */
.goldnote-shopping-list-table .shopping-list-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.goldnote-shopping-list-table img {
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    max-width: 80px;
}

.goldnote-shopping-list-table tfoot tr td {
    border-top: 2px solid #eee;
    background: #f8f8f2;
}

#shopping-list-total-label {
    font-size: 20px;
    letter-spacing: 1px;
}
#shopping-list-total {
    font-size: 22px;
    font-weight: 700;
}

/* ... keep your existing global styles ... */

/* --- CARD LAYOUT FOR MOBILE SHOPPING LIST --- */
@media (max-width: 600px) {
    .goldnote-shopping-list-table,
    .goldnote-shopping-list-table thead,
    .goldnote-shopping-list-table tbody,
    .goldnote-shopping-list-table th,
    .goldnote-shopping-list-table td,
    .goldnote-shopping-list-table tr {
        display: block;
        width: 100%;
        background: none;
        border: none;
        box-shadow: none;
    }
    .goldnote-shopping-list-table thead { display: none; }
    .goldnote-shopping-list-table tbody tr {
        background: #fff !important;
        border-radius: 18px;
        box-shadow: 0 2px 10px rgba(201,185,138,0.07);
        border: 1px solid #eee;
        margin-bottom: 32px;
        padding: 0 0 20px 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        position: relative;
        overflow: hidden;
    }
    .goldnote-shopping-list-table td {
        border: none;
        padding: 0;
        background: none;
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        margin: 0;
    }
    /* Trash icon floating top-left */
    .goldnote-shopping-list-table td:first-child {
        position: absolute;
        top: 10px;
        left: 14px;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        background: none !important;
        z-index: 2;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }
    /* Product image, centered */
    .goldnote-shopping-list-table td:nth-child(2) {
        justify-content: center;
        flex-direction: column;
        padding: 34px 0 0 0;
    }
    .goldnote-shopping-list-table td:nth-child(2) img {
        margin: 0 auto 12px auto;
        max-width: 88px;
        border-radius: 10px;
        box-shadow: 0 0 6px #e2e2e2;
        display: block;
    }
    .goldnote-shopping-list-table td:nth-child(2) a {
        font-size: 21px;
        color: #222;
        font-weight: 600;
        display: block;
        text-align: center;
        margin: 8px 0 0 0;
    }
    .shopping-list-product-variation {
        color: #888 !important;
        font-size: 15px !important;
        margin: 0 auto 2px auto !important;
        display: block !important;
        text-align: center !important;
    }
    /* Price, stock, subtotal, date each as a card section */
    .goldnote-shopping-list-table td:nth-child(3),  /* Price */
    .goldnote-shopping-list-table td:nth-child(4),  /* Stock */
    .goldnote-shopping-list-table td:nth-child(5),  /* Qty */
    .goldnote-shopping-list-table td:nth-child(6),  /* Subtotal */
    .goldnote-shopping-list-table td:nth-child(7) { /* Date */
        justify-content: center;
        background: #faf9f7;
        margin: 0 0 10px 0;
        border-radius: 12px;
        min-height: 48px;
        padding: 16px 0 0 0;
        font-size: 16px !important;
        color: #222;
        text-align: center;
    }
    /* Add to Cart section */
    .goldnote-shopping-list-table td:nth-child(8) {
        justify-content: center;
        padding: 0 0 16px 0;
        background: none !important;
    }
    .shopping-list-add-to-cart-btn {
        width: 90%;
        margin: 0 auto !important;
        font-size: 18px !important;
        border-radius: 22px !important;
        padding: 13px 0 !important;
        font-weight: 700 !important;
        background: #000 !important;
        color: #fff !important;
        text-transform: uppercase;
        box-shadow: 0 1px 6px #eee;
        border: none;
        letter-spacing: 1px;
    }
    .shopping-list-add-to-cart-btn:hover {
        background: #C9B98A !important;
        color: #000 !important;
    }
    /* Make spinner large and centered */
    .shopping-list-qty-spinner {
        width: 64px !important;
        margin: 0 auto !important;
        font-size: 18px !important;
        text-align: center;
        border-radius: 8px;
        border: 1px solid #dcdcdc;
        background: #fff;
    }
}

/* ...keep your desktop/tablet styles as is above... */

