/* Amazon Product Page Specific Styles */

:root {
    --amazon-orange: #ff9900;
    --amazon-dark-blue: #232f3e;
    --amazon-light-blue: #37475a;
    --amazon-link-blue: #007185;
    --amazon-price-red: #B12704;
    --amazon-bg-light: #f0f2f2;
    --amazon-border: #ddd;
}

/* Amazon Header Styles */
.amazon-header {
    background: var(--amazon-dark-blue);
    color: white;
    padding: 0.5rem 0;
    font-family: "Amazon Ember", Arial, sans-serif;
}

.amazon-nav {
    background: var(--amazon-light-blue);
    padding: 0.3rem 0;
}

.amazon-logo {
    font-family: "Amazon Ember", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Breadcrumb Styling */
.breadcrumb-amazon {
    background: none;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.breadcrumb-amazon a {
    color: var(--amazon-link-blue);
    text-decoration: none;
}

.breadcrumb-amazon a:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* Product Image Styles */
.product-image-main {
    border: 1px solid var(--amazon-border);
    padding: 1rem;
    border-radius: 8px;
    background: white;
    text-align: center;
}

.product-thumbnail {
    border: 1px solid var(--amazon-border);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--amazon-orange);
    box-shadow: 0 0 3px rgba(255, 153, 0, 0.5);
}

/* Price Styling */
.price-main {
    color: var(--amazon-price-red);
    font-weight: 700;
    font-family: "Amazon Ember", Arial, sans-serif;
}

.price-currency {
    font-size: 0.8em;
    vertical-align: top;
}

.price-whole {
    font-size: 1.8em;
}

.price-fraction {
    font-size: 1.2em;
    vertical-align: top;
}

.price-strike {
    color: #565959;
    text-decoration: line-through;
}

.price-savings {
    color: #cc0c39;
    font-weight: 500;
}

/* Button Styles */
.amazon-button {
    background: var(--amazon-orange);
    border: 1px solid #e77600;
    color: #000;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
}

.amazon-button:hover {
    background: #e77600;
    color: #000;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.7);
}

.amazon-button:focus {
    outline: 3px solid #007eb9;
    outline-offset: 2px;
}

.buy-now-button {
    background: #ffa41c;
    border: 1px solid #ff8f00;
    color: #000;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
}

.buy-now-button:hover {
    background: #ff8f00;
    color: #000;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.7);
}

/* Rating Stars */
.rating-stars {
    color: var(--amazon-orange);
    font-size: 0.9rem;
}

.rating-stars i {
    margin-right: 1px;
}

/* Delivery Information Box */
.delivery-info {
    background: var(--amazon-bg-light);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #d5d9d9;
}

.delivery-highlight {
    color: #0f1111;
    font-weight: 600;
}

/* Highlight Badges */
.highlight-badge {
    background: #d5dbdb;
    color: #0f1111;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.choice-badge {
    background: #ff9900;
    color: #000;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-badge {
    background: #067d62;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Product Links */
.amazon-link {
    color: var(--amazon-link-blue);
    text-decoration: none;
}

.amazon-link:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* Section Dividers */
.section-divider {
    border-color: var(--amazon-border);
    margin: 1.5rem 0;
    border-width: 1px;
}

/* Product Details Table */
.product-specs-table {
    font-size: 0.9rem;
}

.product-specs-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e7e7e7;
}

.spec-label {
    color: #565959;
    font-weight: 600;
    width: 30%;
}

/* Review Styles */
.review-rating {
    color: var(--amazon-orange);
}

.review-text {
    color: #0f1111;
    line-height: 1.4;
}

.review-helpful {
    color: #565959;
    font-size: 0.85rem;
}

.review-helpful:hover {
    color: var(--amazon-link-blue);
}

/* Progress bars for review distribution */
.review-progress {
    height: 16px;
    background-color: #e7e7e7;
    border-radius: 8px;
}

.review-progress .progress-bar {
    background-color: var(--amazon-orange);
    border-radius: 8px;
}

/* Related Items Cards */
.related-item-card {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.related-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--amazon-border);
}

.related-item-price {
    color: var(--amazon-price-red);
    font-weight: 600;
}

/* Quantity Selector */
.qty-selector {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 0.375rem;
    background: #f7fafa;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
}

.qty-selector:focus {
    border-color: #007eb9;
    box-shadow: 0 0 0 3px rgba(0, 126, 185, 0.15);
    outline: none;
}

/* Desktop Layout Fixes */
.main-content {
    background: white;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .main-content {
        max-width: none;
        margin: 0;
        box-shadow: none;
    }
    
    .product-image-main {
        padding: 2rem;
    }
    
    .product-image-main img {
        max-height: 500px;
    }
}

/* Buying Options Sidebar */
.buying-options-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0 !important;
    position: sticky;
    top: 20px;
}

/* Responsive Container Improvements */
@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .product-image-main img {
        max-height: 600px;
    }
}

/* Medium screen adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .product-image-main {
        padding: 1.5rem;
    }
    
    .product-image-main img {
        max-height: 350px;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .amazon-header {
        padding: 0.75rem 0;
    }
    
    .price-whole {
        font-size: 1.5em;
    }
    
    .product-image-main {
        padding: 0.5rem;
    }
    
    .delivery-info {
        padding: 0.75rem;
    }
    
    .amazon-button,
    .buy-now-button {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Accessibility Improvements */
.amazon-button:focus-visible,
.buy-now-button:focus-visible {
    outline: 3px solid #007eb9;
    outline-offset: 2px;
}

.product-thumbnail:focus-visible {
    outline: 3px solid #007eb9;
    outline-offset: 2px;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar for Mobile Thumbnails */
.thumbnail-scroll::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Smooth transitions */
* {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Typography improvements */
.amazon-product-title,
.product-title {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    color: #0f1111;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .product-title {
        font-size: 1.75rem;
    }
}

.brand-link {
    color: var(--amazon-link-blue);
    font-weight: 600;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: underline;
    color: #c7511f;
}

/* Feature highlights */
.feature-check {
    color: #067d62;
    margin-right: 0.5rem;
}

.feature-list {
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
} 