.btn-success {
    background-color: #20ac6b;
}
.btn-success:hover {
    background-color: #24c278;
}
/* Product Detail Page Specific Styles */
.product-gallery {
    position: relative;
    margin-bottom: 20px;
}
.product-main-image {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* important */
    display: box;
    margin-bottom: 15px;
    cursor: zoom-in;
    position: relative; /* ensure container is the reference */
    max-height: 400px; /* or a fixed height if needed */
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image fills container */
    transition: transform 0.3s ease;
    will-change: transform;
}

.product-thumbnails-container {
    position: relative;
    padding: 0 30px;
    margin-bottom: 20px;
}

.product-thumbnails {
    width: 100%;
    overflow: hidden!important;
}

.product-thumbnail {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
}

.product-thumbnail img {
    width: 120px;
    height: 100px;
    object-fit: cover;
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.product-thumbnail:hover {
    opacity: 1;
}

.thumbnail-nav-next {
    height: 30px;
    width: 30px;
    right: 5px;
}

.thumbnail-nav-prev {
    height: 30px;
    width: 30px;
    left: 5px;
}

.thumbnail-nav-next:after, .thumbnail-nav-prev:after {
    font-size: 14px;
}

.thumbnail-nav-next:hover, .thumbnail-nav-prev:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-left: 10px;
}

.product-discount {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.product-rating {
    margin-bottom: 15px;
}

.product-rating .bi-star-fill {
    color: #ffc107;
}

.product-rating .rating-count {
    color: #666;
    margin-left: 10px;
}

.product-availability {
    margin-bottom: 20px;
}

.product-availability .in-stock {
    color: #28a745;
}

.product-availability .low-stock {
    color: #ffc107;
}

.product-availability .out-of-stock {
    color: var(--primary-color);
}

.product-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-label {
    margin-right: 15px;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/*        .quantity-btn:hover {
    background-color: #e9ecef;
}*/

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 8px 0;
}
/* Remove spinner buttons for Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinner buttons for Firefox */
.quantity-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Color options styles */
.product-colors {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.color-label {
    font-weight: 600;
    margin-right: 15px;
    min-width: 60px;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e1e1e1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px var(--primary-color, #e63946);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-actions .btn {
    padding: 10px 20px;
    font-weight: 500;
}

.product-meta {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.product-meta div {
    margin-bottom: 5px;
}

.product-meta span {
    font-weight: 500;
    margin-right: 5px;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-share span {
    font-weight: 500;
}

.product-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #666;
    transition: all 0.3s ease;
}

.product-share a:hover {
    transform: translateY(-3px);
}

.product-share a:nth-child(2):hover {
    background-color: #3b5998;
    color: white;
}

.product-share a:nth-child(3):hover {
    background-color: #1da1f2;
    color: white;
}

.product-share a:nth-child(4):hover {
    background-color: #25D366;
    color: white;
}

.product-share a:nth-child(5):hover {
    background-color: #E60023;
    color: white;
}

.product-tabs {
    margin-top: 40px;
}

.product-tabs .nav-link {
    color: #333;
    font-weight: 500;
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.specifications-table th {
    width: 30%;
    background-color: #f8f9fa;
}

.review {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 500;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    margin-bottom: 10px;
}

.review-rating .bi-star-fill {
    color: #ffc107;
    font-size: 0.9rem;
}

.related-products {
    margin-top: 60px;
}

.related-products h3 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.related-products h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-pro {
    margin-top: 30px;
}

.related-pro h5 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 7px;
}

.related-pro h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.rel-pro {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rel-pro:hover {
    box-shadow: 0 3px 3px rgba(0,0,0,0.1);
}

/* Image Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    overflow: hidden;
    cursor: zoom-out;
}

.zoom-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.zoom-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.zoom-nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zoom-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
