* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: #0f1111;
    background-color: #ffffff;
    padding-top: 60px;
}

/* Amazon Header Bar */
.topbar {
    background: #131921;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}

.topbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo i {
    color: #febd69;
    margin-right: 0.3rem;
}

.back-link {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: #febd69;
}

/* Breadcrumbs */
.breadcrumb-container {
    max-width: 1400px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    color: #565959;
}

.breadcrumb-container a {
    color: #565959;
    text-decoration: none;
}

.breadcrumb-container a:hover {
    text-decoration: underline;
    color: #c45500;
}

/* Main Layout Grid */
.product-detail-container {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 40% 38% 22%;
    gap: 2rem;
}

/* Column 1: Gallery */
.gallery-column {
    display: flex;
    gap: 1rem;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thumbnail-list img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border: 1px solid #a2a6ac;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

.thumbnail-list img.active,
.thumbnail-list img:hover {
    border-color: #e77600;
    box-shadow: 0 0 3px rgba(231, 118, 0, 0.5);
}

.main-image-container {
    flex-grow: 1;
    text-align: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

/* Column 2: Details */
.details-column {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    color: #0f1111;
    margin-bottom: 0.5rem;
}

.product-ratings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e7e7e7;
}

.stars {
    color: #ffa41c;
}

.rating-link {
    color: #007185;
    text-decoration: none;
}

.rating-link:hover {
    color: #c45500;
    text-decoration: underline;
}

.price-section {
    margin-bottom: 1rem;
}

.price-large {
    font-size: 1.75rem;
    color: #0f1111;
    font-weight: 500;
}

.price-large span {
    font-size: 0.85rem;
    vertical-align: super;
}

.rental-period {
    font-size: 0.85rem;
    color: #565959;
}

.prime-tag {
    color: #00a8e1;
    font-weight: 800;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.specs-table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.specs-table td {
    padding: 0.4rem 0;
}

.specs-table td:first-child {
    font-weight: 700;
    color: #0f1111;
    width: 35%;
}

.specs-table td:last-child {
    color: #565959;
}

.bullet-points {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e7e7e7;
}

.bullet-points h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bullet-points ul {
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: #0f1111;
}

.bullet-points li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

/* Column 3: Buy Box */
.buybox-column {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    height: fit-content;
}

.buybox-price {
    font-size: 1.5rem;
    color: #b12704;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.delivery-info {
    font-size: 0.85rem;
    color: #0f1111;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.delivery-info strong {
    color: #0f1111;
}

.stock-status {
    color: #007600;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #888c8c;
    border-radius: 4px;
    font-size: 0.85rem;
    background: #f0f2f2;
}

.btn-amazon-primary {
    display: block;
    width: 100%;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f1111;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.btn-amazon-primary:hover {
    background: #f7ca00;
}

.btn-amazon-secondary {
    display: block;
    width: 100%;
    background: #ffa41c;
    border: 1px solid #ff8f00;
    border-radius: 20px;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f1111;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-amazon-secondary:hover {
    background: #fa8900;
}

.secure-transaction {
    font-size: 0.8rem;
    color: #007185;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-recommendations {
    max-width: 1400px;
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}

.recommendations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.recommendations-header h2 {
    font-size: 1.5rem;
    color: #111827;
    margin: 0;
}

.recommendations-header a {
    color: #007185;
    text-decoration: none;
    font-weight: 600;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.recommendation-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 17, 17, 0.04);
}

.recommendation-image {
    display: block;
    background: #f3f4f6;
    height: 200px;
}

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

.recommendation-body {
    padding: 1rem;
}

.recommendation-body h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #111827;
}

.recommendation-price {
    font-size: 1.2rem;
    color: #b12704;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.recommendation-meta {
    color: #6b7280;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.recommendation-button {
    margin-bottom: 0;
}

.empty-recommendations {
    grid-column: 1 / -1;
    color: #6b7280;
    padding: 1rem 0;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-column {
        flex-direction: column-reverse;
    }
    
    .thumbnail-list {
        flex-direction: row;
    }

    .recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
}