/* =========================================================
   Faarshop — sitewide shop / product / archive UI
   Crisp white · charcoal · gold (screenshot-aligned)
   ========================================================= */

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

:root {
  --faar-bg: #ffffff;
  --faar-bg-soft: #f6f6f6;
  --faar-surface: #ffffff;
  --faar-ink: #121212;
  --faar-ink-soft: #555555;
  --faar-muted: #9a9a9a;
  --faar-line: #ebebeb;
  --faar-gold: #e6b800;
  --faar-gold-deep: #c49a00;
  --faar-radius: 14px;
  --faar-radius-sm: 10px;
  --faar-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  --faar-font: 'Vazirmatn', Tahoma, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--faar-font) !important;
  color: var(--faar-ink);
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(230, 184, 0, 0.07), transparent 55%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%) !important;
}

body,
body p,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
.button,
.nav > li > a,
.header-nav,
.product-title,
.woocommerce,
input,
textarea,
select {
  font-family: var(--faar-font) !important;
}

/* ---------- Header ---------- */
#header,
.header-wrapper,
.header-main {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-main .logo img {
  max-height: 50px;
}

.nav > li > a {
  font-weight: 600 !important;
  transition: color 0.2s ease;
}

.nav > li > a:hover,
.nav > li.active > a,
.nav > li.current-menu-item > a {
  color: var(--faar-gold-deep) !important;
}

/* ---------- Buttons ---------- */
.button,
.button.primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button,
.checkout-button,
.added_to_cart {
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding-left: 1.4em !important;
  padding-right: 1.4em !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.button.primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.single_add_to_cart_button,
.checkout-button {
  background: var(--faar-ink) !important;
  border-color: var(--faar-ink) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button.primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
  background: var(--faar-gold) !important;
  border-color: var(--faar-gold) !important;
  color: #121212 !important;
  transform: translateY(-2px);
}

/* ---------- Prices ---------- */
.woocommerce ul.products li.product .price,
.product-small .price,
.price-wrapper .price,
.product-info .price,
.summary .price,
p.price,
.amount {
  color: var(--faar-gold) !important;
  font-weight: 800 !important;
}

.woocommerce-Price-currencySymbol {
  color: var(--faar-muted) !important;
  font-size: 0.72em !important;
  font-weight: 500 !important;
}

/* ---------- Archive / shop grid ---------- */
.shop-container,
.category-page-row,
.row-grid {
  padding-top: 8px;
}

.product-small .box-image,
.woocommerce ul.products li.product .box-image {
  border-radius: var(--faar-radius) !important;
  overflow: hidden;
  background: var(--faar-bg-soft);
  box-shadow: var(--faar-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-small:hover .box-image {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.product-small .box-image img,
.woocommerce ul.products li.product img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.product-small:hover .box-image img,
.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

.product-small .box-text,
.woocommerce ul.products li.product .box-text {
  padding-top: 14px !important;
}

.product-small .product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-title a {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  color: var(--faar-ink) !important;
}

.badge-container .badge,
.onsale {
  background: var(--faar-ink) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* Page titles */
.page-title,
.shop-page-title,
.category-page-title,
.woocommerce-products-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page-title-inner {
  padding-top: 32px !important;
  padding-bottom: 8px !important;
}

.page-title h1,
.woocommerce-products-header__title,
.product-section .section-title span {
  font-weight: 800 !important;
  font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
  color: var(--faar-ink) !important;
}

.breadcrumbs,
.woocommerce .woocommerce-breadcrumb {
  color: var(--faar-muted) !important;
  font-size: 0.85rem !important;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--faar-ink-soft) !important;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--faar-gold-deep) !important;
}

/* ---------- Single product ---------- */
.product-main,
.product-container {
  padding-top: 24px;
  padding-bottom: 40px;
}

.product-gallery,
.woocommerce-product-gallery,
.product-images .slide,
.product-gallery-slider,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image img,
.product-gallery img {
  border-radius: 16px !important;
  overflow: hidden;
}

.product-gallery,
.woocommerce-product-gallery {
  box-shadow: var(--faar-shadow);
  background: var(--faar-bg-soft);
}

.product-thumbnails img,
.flex-control-thumbs img {
  border-radius: 10px !important;
}

.product-info .product-title,
.product_title.entry-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}

.product-info .price,
.summary .price {
  font-size: 1.55rem !important;
  margin-bottom: 20px !important;
}

.product-short-description,
.woocommerce-product-details__short-description,
.product-page-sections {
  color: var(--faar-ink-soft);
  line-height: 1.95;
}

/* Size / variations */
.variations {
  margin-bottom: 18px !important;
}

.variations td,
.variations th {
  padding: 8px 0 !important;
  border: 0 !important;
}

.variations label {
  font-weight: 700 !important;
  color: var(--faar-ink) !important;
}

.variations select,
table.variations select {
  border-radius: 999px !important;
  border: 1px solid var(--faar-line) !important;
  min-height: 46px;
  padding: 0 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ux-swatch,
.ux-swatches .ux-swatch {
  border-radius: 999px !important;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--faar-line) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.ux-swatch:hover {
  border-color: var(--faar-ink) !important;
}

.ux-swatch.selected,
.ux-swatches .ux-swatch.selected {
  background: var(--faar-ink) !important;
  color: #fff !important;
  border-color: var(--faar-ink) !important;
}

.quantity .qty,
.quantity input.qty {
  border-radius: 999px !important;
  border-color: var(--faar-line) !important;
  min-height: 46px;
}

.single_add_to_cart_button {
  min-height: 48px !important;
  font-size: 1rem !important;
}

/* Tabs / related */
.woocommerce-tabs,
.product-footer,
.related.products,
.upsells.products {
  margin-top: 40px;
}

.woocommerce-tabs ul.tabs {
  padding-right: 0 !important;
  border-bottom: 1px solid var(--faar-line) !important;
}

.woocommerce-tabs ul.tabs li a {
  font-weight: 700 !important;
  color: var(--faar-muted) !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--faar-ink) !important;
}

.woocommerce-tabs .panel {
  background: #fff;
  border-radius: var(--faar-radius);
  padding: 22px !important;
  border: 1px solid var(--faar-line);
  margin-top: 14px;
  line-height: 1.9;
}

.related.products > h2,
.upsells.products > h2,
.product-section .section-title b {
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  position: relative;
  padding-right: 16px;
}

.related.products > h2::before,
.upsells.products > h2::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.4em;
  width: 7px;
  height: 7px;
  background: var(--faar-gold);
  box-shadow: -10px 0 0 var(--faar-gold), -20px 0 0 var(--faar-gold);
  border-radius: 1px;
}

/* ---------- Footer ---------- */
#footer,
.footer-wrapper {
  background: #121212 !important;
  color: #e8e8e8 !important;
  margin-top: 40px;
}

#footer a {
  color: #cfcfcf !important;
  transition: color 0.2s ease;
}

#footer a:hover {
  color: var(--faar-gold) !important;
}

.absolute-footer {
  background: #0c0c0c !important;
  color: #999 !important;
}

/* ---------- Forms / cart / checkout ---------- */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='search'],
input[type='number'],
textarea,
select,
.select2-selection,
.form-control {
  border-radius: 12px !important;
  border-color: var(--faar-line) !important;
  font-family: var(--faar-font) !important;
  min-height: 44px;
}

.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout-review-order,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--faar-line);
  border-radius: var(--faar-radius);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.woocommerce-MyAccount-navigation ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--faar-ink-soft) !important;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
  background: var(--faar-bg-soft);
  color: var(--faar-ink) !important;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 12px !important;
  border-top: 0 !important;
  border-right: 3px solid var(--faar-gold) !important;
}

/* Mobile sticky add-to-cart polish if present */
.sticky-add-to-cart,
.faar-sticky-bar {
  backdrop-filter: blur(10px);
}

@media (max-width: 549px) {
  .product-info .price,
  .summary .price {
    font-size: 1.3rem !important;
  }
}
