/* ============================================
   PRODUCT DETAILS PAGE STYLES
   Extracted from: resources/views/user/product-details.blade.php
   ============================================ */

/* Star Rating Component */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
}

.star-rating :checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #FF8C00;
}

/* Disabled Button States */
.primary-btn:disabled, 
button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border: none !important;
    pointer-events: none;
}

/* Quantity Error Message */
.product__details__quantity {
    position: relative;
}

#qty-error-msg {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    margin-top: 5px;
    z-index: 99;
}

/* Hero Search Overflow Fix */
.hero__search__form, 
.hero__search {
    overflow: visible !important;
    z-index: 9999 !important;
}

/* Product Section Padding */
.product-section {
    padding-top: 30px;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    font-size: 14px;
    color: #555;
}

.breadcrumb-link {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-product-name {
    max-width: 300px;
}

/* Out of Stock Product Styling */
.product-out-of-stock {
    filter: grayscale(100%);
    opacity: 0.8;
    position: relative;
}

.stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.stock-badge {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Related Product Cart Button */
.related-product-actions {
    text-align: center;
    margin-top: 10px;
}

.quick-add-cart-btn {
    background-color: #007bff;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.quick-add-cart-btn:hover {
    background-color: #007bff;
    transform: scale(1.1);
}

/* Product Item Link */
.product-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-item-relative {
    position: relative;
}
