/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    margin-top: var(--header-height);
    font-size: 14px;
    color: var(--text-light);
}

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

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

.breadcrumb span {
    color: var(--text-color);
    font-weight: 600;
}

/* Product Detail Grid */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Gallery */
.product-detail__gallery {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

.gallery__main {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

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

.gallery__main img:hover {
    transform: scale(1.05);
}

.gallery__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    object-fit: cover;
}

.thumbnail:hover {
    border-color: var(--primary-light);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

/* Product Info */
.product-detail__info {
    padding-top: 20px;
}

.product-detail__title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-detail__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.product-detail__rating .stars {
    color: #ffd700;
    font-size: 20px;
}

.rating-text {
    color: var(--text-light);
    font-size: 14px;
}

.product-detail__description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-detail__description p {
    color: var(--text-color);
    font-size: 17px;
    margin-bottom: 15px;
}

.product-detail__features {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.product-detail__features h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.product-detail__features ul {
    list-style: none;
}

.product-detail__features li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-color);
    line-height: 1.7;
}

.product-detail__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.product-detail__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn--large {
    padding: 18px 40px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Tabs */
.product-tabs {
    margin-bottom: 80px;
}

.tabs__header {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
}

.tab__btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab__btn:hover {
    color: var(--primary-color);
}

.tab__btn.active {
    color: var(--primary-color);
}

.tab__btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab__panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab__panel.active {
    display: block;
}

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

.tab__panel h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.tab__panel h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.tab__panel p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.tab__panel ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.tab__panel ul li {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.7;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 15px;
    line-height: 1.6;
}

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

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

/* Benefits */
.product-benefits {
    margin-bottom: 80px;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit__card {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.benefit__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.benefit__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.benefit__icon svg {
    color: #fff;
}

.benefit__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.benefit__text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Related Products */
.related-products {
    margin-bottom: 60px;
}

.related-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Mobile Action Buttons */
.mobile-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
    padding: 15px;
    gap: 15px;
    z-index: 999;
}

.mobile-action__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.mobile-action__btn--phone {
    background: var(--primary-color);
    color: #fff;
}

.mobile-action__btn--phone:hover {
    background: var(--primary-dark);
}

.mobile-action__btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.mobile-action__btn--whatsapp:hover {
    background: #20BA5A;
}

.mobile-action__btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media screen and (max-width: 968px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail__gallery {
        position: static;
    }

    .gallery__main {
        height: 400px;
    }

    .tabs__header {
        flex-wrap: wrap;
    }

    .tab__btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .mobile-actions {
        display: flex;
    }

    .product-detail__actions {
        display: none;
    }

    body {
        padding-bottom: 80px;
    }
}

@media screen and (max-width: 768px) {
    .gallery__main {
        height: 300px;
    }

    .gallery__thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .thumbnail {
        height: 80px;
    }

    .product-detail__title {
        font-size: 24px;
    }

    .btn--large {
        padding: 14px 30px;
        font-size: 16px;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
    }

    .related-products__grid {
        grid-template-columns: 1fr;
    }

    .mobile-action__btn span {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .product-detail__grid {
        gap: 30px;
    }

    .tabs__header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab__btn {
        white-space: nowrap;
    }

    .specs-table td {
        padding: 12px;
        font-size: 14px;
    }
}
