/* ========================================
   Single Product Page Styles
   W3C Validated - Replaces inline styles
   ======================================== */

/* Product Header */
.product-header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), var(--product-bg-image);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 0;
    position: relative;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(44,76,42,0.3) 100%);
    z-index: 1;
}

.product-header .container {
    position: relative;
    z-index: 2;
}

.product-header .header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-header .header-content > div:first-child {
    flex: 1 1 60%;
    min-width: 220px;
}

.product-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Product Image */
.zoomable-image-wrapper {
    position: relative;
    display: inline-block;
}

.zoom-hint-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.zoom-hint-btn:hover {
    background: rgba(0,0,0,0.9);
}

.zoom-hint-icon {
    font-size: 1.6rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.zoom-hint-text {
    font-size: 0.95rem;
    margin-left: 0.3em;
    vertical-align: middle;
}

/* Product Title Section */
.product-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin: 0;
}

.product-category {
    background: var(--primary-light, #e3f2fd);
    color: var(--primary, #004d99);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Product Actions */
.product-actions-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.bookmark-btn {
    background: var(--neutral-200, #e9ecef);
    color: var(--text-secondary, #6c757d);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bookmark-btn:hover {
    background: var(--neutral-300, #dee2e6);
    color: var(--text-primary, #2c3e50);
}

.bookmark-btn-text {
    font-size: 0.95rem;
    margin-left: 0.3em;
    vertical-align: middle;
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
}

.share-btn {
    background: var(--primary, #004d99);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background: var(--primary-dark, #003d7a);
}

.share-btn-text {
    font-size: 0.95rem;
    margin-left: 0.3em;
    vertical-align: middle;
}

.share-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.13);
    padding: 0.5em 0;
    min-width: 180px;
    z-index: 10;
}

.share-menu.show {
    display: block;
}

.share-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #2c3e50);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.share-menu a:hover {
    background: var(--neutral-100, #f8f9fa);
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999999999;
    align-items: center;
    justify-content: center;
}

.zoom-modal[style*="display: flex"] {
    display: flex !important;
}

.zoom-modal-content {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    z-index: 999999999999;
}

.zoom-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoom-btn {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #234C2A;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
    text-decoration: none;
    line-height: 1;
}

.zoom-btn:focus, .zoom-btn:hover {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.zoom-modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    flex: 1;
    min-height: 0;
}

.zoom-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-close:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

/* Product Content */
.product-content {
    padding: 2rem 0;
}

.product-description {
    line-height: 1.8;
    color: var(--text-secondary, #6c757d);
    margin-bottom: 2rem;
}

.product-specifications {
    background: var(--neutral-50, #f8f9fa);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.specifications-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 1rem;
}

.specifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specifications-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-200, #e9ecef);
    display: flex;
    justify-content: space-between;
}

.specifications-list li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
}

.spec-value {
    color: var(--text-secondary, #6c757d);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-header {
        padding: 2rem 0;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-header .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-header .header-content > div:first-child {
        flex: none;
        min-width: auto;
    }
    
    .product-actions-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-menu {
        right: auto;
        left: 0;
        min-width: 200px;
    }

    .zoom-modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .zoom-controls {
        gap: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .zoom-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
    
    .zoom-modal-image {
        max-height: 60vh;
    }
} 