/* ═══════════════════════════════════════════
   WpProductsView — WooCommerce-style shop
   ═══════════════════════════════════════════ */

.wpp-wrap {
    font-family: inherit;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}

/* ── تب‌های بخش داخل WpProducts (زیر bv-hdr) ─── */
.wpp-sec-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    direction: rtl;
    padding: 0 14px;
    flex-shrink: 0;
}

.wpp-sec-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 36px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-family: inherit;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s;
    white-space: nowrap;
    box-sizing: border-box;
}

.wpp-sec-tab:hover {
    color: #7c3aed;
    background: #faf5ff;
}

.wpp-sec-tab--active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

/* پنل‌ها */
.wpp-sec-panels {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* ── Topbar (ردیف ابزارها: جستجو + فیلتر + مرتب‌سازی) ─── */
.wpp-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: nowrap;
    direction: rtl;
    overflow: hidden;
}

.wpp-search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    flex: 1 1 0;
    min-width: 120px;
    max-width: 340px;
    transition: border-color .15s;
}
.wpp-search-box:focus-within { border-color: #7c3aed; background: #fff; }

.wpp-search-icon { color: #94a3b8; margin-left: 6px; font-size: 14px; }

.wpp-search-input {
    border: none;
    background: transparent;
    padding: 9px 0;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    color: #1e293b;
    direction: rtl;
}
.wpp-search-input:focus { outline: none; }

.wpp-select {
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: border-color .15s;
    flex-shrink: 0;
    max-width: 160px;
}
.wpp-select:focus { outline: none; border-color: #7c3aed; }

.wpp-view-toggle {
    display: flex;
    gap: 2px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.wpp-view-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    transition: all .15s;
}
.wpp-view-btn.active { background: #fff; color: #7c3aed; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.wpp-result-count {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    margin-right: auto;
}

/* ── Layout ───────────────────────────────── */
.wpp-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .wpp-layout { grid-template-columns: 1fr; }
    .wpp-sidebar { display: none; }
}

/* ── Sidebar ──────────────────────────────── */
.wpp-sidebar {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky;
    top: 65px;
}

.wpp-sidebar-title {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: .3px;
}

.wpp-cat-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.wpp-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all .12s;
    border-right: 3px solid transparent;
}

.wpp-cat-item:hover { background: #f8fafc; color: #7c3aed; }

.wpp-cat-item.active {
    background: #faf5ff;
    color: #7c3aed;
    font-weight: 700;
    border-right-color: #7c3aed;
}

.wpp-cat-count {
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
}

.wpp-cat-item.active .wpp-cat-count {
    background: #ede9fe;
    color: #7c3aed;
}

/* ── Grid ─────────────────────────────────── */
.wpp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.wpp-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Card ─────────────────────────────────── */
.wpp-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}

.wpp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.wpp-card:hover .wpp-card-overlay { opacity: 1; }

/* ── Card image ───────────────────────────── */
.wpp-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #f8fafc;
    overflow: hidden;
}

.wpp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.wpp-card:hover .wpp-card-img { transform: scale(1.06); }

.wpp-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #cbd5e1;
    background: #f8fafc;
}

.wpp-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(124,58,237,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}

.wpp-quick-view {
    background: #fff;
    color: #7c3aed;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transform: translateY(4px);
    transition: transform .2s;
}

.wpp-card:hover .wpp-quick-view { transform: translateY(0); }

/* ── Badges ───────────────────────────────── */
.wpp-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.wpp-badge--sale     { background: #ef4444; color: #fff; }
.wpp-badge--outstock { background: #94a3b8; color: #fff; }

/* ── Card body ────────────────────────────── */
.wpp-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wpp-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 18px;
}

.wpp-card-cat {
    font-size: 10px;
    color: #7c3aed;
    background: #ede9fe;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.wpp-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpp-stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 1px;
}
.wpp-stars small { color: #94a3b8; font-size: 11px; }
.wpp-stars--lg { font-size: 16px; }

.wpp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Price ────────────────────────────────── */
.wpp-price-normal {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.wpp-price-sale {
    font-size: 15px;
    font-weight: 800;
    color: #dc2626;
}

.wpp-price-old {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 4px;
}

.wpp-price-pct {
    font-size: 11px;
    font-weight: 700;
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
}

.wpp-price-contact {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* ── Cart button ──────────────────────────── */
.wpp-cart-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    white-space: nowrap;
}

.wpp-cart-btn:hover { background: #6d28d9; }

.wpp-out-label {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

/* ── List card ────────────────────────────── */
.wpp-card--list {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-radius: 12px;
}

.wpp-card--list .wpp-card-img-wrap {
    aspect-ratio: unset;
    height: 160px;
}

.wpp-card--list .wpp-card-body { padding: 16px 20px; justify-content: center; }

.wpp-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.wpp-card-sku {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
}

/* ── Pagination ───────────────────────────── */
.wpp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}

.wpp-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpp-page-btn:hover:not([disabled]) { border-color: #7c3aed; color: #7c3aed; background: #faf5ff; }
.wpp-page-btn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; font-weight: 700; }
.wpp-page-btn[disabled] { opacity: .35; cursor: not-allowed; }
.wpp-page-dots { color: #94a3b8; font-size: 14px; padding: 0 4px; }

/* ── Skeleton ─────────────────────────────── */
.wpp-skeleton {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding-bottom: 12px;
}

.wpp-sk-img {
    width: 100%;
    aspect-ratio: 1;
    background: #e2e8f0;
}

.wpp-sk-line {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin: 10px 14px 4px;
}

.sk-anim {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: sk-shine 1.4s infinite;
}

@keyframes sk-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty / Error ────────────────────────── */
.wpp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.wpp-empty-icon { font-size: 52px; margin-bottom: 12px; }
.wpp-empty-text { font-size: 15px; margin-bottom: 16px; }

.wpp-error {
    grid-column: 1 / -1;
    padding: 20px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    font-size: 13px;
}

.wpp-btn {
    padding: 9px 20px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

/* ── Modal ────────────────────────────────── */
.wpp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: wpp-fade .2s ease;
}

@keyframes wpp-fade { from { opacity: 0; } to { opacity: 1; } }

.wpp-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: wpp-slide .25s ease;
    scrollbar-width: thin;
}

@keyframes wpp-slide {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wpp-modal-close {
    position: sticky;
    top: 0;
    float: left;
    margin-bottom: -36px;
    z-index: 10;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.wpp-modal-close:hover { background: #fee2e2; color: #dc2626; }

.wpp-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 600px) {
    .wpp-modal-inner { grid-template-columns: 1fr; }
}

.wpp-modal-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    background: #f8fafc;
}

.wpp-no-img-lg {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
}

.wpp-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.wpp-gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: border-color .15s;
}
.wpp-gallery-thumb.active { border-color: #7c3aed; }
.wpp-gallery-thumb:hover  { border-color: #a78bfa; }

.wpp-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0 8px;
    line-height: 1.3;
}

.wpp-modal-sku {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
    margin-bottom: 6px;
}

.wpp-modal-price {
    font-size: 20px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wpp-stock-status {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
}

.wpp-instock  { background: #d1fae5; color: #065f46; }
.wpp-outstock { background: #fee2e2; color: #991b1b; }

.wpp-modal-short-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.wpp-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wpp-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.wpp-qty-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: #f8fafc;
    font-size: 18px;
    cursor: pointer;
    color: #475569;
    transition: background .12s;
}
.wpp-qty-btn:hover { background: #ede9fe; color: #7c3aed; }

.wpp-qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-right: 1.5px solid #e2e8f0;
    border-left: 1.5px solid #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
}
.wpp-qty-input:focus { outline: none; }

.wpp-add-cart-btn {
    flex: 1;
    padding: 10px 20px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.wpp-add-cart-btn:hover { background: #6d28d9; }

.wpp-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.wpp-tag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 9px;
    border-radius: 10px;
}

.wpp-view-link {
    display: inline-block;
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
    border-bottom: 1px dashed #a78bfa;
    padding-bottom: 1px;
}
.wpp-view-link:hover { color: #5b21b6; }

.wpp-modal-desc {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.wpp-modal-desc h4 {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 10px;
}

.wpp-desc-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
}

/* ══════════════════════════════════════════════
   دکمه سبد خرید در نوار ابزار
══════════════════════════════════════════════ */
.wpp-cart-icon-btn {
    position: relative;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: background .15s, border-color .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wpp-cart-icon-btn:hover,
.wpp-cart-icon-btn.has-items { background: #ede9fe; border-color: #a78bfa; }

.wpp-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    line-height: 1;
}

/* ══════════════════════════════════════════════
   Modal سبد خرید
══════════════════════════════════════════════ */
.acc-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    z-index: 9500;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: cart-fade .2s ease;
}

@keyframes cart-fade { from { opacity: 0; } to { opacity: 1; } }

.acc-cart-modal {
    background: #fff;
    border-radius: 16px;
    width: 420px;
    max-width: 98vw;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: cart-slide .25s ease;
    overflow: hidden;
}

@keyframes cart-slide {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.acc-cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.acc-cart-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.acc-cart-badge {
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 7px;
    margin-right: 4px;
}

.acc-cart-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
}
.acc-cart-close-btn:hover { background: #fee2e2; color: #dc2626; }

.acc-icon-btn {
    background: #f1f5f9;
    border: none;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background .12s;
}
.acc-icon-btn:hover { background: #dbeafe; }

.acc-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    scrollbar-width: thin;
}

.acc-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 2;
}

.acc-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.acc-cart-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #94a3b8;
}
.acc-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acc-cart-row-info { flex: 1; min-width: 0; }
.acc-cart-row-name  { font-size: 13px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-cart-row-price { font-size: 12px; color: #7c3aed; margin-top: 2px; }

.acc-cart-qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px 6px;
}

.acc-qty-btn {
    background: none;
    border: none;
    width: 22px;
    height: 22px;
    font-size: 16px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background .12s;
}
.acc-qty-btn:hover { background: #ede9fe; color: #7c3aed; }

.acc-qty-num { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; color: #1e293b; }

.acc-cart-row-total { font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; }

.acc-cart-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
}
.acc-cart-remove:hover { background: #fee2e2; color: #dc2626; }

.acc-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acc-cart-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
}

.acc-cart-grand { font-size: 18px; font-weight: 800; color: #7c3aed; }

/* ── فرم Checkout ─────────────────────────── */
.acc-checkout-form { display: flex; flex-direction: column; gap: 14px; }

.acc-form-group { display: flex; flex-direction: column; gap: 5px; }
.acc-form-group label { font-size: 13px; font-weight: 600; color: #374151; }
.acc-req { color: #dc2626; }

.acc-form-row { display: flex; gap: 12px; }

.acc-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.acc-input:focus { outline: none; border-color: #7c3aed; background: #fff; }

.acc-checkout-error {
    background: #fee2e2;
    color: #dc2626;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* ── دکمه‌های عمومی ───────────────────────── */
.acc-btn {
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s, transform .1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.acc-btn:disabled { opacity: .5; cursor: not-allowed; }
.acc-btn:not(:disabled):active { transform: scale(.97); }

.acc-btn--primary   { background: #7c3aed; color: #fff; }
.acc-btn--primary:not(:disabled):hover { background: #6d28d9; }
.acc-btn--secondary { background: #f1f5f9; color: #475569; }
.acc-btn--secondary:not(:disabled):hover { background: #e2e8f0; }
.acc-btn--full { width: 100%; }

/* ── spinner ──────────────────────────────── */
.acc-cart-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
