/* assets/css/product-details.css */
:root {
    --primary: #134542;
    --secondary: #a58a47;
    --light-bg: #f9f7f4;
    --dark-text: #222;
    --border: #eee;
}

body { 
    font-family: 'Poppins', sans-serif !important; 
    background: #fff; 
    color: var(--dark-text);
}
.product-header { 
    background: var(--light-bg); 
    padding: 12px 0; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* === Main Product Image === */
.main-image { 
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* === Thumbnails === */
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail.active, .thumbnail:hover {
    border-color: var(--primary);
}

/* Desktop: Vertical Thumbnails */
.gallery-thumbnails-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 10px;
}

/* Mobile: Horizontal Thumbnails */
.gallery-thumbnails-mobile {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails-mobile .thumbnail {
    flex-shrink: 0;
}

/* Buttons */
.btn-add-cart { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    font-weight: 600; 
    border-radius: 6px; 
    transition: background 0.2s;
    font-size: 1.05rem;
}
.btn-add-cart:hover { 
    background: #0f3633; 
    transform: translateY(-2px);
}
.btn-buy-now { 
    background: var(--secondary); 
    color: white; 
    border: none; 
    padding: 16px 24px; 
    font-weight: 600; 
    border-radius: 6px; 
    transition: background 0.2s;
    font-size: 1.05rem;
    margin-left: 10px;
}
.btn-buy-now:hover { 
    background: #8a723d; 
    transform: translateY(-2px);
}

/* Product Info */
/* .product-info { 
    padding: 20px 0; 
} */
.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}
.product-price { 
    display: none;
}
.product-category { 
    font-size: 0.95rem; 
    color: #666; 
    margin-bottom: 15px; 
    font-weight: bold;
}
.description-title { 
    font-weight: 700; 
    margin: 30px 0 15px; 
    color: var(--primary);
    position: relative;
    padding-bottom: 8px;
}
.description-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}
.spec-item { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 10px; 
    font-size: 0.95rem;
}
.spec-label { 
    font-weight: 600; 
    width: 120px; 
    color: #444;
}

/* === Enhanced Variant Selector === */
.variant-selector {
    margin-top: 25px;
}

.variant-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    border: 2px solid #ddd;
    
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.variant-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.variant-option.selected {
    border-color: var(--primary);
    background-color: #e8f8f5;
    color: var(--primary);
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(19, 69, 66, 0.2);
}

.variant-badge-pc {
    
    padding: 4px;
}

.variant-badge-circle {
    width: auto;
    height: 39px;
    border-radius: 0px;
    padding: 10px !important;
    font-size: 0.9rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.variant-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
    transition: transform 0.2s ease;
}

/* Related Products */
.related-products { 
    padding: 15px;
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 20px; 
    margin-top: 20px;
}
.related-card { 
    border: 1px solid var(--border); 
    border-radius: 10px; 
    overflow: hidden; 
    transition: all 0.3s;
    background: white;
    padding: 15px;
}
.related-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.12); 
}
.related-img { 
    height: 180px; 
    object-fit: cover; 
    width: 100%;
}
.related-title { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--dark-text); 
    margin: 12px 0 8px; 
    padding: 0 10px;
}
.related-price { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--primary); 
    padding: 0 10px;
    margin-bottom: 10px;
}
.related-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
    margin-bottom: 15px;
}
.related-view-btn:hover {
    background: #0f3633;
}

.manis {
    margin-top: 80px;
}
.breadcrumb-item a{
    color: grey;
}
.breadcrumb-item a:hover{
    color: var(--primary);
}
/* Mobile adjustments */
@media (max-width: 991px) {
    .manis {
        margin-top: 20px;

    }
    .related-card{
        width: 180px;
    }
}

@media (max-width: 576px) {
    .breadcrumb{
        position: absolute;
        top: 120px;
    }
    .product-title { font-size: 1.3rem; }
    .variant-option {
        padding: 4px 6px;
        font-size: 0.85rem;
    }
    .variant-badge-circle {
        width: auto;
        height: 44px;
        font-size: 0.85rem;
    }
    .btn-add-cart, .btn-buy-now { 
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
        margin-left: 0;
    }
    .btn-buy-now { margin-top: 0; }
    .related-card{
        width: 180px !important;
    }
}

/* === Lightbox / Fullscreen Gallery === */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    width: 95vw;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .related-card{
        width: 180px;
    }
}


/* === Horizontal Scroll for Related Products === */
.related-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
    scroll-behavior: smooth;
}

.related-products-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari */
}

.related-card {
    flex: 0 0 auto; /* Prevent cards from shrinking */
    width: 250px;   /* Fixed width for consistent scrolling */
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.related-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 10px 0 6px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.related-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.related-view-btn:hover {
    background: #0f3633;
}