/* ==========================================
   PRODUCT DETAIL PAGE - Equipilates Europa
   ========================================== */

body {
    background: #0a0a0a;
    color: #f5f5f0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.product-page-nav {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    min-height: 60vh;
}

/* Loading State */
.product-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 165, 116, 0.2);
    border-top-color: #D4A574;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.product-loading p {
    color: #888;
    font-size: 0.95rem;
}

/* Not Found */
.product-not-found {
    text-align: center;
    padding: 120px 20px;
}

.product-not-found h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #ccc;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #D4A574;
    color: #0a0a0a;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-back-home:hover {
    background: #c4955e;
    transform: translateY(-2px);
}

/* Breadcrumb */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: #D4A574;
}

.product-breadcrumb .breadcrumb-current {
    color: #ccc;
}

/* Product Content Layout */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-btn {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s;
}

.thumb-btn.active {
    border-color: #D4A574;
}

.thumb-btn:hover {
    border-color: rgba(212, 165, 116, 0.5);
}

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

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-category-label {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212, 165, 116, 0.1);
    color: #D4A574;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #f5f5f0;
}

.product-short-desc {
    color: #999;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #ccc;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    color: #D4A574;
    flex-shrink: 0;
}

/* CTA Button */
.product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    background: #25D366;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
}

.product-cta:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.product-cta svg {
    flex-shrink: 0;
}

/* Details Section */
.product-details-section {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.details-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.details-tab {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.details-tab:hover {
    color: #ccc;
    background: rgba(255,255,255,0.02);
}

.details-tab.active {
    color: #D4A574;
}

.details-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #D4A574;
}

.details-content {
    padding: 32px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.desc-content {
    color: #bbb;
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-line;
}

/* Specs */
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-list li {
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    color: #ccc;
    font-size: 0.9rem;
    border-left: 3px solid #D4A574;
}

/* Optionals */
.optionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.optional-item {
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}

.opt-key {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.opt-value {
    font-weight: 600;
    color: #D4A574;
    font-size: 0.95rem;
}

.empty-msg {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        padding: 80px 16px 60px;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .gallery-main {
        aspect-ratio: 4/3;
    }

    .thumb-btn {
        width: 60px;
        height: 60px;
    }

    .details-tabs {
        overflow-x: auto;
    }

    .details-tab {
        padding: 14px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .details-content {
        padding: 20px;
    }

    .optionals-grid {
        grid-template-columns: 1fr;
    }
}
