/* Product Detail Page Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-back-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.floating-back-btn:active {
    transform: translateY(0);
}

/* Language Selector - Top Right */
.language-selector-top {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector-top label {
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.language-selector-top select {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector-top select:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Back Section */
.back-section {
    margin-bottom: 30px;
    text-align: center;
}


/* Product Header */
.product-header-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.product-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.subtitle-text, .variations-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* Product Content */
.product-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Variations Section */
.variations-section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 30px 0;
    font-weight: 600;
}

/* Variations Grid for side-by-side layout */
.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Variation Cards */
.variation-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
}

.variation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.variation-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.price-tag {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.price-tag.no-price {
    background: #6c757d;
    font-size: 0.9rem;
}

.variation-content {
    display: grid;
    gap: 20px;
}

.variation-description {
    color: #495057;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.features-section, .requirements-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.features-section h4, .requirements-section h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.features-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li, .requirements-list li {
    padding: 5px 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.add-to-cart-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    max-width: 180px;
    font-size: 1rem;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.buy-now-btn {
    background: #fd7e14;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    max-width: 180px;
    font-size: 1rem;
}

.buy-now-btn:hover {
    background: #e8690a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

.disabled-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 300px;
    font-size: 1rem;
    opacity: 0.7;
}



/* Help Section */
.help-section {
    margin-top: 40px;
}

.help-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.help-icon {
    font-size: 2rem;
}

.help-header h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.help-content p {
    font-size: 1.1rem;
    margin: 0 0 25px 0;
    opacity: 0.9;
    line-height: 1.6;
}

.help-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.help-link-icon {
    font-size: 1.1rem;
}

/* Empty State and Error styles */
.empty-state, .error-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 20px;
}

.empty-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3, .error-container h3 {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.empty-state h3 {
    color: #2c3e50;
}

.error-container h3 {
    color: #dc3545;
}

.empty-state p, .error-container p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.error-container p {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-content {
        padding: 30px 20px;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .type-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-to-cart-btn, .purchase-btn {
        max-width: none;
    }
    
    .help-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .language-selector-top {
        position: fixed;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .product-header-section {
        padding: 30px 15px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .type-card {
        padding: 20px;
    }
    
    
    .help-card {
        padding: 25px 20px;
    }
}

/* Navigation collapsed state */
body.nav-collapsed .main-content {
    margin-left: 80px;
}

/* Desktop navigation adjustments for floating back button */
@media (min-width: 769px) {
    .floating-back-btn {
        left: 300px; /* Position past the navigation sidebar */
    }
    
    body.nav-collapsed .floating-back-btn {
        left: 100px; /* Position past the collapsed navigation */
    }
}

@media (max-width: 768px) {
    body.nav-collapsed .main-content {
        margin-left: 0;
    }
    
    .language-selector-top {
        position: fixed;
        top: 10px;
        right: 10px;
    }
}
