/**
 * Product Detail Page - Clean & Simple
 */

/* Page Container */
#product-page {
    width: 100%;
    min-height: 100vh;
    background: var(--background-dark);
}

/* Sticky Header - iOS 18 Inside card */
.product-detail-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 18px;
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-detail-header .vendor-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.product-detail-header .header-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Type Badges */
.product-detail-header .product-type-badge {
    position: static;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.product-type-badge.type-hash {
    background: rgba(139, 69, 19, 0.2);
    color: #D2691E;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.product-type-badge.type-fleurs {
    background: rgba(34, 139, 34, 0.2);
    color: #90EE90;
    border: 1px solid rgba(34, 139, 34, 0.3);
}

.product-type-badge.type-extracts {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.product-type-badge.type-autres {
    background: rgba(128, 128, 128, 0.2);
    color: #C0C0C0;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.product-detail-header .category-badge {
    position: static;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Product Detail Card - iOS 18 Liquid Glass - Mobile Only */
#product-page .product-detail-card {
    margin: 6px;
    margin-top: 8px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    display: block;
}

/* Media Container - Full width, large */
#product-page .product-detail-card .product-media {
    position: relative;
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#product-page .product-detail-card .product-media img,
#product-page .product-detail-card .product-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Media Thumbnails */
.media-thumbnails {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.media-thumbnails::-webkit-scrollbar {
    display: none;
}

.media-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-first: Active state for tactile feedback */
.media-thumb:active {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
}

.media-thumb.active {
    border-color: var(--primary-color);
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
#product-page .product-info {
    display: block;
    padding: 14px 16px;
}

.product-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0 0 14px 0;
    line-height: 1.2;
}

/* Farm Info */
.product-farm {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.product-farm svg {
    color: rgba(255, 255, 255, 0.5);
}

/* Price Pills */
.product-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.price-pill {
    padding: 10px 16px;
    background: linear-gradient(
        135deg,
        var(--glass-strong) 0%,
        var(--glass-medium) 100%
    );
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-small);
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.price-pill:active {
    transform: scale(0.97);
    background: linear-gradient(
        135deg,
        var(--glass-medium) 0%,
        var(--glass-light) 100%
    );
}

/* Description */
.product-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: pre-wrap;
}

/* NO RESPONSIVE - MOBILE ONLY APP */
