.product-detail-page .container {
    max-width: 1400px;
    /* User set to 1400px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Cards */
.product-gallery-card,
.product-info-card,
.product-tabs-card {
    background: #ffffff;
    border-radius: 0;
    /* Square borders for modern look */
    box-shadow: none;
    /* Removed heavy shadow */
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.product-gallery-card:hover,
.product-info-card:hover {
    transform: none;
    /* Remove lift */
    border-color: #000;
}

#productTab li.nav-item::after {
    content: none;
}

/* Gallery */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 15px;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.main-image-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: none;
    cursor: default;
}

.thumb-images .owl-item .item {
    border: 2px solid #eee;
    /* Increased width to prevent jump on active */
    border-radius: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    opacity: 0.6;
    margin: 0 5px;
}

.thumb-images .item.current {
    /* Fixed selector: was .owl-item.current */
    border-color: #000;
    opacity: 1;
    transform: none;
}

.thumb-images img {
    width: 100%;
    border-radius: 0;
}

/* Info */
.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.product-content .product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price .currency {
    font-size: 1.4rem;
    font-weight: 500;
    color: #000;
}

.product-price .old-price {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

/* Meta List */
.product-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.meta-item .label {
    min-width: 100px;
    font-weight: 600;
    color: #666;
}

.meta-item .value {
    color: #000;
    font-weight: 500;
}

/* Actions */
.product-actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.btn-add-cart-detail {
    background: #000;
    color: #fff;
    padding: 16px 25px;
    border-radius: 0;
    /* Square */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 1px solid #000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add-cart-detail:hover {
    background: #fff;
    color: #000;
    transform: none;
    box-shadow: none;
}

.btn-add-cart-detail:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-whatsapp-detail {
    background: #fff;
    color: #25D366;
    padding: 16px 25px;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 1px solid #25D366;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-whatsapp-detail:hover {
    background: #25D366;
    color: #fff;
    transform: none;
    box-shadow: none;
}

.btn-favorite-detail {
    background: #fff;
    color: #000;
    width: 56px;
    height: 56px;
    border-radius: 0;
    font-size: 1.5rem;
    transition: all 0.3s;
    border: 1px solid #e5e5e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.btn-favorite-detail:hover {
    border-color: #000;
    color: #dc3545;
}

.btn-favorite-detail i.bx-bxs-heart {
    color: #dc3545;
}

/* Quantity */
.qty-container {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    height: 56px;
    /* Match button height approx */
}

.qty-btn {
    width: 45px;
    height: 100%;
    border: none;
    background: #f8f8f8;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #000;
}

.qty-btn:hover {
    background: #eee;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #000;
    height: 100%;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.feature-item {
    background: transparent;
    padding: 10px 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
    border: none;
    border-bottom: 1px solid #eee;
}

.feature-item i {
    color: #000;
    font-size: 1.2rem;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid #e5e5e5;
}

.nav-tabs .nav-link {
    color: #666;
    font-weight: 600;
    padding: 15px 25px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-tabs .nav-link:hover {
    color: #000;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #000;
    background: transparent;
    border-bottom: 2px solid #000;
}

.tab-content {
    padding: 30px 0;
    color: #333;
    line-height: 1.8;
}

.spec-table th {
    background: #f8f9fa;
    color: #000;
}

/* Related */
.related-products-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-products-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #000;
    border-radius: 0;
}

/* Comments */
.comment-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.comment-author {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
}

.rating-display i {
    font-size: 1rem;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s;
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #ffc107;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .product-detail-page {
        padding: 20px 0;
    }

    .product-gallery-card,
    .product-info-card {
        padding: 20px;
        margin-bottom: 20px;
    }

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

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

    .product-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .product-detail-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Stack gallery and info */
    .product-gallery-card {
        margin-bottom: 20px;
    }

    .main-image-container {
        min-height: 250px;
        margin-bottom: 15px;
    }

    .main-image-container img {
        max-height: 300px;
    }

    /* Thumbnails */
    .thumb-images {
        margin-bottom: 10px;
    }

    /* Info */
    .product-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .product-actions-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .qty-container {
        justify-content: center;
        width: 100%;
        margin-bottom: 5px;
    }

    .qty-btn {
        width: 50px;
        /* Larger touch target */
        height: 50px;
    }

    .qty-input {
        width: 60px;
        font-size: 1.2rem;
    }

    .btn-add-cart-detail,
    .btn-whatsapp-detail {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }

    /* Tabs */
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Modern Styling Enhancements */
.current-price-modern {
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -1px;
}

.old-price-modern {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge-modern {
    background: #000;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-meta-modern {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-row .label {
    color: #666;
    font-weight: 500;
}

.meta-row .value {
    color: #000;
    font-weight: 700;
    text-align: right;
}

.category-link {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    transition: all 0.2s;
}

.category-link:hover {
    opacity: 0.7;
}

/* Modern Controls */
.qty-container-modern {
    display: flex;
    border: 2px solid #000;
    height: 54px;
    background: #fff;
}

.qty-btn-modern {
    width: 45px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn-modern:hover {
    background: #f8f8f8;
}

.qty-input-modern {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-add-cart-modern {
    height: 54px;
    background: #000 !important;
    color: #fff !important;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-add-cart-modern:hover {
    background: #333 !important;
}

.btn-add-cart-modern:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.btn-whatsapp-modern {
    height: 54px;
    border: 2px solid #25D366;
    color: #25D366 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-whatsapp-modern:hover {
    background: #25D366 !important;
    color: #fff !important;
}

@media (max-width: 576px) {
    .product-actions-wrapper .d-flex {
        flex-direction: column !important;
    }
    .qty-container-modern, .btn-add-cart-modern, .btn-whatsapp-modern {
        width: 100% !important;
        justify-content: center !important;
    }
}