:root{
    --border:#ececec;
    --muted:#808080;
}

/* ====== rating (همان قبلی) ====== */
#rating-stars {
    display:flex;
    gap:6px;
    font-size:28px;
}
#rating-stars .star {
    color:#d6d6d6;
    cursor:pointer;
    transition:.2s;
}
#rating-stars .star.active {
    color:var(--accent-color);
}
#rating-stars .star:hover {
    transform:scale(1.15);
}

.admin-reply {
    margin-top:20px;
    margin-right:35px;
    padding:18px;
    background: var(--background-card);
    border:1px solid var(--border);
    border-right:4px solid var(--primary-color);
    border-radius:6px;
}
.admin-reply .reply-header {
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    font-size:14px;
    color: var(--text-color);
}
.admin-reply .reply-header i {
    color:#28a745;
}
.admin-reply .reply-header span {
    color: var(--muted);
    font-size:12px;
}
.admin-reply p {
    margin:0;
    line-height:28px;
    color: var(--text-color);
}

/* ====== New Layout ====== */
.product-hero {
    padding: 40px 0 10px 0;
}

.product-meta-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom: 14px;
}
.rating-inline {
    display:flex;
    align-items:center;
    gap:10px;
    color: var(--muted);
    font-size: 14px;
}
.rating-inline i {
    color: var(--accent-color);
}
.badge-soft {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: #333;
    font-size: 13px;
}
.badge-accent {
    border-color: var(--accent-color);
    background: rgba(166, 123, 46, 0.14);
    color: var(--accent-color);
}

.product-title {
    margin: 0 0 6px 0;
    font-size: 28px;
    line-height: 1.35;
    color: var(--text-color);
    font-weight: 500;
}
.product-subtitle {
    margin: 0 0 18px 0;
    color: var(--muted);
    font-size: 13px;
}
.product-shortdesc {
    color:var(--text-color);
    line-height: 30px;
    margin-bottom: 18px;
    text-align: justify;
}

/* gallery card */
.gallery-card {
    background:#fff;
    border:1px solid var(--border);
    border-radius: 12px;
    overflow:hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
    position: relative;
}
.gallery-card .product-pic-zoom {
    padding: 18px 18px 0 18px;
}
.gallery-card img.product-big-img{
    width:100%;
    height:auto;
    border-radius: 16px;
}
.gallery-thumbs {
    padding: 14px 18px 18px 18px;
}
.gallery-thumbs .pt {
    overflow:hidden;
    border: 2px solid transparent;
    transition: .2s;
    cursor:pointer;
}
/*.gallery-thumbs .pt.active {*/
/*    box-shadow: 0 8px 18px rgba(231,171,60,.18);*/
/*}*/
/*.gallery-thumbs .pt img{ border-radius: 12px; }*/

/* variants chips */
.variant-block {
    margin: 16px 0;
}
.top-variant {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.variant-title {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight:700;
}
.variant-chips {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.variant-chips input[type="radio"] {
    position:absolute;
    opacity:0;
    pointer-events:none;
}
.chip {
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 10px 14px;
    border-radius: 999px;
    border:1px solid var(--border-color);
    background: var(--background-card);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1;
    cursor:pointer;
    transition: .18s;
    user-select:none;
}
.variant-chips input:checked + .chip{
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgb(31 60 136 / 0.2);
}
.chip-color-dot{
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}

/* buy box (کارت خرید) */
.buy-box{
    margin-top: 18px;
    background: var(--background-card);
    border:1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--box-shadow);
}
.buy-box-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom: 10px;
}
#price-display{
    font-size: 25px;
    font-weight: 700;
    color:#111;
    margin:0;
}
#price-display span{
    font-size: 20px;
    color: var(--muted);
    margin-right: 8px;
}
.buy-box-meta{
    color: var(--muted);
    font-size: 14px;
    margin: 8px 0 0 0;
}
.buy-actions{
    display:flex;
    gap:12px;
    align-items:center;
    margin-top: 14px;
}
.buy-actions .pro-qty{
    border-radius: 14px;
    overflow:hidden;
    border:1px solid var(--border);
    background:#fff;
}
.buy-actions .primary-btn{
    flex:1;
    border-radius: 14px;
    height: 52px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight: 800;
}

/* perks inside buy box */
.buy-perks{
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px 16px;
}
@media (max-width: 575.98px){
    .buy-perks{ grid-template-columns: 1fr; }
}
.buy-perk {
    display:flex;
    align-items:center;
    gap:10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.buy-perk .icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(166, 123, 46, 0.14);
    border: 1px solid var(--accent-color);
    display:flex;
    align-items:center;
    justify-content:center;
    flex: 0 0 34px;
}
.buy-perk .icon i {
    color: var(--accent-color);
    font-size: 16px;
}

.product-mini-list {
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}
.product-mini-list .item{
    display:flex;
    align-items:center;
    gap:8px;
}
.product-mini-list i{
    color: var(--primary-color);
    font-size: 16px;
}

/* نگه‌داشتن استایل‌های قدیمی فاشی برای tab و ... */
.product-shop.page-details { padding-top: 0; }

.product-content img {
    max-width: 100%;
    height: auto;
}

.product-content p {
    text-align: justify;
}
