/* Single Product Page */

.single-product-page {
    background: var(--bg-surface);
    padding-bottom: 80px;
}

/* Product Gallery */
.product-gallery {
    background: #fff;
    margin-bottom: 10px;
}

.product-images-slider {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-images-slider::-webkit-scrollbar {
    display: none;
}

.product-image-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.product-image-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Product Info */
.product-info {
    background: #fff;
    padding: 20px 15px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1em;  /* 16px */
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.25em;  /* 20px */
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-price del {
    font-size: 0.875em;  /* 14px */
    color: var(--secondary-text);
    font-weight: 400;
    margin-left: 10px;
}

.product-price ins {
    text-decoration: none;
    color: var(--danger);
}

.product-short-description {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Product Actions - Sticky Bottom */
.product-actions {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.fixed-cart-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-price-section {
    display: flex;
    align-items: center;
}

.product-price-fixed {
    font-size: 1.125em;  /* 18px */
    font-weight: 700;
    color: var(--primary);
    padding: 5px;
}

.product-price-fixed del {
    font-size: 0.875em;  /* 14px */
    color: var(--secondary-text);
    font-weight: 400;
    margin-left: 8px;
}

.product-price-fixed ins {
    text-decoration: none;
    color: var(--danger);
}

/* WooCommerce Price Styling */
.woocommerce-Price-amount.amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.product-price .woocommerce-Price-amount.amount,
.product-price-fixed .woocommerce-Price-amount.amount {
    font-size: inherit;
}

.cart-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid #e5e7eb;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.25em;  /* 20px */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.qty-btn:active {
    transform: scale(0.9);
}

div.cart-controls > div > input.qty {
    width: 30px;
    border: #eeeeee 1px;
    background: #f5f5f5;
    text-align: center;
    font-family: Vazirmatn, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 0.9375em;  /* 15px */
}

.quantity input.qty {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.9375em;  /* 15px */
    font-weight: 700;
    -moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn,
button[type="submit"].btn-primary {
    flex: 1;
    margin: 0;
    background-color: var(--color-brand-orange) !important;
    color: #fff !important;
    font-size: var(--font-size-sm) !important;
}

/* Variations */
.variations {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.variation-item {
    flex: 1;
}

.variation-item label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.875em;  /* 14px */
}

.variation-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.9375em;  /* 15px */
    background: #fff;
    font-family: 'Vazirmatn', sans-serif;
}

/* Product Tabs */
.product-tabs {
    background: #fff;
    margin-bottom: 10px;
}

.woocommerce-tabs {
    padding: 0;
}

.woocommerce-tabs .tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0 15px;
    list-style: none;
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 15px 20px;
    color: var(--secondary-text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.woocommerce-tabs .tabs li.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.woocommerce-tabs .panel {
    padding: 20px 15px;
}

/* Related Products */
.related.products {
    background: #fff;
    padding: 20px 15px;
}

.related.products h2 {
    font-size: 1em;  /* 16px */
    font-weight: 800;
    margin: 0 0 15px;
}

.related.products ul.products {
    padding: 0;
}

/* Out of Stock */
.out-of-stock-message {
    background: var(--secondary);
    padding: 15px;
    text-align: center;
    border-radius: var(--radius-sm);
    color: var(--secondary-text);
    font-weight: 600;
}
