/* ============================================================
   TikoPet — Products / Product Detail (full)
   ============================================================ */

.products-page,
.product-detail-page {
    --pt-primary:       #1B7A4E;
    --pt-primary-dark:  #15643f;
    --pt-primary-light: #2a9d6a;
    --pt-primary-soft:  rgba(27, 122, 78, 0.10);
    --pt-danger:        #dc2626;
    --pt-warning:       #f59e0b;
    --pt-border:        #e5e7eb;
    --pt-bg:            #ffffff;
    --pt-bg-alt:        #f8fafb;
    --pt-text:          #1f2937;
    --pt-muted:         #6b7280;
    --pt-radius:        16px;
    --pt-radius-sm:     10px;
    --pt-shadow-hover:  0 20px 45px rgba(0,0,0,.10);
    --pt-transition:    .25s cubic-bezier(.4,0,.2,1);
}

.products-page,
.product-detail-page { padding: 100px 0 64px; }

/* ---------- Breadcrumb ---------- */
.products-breadcrumb ol {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    list-style: none; margin: 0 0 18px; padding: 0;
    font-size: .85rem; color: var(--pt-muted);
}
.products-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.products-breadcrumb li + li::before { content: "›"; color: var(--pt-border); }
.products-breadcrumb a { color: var(--pt-muted); text-decoration: none; }
.products-breadcrumb a:hover { color: var(--pt-primary); }
.products-breadcrumb .active { color: var(--pt-text); font-weight: 500; }

/* ---------- Page header ---------- */
.products-header { margin-bottom: 26px; }
.products-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; margin: 0 0 6px; color: var(--pt-text); }
.products-subtitle { margin: 0; color: var(--pt-muted); font-size: .95rem; }

/* ---------- Sidebar filters ---------- */
.filters-panel {
    background: var(--pt-bg); border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius); padding: 6px 18px 18px;
    position: sticky; top: 90px;
}
.filter-block { padding: 16px 0; border-bottom: 1px solid var(--pt-border); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-title { font-size: .95rem; font-weight: 700; color: var(--pt-text); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.filter-title i { color: var(--pt-primary); }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: var(--pt-radius-sm);
    color: var(--pt-text); text-decoration: none; font-size: .9rem;
    transition: background var(--pt-transition), color var(--pt-transition);
}
.filter-item span { display: inline-flex; align-items: center; gap: 6px; }
.filter-item i { color: var(--pt-muted); }
.filter-item:hover { background: var(--pt-bg-alt); color: var(--pt-primary); }
.filter-item:hover i { color: var(--pt-primary); }
.filter-item.active { background: var(--pt-primary-soft); color: var(--pt-primary); font-weight: 600; }
.filter-item.active i { color: var(--pt-primary); }
.filter-count { font-size: .78rem; color: var(--pt-muted); background: var(--pt-bg-alt); padding: 2px 8px; border-radius: 20px; }
.filter-item.active .filter-count { background: rgba(27,122,78,.15); color: var(--pt-primary); }
.filter-radio, .filter-checkbox {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: var(--pt-radius-sm);
    cursor: pointer; font-size: .9rem; color: var(--pt-text); margin: 0;
    transition: background var(--pt-transition);
}
.filter-radio:hover, .filter-checkbox:hover { background: var(--pt-bg-alt); }
.filter-radio input, .filter-checkbox input { accent-color: var(--pt-primary); width: 16px; height: 16px; margin: 0; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-field { display: flex; flex-direction: column; gap: 4px; }
.price-field label { font-size: .78rem; color: var(--pt-muted); }
.price-field input {
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm);
    padding: 7px 10px; font-size: .9rem; background: var(--pt-bg); color: var(--pt-text); width: 100%;
}
.price-field input:focus { outline: none; border-color: var(--pt-primary); box-shadow: 0 0 0 3px var(--pt-primary-soft); }
.filter-actions { padding-top: 18px; }
.filter-actions .btn {
    border-radius: var(--pt-radius-sm); font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.filter-actions .btn-primary { background: var(--pt-primary); border-color: var(--pt-primary); }
.filter-actions .btn-primary:hover { background: var(--pt-primary-dark); border-color: var(--pt-primary-dark); }

/* ---------- Toolbar ---------- */
.products-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 20px;
    background: var(--pt-bg); border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius); padding: 12px 16px;
}
.toolbar-count { display: inline-flex; align-items: center; gap: 8px; color: var(--pt-muted); font-size: .9rem; }
.toolbar-count i { color: var(--pt-primary); }
.toolbar-sort { display: inline-flex; align-items: center; gap: 8px; }
.toolbar-sort label { font-size: .85rem; color: var(--pt-muted); margin: 0; }
.toolbar-sort select {
    border-radius: var(--pt-radius-sm); border: 1px solid var(--pt-border);
    font-size: .85rem; padding: 6px 30px 6px 10px; background: var(--pt-bg); color: var(--pt-text);
    min-width: 140px;
}

/* ---------- Grid ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

/* ---------- Product card ---------- */
.product-card {
    background: var(--pt-bg); border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--pt-transition), box-shadow var(--pt-transition), border-color var(--pt-transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-hover); border-color: transparent; }

.product-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--pt-bg-alt); }
.product-card-img { display: block; width: 100%; height: 100%; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: var(--pt-muted); font-size: 2.5rem; background: var(--pt-bg-alt);
}
.product-img-placeholder.large { font-size: 4rem; }

.product-card-badges {
    position: absolute; top: 10px; inset-inline-start: 10px;
    display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.badge-discount, .badge-new { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; color: #fff; }
.badge-discount { background: var(--pt-danger); }
.badge-new { background: var(--pt-primary); }

.product-card-wishlist {
    position: absolute; top: 10px; inset-inline-end: 10px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.95); border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--pt-muted); cursor: pointer; z-index: 2;
    transition: all var(--pt-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.product-card-wishlist:hover { color: var(--pt-danger); transform: scale(1.08); }
.product-card-wishlist.active { color: #fff; background: var(--pt-danger); }

.product-out-stock {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: #fff; font-weight: 700; font-size: 1rem;
    z-index: 1; pointer-events: none;
}

.product-card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-cat { font-size: .75rem; color: var(--pt-muted); letter-spacing: .02em; }
.product-card-title { font-size: .95rem; font-weight: 700; margin: 0; line-height: 1.5; min-height: 2.85em; }
.product-card-title a {
    color: var(--pt-text); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; transition: color var(--pt-transition);
}
.product-card-title a:hover { color: var(--pt-primary); }

.product-card-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--pt-warning); font-size: .82rem; }
.product-card-rating .rating-num { color: var(--pt-muted); }

.product-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price-old { color: var(--pt-muted); font-size: .82rem; }
.price-current { font-weight: 800; color: var(--pt-text); font-size: 1rem; }

.product-card-buy {
    margin-top: 10px; padding: 10px 12px;
    border: 1px solid var(--pt-primary); border-radius: var(--pt-radius-sm);
    background: linear-gradient(180deg, var(--pt-primary) 0%, var(--pt-primary-dark) 100%);
    color: #fff; font-weight: 700; font-size: .88rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    text-decoration: none; cursor: pointer;
    transition: all var(--pt-transition);
    box-shadow: 0 4px 12px rgba(27,122,78,.18);
}
.product-card-buy:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27,122,78,.28); }
.product-card-buy:disabled {
    opacity: .5; cursor: not-allowed; background: var(--pt-bg-alt);
    color: var(--pt-muted); border-color: var(--pt-border); box-shadow: none;
}

/* ---------- Empty state ---------- */
.products-empty, .featured-empty, .checkout-empty {
    background: var(--pt-bg); border: 1px dashed var(--pt-border);
    border-radius: var(--pt-radius); padding: 60px 20px;
    text-align: center; color: var(--pt-muted);
}
.products-empty i, .featured-empty i, .checkout-empty i {
    font-size: 3rem; color: var(--pt-border); margin-bottom: 14px; display: block;
}
.products-empty h3, .checkout-empty h3 { font-size: 1.2rem; color: var(--pt-text); font-weight: 700; margin: 0 0 8px; }
.featured-empty p, .products-empty p, .checkout-empty p { margin: 0 0 20px; }

/* ---------- Pagination ---------- */
.products-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    background: var(--pt-bg); border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm); color: var(--pt-text);
    text-decoration: none; font-weight: 600; font-size: .9rem;
    transition: all var(--pt-transition);
}
.page-btn:hover { border-color: var(--pt-primary); color: var(--pt-primary); }
.page-btn.active { background: var(--pt-primary); border-color: var(--pt-primary); color: #fff; }
.page-dots { color: var(--pt-muted); padding: 0 4px; }

/* ---------- Featured footer ---------- */
.featured-section { padding: 60px 0; }
.featured-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.btn-view-all {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 40px;
    background: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-primary-dark) 100%);
    color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
    box-shadow: 0 10px 30px rgba(27,122,78,.25);
    transition: all var(--pt-transition);
}
.btn-view-all:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 38px rgba(27,122,78,.35); }
.view-all-count {
    background: rgba(255,255,255,.25); padding: 2px 10px; border-radius: 20px;
    font-size: .82rem;
}

/* ============================================================
   Product Detail
   ============================================================ */
.product-detail {
    background: var(--pt-bg); border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius); overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.04);
}
.product-gallery { padding: 22px; }
.product-gallery-main {
    position: relative; border-radius: var(--pt-radius);
    overflow: hidden; background: var(--pt-bg-alt); aspect-ratio: 1 / 1;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-discount {
    position: absolute; top: 14px; inset-inline-start: 14px;
    background: var(--pt-danger); color: #fff;
    font-size: .82rem; font-weight: 700; padding: 6px 14px; border-radius: 20px;
    box-shadow: 0 4px 12px rgba(220,38,38,.25);
}
.gallery-out-stock {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: #fff; font-weight: 800; font-size: 1.3rem;
}
.gallery-wishlist {
    position: absolute; top: 14px; inset-inline-end: 14px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.95); border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--pt-muted); font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: all var(--pt-transition);
}
.gallery-wishlist:hover { color: var(--pt-danger); transform: scale(1.05); }
.gallery-wishlist.active { background: var(--pt-danger); color: #fff; }

.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 68px; height: 68px; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: var(--pt-radius-sm);
    background: var(--pt-bg-alt); cursor: pointer;
    transition: border-color var(--pt-transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--pt-primary); }

.product-info { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.product-brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85rem; color: var(--pt-muted);
}
.brand-label {
    background: var(--pt-primary-soft); color: var(--pt-primary);
    padding: 4px 10px; border-radius: 20px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.brand-name { color: var(--pt-text); font-weight: 600; }
.product-title { font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); font-weight: 800; margin: 0; line-height: 1.4; color: var(--pt-text); }

.product-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    padding-bottom: 12px; border-bottom: 1px dashed var(--pt-border);
}
.product-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--pt-warning); font-size: .9rem; }
.product-rating .rating-num { color: var(--pt-muted); font-size: .82rem; }
.product-stock { font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.product-stock.in-stock { color: var(--pt-primary); }
.product-stock.out-stock { color: var(--pt-danger); }
.product-weight { font-size: .85rem; color: var(--pt-muted); display: inline-flex; align-items: center; gap: 5px; }
.product-weight i { color: var(--pt-primary); }

.product-short-desc { color: var(--pt-muted); line-height: 1.9; font-size: .95rem; margin: 0; }

.product-price-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5; border-radius: var(--pt-radius);
    padding: 18px 20px; margin-top: 4px;
}
.price-old-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.price-old-row del { color: var(--pt-muted); font-size: .9rem; }
.price-badge {
    background: var(--pt-danger); color: #fff;
    font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.price-main { font-size: 1.6rem; font-weight: 800; color: var(--pt-primary-dark); }

.product-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.product-add-btn {
    flex: 1 1 200px; border-radius: var(--pt-radius-sm); font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; height: 54px;
    background: linear-gradient(180deg, var(--pt-primary) 0%, var(--pt-primary-dark) 100%);
    border: 0; color: #fff;
    box-shadow: 0 8px 22px rgba(27,122,78,.22);
    transition: all var(--pt-transition);
}
.product-add-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(27,122,78,.32); }
.product-add-btn:disabled { opacity: .55; cursor: not-allowed; background: var(--pt-bg-alt); color: var(--pt-muted); box-shadow: none; }

.product-wishlist-btn {
    border-radius: var(--pt-radius-sm); padding: 0 20px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--pt-border); background: var(--pt-bg); color: var(--pt-text);
    font-weight: 600; transition: all var(--pt-transition);
}
.product-wishlist-btn:hover { border-color: var(--pt-danger); color: var(--pt-danger); }
.product-wishlist-btn.active { background: var(--pt-danger); border-color: var(--pt-danger); color: #fff; }

.product-meta-foot {
    display: flex; flex-wrap: wrap; gap: 18px;
    padding-top: 12px; margin-top: auto;
    border-top: 1px dashed var(--pt-border);
    font-size: .82rem; color: var(--pt-muted);
}
.product-meta-foot i { color: var(--pt-primary); margin-inline-end: 4px; }
.product-meta-foot a { color: var(--pt-primary); text-decoration: none; font-weight: 600; }

/* ---------- Features section ---------- */
.product-features-section {
    margin-top: 26px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafb 100%);
    border: 1px solid #d1fae5;
    border-radius: var(--pt-radius);
    padding: 26px;
}
.features-section-title {
    font-size: 1.15rem; font-weight: 800; margin: 0 0 20px;
    color: var(--pt-text); display: flex; align-items: center; gap: 10px;
}
.features-section-title i { color: var(--pt-primary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feature-item {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: var(--pt-radius-sm); padding: 14px;
    transition: all var(--pt-transition);
}
.feature-item:hover { border-color: var(--pt-primary); box-shadow: 0 6px 18px rgba(27,122,78,.10); transform: translateY(-2px); }
.feature-icon {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
    background: var(--pt-primary-soft); color: var(--pt-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.feature-title { font-weight: 700; color: var(--pt-text); font-size: .92rem; margin-bottom: 2px; }
.feature-desc { color: var(--pt-muted); font-size: .82rem; line-height: 1.6; }

/* ---------- Tabs ---------- */
.product-tabs {
    margin-top: 22px; background: var(--pt-bg);
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius); overflow: hidden;
}
.product-tabs-head { display: flex; border-bottom: 1px solid var(--pt-border); background: var(--pt-bg-alt); }
.tab-btn {
    background: transparent; border: 0; padding: 14px 22px;
    font-weight: 600; font-size: .92rem; color: var(--pt-muted);
    cursor: pointer; position: relative; transition: color var(--pt-transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: var(--pt-text); }
.tab-btn.active { color: var(--pt-primary); background: var(--pt-bg); }
.tab-btn.active::after { content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 2px; background: var(--pt-primary); }
.product-tabs-body { padding: 22px; }
.tab-panel { display: none; line-height: 1.95; color: var(--pt-text); font-size: .93rem; }
.tab-panel.active { display: block; animation: ptFadeIn .3s ease; }
.tab-panel p { margin: 0 0 10px; }
.tab-panel i { color: var(--pt-primary); margin-inline-end: 4px; }

/* ---------- Related ---------- */
.related-section { margin-top: 44px; }
.related-title {
    font-size: 1.3rem; font-weight: 800; margin: 0 0 18px; color: var(--pt-text);
    display: flex; align-items: center; gap: 10px;
}
.related-title::before { content: ""; width: 4px; height: 22px; background: var(--pt-primary); border-radius: 3px; }

@keyframes ptFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Dark mode ---------- */
[data-theme="dark"] .products-page,
[data-theme="dark"] .product-detail-page {
    --pt-bg: #1a1d21; --pt-bg-alt: #23272d; --pt-border: #343a40;
    --pt-text: #e9ecef; --pt-muted: #adb5bd;
    --pt-primary-soft: rgba(27,122,78,.18);
}
[data-theme="dark"] .product-price-box { background: linear-gradient(135deg, #1a2e24 0%, #172b21 100%); border-color: #1f4432; }
[data-theme="dark"] .product-features-section { background: linear-gradient(135deg, #1a2e24 0%, #1a1d21 100%); border-color: #1f4432; }
[data-theme="dark"] .feature-item { background: #1a1d21; border-color: #343a40; }
[data-theme="dark"] .product-card-wishlist,
[data-theme="dark"] .gallery-wishlist { background: rgba(255,255,255,.9); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .filters-panel { position: static; display: none; margin-bottom: 18px; }
    .filters-panel.open { display: block; }
    .products-toolbar { justify-content: center; }
    .product-gallery { padding: 14px; }
    .product-info { padding: 18px; }
    .products-page, .product-detail-page { padding-top: 88px; }
}
@media (max-width: 575.98px) {
    .products-page, .product-detail-page { padding-top: 84px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-body { padding: 10px 10px 12px; gap: 4px; }
    .product-card-title { font-size: .82rem; min-height: 2.6em; }
    .product-card-rating { font-size: .72rem; }
    .price-current { font-size: .9rem; }
    .product-card-buy { font-size: .78rem; padding: 8px 8px; }
    .product-card-buy span { display: inline; }
    .product-card-buy i { font-size: .95rem; }
    .product-actions { flex-direction: column; align-items: stretch; }
    .product-wishlist-btn { width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Product Detail — Features table / Stock count / Divider
   ============================================================ */

/* ---- Stock count next to "موجود" ---- */
.product-stock.in-stock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(27,122,78,.08) !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}
.stock-count {
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: .8rem !important;
}

/* ---- Features TABLE ---- */
.product-features-table {
    margin-top: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.features-table-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.features-table-title i {
    color: #1B7A4E;
    font-size: 1.2rem;
}
.features-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.features-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.features-table thead th {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    color: #15643f;
    font-weight: 700;
    font-size: .88rem;
    padding: 12px 16px;
    text-align: right;
    border-bottom: 2px solid #d1fae5;
}
.features-table thead th.col-label {
    width: 35%;
}
.features-table thead th.col-value {
    width: 65%;
}
.features-table tbody td {
    padding: 12px 16px;
    font-size: .92rem;
    color: #374151;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}
.features-table tbody tr:last-child td {
    border-bottom: 0;
}
.features-table tbody tr:nth-child(even) {
    background: #fafbfc;
}
.features-table tbody tr:hover {
    background: #f0fdf4;
}
.feature-label {
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-label i {
    color: #1B7A4E;
    font-size: 1rem;
    flex-shrink: 0;
}
.feature-value {
    color: #4b5563;
    line-height: 1.7;
}

/* ---- Decorative divider between product and related ---- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 48px 0 36px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
    max-width: 260px;
}
.divider-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B7A4E 0%, #15643f 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 22px rgba(27,122,78,.25);
    position: relative;
}
.divider-badge::before,
.divider-badge::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: .35;
    z-index: -1;
}
.divider-badge::before {
    animation: divider-pulse 2.4s ease-out infinite;
}
.divider-badge::after {
    animation: divider-pulse 2.4s ease-out infinite .6s;
}
@keyframes divider-pulse {
    0% { transform: scale(1); opacity: .4; }
    100% { transform: scale(2); opacity: 0; }
}

/* ---- Related section header ---- */
.related-section {
    margin-top: 0;
}
.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}
.related-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.related-title i {
    color: #1B7A4E;
    font-size: 1.3rem;
}
.related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1B7A4E;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: gap .2s;
}
.related-view-all:hover {
    gap: 10px;
    color: #15643f;
}

/* ---- Dark mode ---- */
[data-theme="dark"] .product-features-table {
    background: #1a1d21;
    border-color: #343a40;
}
[data-theme="dark"] .features-table-title {
    color: #e9ecef;
    border-color: #343a40;
}
[data-theme="dark"] .features-table-wrap {
    border-color: #343a40;
}
[data-theme="dark"] .features-table thead th {
    background: #1a2e24;
    color: #6ee7b7;
    border-color: #1f4432;
}
[data-theme="dark"] .features-table tbody td {
    color: #e9ecef;
    border-color: #23272d;
}
[data-theme="dark"] .features-table tbody tr:nth-child(even) {
    background: #1f2328;
}
[data-theme="dark"] .features-table tbody tr:hover {
    background: #1a2e24;
}
[data-theme="dark"] .feature-label { color: #e9ecef; }
[data-theme="dark"] .feature-value { color: #adb5bd; }
[data-theme="dark"] .related-title { color: #e9ecef; }
[data-theme="dark"] .related-header { border-color: #343a40; }
[data-theme="dark"] .stock-count { color: #adb5bd; }

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .product-features-table {
        padding: 16px;
    }
    .features-table thead th.col-label { width: 40%; }
    .features-table thead th.col-value { width: 60%; }
    .features-table thead th,
    .features-table tbody td {
        padding: 10px 12px;
        font-size: .85rem;
    }
    .section-divider { margin: 32px 0 24px; }
    .divider-badge { width: 44px; height: 44px; font-size: 1rem; }
}