/* |-------- Product Description --------| */
.product__details--summary__wrapper {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    direction: rtl;
    text-align: right;
    font-weight: 400;
    padding: 20px 5px;
}


.product__details--summary__wrapper p {
    margin-bottom: 12px;
    text-align: justify;
    text-justify: inter-word;
}

.product__details--summary__wrapper h1,
.product__details--summary__wrapper h2,
.product__details--summary__wrapper h3,
.product__details--summary__wrapper h4 {
    margin: 18px 0 10px;
    line-height: 1.6;
    font-weight: 600;
    color: #222;
}

.product__details--summary__wrapper h2 {
    font-size: 20px;
    border-right: 4px solid #0c9875;
    padding-right: 10px;
}

.product__details--summary__wrapper h3 {
    font-size: 18px;
}

.product__details--summary__wrapper ul,
.product__details--summary__wrapper ol {
    padding-right: 20px;
    margin-bottom: 15px;
}

.product__details--summary__wrapper li {
    margin-bottom: 6px;
    line-height: 1.8;
}


.product__details--summary__wrapper a {
    color: #0c9781;
    font-weight: 500;
    text-decoration: underline dotted;
}

.product__details--summary__wrapper a:hover {
    color: #006f5d;
}


.product__details--summary__wrapper blockquote {
    border-right: 4px solid #0c9781;
    padding: 12px 16px;
    margin: 18px 0;
    background: #f8f8f8;
    border-radius: 6px;
    font-style: italic;
    color: #444;
}

.product__details--summary__wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto;
    border-radius: 8px;
}

.product__details--summary__wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product__details--summary__wrapper table td,
.product__details--summary__wrapper table th {
    border: 1px solid #ddd;
    padding: 10px;
}

.product__details--summary__wrapper table th {
    background: #f3f3f3;
    font-weight: 600;
}

.product__details--summary__wrapper strong,
.product__details--summary__wrapper b {
    font-weight: 700;
    color: #111;
}

.product__details--summary__wrapper br {
    line-height: 2.2;
}

/* ===============================
   MODERN PRICE BOX (SINGLE PAGE)
================================== */

.price-box-modern {
    margin: 18px 0 25px 0;
    text-align: right;
}

/* main wrapper */
.price-modern {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    position: relative;
}

/* price column */
.price-values {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

/* NEW PRICE */
.price-modern .price-new {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--secondary-color);
}

/* OLD PRICE */
.price-modern .price-old {
    font-size: 1.4rem;
    text-decoration: line-through;
    color: #a5a5a5;
}


/* UNAVAILABLE STATE */
.price-modern.unavailable .unavailable-text {
    display: inline-block;
    background: #ffe3e3;
    color: #d20000;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    border: solid 1px #ffb3b3;
}

/* Responsive */
@media (max-width: 576px) {
    .discount-badge-modern {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}


/* ===========================
   Modern Luxury Inventory Table
   =========================== */

.inventory-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 25px;
}

.table.inventory-table {
    width: 100%;
    border-collapse: separate;
    font-size: 15px;
}

/* --- Header --- */
.table.inventory-table thead tr th {
    background: #f8fafb;
    padding: 12px 15px;
    font-weight: 700;
    color: #444;
    border: none;
    text-align: center;
    white-space: nowrap;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* --- Rows --- */
.table.inventory-table tbody tr:not(tr.sep-row) {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
    transition: .25s ease;
}

.table.inventory-table tbody tr:hover:not(tr.sep-row) {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* --- Cells --- */
.table.inventory-table tbody td {
    padding: 14px 10px;
    vertical-align: middle;
    text-align: center;
    border: none;
}

/* --- Size Cell --- */
.table.inventory-table td[rowspan] {
    background: var(--secondary-color) !important;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    border-radius: 12px 0 0 12px;
}

/* --- Price New / Old --- */
.table.inventory-table .price-new, .inv-price-new {
    font-weight: 700;
    font-size: 16px;
    color: #0c8f66;
}

.table.inventory-table .price-old, .inv-price-old {
    text-decoration: line-through;
    color: #d9534f;
    font-size: 13px;
}

/* Stylish price box */
.inv-price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Checkbox --- */
.inventory-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

/* --- Separator row --- */
.table.inventory-table .sep-row td {
    background: transparent !important;
    padding: 0 !important;
    height: 20px;
    border: none !important;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .table.inventory-table tbody td {
        font-size: 13px;
        padding: 10px 6px;
    }

    .table.inventory-table.price-new, .inv-price-new {
        font-size: 14px !important;
    }
}

.discount-label-top {
    position: absolute;
    top: 12px;
    left: auto;
    right: 12px;
    background: rgba(220, 65, 65, 0.85);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    z-index: 20;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}


/* ===============================
   Minimal & Clean Wage Styling
================================== */

.wage-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: help;
}

.wage-simple-new {
    font-size: 1.9rem;
    font-weight: 900;
    color: #0c8f66;
    line-height: 1.3;
}


.wage-simple-old {
    font-size: 1.65rem;
    color: #d9534f;
    text-decoration: line-through;
    opacity: 0.75;
    margin-top: 2px;
}

.wage-simple-normal {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Tooltip Hover */
.wage-simple:hover::after {
    content: attr(data-title);
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 6px;
    top: -35px;
    white-space: nowrap;
    z-index: 999;
}

/* Responsive */
@media (max-width: 576px) {
    .wage-simple-new {
        font-size: 1.7rem;
    }

    .wage-simple-old {
        font-size: 1.5rem;
    }
}

/* MOBILE ACCORDION ONLY */
@media (max-width: 700px) {

    /* hide desktop table */
    .inventory-table {
        display: none;
    }

    /* accordion base */
    .inventory-accordion {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .acc-card {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .acc-header {
        padding: 15px;
        background: var(--secondary-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .acc-title {
        font-size: 1.6rem;
        font-weight: 800;
        color: #fff;
    }

    .acc-details {
        font-size: 1.5rem;
        transition: 0.25s;
        color: #fff;
        font-weight: bold;
    }

    .acc-header.active .acc-details .acc-icon {
        transform: rotate(180deg);
    }

    .acc-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        background: #ffffff;
        padding: 0 15px;
    }

    .acc-row {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .acc-row:last-child {
        border-bottom: none;
    }

    .acc-item {
        margin-bottom: 6px;
        font-size: 1.4rem;
        display: flex;
        justify-content: space-between;
    }

    .acc-item .price-new {
        color: #0c8f66;
        font-weight: 900;
        font-size: 1.7rem
    }

    .acc-item .price-old {
        color: #d9534f;
        text-decoration: line-through;
        font-size: 1.65rem
    }

    .acc-item .wage-new {
        color: #0c8f66;
        font-weight: 800;
        font-size: 1.7rem
    }

    .acc-item .wage-old {
        color: #d9534f;
        text-decoration: line-through;
        font-size: 1.65rem
    }
}

.selected-counter-box {
    background: #f2faf8;
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-flex;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0c7f5c;
    border: 1px solid #d8eee6;
}


/* ===============================
   SELECTED INVENTORY ROW
================================ */
.inventory-wrapper .table.inventory-table .inventory-selected-row {
    background: linear-gradient(90deg, #f8fff4, #eefbe7);
    border-right: 4px solid #5cb85c;
}

.inventory-wrapper .table.inventory-table .inventory-selected-row td {
    font-weight: 600;
}

.inventory-wrapper .inventory-selected-row::after {
    content: "✓ انتخاب شده";
    position: absolute;
    left: 12px;
    font-weight: 700;
    top: 0;
    font-size: 10px;
    color: #0a4d0a;
}


/* ===============================
   SELECT CELL
================================ */
.inventory-wrapper .table.inventory-table .inv-select-cell {
    text-align: center;
}

/* ===============================
   REMOVE BUTTON
================================ */
.inventory-wrapper .btn-remove-item {
    background: transparent;
    border: 1px solid #f3c2c2;
    color: #d9534f;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.inventory-wrapper .btn-remove-item:hover {
    background: #d9534f;
    color: #fff;
    box-shadow: 0 6px 18px rgba(217, 83, 79, .35);
    transform: scale(1.05);
}


/* =========================
   PRODUCT TAGS (LUXURY)
   ========================= */

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-tag {
    position: relative;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #8a6d2f;
    background: linear-gradient(135deg, #fff7d6, #f5e7b2);
    border-radius: 30px;
    border: 1px solid rgba(200, 155, 60, 0.35);
    letter-spacing: .3px;
    transition: all 0.25s ease;
    cursor: default;
    white-space: nowrap;
}

/* Hover Luxury Effect */
.product-tag:hover {
    background: linear-gradient(135deg, #f5e7b2, #e6c86b);
    color: #5a430f;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 155, 60, 0.35);
}

/* Optional small dot (premium feel) */
.product-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #c89b3c;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .product-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
}


.quantity-modern {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 6px 10px;
    border: 1px solid #e3e6eb;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #e9ecef;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.qty-btn:hover:not(:disabled) {
    background: #d5dae0;
}

.qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.qty-input {
    width: 55px;
    border: none;
    text-align: center;
    font-size: 16px;
    background: transparent;
}

.qty-input:focus {
    outline: none;
}
