/*
Theme Name: Storefront Child
Theme URI: https://goltermeh.ir
Description: Child theme for Storefront - Persian RTL WooCommerce
Author: Saeed
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storefront-child
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
    --bt-color-primary: #4a7c59 !important;
    --bt-color-primary-dark: #3a6347 !important;
    --bt-color-primary-light: #6a9b79 !important;
    --bt-color-accent: #c9a961 !important;
    --bt-color-bg: #faf8f5 !important;
    --bt-font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

* { box-sizing: border-box; }

body {
    font-family: var(--bt-font-family) !important;
    direction: rtl !important;
    text-align: right !important;
    background-color: var(--bt-color-bg) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bt-font-family) !important;
    font-weight: 600 !important;
}

a { color: var(--bt-color-primary) !important; }
a:hover { color: var(--bt-color-primary-dark) !important; }

.site-header {
    background-color: #fff !important;
    border-bottom: 1px solid #e8e4de !important;
}

.site-title {
    font-family: var(--bt-font-family) !important;
    font-weight: 700 !important;
    color: var(--bt-color-primary-dark) !important;
}

/* Product cards */
ul.products li.product {
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    border: 1px solid #e8e4de !important;
}

ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--bt-font-family) !important;
    font-weight: 600 !important;
}

ul.products li.product .price {
    color: var(--bt-color-primary-dark) !important;
    font-weight: 600 !important;
}

/* Buttons */
.button, button, input[type="submit"] {
    background-color: var(--bt-color-primary) !important;
    border-radius: 8px !important;
    font-family: var(--bt-font-family) !important;
    transition: all 0.2s ease !important;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background-color: var(--bt-color-primary-dark) !important;
    transform: translateY(-1px) !important;
}

/* Hero slider area */
.storefront-hero {
    position: relative !important;
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* === Product Slider === */
.product-slider-section {
    padding: 2rem 0;
    background-color: #faf8f5;
    overflow: hidden;
}

.storefront-product-slider {
    padding: 0 3rem;
}

.swiper-slide {
    height: auto;
}

.product-slide-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e8e4de;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.slide-product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.slide-product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slide-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.slide-product-title a {
    color: #2d2d2d;
    text-decoration: none;
}

.slide-product-title a:hover {
    color: #4a7c59;
}

.slide-product-price {
    font-weight: 600;
    color: #3a6347;
    font-size: 1.1rem;
}

.slide-add-to-cart {
    margin-top: auto;
    width: 100%;
    text-align: center;
    background-color: #4a7c59;
    color: #fff;
    padding: 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.slide-add-to-cart:hover {
    background-color: #3a6347;
    color: #fff;
    transform: translateY(-1px);
}

.swiper-pagination-bullet {
    background: #4a7c59 !important;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-prev, .swiper-button-next {
    color: #4a7c59 !important;
}

@media (max-width: 768px) {
    .slide-product-image {
        height: 180px;
    }
    .storefront-product-slider {
        padding: 0 1rem;
    }
}

/* Footer address */
.site-info-footer {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: #4a7c59;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    font-family: Vazirmatn, sans-serif;
    font-size: 0.95rem;
}
.site-info-footer p {
    margin: 0;
}
.site-info {
    margin-top: 1rem;
}
