/**
 * Single Product CSS
 */

.xtech-product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

/* Gallery */
.xtech-product-single__gallery .woocommerce-product-gallery__wrapper {
    margin-bottom: 1rem;
    border-radius: var(--xtech-radius-xl);
    overflow: hidden;
    background: var(--xtech-bg-elevated);
}

.xtech-product-single__gallery .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    list-style: none;
}

.xtech-product-single__gallery .flex-control-thumbs li img {
    border-radius: var(--xtech-radius);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.xtech-product-single__gallery .flex-control-thumbs li img.flex-active,
.xtech-product-single__gallery .flex-control-thumbs li img:hover {
    opacity: 1;
}

/* Summary */
.product_title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.price {
    font-size: 2rem;
    font-family: var(--xtech-font-heading);
    font-weight: 700;
    color: var(--xtech-primary) !important;
    margin-bottom: 1.5rem;
}

.price del {
    color: var(--xtech-text-muted);
    font-size: 1.25rem;
    font-weight: 400;
    margin-right: 1rem;
}

.woocommerce-product-details__short-description {
    color: var(--xtech-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Add to cart form */
.cart {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity {
    display: flex;
}

.quantity input.qty {
    width: 60px;
    text-align: center;
    background: var(--xtech-bg-elevated);
    border: 1px solid var(--xtech-border);
    color: #fff;
    border-radius: var(--xtech-radius);
    font-size: 1.125rem;
}

.single_add_to_cart_button {
    flex-grow: 1;
    height: 50px;
    border-radius: var(--xtech-radius);
    font-size: 1.125rem;
}

/* WhatsApp CTA on Product */
.xtech-product-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: #25d366;
    color: #fff;
    border-radius: var(--xtech-radius);
    font-weight: 600;
    font-family: var(--xtech-font-heading);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    transition: background 0.3s;
}

.xtech-product-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

/* Meta */
.product_meta {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--xtech-text-muted);
    font-size: 0.875rem;
}

.product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

.product_meta a {
    color: var(--xtech-text-main);
}

/* Tabs */
.woocommerce-tabs {
    margin-bottom: 4rem;
}

.wc-tabs {
    display: flex;
    list-style: none;
    border-bottom: 1px solid var(--xtech-border);
    margin-bottom: 2rem;
}

.wc-tabs li {
    margin-right: 2rem;
}

.wc-tabs a {
    display: block;
    padding: 1rem 0;
    color: var(--xtech-text-muted);
    font-weight: 600;
    font-family: var(--xtech-font-heading);
    position: relative;
}

.wc-tabs li.active a {
    color: var(--xtech-primary);
}

.wc-tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--xtech-gradient);
}
