/* Product Screen — Component Styles
   Shared: .section-label, .upsell-section, .upsell-container, 
           .upsell-card, .page-footer, textarea, .back-btn from global.css
   ========================================================================== */

/* --- Hero Image --- */
.product-hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: pageScaleIn 0.6s var(--ease-out-expo);
}

/* Back button positioned over hero image */
.product-hero .back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    /* Always dark bg over image for readability */
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-on-image);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-disclaimer {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: var(--border-radius-pill);
    font-size: 10px;
    color: rgba(255,255,255,0.75);
}

/* --- Content Area --- */
.product-content {
    background: var(--bg-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    margin-top: -30px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 30px 20px 130px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: pageEnter 0.5s var(--ease-out-expo) 0.1s both;
}

.product-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- Details Table --- */
.details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.details-row span:first-child {
    font-weight: 600;
    color: var(--text-secondary);
}

.details-row .val {
    color: var(--text-muted);
}

.details-row .price-val {
    color: var(--primary-orange);
    font-weight: 800;
    font-size: 16px;
}

/* --- Modifiers (Radio) --- */
.modifier-group {
    margin-top: 30px;
}

.radio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color var(--duration-normal) ease,
                background var(--duration-normal) ease,
                transform var(--duration-fast) var(--ease-out-expo);
}

.radio-item:active {
    transform: scale(0.98);
}

.radio-item.active {
    border-color: var(--primary-orange);
    background: rgba(239, 105, 30, 0.06);
}

.radio-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    position: relative;
    transition: border-color var(--duration-normal) ease;
    flex-shrink: 0;
}

.radio-item.active .radio-circle {
    border-color: var(--primary-orange);
}

.radio-item.active .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 10px;
    height: 10px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: scaleUp 0.2s var(--ease-out-back);
}

/* --- Note Area --- */
.note-area {
    margin-top: 30px;
}

/* --- Sticky Footer --- */
.product-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    padding-bottom: calc(20px + var(--safe-bottom));
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 100;
    animation: slideUp 0.5s var(--ease-out-expo) 0.3s both;
}

/* Qty Selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 0 15px;
    border-radius: var(--border-radius-pill);
    height: 56px;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--duration-fast) ease;
}

.qty-btn:active {
    background: var(--border-color);
}

.qty-val {
    font-weight: 800;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
    color: var(--text-main);
}

/* Add to order button — uses .btn-primary pattern but with price on right */
.add-to-order-btn {
    flex: 1;
    height: 56px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: transform var(--duration-fast) var(--ease-out-expo),
                background var(--duration-fast) ease;
}

.add-to-order-btn:hover {
    background: var(--primary-orange-hover);
}

.add-to-order-btn:active {
    transform: scale(0.97);
}

.add-to-order-btn .btn-label {
    font-size: 15px;
    font-weight: 800;
}

.add-to-order-btn .btn-price {
    font-size: 15px;
    font-weight: 800;
    opacity: 0.9;
}
