/* Product detail page styles */

/* Product Hero */
.product-page {
    padding-bottom: var(--space-12);
}

.product-hero {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    padding: var(--space-12) 0;
}

.product-hero-img {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.product-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-4);
}

.product-hero-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex: 1;
    min-width: 0;
}

.product-hero-stats {
    flex-shrink: 0;
    width: 220px;
    padding: var(--space-5) var(--space-6);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
    border-radius: var(--radius-lg);
    align-self: center;
}

.stats-card-title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-separator);
}

.stats-card-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.stats-card-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stats-card-item-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.stats-card-item-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.stats-card-item-detail {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.product-hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.product-hero-desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

.product-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.product-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: 980px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    background: var(--color-fill);
    color: var(--color-text-tertiary);
}

.product-hero-badge.in-stock {
    background: rgba(48, 209, 88, 0.12);
    color: var(--color-green);
}

.product-hero-badge.out-of-stock {
    background: rgba(255, 69, 58, 0.08);
    color: var(--color-red);
}

.product-hero-badge.reservation {
    background: rgba(100, 210, 255, 0.12);
    color: #64d2ff;
}

.product-hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.product-hero-badge.in-stock::before {
    background: var(--color-green);
    box-shadow: 0 0 6px var(--color-green);
}

.product-hero-badge.out-of-stock::before {
    background: var(--color-red);
}

.product-hero-badge.reservation::before {
    background: #64d2ff;
    box-shadow: 0 0 6px #64d2ff;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray);
    animation: pulse-glow 1.5s infinite;
}

.product-hero-regions {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.product-store-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: var(--space-2);
    transition: opacity 0.2s;
}

.product-store-link:hover {
    opacity: 0.7;
}

/* Region Filter */
.product-filter {
    margin-bottom: var(--space-8);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
    border-radius: var(--radius-lg);
}

.filter-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-tertiary);
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-separator);
    border-radius: 980px;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    background: var(--color-fill);
}

.filter-btn.active {
    border-color: var(--color-accent);
    background: rgba(10, 132, 255, 0.12);
    color: var(--color-accent);
}

/* Section headings */
.section-heading {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

.section-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-6);
}

/* Loading & empty states */
.product-loading {
    text-align: center;
    padding: var(--space-10) 0;
    color: var(--color-text-secondary);
}

.product-empty {
    text-align: center;
    padding: var(--space-10) 0;
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}

/* Status section */
.product-status-section {
    margin-bottom: var(--space-12);
}

.product-status-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-status-table th {
    padding: var(--space-3) var(--space-6);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-fill);
    border-bottom: 1px solid var(--color-separator);
}

.product-status-table td {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-separator);
    font-size: var(--font-size-base);
}

.product-status-table tbody tr:first-child td {
    border-top: none;
}

.product-status-table tbody tr:hover td {
    background: var(--color-fill);
}

.product-status-table .region-cell {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.product-status-table .region-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.product-status-table .region-name {
    font-weight: 500;
}

.product-status-table .price-cell {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.product-status-table .price-cell.has-price {
    color: var(--color-text-primary);
}

.product-status-table .price-cell.no-price {
    color: var(--color-text-tertiary);
}

.product-status-table .changed-cell {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* Status cards (mobile) */
.product-status-cards {
    display: none;
    flex-direction: column;
    gap: var(--space-2);
}

.product-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
}

.product-status-card .card-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.product-status-card .card-left .region-flag {
    font-size: 1.5rem;
}

.product-status-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-status-card .card-region-name {
    font-weight: 500;
    font-size: var(--font-size-base);
}

.product-status-card .card-price {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.product-status-card .card-right {
    flex-shrink: 0;
}

/* History section */
.product-history-section {
    margin-bottom: var(--space-12);
}

.product-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-history-table th {
    padding: var(--space-3) var(--space-6);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-fill);
    border-bottom: 1px solid var(--color-separator);
}

.product-history-table td {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-separator);
    font-size: var(--font-size-base);
}

.product-history-table tbody tr:first-child td {
    border-top: none;
}

.product-history-table tbody tr:hover td {
    background: var(--color-fill);
}

.history-change {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.history-arrow {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}

.history-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.history-date-relative {
    color: var(--color-text-tertiary);
    margin-left: var(--space-2);
}

/* History cards (mobile) */
.product-history-cards {
    display: none;
    flex-direction: column;
    gap: var(--space-2);
}

.product-history-card {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
}

.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.history-card-region {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
}

.history-card-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.history-card-change {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
}

.history-card-price {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

/* Product CTA */
.product-cta {
    padding: var(--space-8) 0;
}

.product-cta-card {
    text-align: center;
    padding: var(--space-10) var(--space-8);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.06), rgba(48, 209, 88, 0.04));
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: var(--radius-xl);
}

.product-cta-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.product-cta-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.product-cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: var(--color-accent);
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: 980px;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(10, 132, 255, 0.3);
}

.product-cta-button:visited {
    color: white;
}

.product-cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(10, 132, 255, 0.4);
}

.product-cta-button:active {
    transform: scale(0.97);
}

/* Responsive */
@media (max-width: 768px) {
    .product-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
        padding: var(--space-8) 0;
    }

    .product-hero-img {
        width: 180px;
        height: 180px;
        align-self: center;
    }

    .product-hero-title {
        font-size: var(--font-size-2xl);
    }

    .product-hero-desc {
        max-width: none;
    }

    .product-hero-stats {
        width: 100%;
        align-self: stretch;
    }

    .stats-card-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .filter-buttons {
        width: 100%;
    }

    .product-status-table {
        display: none;
    }

    .product-status-cards {
        display: flex;
    }

    .product-history-table {
        display: none;
    }

    .product-history-cards {
        display: flex;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .product-hero-stats {
        width: 200px;
    }
}


/* Coming Soon page variant */
.product-hero-badge.coming-soon {
    background: rgba(255, 159, 10, 0.12);
    color: var(--color-orange);
}

.product-hero-badge.coming-soon::before {
    background: var(--color-orange);
    box-shadow: 0 0 6px var(--color-orange);
}

/* Feature list for coming soon pages */
.product-features {
    margin: var(--space-8) 0 var(--space-12);
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.feature-card {
    padding: var(--space-6);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Coming soon notice */
.coming-soon-notice {
    padding: var(--space-6);
    background: rgba(255, 159, 10, 0.06);
    border: 1px solid rgba(255, 159, 10, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.coming-soon-notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.coming-soon-notice-content h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.coming-soon-notice-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}
