/* ReyhaneShop All-in-One v7.3 - style.css */

/* IRANSans load (woff2 ideally) */
@font-face { font-family: 'IRANSans'; src: url('https://cdn.fontcdn.ir/Fonts/iransans/woff2/IRANSansWeb.woff2') format('woff2'); font-weight:300 800; font-style:normal; font-display:swap; }

html,body,input,select,textarea,button { font-family:'IRANSans', Tahoma, sans-serif !important; font-size:15px !important; line-height:1.6; }

:root { --reyhane-green:#28a745; --reyhane-green-dark:#218838; --reyhane-muted:#6c757d; }

/* Buttons and brand */
button,.button,.add_to_cart_button,.single_add_to_cart_button,.woocommerce button.button.alt { background:var(--reyhane-green)!important; color:#fff!important; border:none!important; padding:10px 18px!important; border-radius:8px!important; font-weight:700!important; box-shadow:none!important; }
button:hover,.button:hover,.add_to_cart_button:hover,.single_add_to_cart_button:hover { background:var(--reyhane-green-dark)!important; transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,0.08); }

/* Product card */
.woocommerce ul.products li.product { border:1px solid #eee; padding:12px; border-radius:10px; background:#fff; display:flex; flex-direction:column; height:100%; }
.woocommerce ul.products li.product img { width:100%!important; height:220px!important; object-fit:contain!important; display:block; margin:0 auto 12px; transition:transform .25s ease; }
.woocommerce ul.products li.product:hover img { transform:scale(1.05); }
.woocommerce ul.products li.product .price { font-weight:700; color:#222; text-align:right; direction:rtl; margin-top:auto; }

/* CLS reserve: wrapper & aspect ratio for product images to avoid layout shift */
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce ul.products li.product img {
    aspect-ratio: 4 / 3;
    min-height: 160px;
    width:100%;
    object-fit:contain;
    display:block;
}

/* Single product gallery: reserve height */
.woocommerce div.product .woocommerce-product-gallery__image {
    min-height: 300px;
}

/* Mini-cart redesign */
.woocommerce-mini-cart { direction:rtl; text-align:right; padding:10px; max-height:70vh; overflow:auto; }
.woocommerce-mini-cart li { display:flex!important; align-items:center; justify-content:space-between; border-bottom:1px solid #eee; padding:8px 0; white-space:normal!important; }
.woocommerce-mini-cart li img { width:56px!important; height:auto!important; margin-left:10px; border-radius:8px; }
.woocommerce-mini-cart .remove { color:#e63946!important; font-size:18px; margin-left:8px; }

/* Homepage hero & trust */
.rey-hero { padding:18px; background:linear-gradient(90deg, rgba(40,167,69,0.06), rgba(40,167,69,0.02)); border-radius:10px; margin-bottom:16px; }
.rey-trust { display:flex; gap:16px; justify-content:center; align-items:center; max-width:1100px; margin:16px auto; text-align:center; }
.rey-trust .item { flex:1; padding:8px; }

/* Responsive tweaks */
@media (max-width:768px){
  .woocommerce ul.products { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
  .woocommerce ul.products li.product img { height:160px!important; }
  button,.button { padding:12px 14px!important; font-size:15px!important; }
  .woocommerce-checkout form.checkout { display:flex; flex-direction:column; gap:12px; }
  .woocommerce-checkout .form-row { width:100%!important; float:none!important; box-sizing:border-box; }
  .woocommerce div.product .woocommerce-product-gallery__image { min-height:200px; }
  .woocommerce .checkout .button, .woocommerce button.button, .woocommerce .checkout-button { width:100% !important; box-sizing:border-box; }
}

/* Utility */
.ux-note { background:#fff8e1; padding:8px; border-left:4px solid #ffd54f; margin:12px 0; }

