/* Layout */
.product-main {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    display: grid;
    gap: var(--spacing-xl);
    /* Header height offset if needed, handled by body padding usually or margin */
    margin-top: var(--header-height);
}

@media (min-width: 900px) {
    .product-main {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }
}

/* Breadcrumbs */
.breadcrumbs-container {
    background-color: var(--color-bg);
    padding: var(--spacing-md) 0;
    margin-top: var(--header-height);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.breadcrumbs li::after {
    content: '/';
    margin-left: var(--spacing-xs);
    color: #ccc;
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.main-image {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    width: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* or cover depending on asset aspect ratio */
}

.thumbnail-list {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: white;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

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

/* Product Info */
.product-category {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.product-details-info h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.price-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.price-rating .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-rating .rating {
    color: #f4a261;
}

.price-rating .review-count {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    margin-left: 5px;
}

.description {
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Form Options */
.product-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.radio-option {
    cursor: pointer;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-option span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    transition: all 0.2s;
}

.radio-option input:checked+span {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    height: 48px;
}

.qty-selector button {
    background: none;
    border: none;
    width: 40px;
    height: 100%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-primary);
}

.qty-selector input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
    /* Make read-only visually consistent */
}

.add-to-cart-btn {
    flex-grow: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.features-list i {
    color: var(--color-secondary);
    margin-right: 8px;
}

/* Tabs */
.product-tabs {
    margin-bottom: var(--spacing-xl);
}

.tabs-header {
    display: flex;
    gap: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--spacing-md);
}

.tab-btn {
    background: none;
    border: none;
    padding: var(--spacing-sm) 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--color-primary);
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.tab-content {
    padding: var(--spacing-sm) 0;
    line-height: 1.8;
}

/* Related Products (Mini Cards) */
.related-products {
    margin-bottom: var(--spacing-xl);
}

.related-products h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Reusing grid styles from main CSS or duplicate minimized version */
.product-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.product-card {
    /* Minimal styles for reused card just in case products.css isn't loaded */
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    /* Smaller for related */
    overflow: hidden;
}

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

.product-info-mini {
    padding: var(--spacing-md);
}

.product-info-mini h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}