

/* =========================================================
   B2B PRODUCT DETAIL PAGE STYLES (Exact Match)
   ========================================================= */

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #eef3fc;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06);
}

/* ================= ROW 1 ================= */
.row-1 {
    display: flex;
    gap: 24px;
    width: 100%;
}

.main-image-container {
    flex: 2;
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 420px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.04);
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container img:hover {
    transform: scale(1.03);
    /* Hover effect for main image */
}

.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #475569;
    transition: all 0.2s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background: #cbd5e1;
    transform: scale(1.05);
}

.favorite-btn.active {
    background: #fee2e2;
}

.thumbnails-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.thumbnail {
    background: #ffffff;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 1;
    transition: border-color 0.2s;
}

.thumbnail:hover {
    border-color: var(--gray-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px solid var(--gray-300);
}

.thumbnail.active {
    border-color: var(--gray-300);
    box-shadow: 0 0 0 2px solid var(--gray-300);
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ================= ROW 2 ================= */
.row-2 {
    display: flex;
    gap: 24px;
    width: 100%;
}

.product-description-box {
    flex: 1.5;
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.04);
}

.product-description-box h2 {
    color: #1e1b4b;
    font-size: 22px;
    margin-bottom: 20px;
}

.desc-section {
    margin-bottom: 16px;
}

.desc-section h3 {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 6px;
}

.desc-section p {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.desc-section ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

/* Purchase Box */
.product-purchase-box {
    flex: 1;
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.04);
}

.product-purchase-box .product-title {
    font-size: 16px;
    color: #1e3a8a;
    line-height: 1.4;
    margin-bottom: 10px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 13px;
}

.rating-stars .score {
    color: #475569;
    font-weight: bold;
    margin-right: 4px;
}

.price {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ef4444;
    margin-bottom: 1.25rem;
}

.specs-list {
    /* list-style: none;
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 16px; */


    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #374151;
}

.divider {
    border: none;
    border-top: 1px solid #cbd5e1;
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    font-size: 13px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* =========================================================
   FIXED QUANTITY SELECTOR (Exact Match)
   ========================================================= */

.quantity-container {
    display: flex;
    align-items: center;
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    padding: 3px;
    /* Reduced padding so circles fit inside */
    width: 100%;
    max-width: 200px;
    /* Adjusted max-width */
    margin: 0 auto 16px auto;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 10px;
}

.qty-btn {
    width: 32px;
    /* Perfectly fits inside the container height */
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* Prevents buttons from squishing */
}

.minus-btn {
    background-color: #ff4d4d;
    color: #ffffff;
}

.minus-btn:hover {
    background-color: #dc2626;
}

.plus-btn {
    background-color: #1e3a8a;
    color: #ffffff;
}

.plus-btn:hover {
    background-color: #0f172a;
}

.qty-input {
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #1e3a8a;
    outline: none;
    width: 40px;
}

/* Action Buttons Layout */
.action-buttons {
    display: flex;
    gap: 30px;
    width: 100%;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 15px;
    /* Fully rounded pill shape */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Add to Cart Button (Outlined Style) */
.add-to-cart {
    background: #ffffff;
    border: 1px solid #1e3a8a;
    color: #1e3a8a;
}

.add-to-cart:hover {
    background: #f0f6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.1);
}

/* Place Order Button (Solid Navy Style) */
.place-order {
    background: #1e3a8a;
    border: 1px solid #1e3a8a;
    color: #ffffff;
}

.place-order:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

/* Responsive breakpoint */
@media (max-width: 900px) {

    .row-1,
    .row-2 {
        flex-direction: column;
    }

    .thumbnails-container {
        height: auto;
        flex-direction: row;
    }

    .main-image-container {
        height: 350px;
    }
}

/* =========================================================
   PRODUCT CARDS & RELATED PRODUCTS
   ========================================================= */

.b2b-card {
    background-color: #ffffff !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.b2b-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
}

.b2b-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

.b2b-card-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.b2b-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.b2b-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}

/* .b2b-product-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.btn-add {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 0.75rem !important;
    text-align: center !important;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2) !important;
    transition: background-color 0.2s ease !important;
}

.btn-add:hover {
    background-color: #1d4ed8 !important;
} */

.b2b-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-900);
    line-height: 1.3;
    min-height: 2.6rem;
}

.b2b-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--gray-800);
}

.b2b-rating {
    font-size: 0.8rem;
    color: var(--yellow-400);
    margin-bottom: 0.5rem;
}

.btn-add {
    background-color: var(--blue-900);
    color: var(--white);
    padding: 0.6rem 0;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    width: 100%;
    margin-top: 0.5rem;
}

/* .b2b-card {
    background-color: var(--blue-700);
} */

/* Related Products Section */
.related-brand-section {
    margin-top: 1rem;
}

/* =========================================================
   LIGHT BLUE BACKGROUND CONTAINER FOR RELATED PRODUCTS
   ========================================================= */
.related-brand-wrapper-card {
    background-color: #f0f6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 1.25rem !important;
    padding: 2rem !important;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06) !important;
}

.related-brand-wrapper-card .b2b-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
    margin-bottom: 0 !important;
}






/* =========================================================
   Alert Message Box
   ========================================================= */

/* Under Construction Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 1rem;
}

.custom-modal-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #bfdbfe;
}

.modal-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.custom-modal-card h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.custom-modal-card p {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
}

.contact-info-box {
    background-color: #f0f6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1.25rem 0;
    text-align: left;
    font-size: 0.85rem;
    color: #1e3a8a;
}

.contact-info-box div {
    margin-bottom: 0.4rem;
}

.contact-info-box div:last-child {
    margin-bottom: 0;
}

.btn-close-notice {
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-close-notice:hover {
    background-color: #1d4ed8;
}


/* =========================================================
   Alert Message Box
   ========================================================= */




/* =========================================================
   RESPONSIVE MEDIA QUERIES FOR ALL DEVICES
   (1200px, 1024px, 768px, 640px, 480px, 360px)
   ========================================================= */

@media screen and (max-width: 1200px) {
    .nav-single-line-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .product-container, .b2b-section-title{
        max-width: 100%;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .nav-single-line-wrapper {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .product-container, .b2b-section-title {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
}

@media screen and (max-width: 900px) {

    .row-1,
    .row-2 {
        flex-direction: column !important;
    }

    .thumbnails-container {
        height: auto !important;
        flex-direction: row !important;
        gap: 12px;
    }

    .thumbnail {
        height: 80px;
    }

    .main-image-container {
        min-height: 320px;
        height: auto;
    }

    .related-brand-wrapper-card .b2b-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
 
    .nav-single-line-wrapper{
        padding-left: 1rem;
        padding-right: 1rem;
    }
    

    .product-container, .b2b-section-title {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1rem;
    }

    

}

@media screen and (max-width: 640px) {
  
    .nav-single-line-wrapper{
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .related-brand-wrapper-card .b2b-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.75rem !important;
    }
    .nav-container {
        font-size: 0.65rem;
        gap: 0.75rem;
        justify-content: flex-start;
    }
    .product-container, .b2b-section-title {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding: 14px;
        gap: 16px;
    }
    .b2b-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.75rem !important;
    }
   


}

@media screen and (max-width: 480px) {

   
    .nav-single-line-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .product-container, .b2b-section-title {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 12px;
    }

    

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .main-image-container {
        min-height: 260px;
        padding: 15px;
    }

    .thumbnails-container {
        gap: 8px;
    }

    .thumbnail {
        height: 60px;
        padding: 5px;
    }

    .product-description-box,
    .product-purchase-box {
        padding: 16px;
    }

    
}

@media screen and (max-width: 425px) {

   
    .nav-single-line-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .product-container, .b2b-section-title {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .nav-container {
        font-size: 0.65rem;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .price {
        font-size: 1.2rem;
    }

    .quantity-container {
        max-width: 180px;
    }

    
}

@media screen and (max-width: 360px) {

  
    .nav-single-line-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
   

    .product-container, .b2b-section-title {
        margin-left: 0.4rem;
        margin-right: 0.4rem;
        padding: 10px;
    }
    .main-image-container {
        min-height: 220px;
    }
    .qty-btn {
        width: 28px;
        height: 28px;
    }

    .related-brand-wrapper-card .b2b-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    
}

@media screen and (max-width: 320px) {

    
    .nav-single-line-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .nav-container {
        font-size: 0.65rem;
        gap: 0.75rem;
        justify-content: flex-start;
    }
    .product-container, .b2b-section-title {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        padding: 8px;
    }
    .main-image-container {
        min-height: 190px;
    }

   
    .b2b-card {
        padding: 0.75rem;
    }

    .b2b-card-img {
        height: 130px;
    }

    .b2b-product-title {
        font-size: 0.8rem;
        min-height: auto;
    }

    .b2b-price {
        font-size: 0.75rem;
    }

    .btn-add {
        padding: 0.35rem 0.8rem;
        font-size: 0.65rem;
    }

   
}