/**
 * Il Sassicaio - WooCommerce Theme Styles
 * Custom WooCommerce styling to match the Bootstrap/winery theme.
 */

/* =========================================================================
   General WooCommerce Elements
   ========================================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: #8b0000;
    background-color: #fff;
    padding: 1em 2em 1em 3.5em;
    margin-bottom: 1.5em;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.woocommerce-message::before { color: #8b0000; }

/* WooCommerce auto-breadcrumb - hidden in favour of .site-breadcrumb */
.woocommerce-breadcrumb {
    display: none;
}

/* =========================================================================
   Shop Page (archive-product) — Modern Card Grid
   ========================================================================= */

/* ---- Section header ---- */
.shop-archive-area {
    padding: 60px 0 80px;
    background: #fff;
}

.shop-archive-header {
    text-align: center;
    padding-bottom: 48px;
}

.shop-archive-title__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c8a96e;
    margin-bottom: 10px;
}

.shop-archive-title__heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a0a10;
    margin: 0 0 6px;
    line-height: 1.2;
}

.shop-archive-title__heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #c8a96e;
    margin: 14px auto 0;
    border-radius: 2px;
}

.shop-archive-title__sub {
    color: #6b5c60;
    font-size: 0.95rem;
    margin: 14px 0 0;
}

/* ---- Toolbar (result count + ordering) ---- */
.shop-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e0d0;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-archive-toolbar .woocommerce-result-count {
    font-size: 0.85rem;
    color: #6b5c60;
    margin: 0;
}

.shop-archive-toolbar .woocommerce-ordering {
    margin: 0;
}

.shop-archive-toolbar .woocommerce-ordering select {
    font-size: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    color: #1a0a10;
    background: #fff;
    cursor: pointer;
}

/* ---- Product grid ---- */
.shop-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .shop-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .shop-archive-grid { grid-template-columns: 1fr; }
    .shop-archive-title__heading { font-size: 1.8rem; }
}

/* ---- Product card ---- */
.product-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e0d0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

/* Image area */
.product-card__image-wrap {
    display: block;
    position: relative;
    background: #faf5ec;
    padding: 28px 24px;
    text-align: center;
    overflow: hidden;
}

.product-card__image-wrap img {
    display: block;
    margin: 0 auto;
    max-height: 220px;
    width: auto;
    height: auto;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card__image-wrap img {
    transform: scale(1.05);
}

/* Out-of-stock badge */
.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
    line-height: 1;
}

.product-card__badge--out {
    background: #f0e5e5;
    color: #8b0000;
}

/* Card body */
.product-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* Grape/uvaggio tag */
.product-card__tag {
    display: inline-block;
    background: rgba(77, 3, 34, 0.07);
    color: #8b0000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: flex-start;
}

/* Product name */
.product-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #1a0a10;
}

.product-card__name a {
    color: #1a0a10;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__name a:hover {
    color: #8b0000;
}

/* Price */
.product-card__price {
    margin-top: auto;
    padding-top: 4px;
}

.product-card__price .woocommerce-Price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8b0000;
}

.product-card__price del .woocommerce-Price-amount {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
}

/* CTA button */
.product-card__btn {
    display: block;
    width: 100%;
    background: #4d0322;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 15px 40px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, opacity 0.2s;
    margin-top: 6px;
    box-sizing: border-box;
}

.product-card__btn:hover {
    background: #6b0030;
    color: #fff;
    text-decoration: none;
}

/* WooCommerce AJAX states */
.product-card__btn.loading {
    opacity: 0.65;
    pointer-events: none;
}
.product-card__btn.loading .add-to-cart-text::after {
    content: '…';
}
.product-card__btn.added {
    background: #4a8c4a;
    pointer-events: none;
}
.product-card__btn.added .add-to-cart-text::before {
    content: '✓ ';
}

.product-card__btn--outline {
    background: transparent;
    border: 1.5px solid #4d0322;
    color: #4d0322;
}

.product-card__btn--outline:hover {
    background: #4d0322;
    color: #fff;
}

.product-card__form {
    margin: 0;
}

/* ---- Pagination ---- */
.shop-archive-pagination {
    margin-top: 48px;
    text-align: center;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    color: #8b0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.woocommerce-pagination .page-numbers li a:hover {
    border-color: #8b0000;
    background: #8b0000;
    color: #fff;
}

.woocommerce-pagination .page-numbers li .current {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}



/* =========================================================================
   Single Product — Modern Detail Page
   ========================================================================= */

.product-detail {
    padding: 52px 0 64px;
    background: #f9f4ef;
}

/* Two-column grid */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 991px) {
    .product-detail__grid { grid-template-columns: 1fr; gap: 28px; }
    .product-detail__gallery {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 767px) {
    .product-detail__gallery {
        position: static !important;
        top: auto !important;
    }
}

/* Gallery */
.product-detail__gallery {
    position: sticky;
    top: 90px;
    align-self: start;
}

.product-detail__main-image {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 380px;
}

.product-detail__zoom {
    display: block;
    width: 100%;
    text-align: center;
}

.product-detail__hero-img {
    display: block;
    margin: 0 auto;
    max-height: 400px;
    width: auto;
    height: auto;
    transition: transform 0.35s ease;
}

.product-detail__main-image:hover .product-detail__hero-img {
    transform: scale(1.04);
}

.product-detail__zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a0a10;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-detail__main-image:hover .product-detail__zoom-icon {
    opacity: 1;
}

.product-detail__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-detail__thumbs a {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-detail__thumbs a:hover {
    border-color: #c8a96e;
}

.product-detail__thumb-img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
}

/* Product info panel */
.product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-detail__tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-detail__stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.product-detail__stock--in  { background: #eaf6ee; color: #1e7e34; }
.product-detail__stock--out { background: #f0e5e5; color: #8b0000; }

.product-detail__name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a0a10;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 575px) {
    .product-detail__name { font-size: 1.5rem; }
}

.product-detail__price .woocommerce-Price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8b0000;
}

.product-detail__price del .woocommerce-Price-amount {
    font-size: 1.1rem;
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}

.product-detail__short-desc {
    font-size: 0.95rem;
    color: #4a3840;
    line-height: 1.7;
    border-left: 3px solid #c8a96e;
    padding-left: 14px;
}

/* Add to cart form */
.product-detail__form { margin: 0; }

.product-detail__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-detail__qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.product-detail__qty-btn {
    background: none;
    border: none;
    padding: 0 14px;
    height: 46px;
    font-size: 1.2rem;
    font-weight: 300;
    color: #1a0a10;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s;
}

.product-detail__qty-btn:hover { background: #f5f0eb; }

.product-detail__qty-input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    height: 46px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a0a10;
    -moz-appearance: textfield;
}

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

.product-detail__add-btn {
    flex: 1;
    min-width: 180px;
    display: inline-block;
    background: #4d0322;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 15px 40px;
    height: auto;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s;
    box-sizing: border-box;
}

.product-detail__add-btn:hover { background: #6b0030; }
.product-detail__add-btn.loading { opacity: 0.65; pointer-events: none; }
.product-detail__add-btn.added   { background: #2a6e2a; pointer-events: none; }

/* Attributes meta list */
.product-detail__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
}

.product-detail__meta dt {
    font-weight: 700;
    color: #6b5c60;
    white-space: nowrap;
}

.product-detail__meta dd {
    margin: 0;
    color: #1a0a10;
}

/* Payment trust strip */
.product-detail__payment {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0e8dd;
    flex-wrap: wrap;
}

.product-detail__payment-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b5c60;
    white-space: nowrap;
}

.product-detail__payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-detail__payment-icons img {
    height: 26px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

/* Full description */
.product-detail__description {
    margin-top: 52px;
    padding-top: 40px;
    border-top: 1px solid #e8ddd5;
    margin-bottom: 0;
}

.product-detail__description-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a0a10;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.product-detail__description-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: #c8a96e;
    border-radius: 2px;
}

.product-detail__description-body {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #4a3840;
}

/* Scheda Tecnica */
.product-detail__scheda {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e8ddd5;
}

.product-detail__scheda-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a0a10;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.product-detail__scheda-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: #4d0322;
}

.product-detail__scheda-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e8ddd5;
    border-left: 1px solid #e8ddd5;
}

.product-detail__scheda-item {
    display: flex;
    border-right: 1px solid #e8ddd5;
    border-bottom: 1px solid #e8ddd5;
}

.product-detail__scheda-item dt {
    flex: 0 0 45%;
    padding: 13px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4d0322;
    background: #faf7f2;
    border-right: 1px solid #e8ddd5;
}

.product-detail__scheda-item dd {
    flex: 1;
    padding: 13px 16px;
    font-size: 0.88rem;
    color: #3a3028;
    margin: 0;
}

@media (max-width: 640px) {
    .product-detail__scheda-grid {
        grid-template-columns: 1fr;
    }
}

/* Related & upsell products wrapper */
.related-products-wrapper {
    background: #f9f4ef;
    padding: 0 0 72px;
}

.related-products,
.upsell-products {
    padding-top: 52px;
    border-top: 1px solid #e8ddd5;
}

/* Upsells rendered first (prio 15) — give it a slightly different accent */
.upsell-products .shop-archive-title__eyebrow {
    color: #8b6914;
}

.related-products__header {
    margin-bottom: 32px;
}

.related-products__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a0a10;
    margin: 6px 0 0;
}

.related-products__grid {
    /* Inherits .shop-archive-grid but limit to 4 cols on wide */
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .related-products__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .related-products__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .related-products__grid { grid-template-columns: 1fr; }
}

/* Legacy selectors — kept for compat */
.availability-green { color: #1e7e34; font-weight: 600; }
.availability-red   { color: #dc3545; font-weight: 600; }
.product-uva {
    display: inline-block;
    background: rgba(77, 3, 34, 0.07);
    color: #8b0000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}



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

.cart-image {
    max-width: 100px;
    border-radius: 6px;
}

.cart-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.cart-badge {
    display: inline-block;
    background: #8b0000;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    vertical-align: middle;
    margin-left: -6px;
    margin-top: -10px;
    position: relative;
    top: -6px;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.coupon-section .input-group .form-control {
    border-color: #ddd;
}

/* =========================================================================
   Checkout — Modern Redesign
   ========================================================================= */

/* Page background matches cart */
body.woocommerce-checkout .cart-area,
.checkout-page-area {
    background: #f8f7f3;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* ── Section titles ─────────────────────────────────────────────────────── */
.billing-details .title,
.order-details .title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d2d2d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #c8a96e;
}

/* ── Left column: billing/shipping card ─────────────────────────────────── */
.billing-details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 28px 28px 8px;
    margin-bottom: 24px;
}

/* WooCommerce h3 inside billing fields */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #7a6a4a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 14px;
}
.woocommerce-billing-fields h3:first-child,
.woocommerce-shipping-fields h3:first-child {
    margin-top: 0;
}

/* ── Form rows ───────────────────────────────────────────────────────────── */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}
.woocommerce-checkout .form-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.woocommerce-checkout .form-row .required {
    color: #c8a96e;
    font-weight: 700;
}
.woocommerce-checkout .form-row .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.93rem;
    color: #2d2d2d;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.woocommerce-checkout .form-row textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}
.woocommerce-checkout .form-row.woocommerce-invalid input,
.woocommerce-checkout .form-row.woocommerce-invalid select {
    border-color: #e74c3c;
}
.woocommerce-checkout .form-row.woocommerce-validated input,
.woocommerce-checkout .form-row.woocommerce-validated select {
    border-color: #27ae60;
}

/* select2 dropdown z-index fix — must appear above all checkout UI */
.select2-container--open .select2-dropdown {
    z-index: 9999;
}

/* select2 container width matches the field */
.woocommerce-checkout .select2-container {
    width: 100% !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.93rem;
    color: #2d2d2d;
    outline: none;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2d2d2d;
    font-size: 0.93rem;
    line-height: 44px;
    padding: 0;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 10px;
}

.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
    outline: none;
}

/* Side-by-side first/last rows */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}
.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-first,
.woocommerce-shipping-fields__field-wrapper .form-row-last {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
}
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide {
    flex: 0 0 100%;
}

/* Shipping method list */
.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-shipping-methods li {
    padding: 10px 14px;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fdfbf7;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.woocommerce-shipping-methods li:hover {
    border-color: #c8a96e;
    background: #fdf8f0;
}
.woocommerce-shipping-methods li input[type="radio"] {
    accent-color: #c8a96e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Checkbox (ship to different address, create account) */
.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 500;
}
.woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #c8a96e;
    flex-shrink: 0;
}

/* ── Right column: order summary card ───────────────────────────────────── */
.order-details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 28px;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.woocommerce-checkout-review-order-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a4a;
    padding: 0 0 12px;
    border-bottom: 2px solid #f0ebe0;
}
.woocommerce-checkout-review-order-table thead th:last-child {
    text-align: right;
}
.woocommerce-checkout-review-order-table tbody td {
    padding: 12px 0;
    border-bottom: 1px solid #f5f0e8;
    font-size: 0.92rem;
    color: #2d2d2d;
    vertical-align: middle;
}
.woocommerce-checkout-review-order-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
}
.woocommerce-checkout-review-order-table .product-quantity {
    color: #888;
    font-weight: 400;
    font-size: 0.85rem;
}
/* Totals rows */
.woocommerce-checkout-review-order-table tfoot tr th,
.woocommerce-checkout-review-order-table tfoot tr td {
    padding: 10px 0;
    font-size: 0.91rem;
    border-bottom: 1px solid #f5f0e8;
    color: #555;
}
.woocommerce-checkout-review-order-table tfoot tr td {
    text-align: right;
    font-weight: 500;
    color: #2d2d2d;
}
/* Shipping row in checkout tfoot */
.woocommerce-checkout-review-order-table tfoot .shipping th {
    color: #888;
    font-weight: 500;
}
.woocommerce-checkout-review-order-table tfoot .shipping td {
    font-weight: 400;
}
.woocommerce-checkout-review-order-table tfoot .shipping .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-checkout-review-order-table tfoot .shipping .woocommerce-shipping-methods li {
    border: none;
    border-radius: 0;
    padding: 4px 0;
    background: transparent;
    margin: 0;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.9rem;
}
.woocommerce-checkout-review-order-table tfoot .shipping .woocommerce-shipping-methods li:hover {
    border: none;
    background: transparent;
}
/* Total row — prominent */
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a0a10;
    border-top: 2px solid #e8e0d0;
    border-bottom: none;
    padding-top: 16px;
}

/* ── Payment methods ─────────────────────────────────────────────────────── */
#payment {
    background: transparent;
    margin-top: 20px;
}
#payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    border: none;
}
#payment .wc_payment_method {
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fdfbf7;
    transition: border-color 0.2s;
}
#payment .wc_payment_method:hover {
    border-color: #c8a96e;
}
#payment .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0;
}
#payment .wc_payment_method > label img {
    max-height: 24px;
    width: auto;
}
#payment .wc_payment_method input[type="radio"] {
    accent-color: #c8a96e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
#payment .payment_box {
    background: #f5f0e8;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #555;
    border-top: 1px solid #e8e0d0;
    line-height: 1.5;
}
#payment .payment_box p { margin: 0; }

/* ── Place order button ──────────────────────────────────────────────────── */
#payment #place_order,
.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
    margin-top: 8px;
}
#payment #place_order:hover,
.woocommerce-checkout #place_order:hover {
    background: #b8954f;
    transform: translateY(-1px);
}

/* ── WooCommerce notices in checkout ─────────────────────────────────────── */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

/* =========================================================================
   Checkout & Cart — Responsive
   ========================================================================= */

/* ── Tablet (768 – 991px): columns stack, form fields still side-by-side ── */
@media (max-width: 991px) {
    .order-details {
        position: static;
        margin-top: 24px;
    }
    .checkout-page-area.cart-area {
        padding-top: 40px;
        padding-bottom: 48px;
    }
}

/* ── Mobile (≤ 767px) ────────────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Page padding */
    .checkout-page-area.cart-area,
    .cart-page-area {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    /* Billing / order cards */
    .billing-details {
        padding: 20px 16px 4px;
        margin-bottom: 16px;
    }
    .order-details {
        padding: 20px 16px;
        position: static;
        margin-top: 0;
    }

    /* Section titles */
    .billing-details .title,
    .order-details .title {
        font-size: 0.95rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    /* WooCommerce h3 inside billing */
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    .woocommerce-additional-fields h3 {
        font-size: 0.85rem;
        margin: 14px 0 10px;
    }

    /* Form rows — all full-width on mobile */
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        gap: 0;
    }
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-billing-fields__field-wrapper .form-row-last,
    .woocommerce-shipping-fields__field-wrapper .form-row-first,
    .woocommerce-shipping-fields__field-wrapper .form-row-last,
    .woocommerce-billing-fields__field-wrapper .form-row-wide,
    .woocommerce-shipping-fields__field-wrapper .form-row-wide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .woocommerce-checkout .form-row {
        margin-bottom: 12px;
    }
    .woocommerce-checkout .form-row label {
        font-size: 0.78rem;
    }
    .woocommerce-checkout .form-row input[type="text"],
    .woocommerce-checkout .form-row input[type="email"],
    .woocommerce-checkout .form-row input[type="tel"],
    .woocommerce-checkout .form-row input[type="number"],
    .woocommerce-checkout .form-row input[type="password"],
    .woocommerce-checkout .form-row textarea,
    .woocommerce-checkout .form-row select {
        height: 44px;
        font-size: 0.9rem;
    }

    /* Shipping methods */
    .woocommerce-shipping-methods li {
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    /* Order review table — prevent horizontal scroll */
    .woocommerce-checkout-review-order-table {
        font-size: 0.85rem;
    }
    .woocommerce-checkout-review-order-table thead th,
    .woocommerce-checkout-review-order-table tbody td,
    .woocommerce-checkout-review-order-table tfoot tr th,
    .woocommerce-checkout-review-order-table tfoot tr td {
        padding: 8px 0;
    }

    /* Payment methods */
    #payment .wc_payment_method > label {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
    #payment .payment_box {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    /* Place order button */
    #payment #place_order,
    .woocommerce-checkout #place_order {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    /* ── Cart page items ─────────────────────────────────────────────────── */
    .cart-items-card {
        border-radius: 8px;
    }
    .cart-table-header { display: none !important; }

    /* Grid layout: thumb | name (×2 cols) | remove
                    thumb | price | qty    | subtotal */
    .cart-item-row {
        display: grid;
        grid-template-columns: 64px 1fr 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "thumb name     name     remove"
            "thumb price    qty      subtotal";
        column-gap: 10px;
        row-gap: 10px;
        padding: 16px 12px;
        align-items: center;
    }
    .cart-item-row .col-thumb    { grid-area: thumb; align-self: start; }
    .cart-item-row .col-name     { grid-area: name; }
    .cart-item-row .col-price    { grid-area: price; font-size: 0.85rem; }
    .cart-item-row .col-qty      { grid-area: qty; display: flex; justify-content: center; }
    .cart-item-row .col-subtotal { grid-area: subtotal; font-weight: 700; text-align: right; font-size: 0.9rem; }
    .cart-item-row .col-remove   { grid-area: remove; align-self: start; margin: 0; }

    .cart-item-row .col-thumb img { width: 56px; height: 56px; }

    /* Hide inline labels — grid layout is self-explanatory */
    .cart-item-row .cart-label { display: none !important; }

    .cart-product-name { font-size: 0.9rem; }

    /* Cart actions bar */
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 12px;
    }
    .coupon-field {
        max-width: 100%;
        width: 100%;
    }
    .cart-coupon-input { height: 42px; }
    .cart-coupon-btn   { height: 42px; padding: 0 14px; }
    .cart-update-btn   { height: 42px; width: 100%; justify-content: center; }

    /* Cart sidebar */
    .cart-sidebar {
        border-radius: 8px;
    }
    .cart-sidebar .cart_totals { padding: 18px 16px; }
    .cart-sidebar .wc-proceed-to-checkout { padding: 0 16px 18px; }
}

/* ── Small phones (≤ 480px) ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .checkout-page-area.cart-area,
    .cart-page-area {
        padding-top: 24px;
        padding-bottom: 32px;
    }
    .billing-details { padding: 16px 12px 4px; }
    .order-details   { padding: 16px 12px; }

    .woocommerce-checkout-review-order-table { font-size: 0.82rem; }

    /* Tighter form fields */
    .woocommerce-checkout .form-row { margin-bottom: 10px; }
    .woocommerce-checkout .form-row input[type="text"],
    .woocommerce-checkout .form-row input[type="email"],
    .woocommerce-checkout .form-row input[type="tel"],
    .woocommerce-checkout .form-row select {
        height: 42px;
        padding: 0 12px;
    }

    /* Cart item row tighter on small phones */
    .cart-item-row { padding: 12px 10px; gap: 8px; }
    .cart-item-row { grid-template-columns: 52px 1fr 1fr auto; }
    .cart-item-row .col-thumb img { width: 46px; height: 46px; }
    .cart-product-name { font-size: 0.85rem; }
    .cart-item-row .col-subtotal { font-size: 0.85rem; }
}

/* =========================================================================
   My Account
   ========================================================================= */

/* account-nav styles consolidated below in the My Account section */

.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.woocommerce-orders-table th {
    background: #f8f0e3;
    font-weight: 600;
    color: #333;
}

/* =========================================================================
   WooCommerce notices (inside page title area)
   ========================================================================= */

.wc-main-area .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

/* =========================================================================
   Checkout: order review table
   ========================================================================= */

.woocommerce-checkout-review-order-table {
    font-size: 0.9rem;
}

/* =========================================================================
   Scroll guard — ensure body is always scrollable (single product page)
   WooCommerce body_class adds 'single-product'; no rule should lock scroll.
   ========================================================================= */

body.single-product {
    overflow-y: auto !important;
}


/* =========================================================================
   Cart Page — Modern Redesign v2
   ========================================================================= */

/* Page wrapper */
.cart-page-area {
    background: #f8f7f3;
    padding: 48px 0 80px;
    min-height: 60vh;
}

/* Two-column layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Section heading */
.cart-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

/* Item list */
.ci-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Single cart item */
.ci {
    display: flex;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid #f0ebe0;
    transition: background 0.15s;
}
.ci:last-child { border-bottom: none; }
.ci:hover { background: #fdfbf7; }

/* Image */
.ci__image {
    flex: 0 0 72px;
    width: 72px;
    height: 160px;
    background: #f5f0e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ci__image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ci__image a   { display: flex; width: 100%; height: 100%; }

/* Body */
.ci__body {
    flex: 1;
    min-width: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Top: meta + right */
.ci__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.ci__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.ci__name {
    font-size: 1rem;
    font-weight: 700;
    color: #2d2d2d;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
}
.ci__name:hover { color: #c8a96e; }

.ci__unit-price {
    font-size: 0.85rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 2px;
}
.ci__per { color: #ccc; }

/* Right: total + remove */
.ci__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.ci__subtotal {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a0a10;
    white-space: nowrap;
}
.ci__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ccc;
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.ci__remove:hover { background: #fee2e2; color: #dc2626; text-decoration: none; }

/* Bottom: qty */
.ci__bottom { display: flex; align-items: center; }

/* Qty stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e0d8cc;
    border-radius: 100px;
    background: #fff;
    height: 36px;
    overflow: hidden;
}
.qty-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.qty-btn:hover { color: #c8a96e; background: #fdf8f0; }
.qty-stepper__input {
    width: 42px;
    height: 36px;
    border: none;
    border-left: 1.5px solid #e0d8cc;
    border-right: 1.5px solid #e0d8cc;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d2d2d;
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
    padding: 0;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Footer bar (coupon + update) */
.cart-footer-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 0 0;
}
.coupon-toggle { flex: 1; min-width: 200px; }
.coupon-toggle__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #999;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
    user-select: none;
}
.coupon-toggle__trigger::-webkit-details-marker { display: none; }
.coupon-toggle__trigger:hover,
.coupon-toggle[open] .coupon-toggle__trigger { color: #c8a96e; }
.coupon-toggle__body {
    display: flex;
    margin-top: 10px;
    max-width: 340px;
}
.coupon-input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.coupon-input:focus { border-color: #c8a96e; }
.coupon-apply-btn {
    height: 40px;
    padding: 0 18px;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.coupon-apply-btn:hover { background: #b8954f; }

/* Hidden by default: JS handles cart updates automatically (AJAX).
 * The button stays in the DOM as a no-JS fallback. */
.js .cart-update-btn { display: none; }

.cart-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    background: transparent;
    color: #aaa;
    border: 1.5px solid #e0d8cc;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.cart-update-btn:hover { border-color: #c8a96e; color: #c8a96e; }

.cart-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}
.cart-back-link:hover { color: #c8a96e; text-decoration: none; }

/* Summary card */
.cart-summary-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.cart-summary-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a6a4a;
    padding: 18px 24px 16px;
    margin: 0;
    border-bottom: 1px solid #f0ebe0;
    background: #fdf8f0;
}
.cart-summary-card .cart_totals { padding: 0; }
.cart-summary-card .cart_totals h2 { display: none; }

/* ── Cart summary rows (.csr) — used by cart-totals.php override ────────── */
.csr-list {
    padding: 8px 24px 4px;
}
.csr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f5f0e8;
    gap: 16px;
    font-size: 0.92rem;
}
.csr__label {
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}
.csr__value {
    color: #2d2d2d;
    font-weight: 600;
    text-align: right;
}
/* Discount row */
.csr--discount .csr__label,
.csr--discount .csr__value { color: #27ae60; }
/* Total row */
.csr--total {
    padding-top: 16px;
    padding-bottom: 6px;
    border-top: 2px solid #e8e0d0;
    border-bottom: none;
    margin-top: 4px;
}
.csr--total .csr__label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a0a10;
}
.csr--total .csr__value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a0a10;
}
/* Shipping row in .csr layout */
.csr--shipping { align-items: flex-start; }
.csr__shipping-body {
    flex: 1;
    text-align: right;
}
.csr__shipping-body .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
.csr__shipping-body .woocommerce-shipping-methods li {
    border: none;
    border-radius: 0;
    padding: 3px 0;
    background: transparent;
    font-size: 0.88rem;
    margin: 0;
    justify-content: flex-end;
    gap: 8px;
}
.csr__shipping-body .woocommerce-shipping-methods li:hover {
    border: none;
    background: transparent;
}
.csr__shipping-label,
.csr__shipping-tbd {
    font-size: 0.88rem;
    color: #888;
    font-style: italic;
}
.cart-summary-card .wc-proceed-to-checkout { padding: 20px 24px 24px; }
.cart-summary-card .wc-proceed-to-checkout .checkout-button,
.cart-summary-card .wc-proceed-to-checkout a.button,
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100%;
    padding: 15px 40px;
    background: #4d0322 !important;
    color: #fff !important;
    text-align: center;
    border-radius: 0;
    border: none;
    font-family: "Poppins", sans-serif !important;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none !important;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}
.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover {
    background: #6b0030 !important;
    color: #fff !important;
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.cart-empty h3 { font-size: 1.3rem; font-weight: 700; color: #2d2d2d; margin: 0; }
.cart-empty p  { color: #888; margin: 0; font-size: 0.95rem; }
.cart-empty-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 32px;
    background: #c8a96e;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.cart-empty-cta:hover { background: #b8954f; color: #fff; text-decoration: none; }

/* Mobile */
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr 300px; gap: 24px; }
}
@media (max-width: 767px) {
    .cart-page-area { padding: 24px 0 48px; }
    .cart-layout { grid-template-columns: 1fr; gap: 20px; }
    .cart-summary-card { position: static; }
    .csr-list { padding: 8px 16px 4px; }
    .cart-summary-card .wc-proceed-to-checkout { padding: 16px 16px 18px; }
    .ci { padding: 16px; }
    .ci__image { width: 60px; height: 130px; flex: 0 0 60px; }
    .ci__body { padding-left: 14px; gap: 10px; }
    .ci__name { font-size: 0.92rem; }
    .ci__subtotal { font-size: 1rem; }
    .qty-stepper__input { width: 34px; }
    .cart-footer-bar { flex-direction: column; align-items: stretch; }
    .coupon-toggle { min-width: unset; }
    .coupon-toggle__body { max-width: 100%; }
    .cart-update-btn { justify-content: center; }
}
@media (max-width: 420px) {
    .ci { padding: 12px; }
    .ci__image { width: 52px; height: 110px; flex: 0 0 52px; }
    .ci__body { padding-left: 10px; }
    .ci__subtotal { font-size: 0.95rem; }
}

/* Cross-sell products use the same .single-product.single-products card style */

/* =========================================================================
   Order Received / Thank You Page
   ========================================================================= */

.ty-page {
    background: #f8f7f3;
    padding: 60px 0 80px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ty-hero {
    text-align: center;
    padding: 0 0 48px;
}
.ty-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(39,174,96,0.3);
}
.ty-hero--failed .ty-hero__icon,
.ty-hero__icon--failed {
    background: #c0392b;
    box-shadow: 0 4px 20px rgba(192,57,43,0.3);
}
.ty-hero__title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a0a10;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.ty-hero__sub {
    font-size: 1rem;
    color: #666;
    margin: 0 0 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.ty-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Shared buttons ───────────────────────────────────────────────────── */
.ty-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}
.ty-btn--primary {
    background: #c8a96e;
    color: #fff !important;
}
.ty-btn--primary:hover {
    background: #b8954f;
    color: #fff !important;
    transform: translateY(-1px);
}
.ty-btn--ghost {
    background: #fff;
    color: #1a0a10 !important;
    border: 2px solid #e8e0d0;
}
.ty-btn--ghost:hover {
    border-color: #c8a96e;
    color: #1a0a10 !important;
    transform: translateY(-1px);
}

/* ── Section title ────────────────────────────────────────────────────── */
.ty-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a6a4a;
    margin: 0 0 14px;
}

/* ── Shared card wrapper ──────────────────────────────────────────────── */
.ty-meta-card,
.ty-order-details,
.ty-address-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px 28px;
    margin-bottom: 20px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Meta rows (order number, date, etc.) ─────────────────────────────── */
.ty-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f0e8;
    font-size: 0.93rem;
}
.ty-meta-row:last-child { border-bottom: none; }
.ty-meta-row__label {
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}
.ty-meta-row__value {
    color: #2d2d2d;
    font-weight: 600;
    text-align: right;
}
.ty-meta-row--total {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px solid #e8e0d0;
    border-bottom: none;
}
.ty-meta-row--total .ty-meta-row__label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a0a10;
}
.ty-meta-row--total .ty-meta-row__value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a0a10;
}

/* ── Order items table ────────────────────────────────────────────────── */
.ty-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.ty-items-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a4a;
    padding: 0 0 10px;
    border-bottom: 2px solid #f0ebe0;
}
.ty-items-table thead th:not(:first-child) { text-align: right; }
.ty-items-table tbody td {
    padding: 12px 0;
    border-bottom: 1px solid #f5f0e8;
    vertical-align: middle;
    color: #2d2d2d;
}
.ty-items-table tbody td:not(:first-child) { text-align: right; }
.ty-items-table__name {
    font-weight: 600;
    color: #2d2d2d;
    text-decoration: none;
}
.ty-items-table__name:hover { color: #c8a96e; text-decoration: none; }
.ty-items-table__qty { color: #888; font-size: 0.88rem; }
.ty-items-table tfoot .ty-tfoot-row th,
.ty-items-table tfoot .ty-tfoot-row td {
    padding: 9px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f0e8;
    color: #555;
    text-align: right;
}
.ty-items-table tfoot .ty-tfoot-row th {
    text-align: left;
    font-weight: 500;
    color: #888;
}
.ty-items-table tfoot .ty-tfoot-row--discount td,
.ty-items-table tfoot .ty-tfoot-row--discount th { color: #27ae60; }
.ty-items-table tfoot .ty-tfoot-row--total th,
.ty-items-table tfoot .ty-tfoot-row--total td {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a0a10;
    border-top: 2px solid #e8e0d0;
    border-bottom: none;
    padding-top: 14px;
}

/* ── Shipping address ─────────────────────────────────────────────────── */
.ty-address {
    font-style: normal;
    font-size: 0.93rem;
    color: #555;
    line-height: 1.7;
}
.ty-address strong { color: #2d2d2d; }

/* ── Bottom actions ───────────────────────────────────────────────────── */
.ty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 12px;
    max-width: 680px;
    margin: 0 auto;
}

/* ── Payment gateway thank-you content (bank details, etc.) ────────── */
.ty-payment-info {
    max-width: 680px;
    margin: 0 auto 20px;
}
.ty-payment-info > * {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px 28px;
    margin-bottom: 16px;
}

/* Suppress duplicate WooCommerce order-details/customer-details */
.ty-page .woocommerce-order-details,
.ty-page .woocommerce-customer-details { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ty-page { padding: 36px 0 56px; }
    .ty-hero__title { font-size: 1.5rem; }
    .ty-meta-card,
    .ty-order-details,
    .ty-address-card { padding: 18px 16px; }
    .ty-items-table thead { display: none; }
    .ty-items-table tbody td {
        display: block;
        padding: 4px 0;
        border: none;
        text-align: left !important;
    }
    .ty-items-table tbody tr { border-bottom: 1px solid #f5f0e8; padding: 10px 0; display: block; }
    .ty-items-table tbody td.ty-items-table__qty::before { content: "Qtà: "; color: #888; }
    .ty-items-table tbody td.ty-items-table__total { font-weight: 700; }
}

/* =========================================================================
   My Account – Login / Registration page
   ========================================================================= */

/* =========================================================================
   My Account – Login / Registration page
   ========================================================================= */

/* Page header banner */
.ma-page-header {
    padding: 32px 0 28px;
    margin-bottom: 0;
    text-align: center;
}

.ma-page-header__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    font-family: inherit;
}

.ma-login-page {
    padding: 48px 0 80px;
}

.ma-login-col {
    margin-bottom: 32px;
}

.ma-card {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 36px 0;
    height: 100%;
}

.ma-card--alt {
    background: #fff;
    border-left: 1px solid #e8e0d0;
    padding-left: 40px;
}

.ma-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    font-family: inherit;
}

.ma-card__sub {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

/* Fields */
.ma-field {
    margin-bottom: 24px;
}

.ma-field label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: 0;
}

.ma-field .required { color: #c00; }

.ma-field .input-text,
.ma-field input[type="text"],
.ma-field input[type="email"],
.ma-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    color: #333;
    background: #f8f8f8;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.ma-field .input-text::placeholder,
.ma-field input[type="text"]::placeholder,
.ma-field input[type="email"]::placeholder,
.ma-field input[type="password"]::placeholder {
    color: #bbb;
    font-size: 1rem;
}

.ma-field .input-text:focus,
.ma-field input:focus {
    border-color: #4d0322;
    background: #fff;
    outline: none;
}

.ma-field--row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ma-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

/* btn-primary-custom inside login/register cards: match .product-card__btn shop style */
.ma-card .btn-primary-custom {
    display: block;
    width: 100%;
    margin-top: 32px;
    padding: 15px 40px;
    background: #4d0322;
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.ma-card .btn-primary-custom:hover {
    background: #6b0030;
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* "Forgot your password?" */
.ma-lost-pass-wrap {
    text-align: center;
    margin-top: 24px;
}

.ma-lost-pass {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a3e;
    text-decoration: none;
}

.ma-lost-pass:hover {
    text-decoration: underline;
    color: #4d0322;
}

.ma-info {
    font-size: 0.85rem;
    color: #777;
    background: #f5f0e8;
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ma-page-header__title { font-size: 1.4rem; }
    .ma-card--alt { border-left: none; padding-left: 0; border-top: 1px solid #e8e0d0; padding-top: 32px; }
    .ma-submit-btn { width: 100%; }
}

/* =========================================================================
   My Account – Dashboard
   ========================================================================= */

.ma-dashboard__hello {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 28px;
}

.ma-dashboard__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.ma-qc {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    gap: 10px;
}

.ma-qc:hover {
    border-color: #8b0000;
    box-shadow: 0 3px 14px rgba(139,0,0,0.08);
    color: #8b0000;
    text-decoration: none;
}

.ma-qc__icon { color: #8b0000; }

.ma-qc--logout .ma-qc__icon { color: #999; }
.ma-qc--logout:hover { border-color: #ccc; color: #555; box-shadow: none; }
.ma-qc--logout:hover .ma-qc__icon { color: #555; }

.ma-qc__label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ma-dashboard__recent { margin-top: 8px; }

.ma-dashboard__recent-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a0a10;
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid #f5f0e8;
    padding-bottom: 8px;
}

.ma-view-all {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.88rem;
    color: #8b0000;
    text-decoration: none;
    font-weight: 600;
}
.ma-view-all:hover { text-decoration: underline; }

/* =========================================================================
   My Account – Orders table (shared: dashboard + orders list)
   ========================================================================= */

.ma-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ma-orders-table th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    padding: 8px 12px;
    border-bottom: 2px solid #f0ece4;
    text-align: left;
}

.ma-orders-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #f5f0e8;
    vertical-align: middle;
}

.ma-orders-table a { color: #8b0000; text-decoration: none; font-weight: 600; }
.ma-orders-table a:hover { text-decoration: underline; }

.ma-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f5f0e8;
    color: #555;
}
.ma-status--processing  { background: #e8f5e9; color: #2e7d32; }
.ma-status--completed   { background: #e3f2fd; color: #1565c0; }
.ma-status--on-hold     { background: #fff8e1; color: #f57f17; }
.ma-status--pending     { background: #fce4ec; color: #b71c1c; }
.ma-status--cancelled   { background: #f5f5f5; color: #616161; }
.ma-status--refunded    { background: #f3e5f5; color: #6a1b9a; }
.ma-status--failed      { background: #ffebee; color: #c62828; }

.ma-btn-sm {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b0000;
    border: 1px solid #8b0000;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.ma-btn-sm:hover {
    background: #8b0000;
    color: #fff;
    text-decoration: none;
}

/* =========================================================================
   My Account – Account nav (extend existing .account-nav)
   ========================================================================= */

.account-nav {
    margin-bottom: 24px;
}

.account-nav ul {
    margin: 0;
    list-style: none;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-top: 2px solid #4d0322;
}

.account-nav ul li {
    border-bottom: 1px solid #e0e0e0;
}

.account-nav ul li:last-child {
    border-bottom: none;
}

.account-nav ul li a {
    display: block;
    padding: 13px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    background: #fff;
}

.account-nav ul li.is-active a {
    border-left-color: #4d0322;
    color: #4d0322;
    background: #f8f8f8;
    font-weight: 700;
}

.account-nav ul li a:hover {
    border-left-color: #4d0322;
    color: #4d0322;
    background: #f8f8f8;
}

/* =========================================================================
   My Account – Responsive
   ========================================================================= */

@media (max-width: 767px) {
    .ma-login-page { padding: 30px 0 50px; }
    .ma-card { padding: 24px 20px; }
    .ma-dashboard__cards { gap: 10px; }
    .ma-qc { flex: 1 1 100px; padding: 18px 10px; }
    .ma-orders-table th,
    .ma-orders-table td { padding: 8px; font-size: 0.82rem; }
}

/* =========================================================================
   My Account – Addresses
   ========================================================================= */

.ma-addresses__intro {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 24px;
}

.ma-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.ma-address-card {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    padding: 24px 22px;
}

.ma-address-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.ma-address-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a0a10;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.ma-address-card__body {
    font-style: normal;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
}

.ma-address-card__empty {
    color: #aaa;
    font-style: italic;
}

/* Edit address form */
.ma-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a0a10;
    font-family: 'Playfair Display', serif;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f0e8;
}

.ma-edit-address-form .form-row {
    margin-bottom: 16px;
}

.ma-edit-address-form label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: 0;
}

.ma-edit-address-form .input-text,
.ma-edit-address-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    color: #333;
    background: #f8f8f8;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.ma-edit-address-form .input-text:focus,
.ma-edit-address-form select:focus {
    border-color: #4d0322;
    background: #fff;
    outline: none;
}

.ma-edit-address-form__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ma-back-link {
    font-size: 0.88rem;
    color: #8b0000;
    text-decoration: none;
}
.ma-back-link:hover { text-decoration: underline; color: #6b0000; }

@media (max-width: 575px) {
    .ma-addresses { grid-template-columns: 1fr; }
    .ma-edit-address-form__actions { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   My Account – Edit address form fields
   (mirrors checkout form-row styles for the .woocommerce-address-fields wrapper)
   ========================================================================= */

.woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.woocommerce-address-fields__field-wrapper .form-row {
    flex: 0 0 100%;
    margin-bottom: 16px;
}

.woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-last {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
}

.woocommerce-address-fields__field-wrapper .form-row-wide {
    flex: 0 0 100%;
}

.woocommerce-address-fields__field-wrapper .form-row label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.woocommerce-address-fields__field-wrapper .form-row .required {
    color: #c8a96e;
    font-weight: 700;
}

.woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.woocommerce-address-fields__field-wrapper input[type="text"],
.woocommerce-address-fields__field-wrapper input[type="email"],
.woocommerce-address-fields__field-wrapper input[type="tel"],
.woocommerce-address-fields__field-wrapper input[type="number"],
.woocommerce-address-fields__field-wrapper input[type="password"],
.woocommerce-address-fields__field-wrapper textarea,
.woocommerce-address-fields__field-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    color: #333;
    background: #f8f8f8;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.woocommerce-address-fields__field-wrapper textarea {
    height: auto;
    padding: 12px 16px;
    resize: vertical;
}

.woocommerce-address-fields__field-wrapper input:focus,
.woocommerce-address-fields__field-wrapper textarea:focus,
.woocommerce-address-fields__field-wrapper select:focus {
    border-color: #4d0322;
    background: #fff;
    outline: none;
}

.woocommerce-address-fields__field-wrapper .woocommerce-invalid input,
.woocommerce-address-fields__field-wrapper .woocommerce-invalid select {
    border-color: #e74c3c;
}

.woocommerce-address-fields__field-wrapper .woocommerce-validated input,
.woocommerce-address-fields__field-wrapper .woocommerce-validated select {
    border-color: #27ae60;
}

@media (max-width: 575px) {
    .woocommerce-address-fields__field-wrapper .form-row-first,
    .woocommerce-address-fields__field-wrapper .form-row-last {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================================================
   My Account – Edit account form
   ========================================================================= */

.ma-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.ma-form-grid .ma-field {
    flex: 0 0 100%;
}

.ma-form-grid .ma-field--half {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
}

.ma-section-title--spaced {
    margin-top: 32px;
}

.ma-field__hint {
    font-weight: 400;
    font-size: 0.78rem;
    color: #aaa;
    margin-left: 4px;
}

/* Input styles for .ma-edit-account-form are inherited from .ma-field */

@media (max-width: 575px) {
    .ma-form-grid .ma-field--half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================================================
   Nextend Social Login – button styling
   ========================================================================= */

/* Wrapper injected at bottom of login / register forms */
.nsl-container {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8e0d0;
}

.nsl-container .nsl-container-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual provider button */
.nsl-button {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 0;
    border-radius: 6px !important;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    transition: filter 0.15s, box-shadow 0.15s !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.nsl-button:hover {
    filter: brightness(0.94);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    text-decoration: none !important;
}

/* Icon container */
.nsl-button-svg-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.nsl-button-svg-container svg,
.nsl-button-svg-container img {
    width: 20px;
    height: 20px;
}

/* Label */
.nsl-button-label-container {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    color: #fff;
    line-height: 44px;
    height: 44px;
    letter-spacing: 0.02em;
}

/* Google overrides (white background per brand guidelines) */
.nsl-button-google {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
}

.nsl-button-google .nsl-button-svg-container {
    background: #fff;
}

.nsl-button-google .nsl-button-label-container {
    color: #444;
}

.nsl-button-google:hover {
    border-color: #bbb !important;
}

/* =========================================================================
   My Account – Social login separator
   ========================================================================= */

.ma-social-login {
    margin-top: 20px;
}

.ma-social-login__sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ma-social-login__sep::before,
.ma-social-login__sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e0d0;
}

/* Override NSL container margin inside our wrapper */
.ma-social-login .nsl-container {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* =========================================================================
   Checkout – login reminder banner & collapsible form
   ========================================================================= */

/* "Sei già cliente? Accedi" banner */
.woocommerce-form-login-toggle.woocommerce-info {
    background: #f5f0e8;
    border-left: 4px solid var(--primary-color, #8b1a1a);
    color: #5a4a3a;
    padding: 12px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 0.92rem;
}

.woocommerce-form-login-toggle .showlogin {
    color: var(--primary-color, #8b1a1a);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-form-login-toggle .showlogin:hover {
    text-decoration: underline;
}

/* Collapsible login form */
.woocommerce-form-login {
    background: #faf7f2;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    padding: 28px 32px;
    margin-bottom: 32px;
    display: none; /* shown via WC JS on .showlogin click (checkout page) */
}

/* On the my-account page the form is always shown directly, no box */
.woocommerce-account .woocommerce-form-login {
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

/* --- Block cart: centered with max-width --- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 24px 60px;
    box-sizing: border-box;
}

/* --- Block cart: product thumbnails — show full image without cropping --- */
.wc-block-cart-item__image > a {
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
}
.wc-block-cart-item__image img,
.wc-block-cart-items .wc-block-cart-item__image img {
    width: auto !important;
    max-width: none !important;
    height: 120px !important;
    object-fit: contain;
    background-color: #faf5ec;
    display: block;
    margin: 0 auto;
}

/* Product name links in block cart */
.wc-block-cart-item__product-name,
.wc-block-cart-item__product-name a,
.wc-block-cart-items a.wc-block-cart-item__product-name,
.wp-block-woocommerce-cart .wc-block-cart-items a,
.wp-block-woocommerce-cart .wc-block-cart-item__product-details a,
.wc-block-cart-item__product-details a {
    color: #4d0322 !important;
    text-decoration: none !important;
}
.wp-block-woocommerce-cart .wc-block-cart-items a:hover,
.wc-block-cart-item__product-details a:hover {
    color: #6b0030 !important;
    text-decoration: underline !important;
}

/* --- Block cart: checkout button --- */
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wp-element-button {
    background: #4d0322 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 40px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    width: 100%;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wp-element-button:hover {
    background: #6b0030 !important;
}

/* --- Order received (thank you) page --- */
.woocommerce-order {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 24px 60px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #3a3028;
}

.woocommerce-order *,
.woocommerce-order p,
.woocommerce-order ul,
.woocommerce-order td,
.woocommerce-order th,
.woocommerce-order address {
    font-family: "Poppins", sans-serif;
}

/* "Thank you" message */
.woocommerce-thankyou-order-received {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a3028;
    margin-bottom: 24px;
}

/* Order overview — plain inline list */
.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    border: none;
    background: none;
}

.woocommerce-order-overview li {
    font-size: 0.8rem;
    color: #7a6a5a;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.woocommerce-order-overview li strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3a3028;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
}

/* Section titles */
.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3a3028;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 2px solid #e8e0d0;
    padding-bottom: 8px;
    margin-bottom: 0;
}

/* Order items table */
.woocommerce-order-details {
    margin-bottom: 40px;
}

.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.woocommerce-table--order-details thead th {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e0d0;
    color: #7a6a5a;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    text-align: left;
}

.woocommerce-table--order-details tbody td {
    padding: 16px;
    border-bottom: 1px solid #e8e0d0;
    color: #3a3028;
    vertical-align: middle;
}

.woocommerce-table--order-details tfoot tr td,
.woocommerce-table--order-details tfoot tr th {
    padding: 12px 16px;
    border-top: 1px solid #e8e0d0;
    color: #3a3028;
    font-size: 0.9rem;
    text-align: left;
}

.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child th {
    font-weight: 700;
    font-size: 1rem;
    color: #1a0a10;
}

/* Billing/shipping address — full width, stacked, no box */
.woocommerce-customer-details {
    margin-bottom: 32px;
}

.woocommerce-customer-details .woocommerce-columns {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.woocommerce-customer-details .woocommerce-column {
    width: 100% !important;
    float: none !important;
}

.woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.8;
    color: #3a3028;
    margin-top: 8px;
}

/* --- BACS bank details section --- */
.woocommerce-bacs-bank-details {
    margin-top: 32px;
}

.wc-bacs-bank-details-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3a3028;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 2px solid #e8e0d0;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.wc-bacs-bank-details-account-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3a3028;
    margin: 16px 0 8px;
}

.wc-bacs-bank-details {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.wc-bacs-bank-details li {
    font-size: 0.9rem;
    color: #5a4a3a;
    padding: 6px 0;
    border-bottom: 1px solid #f0e8dc;
}

.wc-bacs-bank-details li strong {
    color: #3a3028;
    font-weight: 600;
}

/* =========================================================================
   View order – sticky meta bar
   ========================================================================= */

.ma-order-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-top: 2px solid #4d0322;
    border-bottom: 1px solid #e8e0d0;
    margin-bottom: 32px;
}

.ma-order-bar__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 20px;
    border-right: 1px solid #e8e0d0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.ma-order-bar__item:last-child {
    border-right: none;
    margin-left: auto;
}

.ma-order-bar__item--total strong {
    font-size: 1.05rem;
    color: #4d0322;
}

.ma-order-bar__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    display: block;
    margin-bottom: 2px;
}

.ma-order-bar__item strong {
    font-weight: 700;
    color: #1a0a10;
    font-size: 0.9rem;
}

.ma-order-bar .ma-status {
    font-size: 0.78rem;
    padding: 2px 8px;
}

/* Product image column */
.ma-order-img-cell {
    width: 56px;
    padding: 10px 12px 10px 0 !important;
    vertical-align: middle;
}

.ma-order-img {
    height: 80px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    display: block;
}

.ma-order-img-cell a {
    display: block;
    line-height: 0;
}

/* Back link + actions row */
.ma-view-order-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e0d0;
}

@media (max-width: 767px) {
    .ma-order-bar {
        position: static;
        flex-direction: column;
    }
    .ma-order-bar__item {
        border-right: none;
        border-bottom: 1px solid #e8e0d0;
        padding: 10px 16px;
    }
    .ma-order-bar__item--total { margin-left: 0; }
}

/* Scope checkout sidebar sticky to checkout page only */
.woocommerce-checkout .order-details {
    position: sticky;
    top: 100px;
}


.wp-block-woocommerce-cart a,
.wc-block-cart-items a,
.wc-block-cart-item__product-details a,
.wc-block-cart-item__product-name {
    color: #4d0322 !important;
    text-decoration: none !important;
}
.wp-block-woocommerce-cart a:hover,
.wc-block-cart-items a:hover {
    color: #6b0030 !important;
}
