/* Phase 2: styles moved out of <head> for faster hero LCP */
html, body {
    letter-spacing: 0.02em;
    word-spacing: 0.08em;
}
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --accent-color: #0d9488;
    --accent-hover: #0f766e;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
}
.product-lcp-main .back-button {
    order: -1;
    margin-bottom: 1.5rem;
}
.back-button {
    margin-bottom: 1.5rem;
}
.back-button a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}
.back-button a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateX(-3px);
}
.product-title h1 {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    margin: 0 0 0.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.product-lead {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.5;
}
.product-lcp-main .product-section {
    margin: 2rem 0;
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--shadow-light);
    border: 1px solid var(--border-color);
}
@media (max-width: 768px) {
    .product-lcp-main .product-section {
        margin: 1rem 0;
        padding: 1rem;
    }
}
.featured-image {
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
}
.featured-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}
.featured-image img {
    transition: transform 0.3s ease;
}

/* Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 1rem;
}
.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}
.thumbnail:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}
.thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 6px;
    }
}
@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Watch Demo Button */
.action-buttons {
    margin-top: 1.5rem;
}
.watch-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #0f766e);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}
.watch-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    text-decoration: none;
    color: white;
}
.play-icon {
    font-size: 1.2rem;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    max-width: 100%;
}
.product-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    min-width: 0;
    max-width: 100%;
}
.product-model {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.5rem 0;
}
.product-stock-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.stock-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.stock-badge.in-stock {
    background: #10b981;
    color: white;
}
.stock-badge.info {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
}
.content-section h2,
.content-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}
.content-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.content-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.content-section li:last-child {
    border-bottom: none;
}
.content-section li::before {
    content: "\2022";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 0.2rem;
}

/* Additional Offerings */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.offering-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.offering-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-light);
}
.offering-item span,
.offering-item a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.offering-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 10001;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: white;
    transform: scale(1.1);
}
.lightbox-close {
    top: -60px;
    right: -10px;
}
.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 500;
}
[data-theme="dark"] .lightbox-close,
[data-theme="dark"] .lightbox-prev,
[data-theme="dark"] .lightbox-next {
    background: rgba(60, 60, 60, 0.9);
    color: #fff;
}
[data-theme="dark"] .lightbox-close:hover,
[data-theme="dark"] .lightbox-prev:hover,
[data-theme="dark"] .lightbox-next:hover {
    background: rgba(80, 80, 80, 0.95);
}
[data-theme="dark"] .lightbox-counter {
    background: rgba(60, 60, 60, 0.9);
    color: #fff;
}
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-prev {
        left: -50px;
    }
    .lightbox-next {
        right: -50px;
    }
    .lightbox-close {
        top: -50px;
        right: -5px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    .lightbox-counter {
        bottom: 10px;
    }
}
