/* Werner Forster - Product Detail Styles */

.wf-p-detail {
    padding-top: 40px;
}

.wf-p-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Image Gallery */
.wf-p-gallery {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.wf-p-main-img {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.wf-p-main-img img {
    width: 100%;
    height: auto;
    display: block;
}

.wf-p-thumbs {
    display: flex;
    gap: 12px;
}

.wf-p-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--white);
    transition: border-color 0.3s;
}

.wf-p-thumb.active,
.wf-p-thumb:hover {
    border-color: var(--primary);
}

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

/* Product Info Panel */
.wf-p-info-panel {
    padding-top: 20px;
}

.wf-p-group {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.wf-p-name {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.wf-p-price-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.wf-p-price-lg {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
}

.wf-p-price-wrap del {
    font-size: 20px;
    color: var(--text-light);
}

.wf-p-save {
    background: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.wf-p-desc {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.wf-p-meta {
    margin-bottom: 24px;
}

.wf-p-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.wf-p-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.wf-p-stock-dot.in {
    background: #4caf50;
}

.wf-p-stock-dot.out {
    background: #f44336;
}

/* Add to Cart Form */
.wf-p-form {
    margin-bottom: 30px;
}

.wf-p-qty {
    margin-bottom: 20px;
}

.wf-p-qty label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.wf-qty-sel {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.wf-qty-sel button {
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: var(--background);
    transition: background 0.3s;
}

.wf-qty-sel button:hover {
    background: var(--border);
}

.wf-qty-sel input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

.wf-btn-lg {
    width: 100%;
    padding: 18px 40px;
    font-size: 16px;
}

.wf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Trust Badges */
.wf-p-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wf-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.wf-trust-item svg {
    color: var(--secondary);
}

/* Full Description */
.wf-p-full-desc {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 80px;
}

.wf-p-full-desc h2 {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.wf-p-content {
    color: var(--text-light);
    line-height: 1.8;
}

.wf-p-content p {
    margin-bottom: 16px;
}

.wf-p-content strong {
    color: var(--text);
}

/* Related Products */
.wf-p-related {
    margin-bottom: 40px;
}

.wf-p-related h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .wf-p-layout {
        gap: 40px;
    }
    
    .wf-p-name {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .wf-p-layout {
        grid-template-columns: 1fr;
    }
    
    .wf-p-gallery {
        position: static;
    }
    
    .wf-p-thumbs {
        justify-content: center;
    }
    
    .wf-p-name {
        font-size: 24px;
    }
    
    .wf-p-price-lg {
        font-size: 28px;
    }
    
    .wf-p-full-desc {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .wf-p-price-wrap {
        flex-wrap: wrap;
    }
    
    .wf-p-thumbs {
        gap: 8px;
    }
    
    .wf-p-thumb {
        width: 60px;
        height: 60px;
    }
}
