/* --- Root Variables --- */
:root {
    --primary-color: #00b894; 
    --secondary-color: #3498db; 
    --accent-color: #0984e3; 
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-gray: #f8f9fa;
}

body { background-color: var(--bg-gray); color: var(--text-dark); font-family: sans-serif; }   
.detail-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

/* --- Product Main Card --- */
.product-main-card { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    background: #fff; 
    padding: 30px; 
    border-radius: 25px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); 
}

/* --- Image Section & Badges --- */
.image-box { position: relative; } /* এটি জরুরি ব্যাজের পজিশন ঠিক রাখার জন্য */

.badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.badge-new, .badge-offer {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: inline-block;
    text-align: center;
}

.badge-new { background: linear-gradient(45deg, #0984e3, #00cec9); }
.badge-offer { background: linear-gradient(45deg, #ff4757, #ff6b81); }

.main-display { 
    border-radius: 20px; overflow: hidden; 
    background: #fff; border: 1px solid #eee; position: relative;
}
.main-display img { width: 100%; height: 500px; display: block; transition: transform 0.6s ease; }
.main-display:hover img { transform: scale(1.1); }

.gallery-thumbs { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb { width: 65px; height: 65px; border: 2px solid #eee; flex-shrink: 0; border-radius: 10px; cursor: pointer; overflow: hidden; }
.thumb.active { border-color: var(--secondary-color); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Options (Size/Color) --- */
.selection-container { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.option-item input { display: none; }
.option-label { 
    padding: 6px 14px; border: 1px solid #ddd; border-radius: 8px; 
    cursor: pointer; font-weight: 600; font-size: 14px; background: #fff; transition: 0.2s;
}
.option-item input:checked + .option-label { 
    background: var(--secondary-color); color: white; border-color: var(--secondary-color);
}

/* --- Buttons & Spinner --- */
.action-buttons { display: flex; gap: 12px; margin-top: 20px; }
.btn-base { 
    padding: 14px; border-radius: 12px; font-weight: 700; cursor: pointer; 
    border: none; display: flex; align-items: center; justify-content: center; position: relative;
}
.cart-btn { background: #fff; color: var(--accent-color); border: 2px solid var(--accent-color); flex: 1; }
.buy-btn { background: var(--primary-color); color: #fff; flex: 1.5; font-size: 17px; }

.spinner {
    display: none; width: 16px; height: 16px; border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; margin-left: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading .spinner { display: block; }

/* --- Tabs & Slide-up Animation --- */
.tab-container { margin-top: 30px; background: #fff; padding: 25px; border-radius: 20px; }
.tab-buttons { border-bottom: 2px solid #f1f1f1; margin-bottom: 20px; display: flex; gap: 25px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.tab-btn { padding: 10px 0; cursor: pointer; border: none; background: none; font-weight: 700; color: #b2bec3; border-bottom: 3px solid transparent; font-size: 16px; }
.tab-btn.active { color: var(--secondary-color); border-bottom-color: var(--secondary-color); }

.tab-content { 
    display: none; 
    line-height: 1.7; 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.4s ease-out; 
}
.tab-content.show { 
    display: block; 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .product-main-card { grid-template-columns: 1fr; padding: 15px; gap: 20px; }
    .action-buttons { flex-direction: column; }
    .cart-btn { order: 1; width: 100%; }
    .buy-btn { order: 2; width: 100%; }

    .badge-container { top: 10px; left: 10px; }
    .badge-new, .badge-offer { font-size: 10px; padding: 4px 10px; }

    .option-label { padding: 5px 12px; font-size: 13px; }
    .tab-container { padding: 15px; }
    .main-display img { width: 100%; height: 350px; display: block; transition: transform 0.6s ease; }
    .main-display:hover img { transform: none; }
}



/*--------------review------------*/
/* Container */
#reviews {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Review Card */
.premium-review-card {
    border-bottom: 1px solid #f1f1f1;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.premium-review-card:last-child {
    border-bottom: none;
}

.review-flex {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Small Avatar */
.user-avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eee;
}

/* User & Meta info */
.user-name-bold {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.premium-stars {
    font-size: 12px;
    margin: 4px 0;
}

.star-filled { color: #f39c12; }
.star-empty { color: #ccc; }

.verified-badge {
    color: #00b894;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
}

/* Comment Text */
.review-comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-top: 8px;
}

/* Review Image Thumbnail */
.review-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: 0.2s;
}

.review-thumb:hover {
    border-color: #333;
    opacity: 0.9;
}

/* Empty Message */
.no-reviews-msg {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-style: italic;
}



/*------------review from-----------*/
/* --------------- Review Form ----------------- */
.review-form-card {
    max-width: 800px;
    margin: 20px auto 40px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.review-form-card label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #222;
}

.review-form-card textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
}

.review-form-card input[type="file"] {
    display: block;
    margin-top: 5px;
}

.review-form-card select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
}

.review-form-card button[type="submit"] {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.review-form-card button[type="submit"]:hover {
    background: #0984e3;
}

/* --------------- Star Rating Display ----------------- */
.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

.review-stars span {
    cursor: default;
    transition: color 0.2s;
}

.review-stars .star-filled {
    color: #f39c12; /* gold */
}

.review-stars .star-empty {
    color: #ccc;
}


