/* DIARA: site-wide design layer on top of Flatsome. One palette, one typeface, one set of controls. */
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-var.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--d-ink: #1b1510;
	--d-paper: #fbf6ee;
	--d-sand: #f2efe9;
	--d-muted: #6b5f52;
	--d-soft: #8a8279;
	--d-line: rgba(27, 21, 16, 0.14);
	--d-accent: #8a6a3a;
	--d-teal: #2f5d57;
	--d-font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Typeface everywhere ---- */
body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, .nav > li > a, .button, .price, .widget-title, .breadcrumbs, .woocommerce, .alt-font {
	font-family: var(--d-font) !important;
	letter-spacing: 0;
}
body { color: var(--d-ink); background: var(--d-paper); line-height: 1.9; font-size: 16px; }
h1, h2, h3, h4, h5, h6 { color: var(--d-ink); font-weight: 600; text-transform: none; text-wrap: balance; line-height: 1.5; }
a { color: var(--d-accent); }
a:hover { color: var(--d-ink); }
::selection { background: #e7c78a; color: var(--d-ink); }

/* ---- Header on inner pages (the homepage overlays it, see hero.css) ---- */
body:not(.has-diara-hero) #header .header-main,
body:not(.has-diara-hero) #header .header-bg-color { background: var(--d-paper) !important; }
body:not(.has-diara-hero) #header { box-shadow: 0 1px 0 var(--d-line); }
body:not(.has-diara-hero) .header-wrapper .nav > li > a,
body:not(.has-diara-hero) .header-wrapper .nav-icon,
body:not(.has-diara-hero) .header-wrapper .header-button a { color: var(--d-ink) !important; }
.header-wrapper .nav > li > a:hover, .header-wrapper .nav > li.active > a { color: var(--d-accent) !important; }
.header-main .header-logo img { max-height: 44px; width: auto; }
/* Hamburger: icon only, no "منو" label (like the original site). */
.header .menu-title, .header .nav-icon .menu-title, .header-wrapper .menu-title { display: none !important; }
.header .nav-icon, .header .icon-menu { font-size: 1.25rem; }
/* Flatsome ships two logos: dark-ink (.header-logo) and light (.header-logo-dark). Inner pages use ink; the homepage hero uses the light one. */
/* Exactly one logo is visible at any time, in the same place on every page. The sticky-logo variant is disabled in the theme. */
.header-wrapper img.header-logo, .header-wrapper img.header-logo-dark { max-height: 40px; width: auto; }
body:not(.has-diara-hero) .header-wrapper img.header-logo { display: block !important; }
body:not(.has-diara-hero) .header-wrapper img.header-logo-dark { display: none !important; }
body.has-diara-hero .header-wrapper:not(.stuck) img.header-logo { display: none !important; }
body.has-diara-hero .header-wrapper:not(.stuck) img.header-logo-dark { display: block !important; }
body.has-diara-hero .header-wrapper.stuck img.header-logo { display: block !important; }
body.has-diara-hero .header-wrapper.stuck img.header-logo-dark { display: none !important; }
/* Once the header sticks on the homepage it needs a solid, readable background. */
body.has-diara-hero .header-wrapper.stuck #header .header-main,
body.has-diara-hero .header-wrapper.stuck .header-main { background: var(--d-paper) !important; }
body.has-diara-hero .header-wrapper.stuck .nav > li > a, body.has-diara-hero .header-wrapper.stuck .header-wrapper a { color: var(--d-ink) !important; }

/* Main menu centred between the logo (start) and the account/search/cart icons (end). */
@media (min-width: 850px) {
	.header-main .header-inner { position: relative; }
	.header-main .header-inner > .flex-left.hide-for-medium,
	.header-main .header-inner > .flex-left { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; margin: 0; flex: none; width: max-content; }
	.header-main .header-nav-main { justify-content: center; }
}
/* Hamburger button without Flatsome's outline box. */
.header .nav-icon a, .header .mobile-nav .nav-icon a { border: 0 !important; background: transparent !important; box-shadow: none !important; }
/* No dark band under a short page. */
html { background: var(--d-sand); }
.nav-dropdown { border-radius: 2px; font-family: var(--d-font); }

/* ---- Controls: one button, one input ---- */
.button, button[type="submit"], input[type="submit"], .woocommerce a.button, .woocommerce button.button, .single_add_to_cart_button {
	border-radius: 0 !important;
	font-weight: 500;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}
.button.primary, .button.alt, .single_add_to_cart_button, .checkout-button, input[type="submit"] {
	background: var(--d-ink) !important;
	border-color: var(--d-ink) !important;
	color: var(--d-paper) !important;
}
.button.primary:hover, .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, input[type="submit"]:hover {
	background: var(--d-accent) !important;
	border-color: var(--d-accent) !important;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
	border-radius: 0;
	border: 1px solid var(--d-line);
	background: #fff;
	box-shadow: none;
	color: var(--d-ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--d-accent); box-shadow: 0 0 0 3px rgba(138, 106, 58, 0.16); outline: 0; }
:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 3px; }

/* ---- Page titles, breadcrumbs, sidebars ---- */
.page-title-inner h1, .entry-title, .page-title { font-weight: 600; }
.breadcrumbs, .woocommerce-breadcrumb { color: var(--d-soft); font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
.widget .widget-title, .widget-title, .widget > span.widget-title { font-size: 1.05rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--d-ink); }
.widget ul li { border-color: var(--d-line); }
.is-divider { background-color: var(--d-accent) !important; height: 1px !important; max-width: 36px !important; }

/* ---- Shop ---- */
.product-small .name a, .product-title a { color: var(--d-ink); font-weight: 500; text-transform: none; }
.product-small .category { color: var(--d-soft); text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
.price, .amount { color: var(--d-ink); font-weight: 500; }
.price del, .price del .amount { color: var(--d-soft); }
.badge-container .badge-inner, .onsale { background: var(--d-accent) !important; border-radius: 0 !important; font-weight: 500; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--d-accent); }
.star-rating span::before { color: var(--d-accent); }

/* ---- Shop archive (matches the original DIARA shop) ---- */
.woocommerce-shop, .post-type-archive-product, .tax-product_cat { background: #f7f5f1; }
.shop-page-title.category-page-title { background: transparent !important; }
.shop-page-title .title-bg, .shop-page-title .title-overlay, .shop-page-title .bg-overlay { display: none !important; }
.shop-page-title, .shop-page-title h1, .shop-page-title a, .shop-page-title .breadcrumbs, .shop-page-title .woocommerce-breadcrumb { color: var(--d-ink) !important; text-shadow: none !important; }
.shop-page-title .woocommerce-breadcrumb a, .shop-page-title .breadcrumbs a { color: var(--d-soft) !important; }
.shop-page-title .woocommerce-ordering select {
	appearance: none; -webkit-appearance: none;
	background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%231b1510' stroke-width='1.4'/></svg>") no-repeat left 2px center;
	border: 0; box-shadow: none; color: var(--d-ink) !important; text-shadow: none;
}
.shop-page-title .page-title-inner { padding-block: clamp(28px, 5vw, 56px) 8px; }
.shop-page-title .page-title-inner .flex-col:first-child { justify-content: center; text-align: center; width: 100%; }
.shop-page-title .woocommerce-breadcrumb, .shop-page-title .breadcrumbs { font-size: 0.85rem; }
.shop-page-title .woocommerce-result-count { color: var(--d-soft); font-size: 0.9rem; }
.shop-page-title .woocommerce-ordering select { border: 0; background: transparent; padding-inline: 0 24px; font-weight: 500; cursor: pointer; }
.shop-container .products { margin-inline: -10px; }
.product-small.box { background: transparent; }
.product-small .box-image { background: #fff; overflow: hidden; border-radius: 0; }
.product-small .box-image img { transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.product-small:hover .box-image img { transform: scale(1.03); }
.product-small .box-text { padding: 14px 4px 22px; text-align: start; }
.product-small .box-text .category, .product-small .box-text .cat-label { display: none; }
.product-small .box-text .title-wrapper, .product-small .box-text .name { margin: 0; }
.product-small .box-text .name a { font-size: 1rem; font-weight: 600; }
.product-small .box-text .price-wrapper { margin-top: 4px; }
.product-small .box-text .price { color: var(--d-soft); font-size: 0.92rem; }
.product-small .box-text .price ins, .product-small .box-text .price ins .amount { color: #b3382f; text-decoration: none; }
.product-small .add-to-cart-button, .product-small .quick-view, .product-small .image-tools { display: none !important; }
.badge-container { margin: 10px; }
.badge-container .badge { height: auto; width: auto; }
.badge-container .badge-inner.on-sale { padding: 3px 9px; font-size: 0.8rem; font-weight: 500; background: var(--d-accent) !important; }
.woocommerce-pagination .page-numbers { border-radius: 0; font-family: var(--d-font); }

/* ---- Blog ---- */
.blog-archive .box-text h5 a, .post-title a, .entry-title a { color: var(--d-ink); }
.entry-meta, .posted-on, .cat-label { color: var(--d-soft); text-transform: none; letter-spacing: 0; }
.entry-content p { max-inline-size: 68ch; line-height: 2; }

/* ---- Footer (modelled on the original site) ---- */
.footer-wrapper, .footer-widgets, .absolute-footer, .footer-1, .footer-2 { background: var(--d-sand) !important; color: var(--d-muted); }
.footer-widgets { border: 0; padding: clamp(40px, 6vw, 72px) 0 16px; }
.footer-1 .row { align-items: flex-start; justify-content: center; }
/* Three equal columns, centred: same space on the left and the right. */
.footer-1 .row > .col, .footer-1 .row.large-columns-4 > .col { flex: 0 0 33.3333%; max-width: 33.3333%; }
.footer-widgets .row, .absolute-footer .container { margin-inline: auto; }
.footer-1 .col { text-align: center; padding-bottom: 12px; }
.footer-widgets .widget-title, .footer-widgets .widget > span.widget-title { display: block; margin-bottom: 22px; font-size: 1.05rem; font-weight: 600; color: var(--d-ink); }
.footer-widgets .is-divider { display: none; }
.footer-widgets ul.df-links { list-style: none; margin: 0; padding: 0; }
.footer-widgets ul.df-links li { margin: 0; padding: 0; border: 0; }
.footer-widgets ul.df-links a { display: inline-block; padding: 0.6em 0; font-size: 1.05rem; color: var(--d-soft); transition: color 200ms; }
.footer-widgets ul.df-links a:hover { color: var(--d-ink); }
.footer-widgets .df-logo { display: inline-block; margin-bottom: 14px; }
.footer-widgets .df-logo img { display: block; width: 125px; height: auto; }
.footer-widgets .df-note { max-inline-size: 36ch; margin: 0 auto; color: var(--d-soft); font-size: 0.9rem; line-height: 2; }

/* Flatsome marks footer rows ".dark" (light text); ours sit on a light sand background. */
.footer-wrapper .dark, .footer-wrapper .dark p, .footer-wrapper .dark a, .footer-wrapper .absolute-footer, .footer-wrapper .absolute-footer a { color: var(--d-muted); }
.footer-wrapper .absolute-footer { background: var(--d-sand) !important; color: var(--d-soft); }
.footer-wrapper .absolute-footer *, .footer-wrapper .absolute-footer a { color: var(--d-soft) !important; }
.footer-2 .col, .footer-2 .row > .col { flex-basis: 100%; max-width: 100%; }
/* Footer built as a UX Block (editable in UX Builder). Same look as the widget footer. */
.dh-footer, .dh-footer p, .dh-footer li { color: var(--d-muted); }
.dh-footer h4 { margin: 0 0 18px; font-size: 1.05rem; font-weight: 600; color: var(--d-ink); }
.dh-footer ul.df-links { list-style: none; margin: 0; padding: 0; }
.dh-footer ul.df-links li { margin: 0; padding: 0; }
.dh-footer ul.df-links a { display: inline-block; padding: 0.6em 0; font-size: 1.05rem; color: var(--d-soft); transition: color 200ms; }
.dh-footer ul.df-links a:hover { color: var(--d-ink); }
.dh-footer .img { margin-inline: auto; margin-bottom: 10px; }
.dh-footer .df-note { max-inline-size: 36ch; margin: 0 auto; color: var(--d-soft); font-size: 0.9rem; line-height: 2; }
.dh-footer-social { border-top: 1px solid var(--d-line); margin-top: 24px; padding-top: 28px; }
.dh-footer .df-social-title { margin: 0 0 16px; text-align: center; color: var(--d-teal); font-weight: 500; font-size: 1.05rem; }
.dh-footer .social-icons a.icon, .dh-footer .social-icons .button.icon { border-color: var(--d-teal) !important; color: var(--d-teal) !important; background: transparent !important; }
.dh-footer .social-icons a.icon:hover { background: var(--d-teal) !important; color: var(--d-sand) !important; }
.dh-footer .social-icons { justify-content: center; }
.dh-footer .social-icons a.icon, .dh-footer .social-icons .button.icon { border-radius: 50% !important; width: 50px; height: 50px; display: inline-grid; place-items: center; margin: 0 7px; }
.dh-footer .social-icons i { font-size: 1.2rem; }
/* UX title adds hairlines either side; the footer headings are plain. */
.dh-footer .section-title b, .dh-footer .section-title-main::before, .dh-footer .section-title-main::after { display: none !important; }
.dh-footer .section-title { justify-content: center; border: 0; margin-bottom: 8px; }
.dh-footer .section-title-main { border: 0 !important; }
.dh-footer { padding-bottom: 8px; }

.footer-2 { border-top: 1px solid var(--d-line); margin-inline: auto; max-width: 1080px; padding: 8px 0 12px; }
.footer-2 .widget { margin: 0; }
.df-social { display: grid; justify-items: center; gap: 18px; padding-block: 28px 12px; }
.footer-wrapper .df-social p { margin: 0; color: var(--d-teal); font-weight: 500; font-size: 1.05rem; }
.df-social ul { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.df-social li { margin: 0; padding: 0; border: 0; }
.footer-wrapper .df-social a, .df-social a { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--d-teal); border-radius: 50%; color: var(--d-teal); transition: background 200ms, color 200ms; }
.df-social a:hover { background: var(--d-teal); color: var(--d-sand); }
.df-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.absolute-footer { text-align: center; border: 0; font-size: 0.85rem; color: var(--d-soft); padding: 12px 0 28px; }
.absolute-footer .footer-primary, .absolute-footer .copyright-footer { float: none; display: block; width: 100%; text-align: center; }
.absolute-footer .footer-secondary { display: none; }
.back-to-top { background: var(--d-ink) !important; color: var(--d-paper) !important; border-radius: 0 !important; }

@media (max-width: 549px) {
	.footer-1 .col { padding-inline: 12px; }
	.df-social a { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
