/* Ultra-Compact Product Detail Page - Minimal Padding */

.product-detail-page {
    background: white;
    padding: 0.25rem;
    margin: 0;
}

/* Ensure cart sidebar and layout appears the same as on other pages */
.app-layout {
    display: flex !important;
    flex-direction: row !important;
}

.content-area {
    flex: 1 !important;
    min-width: 0 !important;
}

.cart-sidebar-full {
    width: 300px !important;
    background: var(--color-neutral-50) !important;
    border-left: 1px solid var(--color-neutral-200) !important;
    display: none !important;
    flex-direction: column !important;
    font-size: 0.8rem !important;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1) !important;
    overflow-y: auto !important;
}

.cart-sidebar-full.has-items {
    display: flex !important;
    width: 300px !important;
    flex-shrink: 0 !important;
}

.product-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.25rem;
}

/* Images Section - Compact */
.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.image-thumbnails {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.thumbnail-item {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #007bff;
}

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

/* Product Details - Ultra Compact */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem;
}

.product-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
    margin: 0;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Form - Minimal */
.product-selection-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-variations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variation-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.variation-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Color Options - Compact */
.color-options {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    cursor: pointer;
    padding: 0.125rem;
}

.color-option input[type="radio"] {
    display: none;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: all 0.2s;
}

.color-option input[type="radio"]:checked + .color-circle {
    box-shadow: 0 0 0 2px #007bff;
    transform: scale(1.1);
}

.pride-gradient {
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff) !important;
}

.color-name {
    font-size: 0.7rem;
    color: #666;
    text-transform: capitalize;
}

/* Temperature/Type - Compact */
.temperature-options,
.type-options {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.temperature-option,
.type-option {
    cursor: pointer;
}

.temperature-option input[type="radio"],
.type-option input[type="radio"] {
    display: none;
}

.temperature-badge,
.type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
    text-transform: capitalize;
}

.temperature-option:hover .temperature-badge,
.type-option:hover .type-badge {
    background: #e9ecef;
    border-color: #adb5bd;
}

.temperature-option input[type="radio"]:checked + .temperature-badge,
.type-option input[type="radio"]:checked + .type-badge {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Purchase Section - Minimal */
.purchase-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid #eee;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.quantity-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #e9ecef;
    color: #007bff;
}

.quantity-input {
    width: 40px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    background: white;
}

.quantity-input:focus {
    outline: none;
}

.add-to-cart-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-cart-button:hover {
    background: #218838;
}

/* Mobile - Even More Compact */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.125rem;
    }
    
    .product-name {
        font-size: 1.25rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .color-circle {
        width: 20px;
        height: 20px;
    }
    
    .color-name {
        font-size: 0.6rem;
    }
}
