/* ============================================================
   product.css — Static styles for store/product.php
   All dynamic (PHP-generated) inline styles remain in product.php
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --card-bg: #11141a;
    --accent-color: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.1);
}

/* ── Product Container ─────────────────────────────────────── */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 12px;
}

@media (min-width: 992px) {
    .product-container {
        max-width: 1400px;
        padding: 24px 14px;
    }
}

@media (min-width: 1400px) {
    .product-container {
        max-width: 1560px;
        padding: 28px 16px;
    }
}

.custom-breadcrumb-container,
.product-main-card,
.seller-info-card,
.product-tabs-container {
    width: 100%;
    box-sizing: border-box;
}

.back-nav {
    margin-bottom: 20px;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--blue);
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.custom-breadcrumb-container {
    background-color: #11141a;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-breadcrumb-container::-webkit-scrollbar {
    height: 4px;
}

.custom-breadcrumb-container::-webkit-scrollbar-track {
    background: transparent;
}

.custom-breadcrumb-container::-webkit-scrollbar-thumb {
    background-color: #374151;
    border-radius: 10px;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    border-top: 0 !important;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.4rem;
    line-height: 1;
    color: #6b7280;
    padding: 0 10px;
    float: none;
}

.breadcrumb-item a {
    color: #9ca3af;
    transition: color 0.2s;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #3b82f6;
}

.breadcrumb-item.active {
    color: #f3f4f6;
    font-weight: 600;
}

/* ── Main Product Card ─────────────────────────────────────── */
.product-main-card {
    background: #11141a !important;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.product-main-card>.row>.product-image-side {
    flex: 0 0 30%;

}

.product-main-card>.row>.product-info-side {
    flex: 0 0 70%;

}

/* ── Image Side ────────────────────────────────────────────── */
.product-image-side {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    gap: 10px;
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.product-image-wrapper {
    width: calc(100% - 8px);
    margin: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-image-wrapper.no-top-banner {
    width: 100%;
    margin: 0;
}

.product-image-glass {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    overflow: hidden;
    border: 0px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(71px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 3;
}

.product-image-glass.over-banner {
    margin-top: -60px;
}

.product-image-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(65% 65% at 15% 90%, rgba(34, 197, 94, 0.10) 0%, rgba(34, 197, 94, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.product-image-glass .swiper,
.product-image-glass .swiper-wrapper,
.product-image-glass .swiper-slide {
    height: 100%;
}

.product-image-glass .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.product-image-glass .swiper-slide a {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.product-image-glass img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Swiper overrides */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    position: relative;
}

.swiper-slide img {
    display: block;
    width: auto;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}

.mainSwiper {
    width: 100%;
    height: auto;
    position: relative;
}

.product-image-side .thumbSwiper {
    display: none !important;
}

.product-image-side .swiper-button-next,
.product-image-side .swiper-button-prev {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.product-image-side .swiper-button-next:after,
.product-image-side .swiper-button-prev:after {
    font-size: 14px;
    font-weight: 800;
}

.product-image-side .swiper-button-next {
    left: 10px;
    right: auto;
}

.product-image-side .swiper-button-prev {
    right: 10px;
    left: auto;
}

.more-images-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    pointer-events: none;
}

/* ── Info Side ─────────────────────────────────────────────── */
.product-info-side {
    padding: 2rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .product-main-card>.row>.product-info-side {
        padding: 22px !important;
    }

    .product-main-card>.row>.product-info-side .product-badge-top {
        margin-bottom: 8px;
    }

    .product-main-card>.row>.product-info-side .product-title-large {
        margin-bottom: 6px;
    }

    .product-main-card>.row>.product-info-side .seller-info-card {
        margin-bottom: 12px !important;
    }

    .product-main-card>.row>.product-info-side .rating-summary-box {
        margin-bottom: 12px;
    }

    .product-main-card>.row>.product-info-side .stock-status {
        margin-bottom: 14px;
    }

    .product-main-card>.row>.product-info-side .custom-field-group {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .product-main-card>.row>.product-info-side .price-display-large {
        margin-bottom: 10px;
    }
}

/* ── Badges ────────────────────────────────────────────────── */
.badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ── Product Title ─────────────────────────────────────────── */
.product-title-large {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.3;
}

/* ── Rating Summary ────────────────────────────────────────── */
.rating-summary-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.rating-summary-box .fw-bold,
.rating-summary-box .small,
.rating-summary-box span {
    font-size: 0.85rem !important;
    line-height: 1.1;
}

.rating-summary-box i.bi {
    font-size: 0.85rem;
    line-height: 1;
}

.rating-summary-box lord-icon {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
    vertical-align: middle;
}

.stars-gold {
    color: #fbbf24;
    font-size: 0.85rem;
}

.stars-gold .bi-star-half {
    display: inline-block;
    transform: scaleX(-1);
}

.stars-desktop {
    display: inline-flex;
}

.stars-mobile {
    display: none;
    color: #facc15;
    font-size: 0.85rem;
    align-items: center;
    gap: 4px;
}

.star-percent-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ── Live Viewers ──────────────────────────────────────────── */
.live-viewers-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #d1fae5;
    width: 100%;
    font-size: 0.98rem;
    line-height: 1.1;
    text-align: right;
}

.live-viewers-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: livePulse 1.6s infinite;
}

.live-viewers-box i.bi {
    font-size: 0.85rem;
    line-height: 1;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.live-viewers-box .live-viewers-count {
    font-weight: 800;
    color: #86efac;
}

/* ── Price ─────────────────────────────────────────────────── */
.price-container {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
}

.price-container .badge.bg-danger {
    border-radius: 4px !important;
    background-color: rgba(220, 53, 69, 0.22) !important;
    border: 1px solid rgba(220, 53, 69, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.delivery-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* ── Price Display Large ───────────────────────────────────── */
.price-display-large {
    margin-bottom: 16px;
}

.price-main-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.discount-badge-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #e4e4e4;
    min-width: 44px;
}

.discount-badge-main lord-icon {
    width: 26px;
    height: 26px;
}

.discount-badge-main span {
    margin-top: 2px;
}

.price-pill {
    background: var(--surface2);
    border-radius: 999px;
    padding: 8px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 160px;
}

.price-pill.no-discount {
    padding-top: 10px;
    padding-bottom: 10px;
}

.price-pill-old {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.price-pill-current {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-pill-number {
    color: var(--brand2);
    font-weight: 800;
    font-size: 1.2rem;
}

.price-pill-currency {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.stock-status {
    font-size: 0.85rem;
    margin-bottom: 25px;
}

/* ── Forms & Inputs ────────────────────────────────────────── */
.custom-field-group {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-label-custom {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem;
}

.form-control-custom:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    outline: none;
}

/* ── Quantity Control ──────────────────────────────────────── */
.quantity-control-group {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #181b21;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    width: fit-content;
    min-width: 120px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #1f2937;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.qty-btn:hover {
    background: #374151;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 40px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Vacation Alert ────────────────────────────────────────── */
.vacation-alert-glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1) !important;
}

.vacation-blocked-btn {
    cursor: not-allowed !important;
}

.vacation-banner-sleek {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vacation-banner-sleek::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #ef4444;
}

.vacation-banner-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.vacation-banner-content {
    flex-grow: 1;
}

.vacation-banner-title {
    font-weight: 800;
    color: #ef4444;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.vacation-banner-text {
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ── Buy Button ────────────────────────────────────────────── */
.btn-buy-now-animated {
    background: linear-gradient(45deg, var(--brand), var(--blue), var(--brand));
    background-size: 200% auto;
    border: none;
    border-radius: 14px;
    color: #fff;
    padding: 15px;
    font-weight: 900;
    font-size: 1.1rem;
    width: 100%;
    animation: gradientMove 3s ease infinite;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-buy-now-animated:active {
    transform: scale(0.98);
}

.btn-buy-now-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.buy-btn-col #btn-add-to-cart,
.buy-btn-col .btn-buy-now-animated {
    padding: 0.65rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    direction: rtl;
}

.buy-btn-col #btn-add-to-cart i,
.buy-btn-col .btn-buy-now-animated i {
    order: 0;
}

.buy-btn-col #btn-add-to-cart span,
.buy-btn-col .btn-buy-now-animated span {
    order: 1;
}

/* ── Tab Badge & Modal ─────────────────────────────────────── */
.product-tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 700;
    width: auto;
}

.product-tab-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.modal {
    z-index: 3000 !important;
}

.modal-backdrop {
    z-index: 2950 !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(15, 23, 42, 0.9) !important; /* لون خلفية أغمق (Slate) مع شفافية أقل */
}

#adminCatModal .modal-content {
    background: #0d1117;
    border: 1px solid rgba(35, 65, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

#adminCatModal .modal-header {
    background: rgba(35, 65, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse; /* عكس الترتيب: العنوان يميناً وزر الإغلاق يساراً */
}

#adminCatModal .btn-close {
    margin: 0 !important;
    padding: 0.5rem;
    filter: invert(1) grayscale(100%) brightness(200%); /* جعل الزر أبيض ليتناسب مع الثيم الداكن */
}

#adminCatModal .modal-title {
    font-size: 1.1rem;
    color: #fff;
}

#adminCatModal .modal-body {
    padding: 20px;
}

#adminCatModal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

#adminCatModal .form-control,
#adminCatModal .form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 10px;
    padding: 10px 15px;
}

#adminCatModal .form-control:focus,
#adminCatModal .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-buy-modal {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-buy-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-cancel-modal {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-cancel-modal:hover {
    color: #fff;
}

.alert-store-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 12px;
    color: #93c5fd;
    font-size: 0.85rem;
    line-height: 1.5;
}

.alert-store-note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: #8b949e;
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    #adminCatModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 10px;
    }

    #adminCatModal .modal-content {
        max-height: 90vh !important;
        border-radius: 20px;
        width: 100%;
        margin: auto;
        overflow-y: auto;
    }
}

/* ── Seller Info Card ──────────────────────────────────────── */
.seller-info-card {
    background: #11141a;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: 0;
    margin-right: 0;
}

.seller-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-avatar-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.seller-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 0px;
    object-fit: cover;
}

.seller-frame-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    pointer-events: none;
    z-index: 2;
}

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seller-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
}

.seller-name-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: center;
}

.seller-badges {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    max-width: 520px;
    height: 100%;
}

.seller-badge-icon {
    width: 16px;
    height: 16px;
}

.seller-stats-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

.seller-status {
    font-size: 0.75rem;
    color: #9ca3af;
}

.seller-status.online {
    color: #10b981;
}

.seller-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-seller-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-chat {
    background-color: #1f2937;
    color: #10b981;
    border: 1px solid #10b981;
}

.btn-chat:hover {
    background-color: #10b981;
    color: #fff;
}

.btn-sms {
    background-color: #372f1f;
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.btn-sms:hover {
    background-color: #f59e0b;
    color: #fff;
}

.btn-label {
    display: inline;
}

/* ── Product Tabs ──────────────────────────────────────────── */
.product-tabs-container {
    background: #11141a;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
}

.product-tabs-header {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
}

.product-tabs-header::-webkit-scrollbar {
    display: none;
}

.product-tab-btn {
    flex: 1;
    text-align: center;
    padding: 1.1rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    background: #0a0c10;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.product-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.03);
}

.product-tab-btn.active {
    color: #fff;
    background: #6366f1;
}

.product-tab-content {
    padding: 25px;
}

.product-tab-pane {
    display: none;
    animation: fadeInTab .4s ease;
}

.product-tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Spec Cards ────────────────────────────────────────────── */
.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.spec-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spec-value {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

.spec-value img {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

/* ── Reviews Grid ──────────────────────────────────────────── */
.custom-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-review-item {
    display: flex;
    gap: 15px;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-review-img-box {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.custom-review-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-review-content-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.custom-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.custom-review-user {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.custom-review-date {
    font-size: 0.7rem;
    color: #64748b;
}

.custom-review-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 6px;
    line-height: 1.4;
}

.custom-review-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

/* ── Description & Reviews Sections ───────────────────────── */
.content-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.section-title-line {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    border-right: 4px solid var(--brand);
    padding-right: 12px;
}

.review-card {
    background: var(--surface2);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

/* ── Similar Products Scroll ───────────────────────────────── */
.products-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 5px 5px 20px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.products-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

/* ── Product Card (scroll items) ───────────────────────────── */
.product-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
}

.product-thumb-card {
    width: 100%;
    position: relative;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-thumb-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(65% 65% at 15% 90%, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.product-thumb-card img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-content-card {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rating-row-card {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 0.65rem;
}

.stars-container-card {
    color: #facc15;
    display: flex;
    gap: 1px;
}

.product-name-card {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name-card a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-name-card a:hover {
    color: var(--brand);
}

.price-row-card {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.current-price-card {
    color: var(--brand2);
    font-weight: 800;
    font-size: 0.95rem;
}

.sold-count-card {
    font-size: 0.6rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-buy-animated-card {
    position: relative;
    background: linear-gradient(45deg, var(--brand), var(--blue), var(--brand));
    background-size: 200% auto;
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: gradientMove 3s ease infinite;
    transition: transform 0.2s;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    border: none;
}

.badge-type-card {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    color: #fff;
    z-index: 2;
}

.p-card-888-ribbon {
    position: absolute;
    top: 20px;
    left: -40px;
    width: 200px;
    text-align: center;
    background: linear-gradient(90deg, #ff007a, #7a00ff);
    color: #fff;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 900;
    transform: rotate(-45deg);
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ── Custom Tooltip ────────────────────────────────────────── */
.custom-tooltip-box {
    position: fixed;
    background-color: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    max-width: 200px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translate(-50%, -100%);
    margin-top: -8px;
}

.custom-tooltip-box.visible {
    opacity: 1;
}

.custom-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

/* ── Login Required Overlay ────────────────────────────────── */
.login-required-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000000;
}

.login-required-overlay.open {
    display: flex;
}

.login-required-modal {
    width: min(460px, 100%);
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.login-required-overlay.open .login-required-modal {
    transform: translateY(0);
    opacity: 1;
}

.login-required-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.login-required-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.login-required-close {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.35);
    color: #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.login-required-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: #f8fafc;
}

.login-required-text {
    margin: 0 0 14px;
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.92rem;
    line-height: 1.6;
}

.login-required-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.login-required-actions a {
    flex: 1 1 0;
    min-width: 160px;
    border-radius: 14px;
    padding: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.login-required-login {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

.login-required-telegram {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .custom-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 10px 5px;
        margin-left: -5px;
        margin-right: -5px;
    }

    .product-image-side {
        min-height: 250px;
    }

    .product-info-side {
        padding: 20px 15px !important;
        gap: 1rem;
    }

    .product-title-large {
        font-size: 1.2rem;
    }

    .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .rating-summary-box {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 14px;
        align-items: flex-start;
    }

    .live-viewers-box {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.78rem;
        padding: 0.7rem 0.85rem;
        gap: 0.35rem;
    }

    .live-viewers-dot {
        width: 8px;
        height: 8px;
    }

    .delivery-inline {
        flex-wrap: wrap;
        white-space: normal;
    }

    .quantity-col {
        width: 100% !important;
    }

    .buy-btn-col {
        width: 100% !important;
        margin-top: 0.5rem;
    }

    .price-main-row {
        gap: 8px;
    }

    .price-pill {
        padding: 8px 14px;
        min-width: 0;
        flex: 1;
    }

    .price-pill-number {
        font-size: 1rem;
    }

    .scroll-item {
        flex: 0 0 190px;
    }

    .product-tab-btn {
        padding: 0.85rem 0.5rem;
        font-size: 0.85rem;
    }

    .product-tab-content {
        padding: 15px;
    }

    .seller-info-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        display: flex;
    }

    .seller-info-left {
        flex: 1;
        min-width: 0;
    }

    .seller-actions {
        width: auto;
        flex-shrink: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .btn-seller-action {
        padding: 8px;
        font-size: 0.8rem;
        width: 47px;
        justify-content: center;
        height: 30px;
    }

    .btn-label {
        display: none;
    }

    .seller-name-text {
        font-size: 0.9rem;
    }

    .seller-stats-text,
    .seller-status {
        font-size: 0.7rem;
    }

    .seller-stats-row {
        margin-top: -.35rem !important;
    }
}

@media (max-width: 576px) {
    .price-container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px;
        flex-wrap: nowrap !important;
    }

    .price-container .price-value {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .price-container>.d-flex,
    .price-container .d-flex.align-items-center {
        flex-wrap: nowrap !important;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .row.g-2.align-items-end>.col-4.quantity-col,
    .quantity-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .buy-btn-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .quantity-col .quantity-control-group {
        width: 100% !important;
        display: flex !important;
    }

    .quantity-col .qty-input {
        flex: 1 1 auto;
        width: auto;
    }

    .stars-desktop {
        display: none;
    }

    .stars-mobile {
        display: inline-flex;
    }

    .rating-divider {
        display: none;
    }

    .custom-review-grid {
        grid-template-columns: 1fr;
    }

    .seller-badges {
        max-width: 215px;
        padding-bottom: 0 !important;
    }
}