/* ====================================
   PRODUCT PAGES STYLES - GIOLLI
   ==================================== */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--light-gray);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(185, 178, 167, 0.2);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Product Hero Section */
.product-hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, #fff 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-hero-text {
    padding-right: 2rem;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-category-badge.waterproof {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.product-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.product-hero-description {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.product-hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.product-hero-image {
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.product-hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.quality-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.95);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-medium);
    color: var(--secondary-color);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Product Categories Grid */
.product-categories {
    padding: 6rem 0;
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.category-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(185,178,167,0.9) 0%, rgba(93,86,75,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-info {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.category-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.category-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.category-btn:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.category-details {
    padding: 1.5rem;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-small);
}

.category-features i {
    color: var(--success);
}

/* Products Showcase */
.products-showcase {
    padding: 6rem 0;
    background: var(--light-gray);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.waterproof-product {
    background: var(--white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
    cursor: pointer;
}

.waterproof-product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.product-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.waterproof-product:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.impermeabilisants {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.product-badge.piscines {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
}

.product-badge.amiante {
    background: linear-gradient(135deg, #FF5722, #D84315);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.waterproof-product:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-medium);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

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

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.product-description {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--light-gray);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
}

.feature-tag i {
    color: var(--success);
}

.product-pricing {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--radius-small);
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.price-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.price-value.pro {
    color: var(--primary-color);
}

.price-value.particular {
    color: var(--secondary-color);
}

.price-unit {
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.product-certifications {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.cert-icon {
    width: 35px;
    height: 35px;
    background: var(--light-gray);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.cert-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-large);
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-heavy);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.modal-gallery {
    position: sticky;
    top: 0;
}

.main-image {
    border-radius: var(--radius-medium);
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition-base);
    opacity: 0.7;
    flex-shrink: 0;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-info h2 {
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--accent-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.product-features h4,
.product-specifications h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.product-features i {
    color: var(--success);
}

.specs-list {
    background: var(--light-gray);
    border-radius: var(--radius-small);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(185,178,167,0.2);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    font-weight: 600;
    color: var(--secondary-color);
}

.spec-value {
    color: var(--accent-color);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-info .product-pricing {
    background: var(--light-gray);
    border-radius: var(--radius-small);
    padding: 1.5rem;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

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

#product-quantity {
    width: 80px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-small);
    font-weight: 600;
}

.add-to-cart-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-small);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Technical Specifications Section */
.technical-specs {
    background: var(--white);
    padding: 6rem 0;
}

.specs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius-medium);
}

.spec-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.spec-content h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.spec-content p {
    color: var(--accent-color);
    font-weight: 600;
}

.specs-visual {
    display: flex;
    justify-content: center;
}

.specs-chart {
    display: flex;
    align-items: end;
    gap: 2rem;
    height: 300px;
}

.chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.chart-bar {
    width: 60px;
    height: 250px;
    background: var(--light-gray);
    border-radius: var(--radius-small);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-small);
    transition: height 1s ease-out;
}

.chart-item span {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
}

/* Applications Section */
.applications {
    background: var(--light-gray);
    padding: 6rem 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.application-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.application-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.application-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.application-card p {
    color: var(--accent-color);
    line-height: 1.6;
}

/* Process Steps */
.process-steps {
    background: var(--white);
    padding: 6rem 0;
}

.process-timeline {
    margin-top: 3rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin: 0 3rem;
}

.step-content {
    flex: 1;
    padding-left: 3rem;
}

.step-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--accent-color);
    line-height: 1.6;
}

/* Compact Language Switcher */
.language-switcher.compact {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.language-switcher.compact .lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.language-switcher.compact .lang-btn:hover,
.language-switcher.compact .lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Cart Styles */
.cart-container {
    position: relative;
}

.cart-btn {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition-base);
}

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

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-heavy);
    z-index: 9998;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

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

.quantity-btn {
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.remove-item-btn {
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--accent-color);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Modal and Product Page Responsive */
@media (max-width: 1024px) {
    .product-hero-content,
    .modal-body,
    .specs-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step,
    .process-step:nth-child(even) {
        flex-direction: row;
        padding-left: 80px;
    }
    
    .process-step:nth-child(even) .step-content {
        text-align: left;
        padding-right: 0;
        padding-left: 3rem;
    }
    
    .step-number {
        position: absolute;
        left: 0;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .product-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-card {
        min-width: unset;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-chart {
        gap: 1rem;
    }
    
    .chart-bar {
        width: 40px;
    }
    
    .products-filter {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .product-modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        padding-left: 60px;
    }
    
    .step-content {
        padding-left: 1.5rem;
    }
}