/* Modal Product Detail Button Styles */
.product-detail .btn {
    padding: 8px 25px;
    background: linear-gradient(135deg, #4b5563, #374151);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    width: 32%;
}

.product-detail .btn:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-detail .btn--primary,
.product-detail .btn--secondary {
    background: linear-gradient(135deg, #4b5563, #374151);
}

.product-detail .btn--primary:hover,
.product-detail .btn--secondary:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
}

/* Product description text styling */
.product-detail p {
    color: #1f2937;
    font-weight: 500;
    line-height: 1.6;
}

/* Modal text elements styling */
.product-detail .product-category {
    color: #374151;
    font-weight: 600;
}

.product-detail .product-rating span {
    color: #374151;
    font-weight: 500;
}

.product-detail .price-old {
    color: #374151 !important;
    font-weight: 500;
}

/* Reviews button styling - same as other modal buttons */
.product-detail .btn--tertiary {
    background: linear-gradient(135deg, #4b5563, #374151);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 25px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    width: 32%;
}

.product-detail .btn--tertiary:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Reviews Modal Styling */
.reviews-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    max-height: 70vh;
    max-width: 600px;
    margin: 0 auto;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

#reviewsModal .reviews-container:hover {
    transform: translateY(-5px);
}

/* Prevent modal background from moving */
#reviewsModal .modal-content {
    transform: none !important;
}

#reviewsModal:hover {
    transform: none !important;
}

/* Reviews modal close button styling */
#reviewsModal .close {
    color: #000000 !important;
    font-weight: bold;
    font-size: 28px;
}

/* Hide scrollbar */
.reviews-container::-webkit-scrollbar {
    display: none;
}

.reviews-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Reviews modal stars styling */
.reviews-container .fa-star {
    color: #f59e0b !important;
}

.reviews-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.reviews-header h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reviews-header h2 i {
    color: #667eea;
}

.rating-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
}

.total-reviews {
    color: #6b7280;
    font-size: 1rem;
}

.reviews-list {
    display: grid;
    gap: 20px;
}

.review-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    display: none;
}

.reviewer-details h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.reviewer-location {
    color: #6b7280;
    font-size: 0.9rem;
}

.review-meta {
    text-align: right;
}

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

.review-date {
    color: #9ca3af;
    font-size: 0.85rem;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    font-size: 1rem;
}

/* Product detail layout styling */
.product-detail {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-detail__image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.product-detail__image img {
    max-width: 350px;
    max-height: 350px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.product-detail__info {
    flex: 1;
    padding: 20px 60px 20px 40px;
}

/* Checkout Modal Styling */
.checkout-modal {
    max-width: 600px;
    width: 90%;
    margin: 5% auto;
}

.checkout-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

.checkout-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.checkout-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-header h2 i {
    color: #667eea;
}

.checkout-header p {
    color: #6b7280;
    margin: 0;
}

.order-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.order-summary h3 {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.item-name {
    color: #374151;
    font-weight: 500;
    flex: 1;
}

.item-quantity {
    color: #6b7280;
    margin: 0 15px;
    font-size: 0.9rem;
}

.item-price {
    color: #1f2937;
    font-weight: 600;
}

.order-total {
    text-align: right;
    padding-top: 10px;
    border-top: 2px solid #667eea;
    font-size: 1.2rem;
    color: #1f2937;
}

.checkout-form {
    margin-bottom: 25px;
}

.checkout-form h3 {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-checkout {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-confirm {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Hide scrollbar for checkout modal */
.checkout-container::-webkit-scrollbar {
    display: none;
}

.checkout-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Checkout modal close button styling */
#checkoutModal .close {
    color: #000000 !important;
    font-weight: bold;
    font-size: 28px;
}