/* ===================================================================
   products.css - Final Artistic Version for Single Product & All Products
   =================================================================== */

/* --- সকল পণ্য পেজ --- */
.products-page-header {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--color-border);
}
.products-page-header .page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* --- পণ্যের বিবরণ পেজ (Single Product) --- */
.single-product-container {
    padding: 50px 0;
}

/* ছবি গ্যালারি */
.product-gallery .main-image-wrapper {
    aspect-ratio: 1/1;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}
.product-gallery .main-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.product-gallery .main-image-wrapper:hover img {
    transform: scale(1.05);
}
.product-gallery .thumbnail-images {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px;
}
.product-gallery .thumb-item {
    aspect-ratio: 1/1; border: 2px solid transparent;
    border-radius: 8px; overflow: hidden; cursor: pointer;
    transition: border-color 0.3s ease;
}
.product-gallery .thumb-item:hover, .product-gallery .thumb-item.active {
    border-color: var(--color-primary);
}
.product-gallery .thumb-item img {
    width: 100%; height: 100%; object-fit: cover;
}

/* পণ্যের তথ্য */
.product-details {
    padding-left: 30px;
}
.product-details .product-category-tag {
    font-weight: 500; color: var(--color-secondary);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 15px; display: block;
}
.product-details h1 {
    font-size: 2.8rem; font-weight: 700;
    margin-bottom: 15px; line-height: 1.3;
}
.product-details .price-wrapper {
    display: flex; align-items: center;
    margin-bottom: 25px; padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
}
.product-details .current-price {
    font-size: 2.5rem; font-weight: bold;
    color: var(--color-primary); margin-right: 20px;
}
.product-details .original-price {
    font-size: 1.5rem; text-decoration: line-through; color: #aaa;
}
.product-details .product-short-description {
    font-size: 1.05rem; line-height: 1.8; color: #555;
}

/* assets/css/products.css - (Replace ONLY .add-to-cart-form and .product-info-tabs sections) */

/* --- কার্টে যোগ করার ফর্ম (নতুন ডিজাইন) --- */
.add-to-cart-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    width: 150px;
}
.quantity-selector button {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    padding: 0 15px;
    cursor: pointer;
    height: 50px;
}
.quantity-selector input {
    width: 50px;
    height: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-size: 1.2rem;
    font-weight: bold;
}
/* ইনপুট নম্বর ফিল্ডের অ্যারো লুকানো */
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-selector input[type=number] {
    -moz-appearance: textfield;
}

.btn-add-to-cart {
    height: 52px;
    padding: 0 35px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
    transition: all 0.3s ease;
}
.btn-add-to-cart:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* --- ট্যাব সেকশন (নতুন ডিজাইন) --- */
.product-info-tabs {
    margin-top: 80px;
    border-top: 1px solid var(--color-border);
    padding-top: 50px;
}
.product-info-tabs .nav-tabs {
    border-bottom: 2px solid var(--color-border);
    display: flex;
    justify-content: center; /* ট্যাবগুলোকে keskellä আনা হলো */
    gap: 20px;
}
.product-info-tabs .nav-link {
    border: none;
    padding: 10px 0;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #888;
    border-bottom: 3px solid transparent;
    background: none;
}
.product-info-tabs .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.tab-content {
    padding: 40px 0; /* প্যাডিং পরিবর্তন করা হলো */
    line-height: 1.8;
}
.tab-content h5 { font-size: 1.4rem; font-weight: bold; margin-bottom: 10px; }
.artisan-photo {
    width: 120px; height: 120px;
    object-fit: cover; border-radius: 50%;
    border: 4px solid var(--color-border);
}

.review-item .rating { color: var(--color-secondary); font-size: 1.2rem; }

/* ... (বাকি CSS অপরিবর্তিত) ... */

/* সম্পর্কিত পণ্য */
.related-products-section {
    padding-top: 80px; margin-top: 80px;
    border-top: 1px solid var(--color-border);
}