/* File: css/product-details.css */
* {
        /* all: unset; */
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Makes width/height calculations more intuitive */
}
/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0.5rem 0 0.25rem;
    padding: 0.125rem 0.125rem;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2c80b9;
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 10px;
    color: #999;
}

/* Error Container */
.error-container {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
    margin: 40px 0;
}

.error-content i {
    font-size: 64px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 28px;
}

.error-content p {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Product Details Container */
.product-details-container {
    width: 98%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.list-items h1, p {
    text-align: left !important;
    font-size: 0.8rem;
}

.product-layout {
    position: relative;
}

.product-content {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.specs-sidebar {
    position: relative;
    height: fit-content;
}

.specs-container {
    background: white;
    border-radius: 8px;
    /* border: 1px solid #e0e0e0; */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* Smoother, faster transition */
    position: relative;
    padding: 5px;
    will-change: transform; /* Performance optimization */
}

/* When sticky - fixed to top */
.specs-container.sticky {
    position: fixed;
    top: 20px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* When at bottom - scroll with page - MODIFIED */
.specs-container.at-bottom {
    position: sticky;
    bottom: 0;
    top: auto; /* Important: ensures it positions from bottom */
}


/* Scroll indicator for demo */
/* .scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 150, 214, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    z-index: 1000;
    display: none;
}

.scroll-indicator.show {
    display: block;
} */



/* ==========================================
   PRODUCT IMAGE SLIDER
   ========================================== */

/* Main Image Wrapper */
.main-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.product-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    /* border-radius: 12px; */
    overflow: hidden;
    /* margin-bottom: 10px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-image img:hover {
    transform: scale(2.5);
}


/* Image Loading Overlay */
.image-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.image-loading-overlay.active {
    display: flex;
}

.image-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

/* Navigation Buttons for Main Image */
.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e50;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 0;
}

.main-image-wrapper:hover .image-nav-btn {
    opacity: 1;
}

.image-nav-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.image-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.image-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev-image {
    left: 0;
}

.next-image {
    right: 0;
}

/* Image Fade Animations */
.main-image img.fade-out {
    animation: fadeOut 0.3s ease;
}

.main-image img.fade-in {
    animation: fadeIn 0.3s ease;
}



/* ==========================================
   THUMBNAIL SLIDER
   ========================================== */

.thumbnail-slider-wrapper {
    position: relative;
    display: none;
    align-items: center;
    gap: 10px;
}

/* Thumbnail Navigation Buttons */
.thumbnail-nav-btn {
    flex-shrink: 0;
    background: white;
    border: 1px solid #e0e0e0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e50;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 2;
}

.thumbnail-nav-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.thumbnail-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumbnail-nav-btn:active {
    transform: scale(0.95);
}

/* Thumbnail Container */
.thumbnail-container {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 5px;
}

.thumbnail-track {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
}

.thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.thumbnail:hover {
    border-color: #3498db;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.1);
    pointer-events: none;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* ==========================================
   NO IMAGE STATE
   ========================================== */

.main-image.no-image {
    background: #f8f9fa;
    flex-direction: column;
    color: #adb5bd;
}

.main-image.no-image i {
    font-size: 64px;
    margin-bottom: 15px;
}

.main-image.no-image p {
    font-size: 14px;
    color: #6c757d;
}

.image-zoom-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumbnail-container {
    display: flex;
    flex-direction: row;
    margin-right: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;

}

.thumbnail {
    height: 64px;
    width: 64px;
    margin:5px ;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.thumbnail:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Product Info */
.product-info {
    position: sticky;
    top: 25px;
    margin-top: 8px;
}

.product-info-sub{
    height: fit-content;
    background: white;
    padding: 0.5rem;
    margin: 0 0.35rem;
    /* border-radius: 12px; */
    /* border: 1px solid #e0e0e0; */
}

.product-header {
    /* margin-bottom: 20px; */
}

.product_title {
    display: none;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.product-category {
    display: none;
    align-items: center;
    gap: 6px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-brand-info {
    display: flex;
    gap: 10px;
    margin:0.5rem 0.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
    text-align: center;
    align-items: center;
}

.product_price {
    margin-bottom: 5px;
    border-bottom: 1px solid #cfcccc;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 10px;
   /* padding: 1px 5px; */
    border-radius: 8px;
    /* margin-bottom: 25px; */
    font-weight: 500;
}

.stock-status i {
    font-size: 18px;
}

.stock-status .in-stock {
    color: #27ae60;
     padding: 1px 5px;
    border-radius: 8px;
}

.stock-status .low-stock {
    color: #f39c12;
     padding: 1px 5px;
    border-radius: 8px;
}

.stock-status .out-of-stock {
    color: #e74c3c;
     padding: 1px 5px;
    border-radius: 8px;
}

.in-stock {
    background: #d4edda;
}

.low-stock {
    background: #fff3cd;
}

.out-of-stock {
    background: #f8d7da;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 10px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 99999px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
}

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

#productQuantity {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.qty-available {
    display: none; /*don't show your stock levels to everyone*/
    margin-left: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    margin-bottom: 5px;
}

.btn_ {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 10px;
    border: none;
    border-radius: 99999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-selector{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.btn-buy-now {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    flex: 1;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
}

.btn-add-cart {
    background: linear-gradient(135deg, #3498db, #2c80b9);
    color: white;
    flex: 1;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #2c80b9, #2471a3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.btn-wishlist {
    display: none;
    background: white;
    border: 2px solid #e0e0e0;
    color: #e74c3c;
}

.btn-wishlist:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.btn-wishlist.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.btn-wishlist.active i {
    font-weight: 900;
}

.btn-disabled {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Product Features */
.product-features {
    display: none;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 24px;
    color: #3498db;
    width: 30px;
    text-align: center;
}

.feature-item strong {
    display: block;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 3px;
}

.feature-item span {
    color: #7f8c8d;
    font-size: 12px;
}

/* Product Specifications */
.product-specifications {
    display: none;
    padding: 0 20px;
    /* background: #f8f9fa; */
    border-radius: 8px;
    /* border-left: 4px solid #3498db; */
}

.product-specifications h3 {
    display: none;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 2px;
    font-size: 1rem;
}

.product-specifications h3 i {
    color: #3498db;
}

.specifications-content {
    color: #555;
    line-height: 1.8;
    font-size: 0.75rem;
}

.specifications-content h2{
    font-size: 1rem;
}

.specifications-content h3{
    font-size: 0.895rem;
}

/* Product Description Section */
.product-description-section {
    /* margin-top: 50px; */
    background: white;
    /* border-radius: 12px; */
    /* border: 1px solid #e0e0e0; */
    overflow: hidden;
}

.section-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
}


.tab-btn {
    flex: 1;
    padding: 5px 2px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    color: #7f8c8d;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.tab-btn.active {
    color: #3498db;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #3498db;
}

.tab-content {
    display: none;
    padding: 0.5rem;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    display: flex;
    color: #2c3e50;
    margin-top: 1rem;
    font-size: 1rem;
    /* all: unset; */
}

.description-text,
.specifications-text {
    color: #555;
    line-height: 1.8;
    font-size: 0.75rem;
}

.specifications-text ul li{
    margin-inline-start: 26px;
}

.specifications-text h2{
    font-size: 1.125rem;
}

.description-text h1{
    font-size: 1.25rem;
    all: unset;
}

.description-text h2{
    margin-top: 1.25rem;
    font-size: 1rem;
}

.description-text p{
    all: unset;
    text-align: left;
}

.description-text ul{
        /* all: unset; */
    /* margin-left: 25px; */
}

.description-text ul li{
        /* all: unset; */
    margin-left: 25px;
}

.specifications-content ul{
    all: unset;
    /* margin-left: 15px; */
}

.specifications-content p{
    text-align: left;
}

.specifications-text ul{
    margin-left: 8px;
}

.shipping-info h4 {
    color: #2c3e50;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.shipping-info h4 i {
    color: #3498db;
}

.shipping-info ul {
    list-style: none;
    padding-left: 0;
}

.shipping-info ul li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.shipping-info ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #27ae60;
}

/* Related Products Section */
.related-products-section {
    margin: 0.5rem;
    padding: 5px;
    border-top: 2px solid #e0e0e0;
    max-width: 98%;
}

.section-title {
    font-size: 1.0rem;
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    /* gap: 15px; */
    /* border: 1px solid #c7c7c7; */
    border-radius: 8px;
    padding: 5px;
}

.slider-btn {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.slider-btn:hover {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.slider-btn i {
    font-size: 18px;
}

.products-slider-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.products-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}


.product-card {
    min-width: 250px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}

.product-card-info {
    /* padding: 15px; */
}

.product-card-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 44px;
}

.product-card-price {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.product-card-actions {
    padding: 0 15px 15px;
}

.btn-quick-add {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-quick-add:hover {
    background: #0056b3;
}


.section-title i {
    color: #3498db;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    flex: 1 1;
    background: white;
    /* border: 1px solid #e0e0e0; */
    /* border-radius: 10px; */
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    width: 100%;
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-image .no-image {
    color: #adb5bd;
}

.product-card-image .no-image i {
    font-size: 48px;
}

.product-card-info {
    /* padding: 20px; */
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1rem;
    text-align: center;
}

.product-card-actions {
    padding: 0 20px 20px;
}

.btn-quick-add {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 99999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-quick-add:hover {
    background: #2c80b9;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: bottom 0.3s;
    font-weight: 500;
}

.toast.show {
    bottom: 30px;
}

.toast i {
    font-size: 20px;
}


/* ==========================================
   MOBILE FULL DESCRIPTION MODAL
   ========================================== */

.mobile-description-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-description-modal.active {
    display: block;
}

/* Modal content */
.mobile-modal-content {
    background: white;
    min-height: 100vh;
    padding: 20px;
    padding-top: 70px; /* Space for fixed header */
}

/* Modal header */
.mobile-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
}

.mobile-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.mobile-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #2c3e50;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-modal-close:active {
    background: #f0f0f0;
}

/* Modal body */
.mobile-modal-body {
    color: #555;
    line-height: 1.8;
}

.mobile-modal-body h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 15px;
}

.mobile-modal-body h2 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
}

.mobile-modal-body h3{
    font-size: 1rem;
    margin-top: 0.5rem;
}

.mobile-modal-body p {
    margin-bottom: 15px;
    text-align: left;
}

.mobile-modal-body ul {
    margin: 0 0 0 15px;
    /* margin-left: 25px; */
}

.mobile-modal-body ul li {
    /* margin-bottom: 10px; */
}

/* ==========================================
   IMPROVED MOBILE SPECIFICATIONS DISPLAY
   ========================================== */

@media (max-width: 767px) {

    .specifications-content {
        font-size: 0.875rem;
        line-height: 1.7;
    }
    
    .specifications-content ul {
        margin-left: 20px;
    }
    
    .specifications-content ul li {
        margin-bottom: 8px;
    }

    #specifications{
        display: block !important;
    }
    
    /* Better readability */
    #specifications h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #2c3e50;
    }
    
    /* Compact tab content */
    .tab-content {
        padding: 8px;
    }

     .main-image {
        height: 280px;
    }
    
    .image-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        opacity: 1; /* Always visible on mobile */
    }
    
    .prev-image {
        left: -20px;
    }
    
    .next-image {
        right:-20px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* ==========================================
   DESKTOP SIDEBAR SPECIFICATIONS
   ========================================== */

@media (min-width: 992px) {
    .product-details-container{
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }

    .id-w-59{
        width: 59%;
    }

    .id-w-37{
        width: 37%;
    }

    .product-specifications {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
    }
    
    .product-specifications h3 {
        display: none;
        /* display: flex; */
        align-items: center;
        gap: 10px;
        color: #2c3e50;
        margin-bottom: 2px;
        font-size: 1.1rem;
    }
    
    .product-specifications h3 i {
        color: #3498db;
    }
    
    .specifications-content {
        color: #555;
        line-height: 1.5;
        font-size: 0.75rem;
    }

    .thumbnail-slider-wrapper {
        display: flex;
    }
    
    .specifications-content ul {
        /* margin-left: 5px; */
    }
    
    .specifications-content ul li {
        margin-bottom: 2px;
        margin-inline-start: 26px;
    }

    .description-text ul li{
        font-size: 0.875rem;
    }

    .description-text p{
        font-size: 0.875rem;
    }

    .main-image {
        height: 500px;
    }
    
    .product-gallery {
        display: flex;
        flex-direction: row-reverse;
        gap: 15px;
    }
    
    .main-image-wrapper {
        flex: 1;
    }
    
    /* Vertical thumbnail slider on desktop */
    .thumbnail-slider-wrapper {
        flex-direction: column;
        width: 100px;
        max-height: 500px;
    }
    
    .thumbnail-container {
        flex: 1;
        overflow: hidden;
    }
    
    .thumbnail-track {
        flex-direction: column;
        gap: 10px;
    }
    
    .thumbnail {
        width: 90px;
        height: 90px;
    }
    
    .thumbnail-nav-btn {
        width: 100%;
        height: 35px;
        border-radius: 8px;
    }
    
    .prev-thumbnails i,
    .next-thumbnails i {
        transform: rotate(90deg);
    }
}

/* ==========================================
   SMOOTH TRANSITIONS
   ========================================== */

.tab-content,
.mobile-description-modal {
    animation: fadeIn 0.3s ease;
}


@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (min-width: 480px) {
    .product-card {
        min-width: 160px;
    }
    
    .slider-container {
        gap: 8px;
    }
    
    .products-slider {
        gap: 12px;
    }
}

/* ==========================================
   RESPONSIVE PRODUCT DETAILS
   Mobile: Specifications only
   Desktop: Full description + specs sidebar
   ========================================== */

/* ==========================================
   MOBILE FIRST - Show Specifications Only
   ========================================== */

/* Hide description tab and shipping tab on mobile */
@media (max-width: 767px) {
    /* Hide description and shipping tabs */
    .tab-btn[data-tab="description"],
    .tab-btn[data-tab="shipping"] {
        display: none;
    }
    
    /* Hide description and shipping content */
    #description,
    #shipping {
        display: none !important;
    }
    
    /* Make specifications tab full width */
    .tab-btn[data-tab="specifications"] {
        width: 100%;
    }
    
    /* Specifications tab always active on mobile */
    .tab-btn[data-tab="specifications"] {
        color: #3498db;
        background: white;
    }
    
    .tab-btn[data-tab="specifications"]::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 3px;
        background: #3498db;
    }
    
    /* Show "View Full Description" button on mobile */
    .mobile-view-full {
        display: block !important;
        margin-top: 15px;
        padding: 12px 20px;
        background: #3498db;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        width: 100%;
        text-align: center;
        transition: all 0.3s;
    }
    
    .mobile-view-full:active {
        background: #2c80b9;
        transform: scale(0.98);
    }
    
    .mobile-view-full i {
        margin-right: 8px;
    }
    
    /* Hide sidebar specs on mobile */
    .product-specifications {
        display: none;
    }
}



/* Responsive Design */
@media (min-width: 768px) {

    .mobile-description-modal {
        display: none !important;
    }

    .product-details-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-image {
        height: 500px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .btn-buy-now,
    .btn-whatsapp {
        
        flex: 1;
    }

    .product_title{
        /* display: block; */
        font-size: 1.125rem;
    }

    .product-category{
        display: none;
    }
    
    .product-features {
        grid-template-columns: 1fr 1fr;
    }

    .product-gallery {
         flex-direction: row-reverse;
    }

    .thumbnail-container {
        flex-direction: column;
    }

    .tab-btn {
        /* display: flex; */
        padding: 18px 20px;
        font-size: 15px;
        font-weight: 600;
        gap: 8px;
    }

    .product-card {
        min-width: 250px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-btn i {
        font-size: 14px;
    }

    .product_price{
        border-bottom: 1px solid #e0e0e0;
        margin: 0 15px;
    }

    /* Show all tabs */
    .tab-btn[data-tab="description"],
    .tab-btn[data-tab="shipping"] {
        display: flex;
    }

     /* Hide mobile-only button */
    .mobile-view-full {
        display: none !important;
    }
    
    /* Show sidebar specifications */
    .product-specifications {
        display: block;
    }

    .description-text ul li{
        font-size: 0.75rem;
    }

    .description-text p{
        font-size: 0.875rem;
    }
    
    /* Make tabs equal width */
    /* .section-tabs {
        display: flex;

    } */
    
    .tab-btn {
        flex: 1;
        padding: 15px 20px;
        font-size: 14px;
    }

    .main-image {
        height: 400px;
    }
    
    .thumbnail {
        width: 65px;
        height: 65px;
    }

}

@media (min-width: 992px) {
    .product-gallery{
        height: 500px;
        margin: 10px 0;
    }
    
    .main-image {
        height: 500px;
    }
    
    .thumbnail-container {
        grid-template-columns: repeat(6, 1fr);
    }

    .tab-btn {
        padding: 18px 20px;
        font-size: 15px;
        font-weight: 600;
    }

    .tab-content h3 {
        color: #2c3e50;
        margin-top: 8px;
        font-size: 1rem;
    }

    .product-details-container {
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;
    
    }

    /* Show sidebar specifications */
    .product-specifications {
        display: block;
        padding: 20px;
    }

    .specifications-content h3 {
        display: flex;
        font-size: 0.895rem;
        margin-top: 8px;
    }

    /* Better content spacing */
    .tab-content {
        padding: 8px;
        margin: 8px 15px;
    }

    .tab-content h3 {
        font-size: 1.25rem;
        font-weight: 500;
        /* margin-bottom: 20px; */
    }

    .description-text,
    .specifications-text {
        font-size: 0.75rem;
        line-height: 1.8;
    }

    .products-grid {
        display: flex;
        
        gap: 20px;
    }


    .id-w-59{
        width: 59%;
    }

    .id-w-37{
        width: 37%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1360px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-details-container{
        min-width: 1180px;
        max-width: 1440px;
        margin: 0 auto;
    }

}

@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

