/* Product Detail Page Styles */

/* Main container adjustments */
.container-fluid {
    margin: 0 auto;
    padding-left: 3%;
    padding-right: 3%;
}

.container-flew{
    margin: 0 auto;
    padding-left: 1.6%;
    padding-right: 3%;
}

/* Product title at the top */
.product-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Left image container - make it sticky and properly sized */
.product-images-container {
    position: sticky;
    top: 20px;
    height: fit-content;
}

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

.main-product-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.product-details::-webkit-scrollbar {
    width: 6px;
}

.product-details::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.product-details::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.product-details::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Global scrollbar styling (optional - for all scrollbars on the page) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Firefox scrollbar styling */
.product-details {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f8fafc;
}

.selection-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    color: #374151;
    font-weight: 600;
    text-align: right;
}

.selection-summary h6 {
    transition: color 0.3s ease;
}

.selection-summary h6:hover {
    color: #24511D;
}

.thumbnail-container {
    max-height: 120px;
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: #24511D;
    transform: scale(1.02);
}

/* Float-end styling for section headers */
.selection-title .float-end {
    font-size: 0.8rem;
    font-weight: 400;
    color: #9ca3af;
    margin-left: auto;
}

/* Specific styling for quantity pricing header */
.quantity-pricing .selection-title .float-end {
    color: #6b7280;
    font-weight: 500;
}

/* Specific styling for delivery options header */
.delivery-options .selection-title .float-end {
    color: #6b7280;
    font-weight: 500;
}

/* Right product details container */
.product-details {
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 15px;
    padding-left: 10px;
}

/* Product meta information */
.product-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Section titles styling */
.selection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-title i {
    color: #24511D;
    font-size: 1.1rem;
}

/* Price range display */
.price-range {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price-label {
    font-weight: 500;
}

/* Color Selection Styles */
.color-selection {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 0px 15px 10px;
}

.product-title-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px 0;
    margin: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.color-selection .d-flex {
    align-items: center;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.color-option {
    position: relative;
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.color-option.selected {
    box-shadow: 0 0 0 2px #24511D;
}

.color-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.color-option:hover .color-circle {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.selected-color {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

/* Size Selection Styles - Grid layout like reference */
.size-selection {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.size-selection .row {
    margin: 0;
}

.size-selection .col-2 {
    padding: 0 4px;
}

.size-option {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    /* cursor: pointer; - REMOVED */
    /* transition: all 0.3s ease; - REMOVED */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* .size-option:hover {
    background: #24511D;
    border-color: #24511D;
    color: white;
}

Active (selected) effect
.size-option.active {
    background: #24511D;
    border-color: #24511D;
    color: white;
} */

.size-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.size-stock {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Customization Location Styles */
.customization-location {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.location-option {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-option:hover {
    border-color: #24511D;
    background-color: #eef2ff;
}

.location-option.selected {
    border-color: #24511D;
    background-color: #eef2ff;
    box-shadow: 0 0 0 1px #24511D;
}

.location-icon {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.location-option.selected .location-icon {
    color: #24511D;
}

.location-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

/* Printing Methods Styles */
.printing-methods {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.printing-method {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 10px;
}

.printing-method:hover {
    border-color: #24511D;
    background-color: #eef2ff;
}

.printing-method.selected {
    border-color: #24511D;
    background-color: #eef2ff;
    box-shadow: 0 0 0 1px #24511D;
}

.method-image {
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 8px;
}

.method-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.method-info h6 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.method-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.3;
}

.method-price {
    font-size: 0.8rem;
    font-weight: 500;
    color: #24511D;
}

/* Quantity Pricing Styles */
.quantity-pricing {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.pricing-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.pricing-header {
    background: #f3f4f6;
    padding: 10px 15px;
    margin: 0;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.pricing-row {
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.pricing-row:hover {
    background-color: #eef2ff;
}

.pricing-row.selected {
    background-color: #24511D;
    color: white;
    border-color: #0a3304;
}

.pricing-row:last-child {
    border-bottom: none;
}

.discount {
    color: #24511D;
    font-weight: 500;
}

.pricing-row.selected .discount {
    color: #c7d2fe;
}

/* Delivery Options Styles */
.delivery-options {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.delivery-option {
    position: relative;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-modifier-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-modifier-badge.rush {
    background-color: #f59e0b;
}

.delivery-icon img {
    width: 24px;
    height: 24px;
}

.delivery-option:hover {
    border-color: #24511D;
    background-color: #eef2ff;
}

.delivery-option.selected {
    border-color: #24511D;
    background-color: #eef2ff;
    box-shadow: 0 0 0 1px #24511D;
}

.delivery-icon {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.delivery-option.selected .delivery-icon {
    color: #24511D;
}

.delivery-info h6 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.delivery-info p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.price-modifier {
    font-size: 0.7rem;
    font-weight: 500;
    color: #24511D;
}

/* Product Actions Styles - Fixed at bottom */
.product-actions {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-top: auto;
    z-index: 10;
}

.product-actions .row {
    align-items: stretch;
}

.estimated-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.estimated-total h4 {
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.total-price {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.unit-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6b7280;
}

.unit-price {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.selection-summary {
    margin-bottom: 15px;
}

.selection-summary h6 {
    color: #24511D;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-text {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 15px;
}

.action-buttons {
    margin-bottom: 15px;
}

.action-buttons .row {
    margin: 0 -5px;
}

.action-buttons .col-6 {
    padding: 0 5px;
}

.action-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    width: 100%;
}

.btn-outline-primary {
    border: 1px solid #0a3304;
    color: #0a3304;
    background: white;
}

.btn-outline-primary:hover {
    background-color: #24511D;
    border: 1px solid #0a3304;
    color: white;
}

.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary.active,
.btn-outline-primary:active:focus {
    background-color: #0a3304 !important;
    border-color: #0a3304 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 51, 4, 0.25) !important;
}

.btn-primary {
    background-color: #24511D;
    border: 1px solid #24511D;
    color: white;
}

.btn-primary:hover {
    background-color: #0a3304;
    border-color: #0a3304;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary.active,
.btn-primary:active:focus {
    background-color: #0a3304 !important;
    border-color: #0a3304 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 51, 4, 0.25) !important;
}

/* Product Features Styles */
.product-features {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.feature i {
    font-size: 1.1rem;
    color: #24511D;
    flex-shrink: 0;
}

.feature small {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    text-align: left;
    line-height: 1.2;
}

/* Product Specifications Styles */
.product-specifications {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.product-specifications table {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.product-specifications td {
    padding: 10px 12px;
    border-color: #e5e7eb;
    vertical-align: middle;
}

.product-specifications .text-primary {
    color: #24511D !important;
    font-weight: 500;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: #0a3304;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6b7280;
}

@media (max-width: 992px) {
    .product-actions .col-md-4 {
        margin-bottom: 20px;
    }
    
    .estimated-total {
        text-align: center;
        padding-right: 0;
    }
    
    .selection-summary {
        padding: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-actions {
        padding: 15px;
    }
    
    .product-actions .row {
        margin: 0;
    }
    
    .product-actions .col-md-4 {
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    .total-price {
        font-size: 1.4rem;
    }
    
    .action-buttons .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .product-features .col-4 {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .product-actions {
        padding: 12px;
    }
    
    .product-actions .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }
    
    .action-buttons .row .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }
    
    .action-buttons .btn {
        width: 100% !important;
        margin-bottom: 8px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.4rem;
    }
    
    .main-product-image {
        max-height: 300px;
    }
    
    .thumbnail-image {
        height: 50px;
    }
    
    .color-circle {
        width: 24px;
        height: 24px;
    }
    
    .size-option,
    .location-option,
    .delivery-option {
        padding: 12px 6px;
        height: 70px;
    }
    
    .printing-method {
        margin-bottom: 10px;
    }
    
    .method-image {
        height: 50px;
    }
    
    .total-price {
        font-size: 1.4rem;
    }
    
    .action-buttons .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .product-specifications {
        overflow-x: auto;
    }
    
    .product-specifications table {
        min-width: 600px;
    }
    
    .product-details {
        height: auto;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .color-options {
        justify-content: flex-start;
    }
    
    .pricing-header,
    .pricing-row {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .delivery-option {
        margin-bottom: 8px;
        height: 80px;
    }
    
    .action-buttons .btn {
        margin-bottom: 8px;
    }
    
    .product-features .feature {
        margin-bottom: 10px;
    }
    
    .size-selection .col-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

.location-option.contact-option {
    border: 1px dashed #d1d5db;
    background: #f8f9fa;
}

.location-option.contact-option:hover {
    border-color: #6b7280;
    background-color: #f1f5f9;
}

.location-option.contact-option .location-name {
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.2;
}