/* Premium Product Detail Page Styles */
:root {
    --primary-color: #ac1db8;
    --primary-dark: #8a1693;
    --gold-accent: #D4AF37;
    --gold-light: #F4D03F;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: var(--text-light);
    margin: 0 0.5rem;
}

/* Main Product Section */
.product-detail-main {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.main-image-container {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image-container img {
    width: 600px;
    height: 600px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.05);
}



.zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 1rem 0;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    gap: 0.5rem;
}

.category-tag,
.subcategory-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    color: var(--text-dark);
    font-weight: 600;
}

.view-reviews {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.view-reviews:hover {
    text-decoration: underline;
}

/* Price Section */
.price-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: inline-block;
    margin-right: 1rem;
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.bulk-pricing {
    margin-top: 0.5rem;
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Product Features */
.product-features {
    margin-bottom: 2rem;
}

.product-features h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.quantity-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-controls input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.min-order {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-whatsapp {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.trust-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.trust-item span:last-child {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

.client-logos {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.client-logos h4 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    align-items: center;
}

.logos-grid img {
    width: 100%;
    max-width: 100px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    background: white;
    padding: 5px;
    border-radius: 4px;
}

.logos-grid img:hover {
    transform: scale(1.1);
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 3rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tab-pane p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.description-content {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 30%;
}

.specs-table td:last-child {
    color: var(--text-light);
}

/* Customization Grid */
.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.custom-option {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.custom-option h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.custom-option p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Reviews Section */
.reviews-summary {
    margin-top: 1rem;
}

.rating-breakdown {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.overall-rating {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-bar span:first-child {
    width: 30px;
    font-size: 0.9rem;
}

.rating-bar .bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .bar div {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Related Products */
.related-products {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-products h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f8f9fa;
}

.product-details {
    padding: 1rem;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-section .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--gold-accent);
}

/* Quote Form */
.quote-form {
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideDown 0.3s ease;
}

.quote-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(172, 29, 184, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-cancel {
    background: transparent;
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--border-color);
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 1000px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-images {
        position: static;
    }
    
    .main-image-container img {
        width: 100%;
        height: 350px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .product-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-whatsapp {
        flex: none;
        min-width: auto;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .trust-indicators {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .trust-item {
        flex: 1;
        min-width: calc(50% - 0.375rem);
    }
    
    .tab-buttons {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(50% - 0.125rem);
    }
    
    .rating-breakdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .customization-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .client-logos {
        padding: 1rem;
    }
    
    .breadcrumb-nav {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-nav .container {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .logos-grid img {
        max-width: 70px;
        height: 45px;
        padding: 3px;
    }
    
    .product-title {
        font-size: 1.4rem;
    }
    
    .current-price {
        font-size: 1.6rem;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.625rem;
    }
    
    .trust-item {
        min-width: 100%;
        text-align: center;
    }
}