/* =========================================================
   Shared Ecommerce Styles — Multi Screenprinters & Signs
   ========================================================= */

/* ── Container ─────────────────────────────────────────── */
.ec-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.ec-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0;
}
.ec-breadcrumb nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.ec-breadcrumb a { color: #64748b; text-decoration: none; transition: color .15s; }
.ec-breadcrumb a:hover { color: var(--primary-color); }
.ec-breadcrumb .sep { color: #cbd5e1; margin: 0 2px; font-family: system-ui, -apple-system, sans-serif; }
.ec-breadcrumb .current { color: #334155; font-weight: 600; }

/* ── Shop layout (sidebar left + main right) ────────────── */
.ec-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
    align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.ec-sidebar {
    position: sticky;
    top: 90px;
}
.ec-widget {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.1rem;
}
.ec-widget-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin: 0 0 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Category list ───────────────────────────────────────── */
.ec-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}
.ec-cat-list::-webkit-scrollbar { width: 3px; }
.ec-cat-list::-webkit-scrollbar-thumb { background: #d1d9e0; border-radius: 3px; }
.ec-cat-item { display: flex; }
.ec-cat-item .filter-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 7px 9px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13.5px;
    font-family: var(--font-body);
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    text-align: left;
    transition: background .15s, color .15s;
}
.ec-cat-item .filter-btn:hover { background: #f1f5f9; }
.ec-cat-item .filter-btn.active { background: #eff6ff; color: var(--primary-color); font-weight: 700; }
.ec-cat-count {
    font-size: 11px;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* ── Price filter ────────────────────────────────────────── */
.ec-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.ec-price-input, .price-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1.5px solid #d1d9e0;
    border-radius: 7px;
    font-size: 13px;
    font-family: var(--font-body);
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}
.ec-price-input:focus, .price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}
.ec-price-dash { color: #94a3b8; font-size: 13px; }
.ec-btn-apply, .apply-price-btn {
    display: block;
    width: 100%;
    padding: 9px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .18s;
}
.ec-btn-apply:hover, .apply-price-btn:hover { background: #1d4ed8; }
.ec-btn-clear, .clear-filters-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 8px;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    font-family: var(--font-body);
    color: #64748b;
    cursor: pointer;
    transition: all .18s;
    text-align: center;
    box-sizing: border-box;
}
.ec-btn-clear:hover, .clear-filters-btn:hover { border-color: #dc2626; color: #dc2626; }

/* ── Toolbar (results count + sort) ─────────────────────── */
.ec-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.ec-results-count {
    font-size: 13.5px;
    color: #64748b;
}
.ec-results-count strong { color: #334155; }
.ec-sort-select {
    padding: 7px 34px 7px 12px;
    border: 1.5px solid #d1d9e0;
    border-radius: 7px;
    font-size: 13.5px;
    font-family: var(--font-body);
    color: #334155;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 13px;
}
.ec-sort-select:focus { outline: none; border-color: var(--primary-color); }

/* ── Product grid ────────────────────────────────────────── */
.ec-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ── Product card ────────────────────────────────────────── */
.ec-product-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .22s, transform .22s;
}
.ec-product-card:hover {
    box-shadow: 0 8px 28px rgba(15,23,42,.1);
    transform: translateY(-3px);
}
.ec-product-img-wrap {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.ec-product-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,64,175,.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}
.ec-product-img-overlay span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: .03em;
}
.ec-product-card:hover .ec-product-img-overlay { opacity: 1; }
.ec-product-img {
    height: 210px;
    display: block;
    width: 100%;
    overflow: hidden;
}
.ec-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.ec-product-card:hover .ec-product-img img { transform: scale(1.06); }
.ec-product-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ec-product-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}
.ec-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 0.6rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ec-product-title a { color: inherit; text-decoration: none; transition: color .15s; }
.ec-product-title a:hover { color: var(--primary-color); }
.ec-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.ec-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}
.ec-product-sale {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 4px;
}
.ec-btn-cart {
    padding: 7px 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .18s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.ec-btn-cart:hover { background: #1d4ed8; }
.ec-btn-quote {
    padding: 7px 14px;
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.ec-btn-quote:hover { background: var(--primary-color); color: #fff; }

/* ── Skeleton loading ────────────────────────────────────── */
@keyframes ec-shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}
.ec-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 1600px 100%;
    animation: ec-shimmer 1.6s infinite linear;
    border-radius: 4px;
}
.ec-skeleton-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    overflow: hidden;
}
.ec-skeleton-img {
    height: 210px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 1600px 100%;
    animation: ec-shimmer 1.6s infinite linear;
}
.ec-skeleton-body { padding: 1rem 1.1rem; }
.ec-skeleton-line {
    height: 12px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 1600px 100%;
    animation: ec-shimmer 1.6s infinite linear;
    border-radius: 4px;
}

/* ── Empty / error states ────────────────────────────────── */
.ec-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    grid-column: 1 / -1;
}
.ec-empty-icon { font-size: 2.8rem; display: block; margin-bottom: 0.75rem; }
.ec-empty p { font-size: 1rem; margin: 0 0 1.25rem; }
.ec-empty-title { font-size: 1.1rem; font-weight: 700; color: #334155; margin: 0 0 0.5rem; }

/* ── Pagination ──────────────────────────────────────────── */
.ec-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0 1.5rem;
}
.ec-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    border: 1.5px solid #d1d9e0;
    background: #fff;
    border-radius: 7px;
    font-size: 13.5px;
    font-family: var(--font-body);
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all .18s;
}
.ec-pagination button:hover:not(:disabled) { border-color: var(--primary-color); color: var(--primary-color); }
.ec-pagination button.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.ec-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.ec-pagination .pg-dots { border: none; background: none; cursor: default; color: #94a3b8; min-width: auto; }
.ec-pagination .pg-dots:hover { border: none; color: #94a3b8; }

/* ── Cart page ───────────────────────────────────────────── */
.ec-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 2.5rem 0 5rem;
    align-items: start;
}
.ec-cart-wrap {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
}
.ec-cart-table { width: 100%; border-collapse: collapse; }
.ec-cart-table thead th {
    text-align: left;
    padding: 14px 18px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1.5px solid #e8edf3;
}
.ec-cart-table thead th:last-child,
.ec-cart-table thead th:nth-child(3) { text-align: right; }
.ec-cart-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.ec-cart-table tbody tr:last-child td { border-bottom: none; }
.ec-cart-product { display: flex; align-items: flex-start; gap: 1rem; }
.ec-cart-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #e8edf3;
}
.ec-cart-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 3px;
    text-decoration: none;
    display: block;
}
.ec-cart-name:hover { color: var(--primary-color); }
.ec-cart-meta { font-size: 12px; color: #94a3b8; line-height: 1.5; }
.ec-cart-price, .ec-cart-subtotal { font-size: 14px; font-weight: 600; color: #0f172a; text-align: right; }

/* Mobile / tablet cart cards — keep unit + line totals visible */
.ec-cart-list { display: none; flex-direction: column; }
.ec-cart-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    align-items: start;
}
.ec-cart-card:last-child { border-bottom: none; }
.ec-cart-card__img {
    width: 70px; height: 70px; border-radius: 8px; object-fit: cover;
    background: #f1f5f9; border: 1px solid #e8edf3;
}
.ec-cart-card__body { min-width: 0; }
.ec-cart-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ec-cart-card__line { font-size: 15px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.ec-cart-card__unit { font-size: 12px; color: #64748b; font-weight: 500; }
.ec-cart-card__controls {
    grid-column: 2 / -1;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.ci-sign-block {
    margin-top: 6px; padding: 8px 10px; background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 8px; font-size: 12px; color: #166534; line-height: 1.45;
}
.ci-sign-block strong {
    display: block; margin-bottom: 2px; color: #14532d;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
}
.ec-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.ec-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    transition: background .15s;
    line-height: 1;
}
.ec-qty-btn:hover { background: #e2e8f0; color: #0f172a; }
.ec-qty-input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: 1.5px solid #d1d9e0;
    border-right: 1.5px solid #d1d9e0;
    text-align: center;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    color: #0f172a;
}
.ec-qty-input:focus { outline: none; }
.ec-cart-remove {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color .15s;
    line-height: 1;
}
.ec-cart-remove:hover { color: #dc2626; }
/* Order summary */
.ec-order-summary {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}
.ec-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}
.ec-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
    margin-bottom: 0.75rem;
}
.ec-summary-row.total {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e8edf3;
    margin-bottom: 0;
}
.ec-checkout-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-body);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s;
    margin-top: 1.25rem;
}
.ec-checkout-btn:hover { background: #1d4ed8; }
.ec-continue-btn {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
}
.ec-continue-btn:hover { color: var(--primary-color); }
.ec-cart-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}
.ec-cart-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }

/* ── Checkout page ───────────────────────────────────────── */
.ec-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    padding: 2.5rem 0 5rem;
    align-items: start;
}
.ec-form-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.25rem;
}
.ec-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ec-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ec-form-row.full { grid-template-columns: 1fr; }
.ec-form-group { margin-bottom: 1rem; }
.ec-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}
.ec-form-group .required { color: #ef4444; }
.ec-form-input, .ec-form-select, .ec-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}
.ec-form-input:focus, .ec-form-select:focus, .ec-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,64,175,.07);
}
.ec-form-textarea { resize: vertical; min-height: 90px; }

/* ── Order status pages ──────────────────────────────────── */
.ec-status-page {
    max-width: 700px;
    margin: 3rem auto 5rem;
    padding: 0 24px;
    text-align: center;
}
.ec-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
}
.ec-status-icon--success { background: #dcfce7; }
.ec-status-icon--cancelled { background: #fee2e2; }
.ec-status-heading { font-size: 1.8rem; font-weight: 700; color: #0f172a; margin: 0 0 0.5rem; }
.ec-status-sub { color: #64748b; font-size: 1rem; margin: 0 0 2rem; }
.ec-order-details-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}
.ec-order-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.ec-order-details-row:last-child { border-bottom: none; }
.ec-order-details-label { color: #64748b; font-weight: 500; }
.ec-order-details-value { color: #0f172a; font-weight: 600; text-align: right; }

/* ── Product detail page ─────────────────────────────────── */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0 4rem;
    align-items: start;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ec-layout { grid-template-columns: 230px 1fr; }
    .ec-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .ec-layout { grid-template-columns: 1fr; }
    .ec-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .ec-product-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-cart-layout, .ec-checkout-layout { grid-template-columns: 1fr; }
    .ec-order-summary { position: static; }
    .ec-form-row { grid-template-columns: 1fr; }
    .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
    /* Switch cart table → cards so prices stay visible */
    .ec-cart-table { display: none; }
    .ec-cart-list { display: flex; }
}
@media (max-width: 600px) {
    .ec-sidebar { grid-template-columns: 1fr; }
    .ec-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
    .ec-product-img { height: 160px; }
    .ec-container { padding: 0 16px; }
    .ec-cart-card { grid-template-columns: 60px minmax(0, 1fr) auto; padding: 14px; }
    .ec-cart-card__img { width: 60px; height: 60px; }
    .ec-order-summary { margin-top: 0.5rem; }
}
@media (max-width: 420px) {
    .ec-product-grid { grid-template-columns: 1fr; }
}

/* ── Track order page (aligns with order-success / order-cancelled) ── */
.ec-status-icon--track {
    background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 100%);
    color: #1e40af;
    font-size: 2rem;
    line-height: 1;
}
.ec-track-card-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}
.ec-track-form-wrap {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.ec-track-form .ec-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}
.ec-track-form .ec-btn-cart {
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 0.25rem;
}
.ec-track-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}
.ec-track-actions a {
    text-decoration: none;
}
.ec-track-loading {
    color: #64748b;
    font-size: 15px;
    padding: 2rem 1rem;
}
.ec-track-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: ec-track-spin 0.75s linear infinite;
}
@keyframes ec-track-spin {
    to { transform: rotate(360deg); }
}
.ec-track-status-pill {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #eff6ff;
    color: var(--primary-color);
}
.ec-track-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin: 0 0 0.75rem;
}
/* Order line items (track / account) — compact cart-style rows */
.ec-track-lines {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ec-track-line {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
    text-align: left;
}
.ec-track-line:last-child {
    border-bottom: none;
}
.ec-track-line-img-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.ec-track-line-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ec-track-line-main {
    flex: 1;
    min-width: 0;
}
.ec-track-line-title {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    font-size: 13.5px;
}
.ec-track-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.ec-track-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.3;
}
.ec-track-tag--variant {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.ec-track-tag--addon {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.ec-track-line-price {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    font-size: 13.5px;
    padding-top: 2px;
}
.ec-track-addr {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0.5rem 0 0;
    text-align: left;
}
.ec-track-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.ec-track-history-list li {
    padding: 0.65rem 0 0.65rem 1rem;
    margin-bottom: 0.35rem;
    border-left: 3px solid #cbd5e1;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.45;
}
.ec-track-history-list li strong {
    color: #0f172a;
}
.ec-track-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    font-size: 14px;
    margin-bottom: 1.25rem;
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.ec-track-result .ec-order-details-card {
    margin-bottom: 1.25rem;
}
.ec-track-result .ec-status-heading {
    font-size: 1.65rem;
}

/* ── Storefront chrome (aligned with main site) ─────────── */
body.ec-storefront .product-header {
    padding-top: calc(100px + 1.5rem);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

body.ec-storefront .product-detail {
    background: #f8fafc;
}


body.ec-storefront header,
body.ec-storefront .site-header-ec {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Match main site header (modern.css brand blue — not luxury navy) */
    background: rgba(30, 64, 175, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 20px rgba(30, 64, 175, 0.12);
}

body.ec-storefront header.header-scrolled,
body.ec-storefront .site-header-ec.header-scrolled {
    background: rgba(30, 58, 138, 0.92);
    box-shadow: 0 8px 40px rgba(30, 58, 138, 0.25);
    border-bottom-color: rgba(147, 197, 253, 0.25);
}

body.ec-storefront main {
    padding-top: 0;
}

body.ec-storefront .page-header {
    padding-top: calc(100px + 2rem);
}

.nav-ec-util {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.nav-ec-util-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: var(--font-body, inherit);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: color 0.25s;
    white-space: nowrap;
    line-height: 1.2;
    position: relative;
}

.nav-ec-util-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color, #3b82f6);
    transition: width 0.25s, left 0.25s;
}

.nav-ec-util-link:hover,
.nav-ec-util-link.is-active {
    color: #fff;
    background: transparent;
    border: none;
    text-decoration: none;
}

.nav-ec-util-link:hover::after,
.nav-ec-util-link.is-active::after {
    width: 100%;
    left: 0;
}

.cart-badge-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    margin-left: 0.2rem;
    border-radius: 999px;
    background: var(--secondary-color, #3b82f6);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    vertical-align: middle;
}

.cart-badge-nav[hidden] {
    display: none !important;
}

/* Floating cart — brand colours (not generic grey) */
.cart-float {
    background-color: var(--primary-color, #1e40af) !important;
    bottom: 20px !important;
    left: 20px !important;
}

.cart-float:hover {
    background-color: var(--primary-light, #2563eb) !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e !important;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Auth pages — match site page-header */
body.ec-storefront .auth-header {
    background: var(--gradient-brand, linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 55%, var(--primary-light) 100%));
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
    padding: calc(100px + 2.5rem) 0 3rem;
    color: #fff;
    text-align: center;
}

body.ec-storefront .ve-wrap {
    padding-top: calc(100px + 2rem);
}

@media (max-width: 968px) {
    .nav-ec-util {
        display: none;
    }
}

@media (max-width: 768px) {
    body.ec-storefront .page-header {
        padding-top: calc(88px + 1.5rem);
    }
}


/* Storefront site width: 1400px for the header, content and footer containers */
body.ec-storefront .nav-container,
body.ec-storefront .container {
    max-width: 1400px;
}

/* Footer logo link: inherit the footer text colour instead of the browser default blue */
body.ec-storefront footer .footer-logo,
body.ec-storefront footer .footer-logo:hover {
    color: inherit;
}
