/* Product Show CSS */
.product-show-container {
    min-height: 100vh;
}
.product-show-container.product-card{
    margin-bottom:70px;
}
/* Overlay: No variant available */
.no-variant-overlay {
    position: fixed;
    inset: 0;
    /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.no-variant-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Message box */
.no-variant-message {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    max-width: 90%;
    width: 400px;
    animation: fadeZoomIn 0.4s ease-out;
}

/* Icon */
.no-variant-message i {
    font-size: 3.5rem;
    color: #af9130;
    margin-bottom: 1rem;
}

/* Title */
.no-variant-message h3 {
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
}

/* Description */
.no-variant-message p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

/* Animation */
@keyframes fadeZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Optional: Dark mode support */
@media (prefers-color-scheme: dark) {
    .no-variant-message {
        background: #2d3748;
        color: #edf2f7;
    }

    .no-variant-message h3 {
        color: #f7fafc;
    }

    .no-variant-message p {
        color: #cbd5e0;
    }
}

.breadcrumb-nav {
    background: #af9130;
    display: flex;
    justify-content: center;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    font-size: 23px;
    font-weight: bold;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-wrapper {
    text-transform: uppercase;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {

    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: white;
    font-weight: bold;
}

.product-detail-card {
    background: rgba(2, 2, 2, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Gallery Section */
.gallery-section {
    position: sticky;
    top: 2rem;
}

.main-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

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

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

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff4757;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    opacity: 1;
    border-color: #af9130;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.info-section {
    padding: 1rem 0;
}

.product-header-mobile {
    display: none;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: #e2e8f0;
    font-size: 1rem;
}

.stars i.active {
    color: #fbbf24;
}

.review-count {
    color: #718096;
    font-size: 0.9rem;
}

/* Pricing */
.pricing-section {
    margin-bottom: 1.5rem;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #af9130;
}

.original-price {
    font-size: 1.4rem;
    color: #a0aec0;
    text-decoration: line-through;
}

/* Description */
.description-section {
    margin-bottom: 2rem;
}

.product-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Variant Selection */
.variant-selection-section {
    margin-bottom: 2rem;
}

.variant-criterion {
    margin-bottom: 1.5rem;
}

.criterion-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.criterion-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.criterion-option {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.criterion-option:hover,
.criterion-option.active {
    border-color: #af9130;
    background: #af9130;
    color: white;
}

/* Selected Variant Info */
.selected-variant-info {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #af9130;
}

.variant-details h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.variant-description {
    color: #718096;
    line-height: 1.5;
}

.variant-not-selected {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

/* Action Section */
.action-section {
    margin-bottom: 2rem;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.stock-info.in-stock {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.stock-info.out-of-stock {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f7fafc;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #edf2f7;
}

.quantity-input {
    width: 60px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
}

.quantity-input:focus {
    outline: none;
}

.btn-add-to-cart {
    flex: 1;
    background: #af9130;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-wishlist {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

.btn-wishlist:hover {
    border-color: #af9130;
    color: #af9130;
}

.btn-out-of-stock {
    background: #a0aec0;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Shipping Info */
.shipping-info {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.5rem;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
}

.shipping-item:last-child {
    margin-bottom: 0;
}

.shipping-item i {
    color: #af9130;
    width: 20px;
}

/* Tabs Section */
.product-tabs-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 70px;
}

.tabs-header {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.tab-btn:hover:not(.active) {
    color: #4a5568;
    background: #edf2f7;
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Specifications */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.spec-label {
    font-weight: 600;
    color: #4a5568;
}

.spec-value {
    color: #2d3748;
}

/* Reviews */
.reviews-list {
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: #2d3748;
}

.review-content p {
    color: #4a5568;
    line-height: 1.5;
}

.review-date {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.no-reviews {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 2rem;
}

/* Shipping Details */
.shipping-details {
    display: grid;
    gap: 1.5rem;
}

.shipping-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.shipping-detail-item i {
    color: #af9130;
    font-size: 1.5rem;
}

/* Related Products */
.related-products-section {
    margin-top: 3rem;
    
}

.section-title {
    text-align: center;
    color: white;
    margin-top: 4rem;
    padding: 40px;
    text-transform: uppercase;
    background: #af9130;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-product-card {
    padding: 0px !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff4757;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #38a169;
}

.notification.error {
    background: #e53e3e;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-section {
        position: static;
    }

    .product-header-mobile {
        display: block;
        margin-bottom: 1.5rem;
    }

    .product-header {
        display: none;
    }

    .product-title {
        font-size: 2rem;
    }

    .main-image {
        height: 300px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .quantity-selector {
        align-self: stretch;
        justify-content: center;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
    }

    .breadcrumb-nav .container {
        padding: 0 1rem;
    }
}
@media (max-width: 576px) {
    .thumbnail-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem;
        overflow: visible; /* disables horizontal scroll */
    }

    .thumbnail-item {
        width: 100%; /* auto-fit in grid column */
        height: auto;
        aspect-ratio: 1 / 1; /* makes square thumbnails */
    }
}

@media (max-width: 480px) {
    .product-detail-card {
        padding: 1rem;
        margin: 0 -1rem;
        border-radius: 0;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .original-price {
        font-size: 1.2rem;
    }

    .tabs-content {
        padding: 1rem;
    }
}