/*
Theme Name:  EnglishEbook.net
Template:    pressbook
Description: Child theme — custom WooCommerce single product with multi-variant checkbox selection.
Version:     1.5.7
Author:      Digital Store
Text Domain: pressbook-ebook
*/

/* ── Variables ─────────────────────────────────────────── */
:root {
    --eb-primary:   #2563eb;
    --eb-primary-h: #1d4ed8;
    --eb-success:   #16a34a;
    --eb-border:    #e5e7eb;
    --eb-bg:        #f9fafb;
    --eb-muted:     #6b7280;
    --eb-radius:    8px;
    --eb-shadow:    0 1px 6px rgba(0,0,0,.08);
}

/* ── Product tags ──────────────────────────────────────── */
.eb-product-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.eb-product-tag { padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; background:#f3f4f6; color:#374151; }
.eb-product-tag-pub { background:var(--eb-primary); color:#fff; }

/* ── Price range ───────────────────────────────────────── */
.eb-price-range { font-size:1.5rem; font-weight:700; color:var(--eb-primary); margin-bottom:14px; display:block; }

/* ── Variants label ────────────────────────────────────── */
.eb-variants-label {
    font-size:11px !important;
    font-weight:900 !important;
    color:#111827 !important;
    text-transform:uppercase !important;
    letter-spacing:.12em !important;
    margin-bottom:10px !important;
    border-left:3px solid #2563eb !important;
    padding-left:8px !important;
}

/* ── Variant rows ──────────────────────────────────────── */
.eb-variants-list { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }

.eb-variant-row {
    display:flex; align-items:center; gap:10px;
    padding:10px 14px;
    border:1.5px solid var(--eb-border);
    border-radius:var(--eb-radius);
    cursor:pointer; background:#fff;
    transition:border-color .15s, background .15s;
    user-select:none;
}
.eb-variant-row:hover { border-color:#93c5fd; background:#eff6ff; }
.eb-variant-row.checked { border-color:var(--eb-primary); background:#eff6ff; }
.eb-variant-row.unavailable { opacity:.5; cursor:not-allowed; pointer-events:none; }

/* Checkbox indicator */
.eb-var-chk {
    width:18px; height:18px; flex-shrink:0;
    border:2px solid var(--eb-border); border-radius:4px;
    background:#fff; display:flex; align-items:center; justify-content:center;
    transition:all .15s; font-size:11px; color:transparent;
}
.eb-variant-row.checked .eb-var-chk { background:var(--eb-primary); border-color:var(--eb-primary); color:#fff; }

.eb-var-thumb { display:none; }
.eb-var-name  { flex:1; font-size:14px; font-weight:600; color:#111827; }
.eb-var-price { font-size:14px; font-weight:700; color:var(--eb-primary); white-space:nowrap; }
.eb-var-unavail { font-size:12px; color:var(--eb-muted); }

/* ── Summary bar ───────────────────────────────────────── */
.eb-summary-bar {
    display:flex; align-items:center; gap:10px; flex-wrap:wrap;
    padding:10px 14px; border-radius:var(--eb-radius);
    background:#f0fdf4; border:1px solid #86efac;
    margin-bottom:12px; font-size:13px;
}
.eb-summary-label { color:var(--eb-muted); font-weight:600; flex-shrink:0; }
.eb-summary-tags  { display:flex; gap:6px; flex-wrap:wrap; flex:1; }
.eb-summary-tag {
    display:inline-flex; align-items:center; gap:4px;
    background:var(--eb-primary); color:#fff;
    border-radius:20px; padding:2px 10px; font-size:12px; font-weight:600;
}
.eb-summary-tag button { background:none; border:none; color:rgba(255,255,255,.8); font-size:14px; line-height:1; padding:0; cursor:pointer; }
.eb-summary-total { font-size:15px; font-weight:700; color:var(--eb-primary); margin-left:auto; white-space:nowrap; }

/* ── Add to cart button ────────────────────────────────── */
.eb-add-btn {
    display:flex; align-items:center; justify-content:center; gap:8px;
    width:100%; padding:13px 24px;
    background:var(--eb-success); color:#fff;
    border:none; border-radius:var(--eb-radius);
    font-size:16px; font-weight:700; cursor:pointer;
    transition:all .2s; margin-bottom:10px;
}
.eb-add-btn:hover:not(:disabled) { background:#15803d; transform:translateY(-1px); box-shadow:0 4px 12px rgba(22,163,74,.3); }
.eb-add-btn:disabled { background:#d1d5db; color:#9ca3af; cursor:not-allowed; transform:none; }

/* ── Trust badges ──────────────────────────────────────── */
.eb-trust { display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--eb-muted); margin:6px 0 10px; }

/* ── Cart bar ──────────────────────────────────────────── */
.eb-cart-bar { font-size:13px; font-weight:600; color:var(--eb-success); margin-top:6px; }
.eb-cart-bar a { color:var(--eb-primary); margin-left:6px; text-decoration:none; }

/* ── Toast ─────────────────────────────────────────────── */
.eb-toast {
    position:fixed; bottom:24px; right:24px; z-index:99999;
    background:#1f2937; color:#fff; border-radius:10px;
    padding:13px 20px; font-size:14px;
    box-shadow:0 4px 20px rgba(0,0,0,.3);
    display:flex; align-items:center; gap:10px;
    max-width:340px; animation:eb-toast-in .25s ease;
}
.eb-toast a { color:#93c5fd; font-weight:600; text-decoration:none; }
@keyframes eb-toast-in { from { transform:translateY(14px); opacity:0; } }


/* ═══════════════════════════════════════════════════════════
   CART & CHECKOUT — light polish, mobile-first
   Không override template PHP, chỉ CSS thuần
   Version: 1.5.5
═══════════════════════════════════════════════════════════ */

/* ── Shared: giới hạn chiều rộng trang ─────────────────── */
.woocommerce-cart   .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
}

/* ── CART TABLE ─────────────────────────────────────────── */

/* Xóa border mặc định xấu của WC */
.woocommerce-cart-form .shop_table {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

/* Header row */
.woocommerce-cart-form .shop_table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--eb-muted);
    padding: 0 10px 10px;
    border-bottom: 1.5px solid var(--eb-border) !important;
}

/* Mỗi row sản phẩm */
.woocommerce-cart-form .shop_table tbody tr {
    background: #fff;
}
.woocommerce-cart-form .shop_table tbody tr td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--eb-border) !important;
    vertical-align: middle;
}
.woocommerce-cart-form .shop_table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Thumbnail */
.woocommerce-cart-form .shop_table td.product-thumbnail {
    width: 72px;
    padding-right: 0;
}
.woocommerce-cart-form .shop_table td.product-thumbnail img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Tên sản phẩm */
.woocommerce-cart-form .shop_table td.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
}
.woocommerce-cart-form .shop_table td.product-name a {
    color: inherit;
    text-decoration: none;
}
.woocommerce-cart-form .shop_table td.product-name a:hover {
    color: var(--eb-primary);
}

/* Giá */
.woocommerce-cart-form .shop_table td.product-price,
.woocommerce-cart-form .shop_table td.product-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: var(--eb-primary);
    white-space: nowrap;
}

/* Qty input */
.woocommerce-cart-form .shop_table td.product-quantity .qty {
    width: 58px !important;
    padding: 7px 8px !important;
    text-align: center;
    border: 1.5px solid var(--eb-border) !important;
    border-radius: var(--eb-radius) !important;
    font-size: 14px !important;
    font-weight: 600;
}

/* Nút remove */
.woocommerce-cart-form .shop_table td.product-remove a.remove {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1;
    transition: all .15s;
}
.woocommerce-cart-form .shop_table td.product-remove a.remove:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Coupon + Update row */
.woocommerce-cart-form .actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0 4px;
    border-top: none;
}
.woocommerce-cart-form .actions .coupon {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 200px;
    max-width: 340px;
}
.woocommerce-cart-form .actions .coupon #coupon_code {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid var(--eb-border) !important;
    border-radius: var(--eb-radius) !important;
    font-size: 13px;
}
.woocommerce-cart-form .actions .coupon .button,
.woocommerce-cart-form .actions button[name="apply_coupon"] {
    padding: 9px 16px !important;
    background: transparent !important;
    color: var(--eb-primary) !important;
    border: 1.5px solid var(--eb-primary) !important;
    border-radius: var(--eb-radius) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s;
}
.woocommerce-cart-form .actions .coupon .button:hover,
.woocommerce-cart-form .actions button[name="apply_coupon"]:hover {
    background: #eff6ff !important;
}
.woocommerce-cart-form .actions button[name="update_cart"] {
    padding: 9px 14px !important;
    background: transparent !important;
    color: var(--eb-muted) !important;
    border: 1.5px solid var(--eb-border) !important;
    border-radius: var(--eb-radius) !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    margin-left: auto;
}
.woocommerce-cart-form .actions button[name="update_cart"]:hover {
    border-color: #9ca3af !important;
    color: #374151 !important;
}

/* ── CART TOTALS ────────────────────────────────────────── */
.cart-collaterals .cart_totals {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    float: none !important;
}
.cart_totals h2 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}
.cart_totals .shop_table {
    border: 1.5px solid var(--eb-border) !important;
    border-radius: 10px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    width: 100%;
    margin-bottom: 16px;
}
.cart_totals .shop_table th,
.cart_totals .shop_table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--eb-border) !important;
    font-size: 14px;
    vertical-align: middle;
}
.cart_totals .shop_table tr:last-child th,
.cart_totals .shop_table tr:last-child td {
    border-bottom: none !important;
}
.cart_totals .shop_table .order-total th,
.cart_totals .shop_table .order-total td {
    font-weight: 700;
    font-size: 16px;
    color: var(--eb-primary);
}
.cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: var(--eb-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--eb-radius) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--eb-primary-h) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

/* ── CHECKOUT FORM ──────────────────────────────────────── */

/* Billing details heading */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--eb-border);
}

/* Labels */
.woocommerce-checkout .form-row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--eb-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
    display: block;
}

/* Inputs */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    padding: 10px 13px !important;
    border: 1.5px solid var(--eb-border) !important;
    border-radius: var(--eb-radius) !important;
    font-size: 14px !important;
    color: #111827;
    width: 100% !important;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none !important;
    border-color: var(--eb-primary) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
}
.woocommerce-checkout .form-row textarea { min-height: 76px; resize: vertical; }

/* Order review table */
#order_review .shop_table {
    border: 1.5px solid var(--eb-border) !important;
    border-radius: 10px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    width: 100%;
    font-size: 14px;
}
#order_review .shop_table th {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--eb-muted) !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 14px !important;
    border-bottom: 1.5px solid var(--eb-border) !important;
    background: #f9fafb;
}
#order_review .shop_table td {
    padding: 11px 14px !important;
    border-bottom: 1px solid var(--eb-border) !important;
    vertical-align: top;
}
#order_review .shop_table tr:last-child td { border-bottom: none !important; }
#order_review .shop_table .product-total,
#order_review .shop_table .order-total td {
    font-weight: 700;
    color: var(--eb-primary);
}
#order_review .shop_table tfoot .order-total th,
#order_review .shop_table tfoot .order-total td {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--eb-primary) !important;
}

/* Payment methods */
#payment {
    background: #fff !important;
    border-radius: 10px !important;
    border: 1.5px solid var(--eb-border) !important;
    padding: 0 !important;
    overflow: hidden;
    margin-top: 14px;
}
#payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1.5px solid var(--eb-border);
}
#payment ul.payment_methods li {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--eb-border);
    list-style: none !important;
}
#payment ul.payment_methods li:last-child { border-bottom: none; }
#payment ul.payment_methods label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
#payment .payment_box {
    background: #f9fafb !important;
    border-radius: 6px;
    padding: 10px 12px !important;
    margin: 8px 0 0 !important;
    font-size: 13px !important;
    color: var(--eb-muted) !important;
}
#payment .place-order {
    padding: 16px !important;
    background: transparent !important;
}
#place_order {
    width: 100% !important;
    padding: 13px 20px !important;
    background: var(--eb-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--eb-radius) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
#place_order:hover {
    background: var(--eb-primary-h) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 640px) {

    /* Cart: ẩn cột Price trên mobile, chỉ giữ Name + Qty + Subtotal */
    .woocommerce-cart-form .shop_table thead .product-price,
    .woocommerce-cart-form .shop_table tbody .product-price {
        display: none;
    }

    /* Thumbnail nhỏ lại */
    .woocommerce-cart-form .shop_table td.product-thumbnail img {
        width: 48px !important;
        height: 48px !important;
    }

    /* Tên sản phẩm font nhỏ hơn */
    .woocommerce-cart-form .shop_table td.product-name {
        font-size: 13px;
    }

    /* Cart totals full width */
    .cart-collaterals .cart_totals {
        max-width: 100%;
    }

    /* Checkout: 2 field half-width → full width */
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        float: none !important;
        clear: both;
    }

    /* Payment fonts */
    #payment ul.payment_methods label { font-size: 13px !important; }
    #place_order { font-size: 14px !important; }
}





/* ═══════════════════════════════════════════════════════════
   SINGLE PRODUCT — mobile responsive (v1.5.5)
   Desktop: giữ nguyên layout float 45/50% của v1.0
   Mobile ≤640px: stack 1 cột  Hình → Mô tả → Chọn variant
═══════════════════════════════════════════════════════════ */

/* Ẩn hình thumb trong variant row ở mọi màn hình */
.eb-var-thumb { display: none !important; }

/* Variant row không có thumb: name đủ chỗ, giá không tràn */
.eb-var-name  { flex: 1; min-width: 0; }
.eb-var-price { flex-shrink: 0; }

@media (max-width: 640px) {

    /* Stack hình xuống full width */
    .woocommerce-product-gallery--with-images,
    .woocommerce div.product div.images {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }

    /* Stack summary xuống full width */
    .woocommerce div.product div.summary,
    .summary.entry-summary {
        float: none !important;
        width: 100% !important;
        clear: both;
    }

    /* Title nhỏ lại */
    .product_title.entry-title {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }

    /* Short desc vừa */
    .woocommerce-product-details__short-description {
        font-size: 13px !important;
    }

    /* Variant row gọn */
    .eb-variant-row {
        padding: 10px 12px;
        gap: 8px;
    }
    .eb-var-name  { font-size: 13px; }
    .eb-var-price { font-size: 13px; }
}


/* ── Pulse dot trước CHOOSE YOUR OPTION ─────────────────── */
.eb-pulse-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #2563eb;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
}
.eb-pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #2563eb;
    animation: eb-pulse 1.4s ease-out infinite;
}
@keyframes eb-pulse {
    0%   { transform: scale(1);   opacity: .8; }
    70%  { transform: scale(2.8); opacity: 0;  }
    100% { transform: scale(2.8); opacity: 0;  }
}


/* ── Steps breadcrumb bar ───────────────────────────────── */
.eb-steps-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    font-size: 13px;
    padding: 10px 0 12px;
    border-bottom: 1px solid #e5e7eb;
}

.eb-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

/* Số tròn */
.eb-step__num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all .2s;
}

/* Mũi tên ngăn cách */
.eb-step__arrow {
    color: #d1d5db;
    font-size: 16px;
    margin: 0 6px;
    font-weight: 400;
}

/* Step đã qua */
.eb-step.done { color: #6b7280; }
.eb-step.done .eb-step__num {
    background: #dbeafe;
    color: #2563eb;
}
.eb-step.done:hover { color: #2563eb; }

/* Step hiện tại */
.eb-step.active { color: #111827; font-weight: 700; }
.eb-step.active .eb-step__num {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Ẩn label trên màn hình rất nhỏ, chỉ giữ số */
@media (max-width: 380px) {
    .eb-step__label { display: none; }
    .eb-step__arrow { margin: 0 4px; }
}

/* Ẩn nút zoom gallery WooCommerce */
.woocommerce-product-gallery__trigger { display: none !important; }


/* ═══════════════════════════════════════════════════════════
   SHOP ARCHIVE — sections layout (v1.5.5)
═══════════════════════════════════════════════════════════ */

.eb-shop-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Section wrapper ──────────────────────────────────── */
.eb-shop-section {
    padding: 24px 0 28px;
    border-bottom: 1px solid #f0f0f0;
}
.eb-shop-section:last-child { border-bottom: none; }

.eb-shop-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}
.eb-shop-section__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.eb-section-icon { font-size: 15px; }

.eb-view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--eb-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.eb-view-all:hover { text-decoration: underline; }

/* ── List dọc 2 cột ───────────────────────────────────── */
.eb-sl-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.eb-sl-list--2col {
    grid-template-columns: 1fr 1fr;
}

.eb-sl-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    background: #fff;
}
.eb-sl-row:last-child,
.eb-sl-row:nth-last-child(-n+2):nth-child(odd) { border-bottom: none; }
.eb-sl-row:hover { background: #f8faff; }

/* Chia border giữa 2 cột */
.eb-sl-list--2col .eb-sl-row:nth-child(odd) {
    border-right: 1px solid #f3f4f6;
}

.eb-sl-thumb {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
}
.eb-sl-thumb .eb-sl-img,
.eb-sl-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.eb-sl-info {
    flex: 1;
    min-width: 0;
}
.eb-sl-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eb-sl-cat {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eb-sl-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--eb-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.eb-sl-price .woocommerce-Price-amount { color: inherit; }

/* ── Grid cards ───────────────────────────────────────── */
.eb-gc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.eb-gc-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.eb-gc-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}
.eb-gc-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.eb-gc-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
}
.eb-gc-thumb .eb-gc-img,
.eb-gc-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.eb-gc-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    padding: 8px 8px 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eb-gc-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--eb-primary);
    padding: 0 8px 8px;
}
.eb-gc-price .woocommerce-Price-amount { color: inherit; }

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
    /* 2 cột → 1 cột */
    .eb-sl-list--2col {
        grid-template-columns: 1fr;
    }
    .eb-sl-list--2col .eb-sl-row:nth-child(odd) {
        border-right: none;
    }
    /* Grid 3-4 cột → 2 cột */
    .eb-gc-grid,
    .eb-gc-grid--4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .eb-shop-section {
        padding: 16px 0 20px;
    }
}


/* ── Search bar ─────────────────────────────────────────── */
/* ── Search bar ─────────────────────────────────────────── */
.eb-search-bar { margin-bottom: 8px; }

/* Shared row styles */
.eb-search-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.eb-search-row:focus-within {
    border-color: #4b72b8;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.eb-search-icon {
    padding: 0 4px 0 14px;
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
    opacity: .6;
}
.eb-search-input {
    flex: 1;
    padding: 13px 10px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    color: #111827;
    background: transparent;
    min-width: 0;
}
.eb-search-input::placeholder { color: #9ca3af; }
.eb-search-divider {
    width: 1px; height: 24px;
    background: #e5e7eb;
    flex-shrink: 0;
}
.eb-search-select {
    border: none !important;
    outline: none !important;
    background: transparent;
    font-size: 13px;
    color: #374151;
    padding: 13px 8px;
    cursor: pointer;
    flex-shrink: 0;
    max-width: 130px;
}
.eb-search-select--sort { max-width: 90px; }
.eb-search-btn {
    padding: 13px 22px;
    background: #4b72b8;
    color: #fff;
    border: none !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 0 8px 8px 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.eb-search-btn:hover { background: #3a5fa0; }

/* Tips */
.eb-search-tip {
    font-size: 12px; color: #6b7280;
    margin: 6px 0 16px; line-height: 1.5;
}
.eb-search-tip em     { color: #2563eb; font-style: normal; font-weight: 600; }
.eb-search-tip strong { color: #2563eb; font-weight: 600; }

/* Desktop: hiện row desktop, ẩn mobile */
.eb-search-row--desktop { display: flex; }
.eb-search-mobile       { display: none; }

/* Mobile ≤ 640px: ẩn desktop row, hiện mobile 2 hàng */
@media (max-width: 640px) {
    .eb-search-row--desktop { display: none; }
    .eb-search-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
        border: 1.5px solid #d1d5db;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }
    .eb-search-mobile:focus-within {
        border-color: #4b72b8;
        box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    }
    /* Hàng 1: icon + input + | + category */
    .eb-search-row--top {
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: none !important;
    }
    .eb-search-row--top .eb-search-input { padding: 13px 8px; }
    .eb-search-row--top .eb-search-select { max-width: 120px; font-size: 13px; }
    /* Hàng 2: sort (flex:1) + Search button */
    .eb-search-row--bottom {
        border: none;
        border-radius: 0;
        background: #f9fafb;
        box-shadow: none !important;
    }
    .eb-search-row--bottom .eb-search-select--sort {
        flex: 1;
        max-width: none;
        padding: 12px 10px;
        font-size: 14px;
        background: transparent;
    }
    .eb-search-row--bottom .eb-search-btn {
        border-radius: 0;
        padding: 12px 20px;
        font-size: 14px;
    }
    .eb-search-tip { font-size: 12px; }
}

/* ── Short description: giữ xuống dòng ─────────────────── */
.woocommerce-product-details__short-description p { margin-bottom: 8px; }
.woocommerce-product-details__short-description br { display: block; content: ""; margin: 4px 0; }
.woocommerce-product-details__short-description { white-space: normal; }


/* ── Variant info button & inline panel ─────────────── */
.eb-var-info-btn {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid #93c5fd;
    background: #fff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 6px;
    transition: all .15s;
    line-height: 1;
    padding: 0;
}
.eb-var-info-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

/* Panel ẩn mặc định */
.eb-var-info-panel {
    display: none;
    margin: -4px 0 6px;
    padding: 10px 14px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    animation: eb-panel-in .15s ease;
}
.eb-var-info-panel.eb-var-info-open {
    display: block;
}
@keyframes eb-panel-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.eb-var-info-panel p { margin: 0 0 6px; }
.eb-var-info-panel p:last-child { margin-bottom: 0; }

/* ── Variant image button ───────────────────────────── */
.eb-var-img-btn {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 4px;
    transition: all .15s;
    padding: 0;
    color: #6b7280;
}
.eb-var-img-btn:hover { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
.eb-var-img-btn svg { display: block; }

/* ── View All button ────────────────────────────────── */
.eb-btn-viewall {
    display: inline-block;
    padding: 12px 32px;
    background: var(--eb-primary, #2563eb);
    color: #fff !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.eb-btn-viewall:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: #fff !important;
}


/* ── Order guide link ───────────────────────────────── */
.eb-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px dashed #d1d5db;
    margin-bottom: 12px;
    padding-bottom: 1px;
}
.eb-guide-link:hover {
    color: #2563eb;
    border-color: #2563eb;
}


/* ── Order guide tip box ────────────────────────────── */
.eb-guide-wrap {
    margin-bottom: 14px;
}
.eb-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8faff;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.eb-guide-btn:hover,
.eb-guide-btn--open {
    background: #eff6ff;
    border-color: #2563eb;
}
.eb-guide-arrow {
    font-size: 11px;
    transition: transform .2s;
    display: inline-block;
}
.eb-guide-btn--open .eb-guide-arrow {
    transform: rotate(180deg);
}
.eb-guide-box {
    display: none;
    margin-top: 8px;
    padding: 12px 16px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    animation: eb-panel-in .15s ease;
}
.eb-guide-box.eb-guide-open {
    display: block;
}
.eb-guide-line {
    padding: 3px 0;
}
.eb-guide-line + .eb-guide-line {
    border-top: 1px dashed #dbeafe;
}
.eb-guide-readmore {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.eb-guide-readmore:hover { text-decoration: underline; }


/* ── Cart: ẩn cross-sells + polish nhẹ ─────────────── */
.cart-collaterals .cross-sells,
.woocommerce-cart .cross-sells { display: none !important; }

/* Cart table gọn */
.woocommerce-cart-form .shop_table { border-collapse: collapse; width: 100%; }
.woocommerce-cart-form .shop_table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; padding: 8px 10px; border-bottom: 1.5px solid #e5e7eb; }
.woocommerce-cart-form .shop_table td { padding: 12px 10px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; font-size: 14px; }
.woocommerce-cart-form .shop_table td.product-thumbnail img { width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 6px; }
.woocommerce-cart-form .shop_table td.product-name a { color: #1e293b; font-weight: 600; font-size: 13px; text-decoration: none; }
.woocommerce-cart-form .shop_table td.product-name a:hover { color: #2563eb; }
.woocommerce-cart-form .shop_table td.product-price,
.woocommerce-cart-form .shop_table td.product-subtotal { font-weight: 700; color: #2563eb; white-space: nowrap; }
.woocommerce-cart-form .shop_table td.product-quantity input { width: 54px !important; padding: 6px !important; border: 1.5px solid #e5e7eb !important; border-radius: 6px !important; text-align: center; font-size: 14px; }
.woocommerce-cart-form .shop_table td.product-remove a.remove { display: flex !important; align-items: center; justify-content: center; width: 26px !important; height: 26px !important; border-radius: 50% !important; background: #f3f4f6 !important; color: #9ca3af !important; font-size: 13px !important; transition: all .15s; }
.woocommerce-cart-form .shop_table td.product-remove a.remove:hover { background: #fee2e2 !important; color: #dc2626 !important; }

/* Mobile: ẩn cột Price, giữ thumbnail nhỏ */
@media (max-width: 640px) {
    .woocommerce-cart-form .shop_table thead .product-price,
    .woocommerce-cart-form .shop_table tbody .product-price { display: none !important; }
    .woocommerce-cart-form .shop_table td.product-thumbnail img { width: 44px !important; height: 44px !important; }
    .woocommerce-cart-form .shop_table td.product-name a { font-size: 12px !important; }
    .woocommerce-cart-form .shop_table td { padding: 10px 6px !important; }
}


/* ══════════════════════════════════════════════════════════
   CATALOG TEXT-LINK LIST (khi tắt ảnh) — v1.5.7
══════════════════════════════════════════════════════════ */
.eb-catalog-linklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.eb-catalog-linklist li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: .88rem;
}
.eb-catalog-linklist li:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}
.eb-catalog-ll-link {
    flex: 1;
    color: #1a4f7a;
    text-decoration: none;
    line-height: 1.35;
    transition: color .15s;
}
.eb-catalog-ll-link::before {
    content: "›";
    margin-right: 5px;
    color: #bbb;
}
.eb-catalog-ll-link:hover {
    color: var(--color-accent, #0073aa);
    text-decoration: underline;
}
.eb-catalog-ll-price {
    font-size: .78rem;
    color: #c0392b;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}
@media (max-width: 600px) {
    .eb-catalog-linklist {
        grid-template-columns: 1fr;
    }
    .eb-catalog-linklist li:nth-child(odd) {
        border-right: none;
    }
}
