/**
 * Custom Single Product Styles
 * Armenian font support
 * Compatible with WooCommerce & WoodMart
 */

/* Armenian Font */
.custom-single-product-page,
.custom-single-product-page *,
.custom-single-product,
.custom-single-product *,
.custom-breadcrumb,
.custom-product-brand,
.custom-delivery-info,
.custom-payment-info {
    font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Main Product Layout */
.custom-single-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-images-section {
    position: relative;
}

.product-summary-section {
    padding: 0;
}

/* Custom Breadcrumb */
.custom-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.custom-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.custom-breadcrumb a:hover {
    color: #000;
}

/* Product Title */
.product_title {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    color: #000 !important;
}

/* Product Category/Brand */
.custom-product-brand {
    margin-bottom: 15px;
}

.custom-product-brand a {
    color: #666;
    font-size: 16px;
    text-decoration: none;
}

.custom-product-brand a:hover {
    color: #000;
}

/* Product Price */
.product-summary-section .price {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #e74c3c !important;
    margin-bottom: 25px;
}

.product-summary-section .price del {
    color: #999 !important;
    font-size: 24px !important;
    margin-right: 10px;
}

.product-summary-section .price ins {
    text-decoration: none !important;
}

/* Variations */
.custom-product-variations {
    margin-bottom: 25px;
}

.custom-product-variations .variation-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.custom-product-variations .variations {
    margin-bottom: 20px;
}

.custom-product-variations .variations select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: "Noto Sans Armenian", sans-serif;
}

/* Stock Status */
.custom-product-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.custom-product-stock .stock-icon {
    font-size: 20px;
}

.custom-product-stock .in-stock {
    color: #27ae60;
    font-weight: 600;
}

.custom-product-stock .out-of-stock {
    color: #e74c3c;
    font-weight: 600;
}

/* Custom Delivery Info */
.custom-delivery-info {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.custom-delivery-info h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
}

.delivery-icon {
    font-size: 20px;
    text-align: center;
}

.delivery-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-text strong {
    font-size: 14px;
    font-weight: 600;
}

.delivery-text span {
    font-size: 13px;
    color: #666;
}

.delivery-price {
    font-weight: 600;
    color: #27ae60;
    font-size: 14px;
}

/* Custom Payment Info */
.custom-payment-info {
    margin: 20px 0;
}

.custom-payment-info label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.payment-methods-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-method {
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Add to Cart Button */
.custom-add-to-cart {
    margin-bottom: 20px;
}

.custom-add-to-cart .single_add_to_cart_button,
.custom-product-variations .single_add_to_cart_button {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Noto Sans Armenian", sans-serif;
}

.custom-add-to-cart .single_add_to_cart_button:hover,
.custom-product-variations .single_add_to_cart_button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Wishlist & Compare */
.custom-product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.custom-product-actions .wishlist-btn,
.custom-product-actions .compare-btn {
    flex: 1;
}

.custom-product-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-product-actions a:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* SKU */
.custom-product-sku {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

.custom-product-sku .sku-label {
    font-weight: 600;
    margin-right: 5px;
}

/* Product Tabs */
.custom-product-tabs {
    margin-top: 60px;
    margin-bottom: 60px;
}

.tabs-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Noto Sans Armenian", sans-serif;
}

.tab-button:hover {
    color: #000;
}

.tab-button.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.tabs-content {
    padding: 20px 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Specifications Table */
.shop_attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.shop_attributes tr {
    border-bottom: 1px solid #e0e0e0;
}

.shop_attributes th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    background: #f8f9fa;
    width: 30%;
}

.shop_attributes td {
    padding: 15px;
}

/* Related Products */
.custom-related-products {
    margin-top: 60px;
}

.custom-related-products h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tabs-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        white-space: nowrap;
        padding: 12px 20px;
        font-size: 14px;
    }

    .custom-product-summary .product_title {
        font-size: 22px;
    }

    .custom-product-price .price {
        font-size: 26px;
    }
}

/* Loading Animation */
.custom-single-product.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions */
.custom-single-product * {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Hide product rating/reviews */
.woocommerce-product-rating,
.woocommerce-review-link,
.star-rating[role="img"][aria-label*="customer"],
div.woocommerce-product-rating,
.woocommerce .woocommerce-product-rating {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}
