/* ==========================================================================
   Digisam Tech — main stylesheet (RTL-first, logical properties)
   ========================================================================== */

:root {
	--ds-primary: #ef394e;
	--ds-primary-dark: #c8213a;
	--ds-accent: #ffc400;
	--ds-dark: #0f1117;
	--ds-container: 1320px;
	--ds-shop-cols: 4;
	--ds-bg: #f0f0f1;
	--ds-card: #fff;
	--ds-text: #23254e;
	--ds-text-soft: #3f4064;
	--ds-muted: #81858b;
	--ds-border: #e0e0e2;
	--ds-success: #00a049;
	--ds-radius: 14px;
	--ds-radius-sm: 10px;
	--ds-shadow: 0 2px 12px rgba(35, 37, 78, .07);
	--ds-shadow-lg: 0 12px 40px rgba(15, 17, 23, .18);
	--ds-font: "Vazirmatn", "Vazirmatn FD", Tahoma, "Segoe UI", system-ui, sans-serif;
	--ds-header-h: 76px;
	--ds-bn-h: 0px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body {
	margin: 0;
	background: var(--ds-bg);
	color: var(--ds-text);
	font-family: var(--ds-font);
	font-size: .9375rem;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.ds-fa-digits { font-family: "Vazirmatn FD", "Vazirmatn", Tahoma, system-ui, sans-serif; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--ds-primary); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.5; font-weight: 800; color: var(--ds-text); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; padding: 12px 20px; background: #fff; color: var(--ds-primary);
	z-index: 100000; inset-block-start: 8px; inset-inline-start: 8px; border-radius: 8px; box-shadow: var(--ds-shadow-lg);
}

.ds-container { width: 100%; max-width: var(--ds-container); margin-inline: auto; padding-inline: 16px; }
.ds-muted { color: var(--ds-muted); font-size: .85em; }
.ds-i { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.ds-btn, .wp-block-button__link, .button, button.button, input[type="submit"].button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 22px; border-radius: var(--ds-radius-sm); border: 1px solid transparent;
	font-weight: 700; font-size: .9375rem; line-height: 1.6; cursor: pointer; text-align: center;
	background: var(--ds-primary); color: #fff; transition: background .15s, transform .1s, box-shadow .15s, color .15s;
}
.ds-btn:hover, .wp-block-button__link:hover, .button:hover, button.button:hover { background: var(--ds-primary-dark); color: #fff; }
.ds-btn:active { transform: translateY(1px); }
.ds-btn-ghost { background: #fff; color: var(--ds-text); border-color: var(--ds-border); }
.ds-btn-ghost:hover { background: #fff; color: var(--ds-primary); border-color: var(--ds-primary); }
.ds-btn-lg { padding: 14px 34px; font-size: 1rem; }
.ds-btn[disabled], .button[disabled], .button.disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], select, textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-sm);
	background: #fff; color: var(--ds-text); line-height: 1.6; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ds-primary); box-shadow: 0 0 0 3px rgba(239, 57, 78, .15); }
::placeholder { color: #a9acb2; }
label { font-weight: 600; font-size: .875rem; }
.ds-hp { position: absolute; inset-inline-start: -9999px; }
.ds-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ds-contact-form p { margin-bottom: 14px; }
.ds-contact-form label { display: block; margin-bottom: 4px; }

.ds-notice { padding: 12px 16px; border-radius: var(--ds-radius-sm); background: #eef1ff; border: 1px solid #d6dcff; margin-bottom: 16px; }
.ds-notice.is-success { background: #edfaef; border-color: #bfe8c8; color: #116329; }
.ds-notice.is-error { background: #fff0f1; border-color: #ffc9ce; color: #a5192b; }

/* ==========================================================================
   Black Friday strip & topbar
   ========================================================================== */
.ds-bf-strip {
	background: linear-gradient(90deg, #0f1117, #2a0a12 40%, #ef394e 140%);
	color: #fff; font-size: .8125rem; position: relative; z-index: 60;
}
.ds-bf-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 8px; flex-wrap: wrap; }
.ds-bf-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--ds-accent); color: #1a1300; font-weight: 800; padding: 2px 12px; border-radius: 999px; }
.ds-bf-text { font-weight: 600; }
.ds-bf-cta { background: #fff; color: var(--ds-primary-dark); font-weight: 800; padding: 3px 14px; border-radius: 999px; }
.ds-bf-cta:hover { background: var(--ds-accent); color: #1a1300; }
.ds-bf-close { position: absolute; inset-inline-end: 10px; inset-block-start: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; opacity: .7; padding: 6px; display: flex; }
.ds-bf-close:hover { opacity: 1; }

.ds-topbar { background: #fff; border-bottom: 1px solid var(--ds-border); font-size: .78rem; color: var(--ds-muted); }
.ds-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.ds-topbar-list { list-style: none; display: flex; gap: 18px; }
.ds-topbar-list a:hover { color: var(--ds-primary); }

/* ==========================================================================
   Countdown
   ========================================================================== */
.ds-countdown { display: inline-flex; align-items: center; gap: 3px; direction: rtl; font-variant-numeric: tabular-nums; }
.ds-countdown i { font-style: normal; font-weight: 800; opacity: .7; }
.ds-cd-unit { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.ds-cd-unit b { font-weight: 800; }
.ds-cd-unit small { font-size: .62em; opacity: .75; font-weight: 500; }
.ds-countdown.is-expired { font-weight: 700; }

.ds-countdown.is-strip .ds-cd-unit { background: rgba(255, 255, 255, .14); padding: 1px 7px; border-radius: 6px; min-width: 40px; flex-direction: row; gap: 4px; }
.ds-countdown.is-strip .ds-cd-unit small { font-size: .65rem; }
.ds-countdown.is-strip i { display: none; }
.ds-countdown.is-strip { gap: 4px; }

.ds-countdown.is-amazing .ds-cd-unit { background: #fff; color: var(--ds-primary-dark); border-radius: 8px; min-width: 44px; padding: 3px 6px; }
.ds-countdown.is-amazing .ds-cd-unit b { font-size: 1.05rem; }
.ds-countdown.is-amazing i { color: #fff; }

.ds-countdown.is-hero { gap: 10px; }
.ds-countdown.is-hero .ds-cd-unit { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px); min-width: 74px; padding: 10px 8px; border-radius: 14px; }
.ds-countdown.is-hero .ds-cd-unit b { font-size: 2rem; color: var(--ds-accent); }
.ds-countdown.is-hero .ds-cd-unit small { font-size: .78rem; }
.ds-countdown.is-hero i { display: none; }

.ds-countdown.is-card, .ds-countdown.is-small { font-size: .78rem; gap: 2px; color: var(--ds-primary-dark); font-weight: 700; }
.ds-countdown.is-card .ds-cd-unit, .ds-countdown.is-small .ds-cd-unit { flex-direction: row; }
.ds-countdown.is-card small, .ds-countdown.is-small small { display: none; }
.ds-countdown.is-card { margin-bottom: 4px; }

/* ==========================================================================
   Header
   ========================================================================== */
.ds-header { background: #fff; z-index: 55; box-shadow: 0 1px 0 var(--ds-border); }
.has-sticky-header .ds-header { position: sticky; inset-block-start: 0; }
.admin-bar.has-sticky-header .ds-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .ds-header { inset-block-start: 46px; } }
.ds-header.is-stuck { box-shadow: 0 4px 20px rgba(15, 17, 23, .09); }

.ds-header-main { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: center; gap: 20px; min-height: var(--ds-header-h); }
.ds-burger { display: none; background: none; border: 0; padding: 6px; color: var(--ds-text); border-radius: 8px; }

.ds-logo { display: inline-flex; align-items: center; }
.ds-logo-img { max-height: 48px; width: auto; }
.ds-logo-text { display: inline-flex; align-items: baseline; font-size: 1.65rem; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.ds-logo-a { color: var(--ds-text); }
.ds-logo-b { color: var(--ds-primary); }
.ds-logo-tag { margin-inline-start: 6px; background: var(--ds-dark); color: var(--ds-accent); font-size: .72rem; padding: 3px 8px; border-radius: 6px; line-height: 1.3; font-weight: 800; transform: translateY(-3px); }

.ds-search { position: relative; }
.ds-search input[type="search"] {
	background: var(--ds-bg); border: 1px solid transparent; border-radius: 12px; padding: 12px 46px 12px 16px; height: 46px; font-size: .9rem;
}
.ds-search input[type="search"]:focus { background: #fff; border-color: var(--ds-border); box-shadow: 0 0 0 3px rgba(239, 57, 78, .12); }
.ds-search-icon { position: absolute; inset-inline-start: 14px; inset-block-start: 50%; transform: translateY(-50%); color: var(--ds-muted); pointer-events: none; display: flex; }
.ds-search input[type="search"]::-webkit-search-cancel-button { appearance: none; }
.ds-search-results {
	position: absolute; inset-inline: 0; inset-block-start: calc(100% + 8px); background: #fff; border-radius: var(--ds-radius);
	box-shadow: var(--ds-shadow-lg); overflow: hidden; z-index: 70; max-height: 70vh; overflow-y: auto;
}
.ds-sr-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f2f2f4; }
.ds-sr-item:hover, .ds-sr-item.is-focus { background: #fafafb; }
.ds-sr-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.ds-sr-item strong { display: block; font-size: .85rem; line-height: 1.6; font-weight: 600; }
.ds-sr-item span { font-size: .8rem; color: var(--ds-primary-dark); font-weight: 700; }
.ds-sr-msg { padding: 16px; color: var(--ds-muted); text-align: center; font-size: .875rem; }
.ds-sr-all { display: block; padding: 12px; text-align: center; font-weight: 700; color: var(--ds-primary); background: #fafafb; }

.ds-actions { display: flex; align-items: center; gap: 6px; }
.ds-act { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; color: var(--ds-text); font-weight: 600; font-size: .85rem; position: relative; }
.ds-act:hover { background: var(--ds-bg); color: var(--ds-text); }
.ds-act-phone { border-inline-end: 1px solid var(--ds-border); border-radius: 0; padding-inline-end: 16px; margin-inline-end: 6px; }
.ds-act-phone span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 700; }
.ds-act-phone small { color: var(--ds-muted); font-weight: 500; font-size: .7rem; }
.ds-cart-count {
	position: absolute; inset-block-start: 0; inset-inline-start: 0; transform: translate(-30%, -10%);
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ds-primary); color: #fff;
	font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center;
}
[dir="rtl"] .ds-cart-count { transform: translate(30%, -10%); }
.ds-cart-count.is-empty { display: none; }

/* Nav row */
.ds-nav { border-block-start: 1px solid #f0f0f1; background: #fff; }
.ds-nav-inner { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.ds-cat-wrap { position: relative; }
.ds-cat-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 14px; font-weight: 800; color: var(--ds-text); border-radius: 10px; font-size: .9rem; }
.ds-cat-btn:hover, .ds-cat-btn[aria-expanded="true"] { color: var(--ds-primary); background: #fff3f4; }
.ds-nav-list { list-style: none; display: flex; align-items: center; gap: 2px; flex: 1; }
.ds-nav-list > li { position: relative; }
.ds-nav-list > li > a { display: block; padding: 10px 14px; font-weight: 600; font-size: .9rem; border-radius: 10px; }
.ds-nav-list > li > a:hover, .ds-nav-list > li.current-menu-item > a { color: var(--ds-primary); background: #fff3f4; }
.ds-nav-list .sub-menu { list-style: none; position: absolute; inset-inline-start: 0; inset-block-start: 100%; min-width: 210px; background: #fff; border-radius: 0 0 var(--ds-radius) var(--ds-radius); box-shadow: var(--ds-shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 40; }
.ds-nav-list li:hover > .sub-menu, .ds-nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ds-nav-list .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; }
.ds-nav-list .sub-menu a:hover { background: var(--ds-bg); }
.ds-nav-list .is-hot > a { color: var(--ds-primary); }
.ds-nav-bf {
	margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #fff;
	background: linear-gradient(90deg, var(--ds-dark), var(--ds-primary-dark)); padding: 7px 16px; border-radius: 999px; font-size: .85rem;
	animation: ds-pulse 2.2s infinite;
}
.ds-nav-bf:hover { color: #fff; filter: brightness(1.15); }
@keyframes ds-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 57, 78, .5); } 50% { box-shadow: 0 0 0 8px rgba(239, 57, 78, 0); } }

/* Mega menu */
.ds-mega {
	position: absolute; inset-block-start: calc(100% + 1px); inset-inline-start: 0; z-index: 80; width: min(940px, 92vw); min-height: 360px;
	display: flex; background: #fff; border-radius: 0 0 var(--ds-radius) var(--ds-radius); box-shadow: var(--ds-shadow-lg); overflow: hidden;
}
.ds-mega-parents { list-style: none; width: 240px; background: #fafafb; padding: 8px 0; border-inline-end: 1px solid #f0f0f1; flex: none; max-height: 70vh; overflow-y: auto; }
.ds-mega-parents a { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; font-weight: 600; font-size: .9rem; }
.ds-mega-parents li.is-active > a, .ds-mega-parents a:hover { background: #fff; color: var(--ds-primary); }
.ds-mega-panels { flex: 1; padding: 20px 26px; max-height: 70vh; overflow-y: auto; }
.ds-mega-panel { display: none; }
.ds-mega-panel.is-active { display: block; }
.ds-mega-all { display: inline-flex; align-items: center; gap: 4px; color: var(--ds-primary); font-weight: 700; margin-bottom: 14px; font-size: .85rem; }
.ds-mega-cols { columns: 3 190px; column-gap: 24px; }
.ds-mega-col { break-inside: avoid; margin-bottom: 18px; }
.ds-mega-h { display: block; font-weight: 800; padding-inline-start: 10px; border-inline-start: 3px solid var(--ds-primary); margin-bottom: 6px; line-height: 1.4; }
.ds-mega-col ul { list-style: none; }
.ds-mega-col li a { display: block; padding: 3px 13px; color: var(--ds-text-soft); font-size: .86rem; }
.ds-mega-col li a:hover { color: var(--ds-primary); }

/* Mini-cart dropdown */
.ds-cart-wrap { position: relative; }
.ds-minicart {
	position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 10px); width: 380px; max-width: 92vw; background: #fff; border-radius: var(--ds-radius);
	box-shadow: var(--ds-shadow-lg); padding: 16px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; z-index: 80;
}
@media (min-width: 993px) { .ds-cart-wrap:hover .ds-minicart, .ds-cart-wrap:focus-within .ds-minicart { opacity: 1; visibility: visible; transform: none; } }
.ds-cart-wrap::after { content: ""; position: absolute; inset-inline: -10px; inset-block-start: 100%; height: 14px; }

/* ---------- Mobile drawer ---------- */
.ds-drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 17, 23, .55); z-index: 998; opacity: 0; transition: opacity .2s; }
.ds-drawer-backdrop.is-open { opacity: 1; }
.ds-drawer { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(340px, 86vw); background: #fff; z-index: 999; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
[dir="rtl"] .ds-drawer { transform: translateX(100%); }
[dir="ltr"] .ds-drawer { transform: translateX(-100%); }
.ds-drawer.is-open { transform: none !important; visibility: visible; }
.ds-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--ds-border); }
.ds-drawer-close { background: none; border: 0; display: flex; padding: 6px; color: var(--ds-text); }
.ds-drawer-body { overflow-y: auto; padding: 8px 0 30px; flex: 1; }
.ds-drawer-title { font-size: .8rem; color: var(--ds-muted); font-weight: 700; padding: 14px 18px 6px; margin: 0; }
.ds-drawer-bf { display: flex; align-items: center; gap: 8px; margin: 10px 16px; padding: 12px 16px; border-radius: 12px; font-weight: 800; color: #fff; background: linear-gradient(90deg, var(--ds-dark), var(--ds-primary-dark)); }
.ds-drawer-list { list-style: none; }
.ds-drawer-list a { display: block; padding: 11px 18px; font-weight: 600; }
.ds-acc { list-style: none; }
.ds-acc > li { border-bottom: 1px solid #f4f4f5; }
.ds-acc-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 12px 18px; font-weight: 700; color: var(--ds-text); text-align: start; }
.ds-acc-toggle[aria-expanded="true"] { color: var(--ds-primary); }
.ds-acc-toggle[aria-expanded="true"] .ds-i { transform: rotate(180deg); }
.ds-acc-link { display: block; padding: 12px 18px; font-weight: 700; }
.ds-acc-sub { list-style: none; background: #fafafb; padding: 4px 0; }
.ds-acc-sub a { display: block; padding: 8px 32px; font-size: .9rem; color: var(--ds-text-soft); }
.ds-social { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ds-bg); color: var(--ds-text); }
.ds-social a:hover { background: var(--ds-primary); color: #fff; }
.ds-social.is-drawer { padding: 14px 18px; }

/* ==========================================================================
   Home
   ========================================================================== */
.ds-home > section { margin-block: 20px; }
.ds-home > section:first-child { margin-block-start: 16px; }

/* Hero */
.ds-hero { display: grid; gap: 14px; }
.ds-hero.has-side { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.ds-slider { position: relative; border-radius: var(--ds-radius); overflow: hidden; aspect-ratio: 2.5 / 1; background: #ddd; isolation: isolate; }
.ds-hero.has-side .ds-slider { aspect-ratio: auto; min-height: 100%; }
.ds-hero.has-side .ds-slides { aspect-ratio: 2.1 / 1; }
.ds-slides { position: relative; width: 100%; height: 100%; }
.ds-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ds-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ds-slide img { width: 100%; height: 100%; object-fit: cover; }
.ds-slide picture { display: block; width: 100%; height: 100%; }
.ds-slide-card {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
	padding: clamp(20px, 5vw, 70px); color: #fff; background: linear-gradient(120deg, var(--b1, #0f1117), var(--b2, #ef394e)); overflow: hidden;
}
.ds-slide-card.is-overlay { background: linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 65%); }
.ds-slide-card strong { font-size: clamp(1.15rem, 2.8vw, 2.4rem); font-weight: 800; line-height: 1.45; max-width: 18em; position: relative; z-index: 1; }
.ds-slide-card em { font-style: normal; font-size: clamp(.85rem, 1.5vw, 1.15rem); opacity: .9; position: relative; z-index: 1; }
.ds-slide-btn { display: inline-block; margin-top: 6px; background: #fff; color: var(--b2, #ef394e); font-weight: 800; padding: 8px 24px; border-radius: 999px; position: relative; z-index: 1; font-size: .9rem; }
.is-overlay .ds-slide-btn { color: var(--ds-primary-dark); }
.ds-slide-deco::before, .ds-slide-deco::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.ds-slide-deco::before { width: 46%; aspect-ratio: 1; inset-inline-end: -8%; inset-block-start: -30%; }
.ds-slide-deco::after { width: 30%; aspect-ratio: 1; inset-inline-end: 12%; inset-block-end: -28%; background: rgba(255, 255, 255, .07); }
.ds-slider-btn { position: absolute; inset-block-start: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ds-text); display: flex; align-items: center; justify-content: center; box-shadow: var(--ds-shadow); opacity: 0; transition: .2s; }
.ds-slider:hover .ds-slider-btn, .ds-slider-btn:focus-visible { opacity: 1; }
.ds-slider-btn.is-prev { inset-inline-start: 14px; }
.ds-slider-btn.is-next { inset-inline-end: 14px; }
.ds-dots { position: absolute; inset-inline: 0; inset-block-end: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.ds-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); transition: .25s; }
.ds-dots button.is-active { width: 26px; background: #fff; }
.ds-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }

/* Banners */
.ds-banner { position: relative; display: block; border-radius: var(--ds-radius); overflow: hidden; background: linear-gradient(120deg, var(--b1, #333), var(--b2, #666)); color: #fff; min-height: 110px; isolation: isolate; transition: transform .2s, box-shadow .2s; }
.ds-banner:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow-lg); color: #fff; }
.ds-banner img { width: 100%; height: 100%; object-fit: cover; }
.ds-banner.has-img { background: #ddd; }
.ds-banner-txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; height: 100%; justify-content: center; }
.ds-banner-txt strong { font-size: 1.15rem; font-weight: 800; line-height: 1.5; }
.ds-banner-txt em { font-style: normal; font-size: .85rem; opacity: .9; }
.ds-banner-deco::before { content: ""; position: absolute; inset-inline-end: -24px; inset-block-end: -34px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .13); z-index: 1; }
.ds-banner-deco::after { content: ""; position: absolute; inset-inline-end: 40px; inset-block-start: -30px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .09); z-index: 1; }
.ds-banners { display: grid; gap: 14px; }
.ds-banners-4 { grid-template-columns: repeat(4, 1fr); }
.ds-banners-4 .ds-banner { aspect-ratio: 1.9 / 1; }
.ds-banners-2 { grid-template-columns: repeat(2, 1fr); }
.ds-banners-2 .ds-banner { aspect-ratio: 3.6 / 1; }
.ds-banners-2 .ds-banner-txt strong { font-size: 1.5rem; }
.ds-hero-side .ds-banner { min-height: 0; height: 100%; }

/* Category circles */
.ds-cats-list { list-style: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 8px; background: #fff; border-radius: var(--ds-radius); justify-content: flex-start; scroll-snap-type: x proximity; }
.ds-cats-list::-webkit-scrollbar { display: none; }
.ds-cats-list li { flex: 0 0 auto; width: 104px; scroll-snap-align: start; }
.ds-cats-list a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .8rem; font-weight: 700; line-height: 1.5; padding: 4px; }
.ds-cat-circle { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cc, #ef394e) 12%, #fff); color: var(--cc, #ef394e); font-size: 1.6rem; font-weight: 800; overflow: hidden; transition: transform .2s; }
.ds-cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.ds-cats-list a:hover .ds-cat-circle { transform: scale(1.08); }

/* Section heads */
.ds-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ds-sec-title { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.ds-sec-title::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--ds-primary); }
.ds-sec-link { display: inline-flex; align-items: center; gap: 2px; color: var(--ds-primary); font-weight: 700; font-size: .875rem; margin-inline-start: auto; }

/* Rails */
.ds-rail-box { background: #fff; border-radius: var(--ds-radius); padding: 18px 16px 16px; }
.ds-rail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.ds-rail-head .ds-sec-title { flex: none; }
.ds-rail.is-amazing .ds-rail-box { background: linear-gradient(120deg, var(--ds-primary-dark), var(--ds-primary) 55%, #ff7a45); color: #fff; padding-block: 16px; }
.ds-rail-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.ds-rail-brand h2 { color: #fff; margin: 0; font-size: 1.45rem; }
.ds-rail-brand .ds-i { color: var(--ds-accent); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.ds-body-bf .ds-rail.is-amazing .ds-rail-box { background: linear-gradient(120deg, #0f1117, #4a0f1c 55%, var(--ds-primary)); }
.ds-bf .ds-rail.is-amazing .ds-rail-box { background: linear-gradient(120deg, #0f1117, #43101c 55%, var(--ds-primary-dark)); }
.ds-rail.is-amazing .ds-sec-link { color: #fff; }
.ds-rail-wrap { position: relative; }
.ds-rail-track { list-style: none; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; margin: 0 !important; }
.ds-rail-track::-webkit-scrollbar { display: none; }
.ds-rail-track > li.ds-card { flex: 0 0 calc((100% - 5 * 12px) / 6); min-width: 160px; scroll-snap-align: start; }
.ds-rail-btn { position: absolute; inset-block-start: 42%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ds-border); background: #fff; color: var(--ds-text); display: flex; align-items: center; justify-content: center; box-shadow: var(--ds-shadow); }
.ds-rail-btn:hover { color: var(--ds-primary); }
.ds-rail-btn.is-prev { inset-inline-end: -12px; }
.ds-rail-btn.is-next { inset-inline-start: -12px; }
.ds-rail-btn[disabled] { opacity: 0; pointer-events: none; }

/* Brands */
.ds-brands { background: #fff; border-radius: var(--ds-radius); padding: 18px 16px; }
.ds-brands-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ds-brand { display: flex; align-items: center; justify-content: center; height: 76px; padding: 10px; border: 1px solid #eeeef0; border-radius: 12px; transition: .2s; font-weight: 800; color: var(--ds-text-soft); text-align: center; }
.ds-brand:hover { border-color: var(--ds-primary); box-shadow: var(--ds-shadow); color: var(--ds-primary); }
.ds-brand img { max-height: 50px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.ds-brand:hover img { filter: none; opacity: 1; }

/* Features */
.ds-features ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ds-features li { background: #fff; border-radius: var(--ds-radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.ds-feat-ico { width: 56px; height: 56px; border-radius: 16px; background: #fff3f4; color: var(--ds-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.ds-features h3 { font-size: .98rem; margin: 0 0 2px; }
.ds-features p { margin: 0; font-size: .8rem; color: var(--ds-muted); line-height: 1.7; }

/* SEO text */
.ds-seo-box { background: #fff; border-radius: var(--ds-radius); padding: 24px 28px; }
.ds-seo-box h2 { font-size: 1.1rem; }
.ds-seo-content { color: var(--ds-text-soft); font-size: .9rem; max-height: 210px; overflow: hidden; position: relative; }
.ds-seo-content.is-open { max-height: none; }
.ds-seo-content:not(.is-open)::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 70px; background: linear-gradient(transparent, #fff); }
.ds-seo-more { background: none; border: 0; color: var(--ds-primary); font-weight: 700; padding: 8px 0 0; }

/* ==========================================================================
   Product card
   ========================================================================== */
.ds-card { list-style: none; position: relative; }
.ds-card-inner { background: #fff; border-radius: var(--ds-radius); border: 1px solid #efeff1; height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.ds-card:hover .ds-card-inner { box-shadow: var(--ds-shadow-lg); border-color: transparent; transform: translateY(-3px); z-index: 2; }
.ds-card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 10px; overflow: hidden; }
.ds-card-img { position: absolute; inset: 10px; width: calc(100% - 20px) !important; height: calc(100% - 20px) !important; object-fit: contain; transition: opacity .3s, transform .35s; margin: 0 !important; }
.ds-hover-img { opacity: 0; }
.ds-card:hover .ds-hover-img { opacity: 1; }
.ds-card:hover .ds-card-img:only-of-type, .ds-card:hover .ds-card-media > .ds-card-img:first-child:last-of-type { transform: scale(1.05); }
.ds-flag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 3; font-size: .68rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; line-height: 1.7; }
.ds-flag-oos { background: #e6e6e9; color: #52555b; }
.ds-flag-bf { background: var(--ds-dark); color: var(--ds-accent); }
.ds-flag-hot { background: #fff3cd; color: #8a6100; }
.ds-card.is-oos .ds-card-img { filter: grayscale(1); opacity: .6; }
.ds-card-body { padding: 4px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.ds-card-title { font-size: .86rem; font-weight: 600; line-height: 1.85; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.7em; color: var(--ds-text-soft); }
.ds-card-title a:hover { color: var(--ds-primary); }
.ds-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--ds-muted); min-height: 20px; }
.ds-rate { display: inline-flex; align-items: center; gap: 3px; }
.ds-rate .ds-i { color: #fbbc05; fill: #fbbc05; }
.ds-rate b { color: var(--ds-text-soft); }
.ds-fast { display: inline-flex; align-items: center; gap: 2px; color: var(--ds-success); font-weight: 600; }
.ds-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.ds-card-price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.ds-card-price .price { display: flex; flex-direction: column; line-height: 1.5; }
.ds-card-price .price del { order: -1; color: var(--ds-muted); font-size: .76rem; }
.ds-card-price .price ins { text-decoration: none; font-weight: 800; font-size: .98rem; color: var(--ds-text); background: none; }
.ds-card-price .price > .woocommerce-Price-amount, .ds-card-price .price > span:only-child { font-weight: 800; font-size: .98rem; }
.ds-card-price .price .woocommerce-Price-currencySymbol { font-size: .72em; font-weight: 500; margin-inline-start: 2px; }
.ds-card-price .price .screen-reader-text { display: none; }
.ds-pct { display: inline-block; background: var(--ds-primary); color: #fff; font-size: .74rem; font-weight: 800; padding: 0 8px; border-radius: 999px; line-height: 1.7; align-self: flex-start; }
.ds-card-price .ds-pct { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3; }
.ds-card-price { position: static; }

.ds-atc, .woocommerce a.ds-atc, .ds-card .button.ds-atc { width: 40px; height: 40px; padding: 0; border-radius: 12px; background: #fff3f4; color: var(--ds-primary); flex: none; border: 0; }
.ds-atc:hover { background: var(--ds-primary); color: #fff; }
.ds-atc .ds-atc-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ds-atc.loading { opacity: .6; pointer-events: none; animation: ds-spin 1s linear infinite; }
.ds-atc.added { background: var(--ds-success); color: #fff; }
.ds-card .added_to_cart { display: none; }
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Pages / posts
   ========================================================================== */
.ds-page-wrap { padding-block: 16px 40px; }
.ds-page-head { margin: 8px 0 18px; }
.ds-page-title { font-size: 1.6rem; margin: 0; }
.ds-page-desc { color: var(--ds-muted); margin-top: 6px; }
.ds-layout { display: block; }
.ds-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ds-layout.has-sidebar:not(:has(.ds-sidebar)) { grid-template-columns: minmax(0, 1fr); }

.ds-breadcrumb { margin: 8px 0 12px; font-size: .8rem; color: var(--ds-muted); }
.ds-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ds-breadcrumb li + li::before { content: "‹"; margin-inline-end: 6px; opacity: .6; }
[dir="ltr"] .ds-breadcrumb li + li::before { content: "›"; }
.ds-breadcrumb a:hover { color: var(--ds-primary); }
.ds-breadcrumb li[aria-current] { color: var(--ds-text-soft); }

.ds-prose { background: #fff; border-radius: var(--ds-radius); padding: 24px 28px; font-size: 1rem; line-height: 2; }
.ds-prose.is-wide { max-width: none; }
.ds-prose.is-full { background: none; padding: 0; border-radius: 0; }
.ds-prose h2 { font-size: 1.35rem; margin-top: 1.4em; }
.ds-prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.ds-prose a:not(.wp-block-button__link):not(.button) { color: var(--ds-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.ds-prose img { border-radius: 10px; }
.ds-prose ul, .ds-prose ol { padding-inline-start: 1.5em; margin-bottom: 1em; }
.ds-prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-inline-start: 4px solid var(--ds-primary); background: #fff6f7; border-radius: 0 10px 10px 0; }
.ds-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.ds-prose th, .ds-prose td { border: 1px solid var(--ds-border); padding: 8px 12px; }
.ds-prose th { background: #fafafb; }
.ds-prose .alignwide, .ds-fullwidth .alignwide { max-width: var(--ds-container); }
.ds-prose.is-full > .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.ds-fullwidth .entry-content > *:not(.alignfull):not(.alignwide) { max-width: 860px; margin-inline: auto; padding-inline: 16px; }
.ds-fullwidth .entry-content > .alignwide { max-width: var(--ds-container); margin-inline: auto; padding-inline: 16px; }
.ds-fullwidth .entry-content > .alignfull { width: 100%; max-width: none; }
.ds-fullwidth .entry-content > *:first-child { margin-block-start: 0; }
.ds-blocks-home > .alignfull { width: 100%; max-width: none; }
.ds-blocks-home > *:not(.alignfull) { max-width: var(--ds-container); margin-inline: auto; padding-inline: 16px; }
.alignleft { float: left; margin-inline-end: 1em; }
.alignright { float: right; margin-inline-start: 1em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--ds-muted); text-align: center; }
.wp-block-details { border: 1px solid var(--ds-border); border-radius: 12px; padding: 12px 18px; margin-bottom: 10px; background: #fff; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }

/* Post cards */
.ds-post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ds-post-grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.ds-post-grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.ds-post-card { background: #fff; border-radius: var(--ds-radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.ds-post-card:hover { box-shadow: var(--ds-shadow-lg); transform: translateY(-3px); }
.ds-post-thumb { display: block; aspect-ratio: 16 / 10; background: #f4f4f6; overflow: hidden; }
.ds-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ds-post-card:hover .ds-post-thumb img { transform: scale(1.05); }
.ds-thumb-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #c5c6cc; background: linear-gradient(135deg, #f7f7f9, #ececf1); }
.ds-post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ds-post-cat { align-self: flex-start; font-size: .72rem; font-weight: 800; color: var(--ds-primary); background: #fff3f4; padding: 1px 10px; border-radius: 999px; }
.ds-post-title { font-size: 1rem; margin: 0; line-height: 1.8; }
.ds-post-excerpt { font-size: .82rem; color: var(--ds-muted); margin: 0; line-height: 1.8; }
.ds-post-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; font-size: .74rem; color: var(--ds-muted); border-top: 1px dashed #ececf0; }

.ds-article { background: #fff; border-radius: var(--ds-radius); padding: 24px 28px; }
.ds-article-title { font-size: 1.7rem; margin: 10px 0 10px; }
.ds-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--ds-muted); margin-bottom: 16px; }
.ds-meta li { display: inline-flex; align-items: center; gap: 4px; }
.ds-article-thumb { margin: 0 0 20px; border-radius: var(--ds-radius); overflow: hidden; }
.ds-article-thumb img { width: 100%; }
.ds-article .ds-prose { padding: 0; }
.ds-article-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ds-border); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.ds-tags span { font-weight: 700; }
.ds-tags a { display: inline-block; background: var(--ds-bg); border-radius: 999px; padding: 0 12px; margin: 2px; font-size: .8rem; }
.ds-tags a:hover { background: var(--ds-primary); color: #fff; }
.ds-share { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ds-muted); }
.ds-share a, .ds-share button { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ds-bg); border: 0; color: var(--ds-text); }
.ds-share a:hover, .ds-share button:hover { background: var(--ds-primary); color: #fff; }
.ds-related-posts { margin-top: 28px; }
.ds-related-posts .ds-sec-title { margin-bottom: 14px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.post-navigation a { display: block; background: #fff; border-radius: var(--ds-radius); padding: 14px 18px; font-weight: 700; font-size: .9rem; }
.post-navigation a span { display: block; font-size: .75rem; color: var(--ds-muted); font-weight: 500; }
.post-navigation .nav-next { text-align: end; }

.ds-sidebar .widget { background: #fff; border-radius: var(--ds-radius); padding: 18px 20px; margin-bottom: 16px; }
.widget-title { font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ds-bg); position: relative; }
.widget-title::after { content: ""; position: absolute; inset-block-end: -2px; inset-inline-start: 0; width: 46px; height: 2px; background: var(--ds-primary); }
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px dashed #efeff1; }
.widget li:last-child { border: 0; }
.widget li a:hover { color: var(--ds-primary); }

/* Pagination */
.ds-pagination, .woocommerce-pagination { margin: 28px 0 8px; }
.ds-pagination ul, .woocommerce-pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; background: #fff; font-weight: 700; border: 1px solid transparent; }
a.page-numbers:hover { border-color: var(--ds-primary); color: var(--ds-primary); }
.page-numbers.current { background: var(--ds-primary); color: #fff; }

/* Comments */
.ds-comments { background: #fff; border-radius: var(--ds-radius); padding: 24px 28px; margin-top: 20px; }
.ds-comment-list { list-style: none; }
.ds-comment-list .comment { padding: 14px 0; border-bottom: 1px solid #f0f0f2; }
.ds-comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-author .avatar { float: inline-start; margin-inline-end: 12px; border-radius: 50%; }
.comment-meta { font-size: .78rem; color: var(--ds-muted); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent input { width: auto; }

/* Empty / 404 / search form */
.ds-empty { text-align: center; background: #fff; border-radius: var(--ds-radius); padding: 50px 20px; }
.ds-empty-ico { color: #c5c6cc; margin-bottom: 8px; display: flex; justify-content: center; }
.ds-searchform { display: flex; gap: 8px; max-width: 520px; margin: 18px auto 0; }
.ds-404 { text-align: center; padding-block: 60px; }
.ds-404-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; color: var(--ds-primary); line-height: 1; opacity: .9; }
.ds-404-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.ds-404-cats ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ds-404-cats a { display: inline-block; background: #fff; padding: 4px 16px; border-radius: 999px; }
.ds-404-cats a:hover { background: var(--ds-primary); color: #fff; }

/* Contact page */
.ds-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 16px; align-items: start; }
.ds-contact-info, .ds-contact-form { background: #fff; border-radius: var(--ds-radius); padding: 24px 28px; }
.ds-contact-info h2, .ds-contact-form h2 { font-size: 1.15rem; }
.ds-contact-list { list-style: none; margin-bottom: 14px; }
.ds-contact-list li { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.ds-contact-list li .ds-i { color: var(--ds-primary); margin-top: 4px; }
.ds-contact-list small { display: block; color: var(--ds-muted); line-height: 1.4; }
.ds-contact-intro { margin-bottom: 0; }

/* FAQ */
.ds-faq { display: grid; gap: 10px; margin-top: 14px; }
.ds-faq-item { background: #fff; border-radius: 12px; border: 1px solid #efeff1; overflow: hidden; }
.ds-faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-faq-item summary::-webkit-details-marker { display: none; }
.ds-faq-item[open] summary { color: var(--ds-primary); }
.ds-faq-item[open] summary .ds-i { transform: rotate(180deg); }
.ds-faq-a { padding: 0 20px 16px; color: var(--ds-text-soft); }

/* All categories */
.ds-allcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.ds-allcats-item { background: #fff; border-radius: var(--ds-radius); padding: 18px 20px; }
.ds-allcats-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ds-allcats-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.ds-allcats-head h2 { margin: 0; font-size: 1.05rem; }
.ds-allcats-item ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ds-allcats-item li a { display: block; background: var(--ds-bg); padding: 2px 12px; border-radius: 999px; font-size: .82rem; }
.ds-allcats-item li a:hover { background: var(--ds-primary); color: #fff; }

/* ==========================================================================
   Black Friday landing
   ========================================================================== */
.ds-bf-hero { background: radial-gradient(ellipse at 20% 0%, #5b0f22 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #ef394e55 0%, transparent 50%), #0f1117; color: #fff; text-align: center; padding: clamp(36px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.ds-bf-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 18px); }
.ds-bf-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ds-bf-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--ds-accent); color: #1a1300; font-weight: 800; padding: 4px 18px; border-radius: 999px; }
.ds-bf-hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 4rem); margin: 6px 0 0; line-height: 1.3; text-shadow: 0 4px 30px rgba(239, 57, 78, .5); }
.ds-bf-hero p { opacity: .85; font-size: 1.05rem; margin: 0; max-width: 640px; }
.ds-bf-hero-timer { margin-top: 14px; }
.ds-bf-ended { color: var(--ds-accent); font-weight: 800; }
.ds-bf-content { margin-bottom: 16px; }
.ds-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px 12px; }
.ds-chips::-webkit-scrollbar { display: none; }
.ds-chip { flex: none; background: #fff; border-radius: 999px; padding: 4px 18px; font-weight: 700; font-size: .85rem; border: 1px solid transparent; }
.ds-chip:hover { border-color: var(--ds-primary); }
.ds-chip.is-active { background: var(--ds-dark); color: var(--ds-accent); }
.ds-sortbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: #fff; border-radius: var(--ds-radius); padding: 8px 16px; margin-bottom: 16px; font-size: .85rem; color: var(--ds-muted); }
.ds-sortbar a { padding: 2px 12px; border-radius: 999px; color: var(--ds-text-soft); font-weight: 600; }
.ds-sortbar a.is-active { background: #fff3f4; color: var(--ds-primary); font-weight: 800; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ds-footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--ds-border); }
.ds-footer-features { border-bottom: 1px solid var(--ds-border); background: #fafafb; }
.ds-footer-features ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.ds-footer-features li { display: flex; align-items: center; gap: 12px; color: var(--ds-primary); }
.ds-footer-features li div { display: flex; flex-direction: column; color: var(--ds-text); line-height: 1.6; }
.ds-footer-features strong { font-size: .92rem; }
.ds-footer-features span { font-size: .78rem; color: var(--ds-muted); }
.ds-footer-extra { padding-block: 20px 0; }
.ds-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 36px; }
.ds-footer-title { font-size: .98rem; margin: 14px 0 10px; font-weight: 800; }
.ds-footer-about .ds-footer-title { margin-top: 18px; }
.ds-footer-about p { font-size: .85rem; color: var(--ds-text-soft); line-height: 2; }
.ds-footer-list { list-style: none; }
.ds-footer-list li { padding: 4px 0; }
.ds-footer-list a { color: var(--ds-text-soft); font-size: .88rem; }
.ds-footer-list a:hover { color: var(--ds-primary); }
.ds-footer .ds-contact-list li { padding: 4px 0; font-size: .85rem; align-items: center; }
.ds-footer .ds-contact-list li .ds-i { margin: 0; }
.ds-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ds-badges a, .ds-badges img { max-width: 110px; }
.ds-badges > * { background: #fff; border: 1px solid var(--ds-border); border-radius: 12px; padding: 6px; }
.ds-footer-bottom { background: #fafafb; border-top: 1px solid var(--ds-border); font-size: .8rem; color: var(--ds-muted); }
.ds-footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; padding-block: 14px; flex-wrap: wrap; }
.ds-footer-bottom p { margin: 0; }

.ds-to-top { position: fixed; inset-block-end: calc(20px + var(--ds-bn-h)); inset-inline-end: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ds-primary); color: #fff; box-shadow: var(--ds-shadow-lg); display: flex; align-items: center; justify-content: center; transition: .2s; }
.ds-to-top:hover { background: var(--ds-primary-dark); transform: translateY(-3px); }

.ds-bottom-nav { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	.ds-rail-track > li.ds-card { flex-basis: calc((100% - 3 * 12px) / 4); }
	.ds-footer-grid { grid-template-columns: repeat(3, 1fr); }
	.ds-footer-about { grid-column: 1 / -1; }
	.ds-post-grid { grid-template-columns: repeat(3, 1fr); }
	.ds-act-phone { display: none; }
}

@media (max-width: 992px) {
	:root { --ds-header-h: 60px; }
	.ds-header-main { grid-template-columns: auto 1fr auto; gap: 10px; padding-block: 8px 10px; }
	.ds-burger { display: inline-flex; }
	.ds-search { grid-column: 1 / -1; grid-row: 2; }
	.ds-header-main { grid-template-rows: auto auto; }
	.ds-logo { justify-self: start; }
	.ds-logo-text { font-size: 1.4rem; }
	.ds-nav { display: none; }
	.ds-act-label { display: none; }
	.ds-act-user { display: none; }
	.ds-minicart { display: none; }
	.ds-hero.has-side { grid-template-columns: 1fr; }
	.ds-hero.has-side .ds-slides { aspect-ratio: 16 / 9; }
	.ds-hero.has-side .ds-slider { min-height: 0; }
	.ds-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.ds-hero-side .ds-banner { aspect-ratio: 2 / 1; }
	.ds-banners-4 { grid-template-columns: repeat(2, 1fr); }
	.ds-features ul { grid-template-columns: repeat(2, 1fr); }
	.ds-footer-features ul { grid-template-columns: repeat(2, 1fr); }
	.ds-layout.has-sidebar { grid-template-columns: 1fr; }
	.ds-contact { grid-template-columns: 1fr; }
	.ds-allcats { grid-template-columns: repeat(2, 1fr); }
	.ds-rail-btn { display: none; }
	.ds-slider-btn { opacity: 1; width: 34px; height: 34px; }
	.has-bottom-nav { --ds-bn-h: 62px; padding-bottom: var(--ds-bn-h); }
	.ds-bottom-nav {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 95; height: var(--ds-bn-h);
		background: #fff; border-top: 1px solid var(--ds-border); box-shadow: 0 -4px 20px rgba(15, 17, 23, .06); padding-bottom: env(safe-area-inset-bottom);
	}
	.ds-bottom-nav a, .ds-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--ds-muted); background: none; border: 0; position: relative; }
	.ds-bottom-nav .is-active { color: var(--ds-primary); }
	.ds-bottom-nav .ds-cart-count { inset-block-start: 6px; inset-inline-start: 50%; transform: translateX(-4px); }
	[dir="rtl"] .ds-bottom-nav .ds-cart-count { transform: translateX(4px); inset-inline-start: auto; inset-inline-end: 50%; }
	.ds-to-top { inset-block-end: calc(76px + var(--ds-bn-h) - 62px + 14px); }
}

@media (max-width: 768px) {
	body { font-size: .9rem; }
	.ds-container { padding-inline: 12px; }
	.ds-topbar-list { display: none; }
	.ds-topbar-inner { justify-content: center; text-align: center; }
	.ds-bf-inner { gap: 8px; padding-block: 6px; padding-inline-end: 28px; }
	.ds-bf-text { display: none; }
	.ds-rail-track > li.ds-card { flex-basis: 44%; min-width: 150px; }
	.ds-rail-box { padding: 14px 10px 12px; border-radius: 12px; }
	.ds-rail-brand h2 { font-size: 1.15rem; }
	.ds-rail-head { gap: 10px; }
	.ds-countdown.is-amazing .ds-cd-unit { min-width: 36px; }
	.ds-banners-2 { grid-template-columns: 1fr; }
	.ds-banners-2 .ds-banner { aspect-ratio: 3 / 1; }
	.ds-post-grid, .ds-post-grid.is-3 { grid-template-columns: repeat(2, 1fr); }
	.ds-post-grid.is-2 { grid-template-columns: 1fr; }
	.ds-page-title { font-size: 1.3rem; }
	.ds-article, .ds-prose, .ds-comments, .ds-contact-info, .ds-contact-form { padding: 18px 16px; }
	.ds-article-title { font-size: 1.3rem; }
	.ds-footer-grid { grid-template-columns: 1fr 1fr; padding-block: 24px; }
	.ds-footer-about, .ds-footer-trust { grid-column: 1 / -1; }
	.ds-form-row { grid-template-columns: 1fr; }
	.ds-countdown.is-hero .ds-cd-unit { min-width: 62px; }
	.ds-countdown.is-hero .ds-cd-unit b { font-size: 1.5rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.ds-sec-title { font-size: 1.05rem; }
	.ds-seo-box { padding: 18px 16px; }
}

@media (max-width: 520px) {
	.ds-features ul, .ds-footer-features ul { grid-template-columns: 1fr; }
	.ds-banners-4 { gap: 8px; }
	.ds-banner-txt { padding: 12px 14px; }
	.ds-banner-txt strong { font-size: .95rem; }
	.ds-allcats { grid-template-columns: 1fr; }
	.ds-post-grid, .ds-post-grid.is-3 { grid-template-columns: 1fr; }
	.ds-slide-btn { padding: 5px 16px; font-size: .78rem; }
}

@media print {
	.ds-header, .ds-footer, .ds-bottom-nav, .ds-bf-strip, .ds-topbar, .ds-to-top, .ds-sticky-atc { display: none !important; }
}

/* Mini-cart auto-open after add to cart (desktop) */
@media (min-width: 993px) {
	.ds-cart-wrap.is-open .ds-minicart { opacity: 1; visibility: visible; transform: none; }
}
.ds-copy-link.is-copied { background: var(--ds-success); color: #fff; }

/* ==========================================================================
   Digikala-style layer (v1.1) — flat white UI, 3-row header, full-bleed hero,
   amazing-offers panel, flat product cards. Placed last so it wins the cascade.
   ========================================================================== */
:root { --ds-container: 1336px; --ds-radius: 16px; --ds-radius-sm: 8px; --ds-bg: #fff; --ds-shadow: 0 1px 4px rgba(0,0,0,.08); }
body { background: #fff; font-size: .8125rem; line-height: 1.8; }
.ds-home > section { margin-block: 20px; }
.ds-home > section:first-child { margin-block-start: 0; }

/* Promo strip (black friday): slim, one line */
.ds-bf-strip { background: linear-gradient(90deg, #0f1117, #3a0d18 50%, #ef394e); }
.ds-bf-inner { padding-block: 6px; font-size: .75rem; }

/* Topbar hidden by default look: tiny */
.ds-topbar { border-bottom: 0; background: #f7f7f8; }

/* Header: row 1 (68px) + row 2 nav (36px) */
.ds-header { box-shadow: none; border-bottom: 1px solid #e0e0e2; }
.ds-header-main { grid-template-columns: auto minmax(260px, 1fr) auto; gap: 20px; min-height: 68px; padding-block: 12px; }
.ds-logo-img { max-height: 36px; }
.ds-logo-text { font-size: 1.5rem; }
.ds-search { max-width: 500px; width: 100%; }
.ds-search input[type="search"] { height: 44px; border-radius: 999px; background: #f0f0f1; padding: 8px 18px 8px 46px; font-size: .75rem; font-weight: 500; color: #3f4064; }
[dir="rtl"] .ds-search input[type="search"] { padding: 8px 46px 8px 18px; }
.ds-search-icon { inset-inline-start: auto; inset-inline-end: 16px; color: #a2a2a2; }
.ds-search input[type="search"]:focus { background: #f0f0f1; box-shadow: none; border-color: transparent; }
.ds-act-phone { display: none; }
.ds-actions { gap: 0; margin-inline-start: auto; }
.ds-act-user { border: 1px solid #e0e0e2; border-radius: 8px; height: 40px; padding: 0 14px; font-weight: 700; font-size: .75rem; color: #0c0c0c; }
.ds-act-user:hover { background: #fff; border-color: #c0c2c5; }
.ds-actions::before { content: none; }
.ds-cart-wrap { margin-inline-start: 12px; padding-inline-start: 12px; border-inline-start: 1px solid #e0e0e2; }
.ds-act-cart { padding: 8px; border-radius: 8px; color: #333; }
.ds-nav { border-block-start: 0; }
.ds-nav-inner { min-height: 36px; gap: 0; }
.ds-cat-btn { padding: 6px 12px 6px 14px; font-size: .75rem; font-weight: 700; border-radius: 8px; color: #0c0c0c; position: relative; margin-inline-end: 10px; }
.ds-cat-btn::after { content: ""; position: absolute; inset-inline-end: -6px; inset-block: 8px; width: 1px; background: #e0e0e2; }
.ds-cat-btn:hover, .ds-cat-btn[aria-expanded="true"] { background: none; color: var(--ds-primary); }
.ds-nav-list > li > a { padding: 6px 12px; font-size: .75rem; font-weight: 500; color: #3f4064; border-radius: 8px; }
.ds-nav-list > li > a:hover, .ds-nav-list > li.current-menu-item > a { background: none; color: var(--ds-primary); }
.ds-nav-bf { padding: 3px 12px; font-size: .75rem; background: var(--ds-primary); animation: none; }
.ds-mega { border-radius: 0 0 16px 16px; border-top: 1px solid #e0e0e2; box-shadow: 0 12px 24px rgba(0,0,0,.12); }

/* Hero: full-bleed 400px slider */
.ds-hero.is-full { display: block; }
.ds-hero.is-full .ds-slider { border-radius: 0; aspect-ratio: auto; height: clamp(180px, 28vw, 400px); }
.ds-hero.is-full .ds-slides { aspect-ratio: auto; }
.ds-hero.has-side .ds-slider { border-radius: 16px; }
.ds-slider-btn { opacity: 1; width: 40px; height: 40px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ds-dots { inset-block-end: 14px; }
.ds-dots button { width: 6px; height: 6px; background: rgba(255,255,255,.7); }
.ds-dots button.is-active { width: 6px; background: #fff; transform: scale(1.5); }

/* Service icon row under hero */
.ds-home > .ds-cats { margin-block-start: 20px; }
.ds-cats-list { background: none; padding: 0; gap: 0; justify-content: space-between; border-radius: 0; }
.ds-cats-list li { width: 96px; flex: 1 0 96px; max-width: 120px; }
.ds-cats-list a { gap: 6px; font-size: .75rem; font-weight: 500; color: #3f4064; }
.ds-cat-circle { width: 52px; height: 52px; border-radius: 16px; font-size: 1.25rem; }
.ds-cats-list a:hover .ds-cat-circle { transform: none; }

/* Section heads */
.ds-sec-title { font-size: 1.05rem; font-weight: 800; }
.ds-sec-title::before { content: none; }
.ds-sec-link { color: #2a74e5; font-weight: 700; font-size: .75rem; }

/* Generic rail box = flat, bordered */
.ds-rail-box { background: #fff; border: 1px solid #e0e0e2; border-radius: 16px; padding: 16px 0 0; overflow: hidden; }
.ds-rail-head { padding-inline: 20px; }
.ds-rail-track { gap: 0; padding: 0; }
.ds-rail-track > li.ds-card { flex: 0 0 calc(100% / 6); min-width: 164px; }
.ds-rail-btn { width: 32px; height: 32px; box-shadow: 0 1px 6px rgba(0,0,0,.2); border: 0; }
.ds-rail-btn.is-prev { inset-inline-end: 8px; }
.ds-rail-btn.is-next { inset-inline-start: 8px; }

/* Amazing offers: red panel, promo column + white cards */
.ds-rail.is-amazing .ds-rail-box { display: flex; background: #ef394e; border: 0; padding: 20px 16px; gap: 0; align-items: stretch; }
.ds-bf .ds-rail.is-amazing .ds-rail-box, .ds-body-bf .ds-rail.is-amazing .ds-rail-box { background: linear-gradient(120deg, #c8213a, #ef394e); }
.ds-rail-promo { flex: 0 0 166px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding-inline: 8px; }
.ds-rail-promo h2 { color: #fff; margin: 0; font-size: 1.35rem; font-weight: 900; line-height: 1.4; }
.ds-rail-promo .ds-i { color: #ffc400; }
.ds-rail-all { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #fff; border-radius: 8px; padding: 6px 14px; color: #fff; font-weight: 700; font-size: .75rem; }
.ds-rail-all:hover { background: #fff; color: #ef394e; }
.ds-rail.is-amazing .ds-rail-wrap { flex: 1; min-width: 0; }
.ds-rail.is-amazing .ds-rail-track { border-radius: 8px; background: #fff; }
.ds-rail.is-amazing .ds-rail-track > li.ds-card { flex: 0 0 calc(100% / 6); }
.ds-countdown.is-amazing .ds-cd-unit { background: transparent; color: #fff; min-width: 0; padding: 0 2px; }
.ds-countdown.is-amazing .ds-cd-unit b { font-size: 1.1rem; }
.ds-countdown.is-amazing .ds-cd-unit small { display: none; }
.ds-countdown.is-amazing i { color: #fff; opacity: 1; }
.ds-rail.is-amazing .ds-atc, .ds-rail.is-amazing .ds-card-meta { display: none; }

/* Product card: flat */
.ds-card-inner { border: 0; border-radius: 0; border-inline-start: 1px solid #f0f0f1; background: #fff; padding: 8px; }
.ds-card:last-child .ds-card-inner { border-inline-start: 0; }
.ds-card:hover .ds-card-inner { box-shadow: 0 2px 12px rgba(0,0,0,.15); transform: none; border-color: transparent; }
.ds-card-media { padding: 0; }
.ds-card-img { inset: 0; width: 100% !important; height: 100% !important; }
.ds-card-body { padding: 8px 4px 4px; gap: 4px; }
.ds-card-title { font-size: .8125rem; font-weight: 500; line-height: 1.8; color: #424242; min-height: 3.6em; }
.ds-card-foot { display: block; padding: 0; }
.ds-card-price { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 0; }
.ds-card-price .price { display: contents; }
.ds-card-price .ds-pct { position: static; order: 1; background: #ef394e; font-size: .75rem; font-weight: 700; padding: 0 6px; border-radius: 999px; line-height: 20px; }
.ds-card-price .price del { order: 2; font-size: .75rem; color: #c0c2c5; }
.ds-card-price .price ins, .ds-card-price .price > .woocommerce-Price-amount, .ds-card-price .price > span:only-child { order: 3; flex-basis: 100%; text-align: start; font-size: 1.1875rem; font-weight: 800; color: #23254e; line-height: 1.6; }
.ds-card-price .price del .woocommerce-Price-currencySymbol { display: none; }
.ds-atc, .woocommerce a.ds-atc, .ds-card .button.ds-atc { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border-radius: 8px; opacity: 0; transition: opacity .15s; }
.ds-card:hover .ds-atc { opacity: 1; }
@media (hover: none) { .ds-atc, .woocommerce a.ds-atc { opacity: 1; } }
.ds-flag { border-radius: 6px; }

/* Brands / features / SEO / posts: flatter */
.ds-brands, .ds-seo-box { background: #fff; border: 1px solid #e0e0e2; }
.ds-brand { border-radius: 8px; }
.ds-banner { border-radius: 16px; }

/* Footer */
.ds-footer { margin-top: 48px; border-top: 0; background: #fff; }
.ds-footer-features { background: #fff; border-block: 1px solid #e0e0e2; }
.ds-footer-features ul { grid-template-columns: repeat(5, 1fr); padding-block: 20px; }
.ds-footer-features li { flex-direction: column; text-align: center; gap: 8px; color: #81858b; }
.ds-footer-features li div { align-items: center; }
.ds-footer-features strong { font-size: .75rem; font-weight: 500; color: #3f4064; }
.ds-footer-features span { display: none; }
.ds-footer-grid { padding-block: 28px; }
.ds-footer-title { font-size: .875rem; }
.ds-footer-bottom { background: #fff; border-top: 1px solid #e0e0e2; }

/* Responsive */
@media (max-width: 1200px) {
	.ds-rail-track > li.ds-card, .ds-rail.is-amazing .ds-rail-track > li.ds-card { flex-basis: 20%; }
}
@media (max-width: 992px) {
	.ds-rail.is-amazing .ds-rail-box { flex-direction: column; padding: 14px 0 12px; }
	.ds-rail-promo { flex: none; flex-direction: row; justify-content: space-between; padding: 0 16px 12px; gap: 8px; }
	.ds-rail-promo h2 { font-size: 1.1rem; }
	.ds-rail-promo .ds-i { width: 28px; height: 28px; }
	.ds-rail.is-amazing .ds-rail-track { border-radius: 0; }
	.ds-rail-track > li.ds-card, .ds-rail.is-amazing .ds-rail-track > li.ds-card { flex-basis: 25%; min-width: 150px; }
	.ds-search { max-width: none; }
	.ds-footer-features ul { grid-template-columns: repeat(3, 1fr); }
	.ds-cats-list { justify-content: flex-start; padding-inline: 12px; }
}
@media (max-width: 640px) {
	.ds-rail-box { border-inline: 0; border-radius: 0; }
	.ds-container.ds-rail { padding-inline: 0; }
	.ds-rail-track > li.ds-card, .ds-rail.is-amazing .ds-rail-track > li.ds-card { flex-basis: 42%; min-width: 140px; }
	.ds-hero.is-full .ds-slider { height: 52vw; }
	.ds-footer-features ul { grid-template-columns: repeat(2, 1fr); }
	.ds-cats-list li { flex-basis: 80px; width: 80px; }
}

/* ---- v1.2: Digikala offer cards, banners, footer ---- */
.ds-offers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ds-offer { background: var(--ob, #212121); border-radius: 16px; padding: 0 16px 16px; display: flex; flex-direction: column; color: #fff; min-width: 0; }
.ds-offer-title { color: #fff; font-size: 1.1rem; font-weight: 800; text-align: center; margin: 0; padding: 18px 8px 14px; line-height: 1.5; }
.ds-offer-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.ds-offer-item { background: #fff; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; color: #424242; min-width: 0; }
.ds-offer-item:hover { color: #424242; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.ds-offer-img { display: block; aspect-ratio: 1; }
.ds-offer-img img { width: 100%; height: 100%; object-fit: contain; }
.ds-offer-name { font-size: .72rem; line-height: 1.7; height: 3.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ds-offer-price { font-size: .8rem; font-weight: 800; color: #23254e; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: auto; }
.ds-offer-price .ds-pct { font-size: .68rem; padding: 0 6px; line-height: 18px; }
.ds-offer-price del { display: none; }
.ds-offer-price ins { text-decoration: none; background: none; }
.ds-offer-price .woocommerce-Price-currencySymbol { font-size: .7em; font-weight: 500; }
.ds-offer-price .screen-reader-text { display: none; }
.ds-offer-more { display: block; margin-top: 12px; text-align: center; background: #fff; color: #0c0c0c; font-weight: 700; font-size: .75rem; border-radius: 8px; padding: 6px 0; }
.ds-offer-more:hover { color: var(--ds-primary); }
.ds-offers.is-light .ds-offer { background: #fff; border: 1px solid #e0e0e2; color: #0c0c0c; }
.ds-offers.is-light .ds-offer-title { color: #0c0c0c; }
.ds-offers.is-light .ds-offer-item { padding: 0; }
.ds-offers.is-light .ds-offer-more { background: none; color: #2a74e5; padding: 6px 0 0; }

.ds-banners-4 { gap: 16px; }
.ds-banners-4 .ds-banner { aspect-ratio: 314 / 236; border-radius: 16px; }
.ds-banners-2 { gap: 16px; }
.ds-banners-2 .ds-banner { aspect-ratio: auto; height: 188px; border-radius: 16px; }

/* Footer */
.ds-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; flex-wrap: wrap; }
.ds-footer-support { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .75rem; color: #3f4064; }
.ds-footer-support .ds-logo-img { max-height: 30px; }
.ds-footer-phone a { font-weight: 800; color: #0c0c0c; }
.ds-footer-hours { color: #81858b; }
.ds-footer-totop { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0e0e2; border-radius: 8px; padding: 6px 14px; font-size: .75rem; font-weight: 700; color: #3f4064; }
.ds-footer-totop:hover { border-color: var(--ds-primary); }
.ds-footer-grid { grid-template-columns: repeat(4, 1fr); border-top: 0; }
.ds-footer-trust { grid-column: auto; }
.ds-footer-info { padding-block: 16px 24px; border-top: 1px solid #e0e0e2; }
.ds-footer-info .ds-footer-title { margin-top: 0; }
.ds-footer-info p { font-size: .75rem; line-height: 2.1; color: #81858b; max-width: 980px; }
.ds-footer-info .ds-contact-list { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; }
@media (max-width: 1100px) { .ds-offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 992px) { .ds-footer-grid { grid-template-columns: repeat(2, 1fr); } .ds-footer-about { grid-column: auto; } }
@media (max-width: 640px) { .ds-offers-grid { grid-template-columns: 1fr; } .ds-banners-2 .ds-banner { height: 110px; } .ds-banners-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---- v1.3: matched against full-page screenshots of digikala.com ---- */
/* Top promo strip: flat dark bar with bordered inner box */
.ds-bf-strip { background: #212121; }
.ds-bf-inner { min-height: 60px; padding-block: 0; }
.ds-bf-badge { background: transparent; color: #ef394e; padding: 0; }
.ds-bf-cta { background: transparent; color: #fff; border: 1px solid #555; border-radius: 6px; padding: 2px 12px; font-weight: 700; }
.ds-bf-cta:hover { background: #fff; color: #212121; }
.ds-header-main .ds-logo-img { max-height: 32px; }

/* Round service-icon row: ring icons */
.ds-cat-circle { border-radius: 50%; background: #fff !important; border: 2px solid var(--cc, #ef394e); color: var(--cc, #ef394e); width: 52px; height: 52px; }
.ds-cats-list a { font-weight: 700; font-size: .7rem; color: #3f4064; }

/* Rounded promo strip */
.ds-promo-strip { margin-block: 20px 8px; }
.ds-promo-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-inline: 24px; border-radius: 24px; color: #fff; font-weight: 800; font-size: .95rem; background: linear-gradient(90deg, #ef394e, #c8213a 60%, #3a1520); }
.ds-promo-strip-in:hover { color: #fff; filter: brightness(1.08); }

/* Red "tab" with icon, top corner of dark blocks */
.ds-tab { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 36px; background: #ef394e; color: #fff; border-radius: 0 16px 0 12px; position: absolute; inset-block-start: 0; inset-inline-end: 0; }
.ds-offer, .ds-rail-box { position: relative; }
.ds-offer-title, .ds-rail-head .ds-sec-title { padding-inline-end: 52px; text-align: start; }
.ds-offers.is-light .ds-tab { background: #ef394e; }

/* Amazing offers: dark-red gradient */
.ds-rail.is-amazing .ds-rail-box, .ds-bf .ds-rail.is-amazing .ds-rail-box, .ds-body-bf .ds-rail.is-amazing .ds-rail-box { background: linear-gradient(270deg, #e5224d 0%, #b01c3c 45%, #3a1520 100%); }
.ds-rail.is-amazing .ds-rail-track { background: transparent; border-radius: 0; gap: 0; }
.ds-rail.is-amazing .ds-card-inner { border-radius: 0; }

/* Dark rails (rails 2-4) */
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-rail-box { background: #212121; border: 0; padding: 14px 16px 16px; }
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-rail-head { padding-inline: 0; margin-bottom: 14px; min-height: 36px; padding-inline-end: 52px; }
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-sec-title { color: #fff; padding-inline-end: 0; font-size: 1rem; }
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-sec-link { color: #fff; border: 1px solid #fff; border-radius: 8px; padding: 3px 12px; font-size: .75rem; }
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-rail-track { gap: 8px; }
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-rail-track > li.ds-card { flex: 0 0 calc((100% - 7 * 8px) / 8); min-width: 150px; }
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-card-inner { border-radius: 8px; border: 0; }
.ds-rails-dark .ds-rail:not(.is-amazing) .ds-rail-btn { background: #fff; }

/* Offer cards refinements */
.ds-offer-products { gap: 4px; }
.ds-offer-more { background: transparent; color: #fff; border: 1px solid #fff; }
.ds-offer-more:hover { background: #fff; color: #212121; }
.ds-offers.is-light .ds-offer-more { border: 0; }
.ds-banners-4 .ds-banner:not(.has-img) { background: #212121; }

/* Bottom round category grid */
.ds-catgrid ul { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 24px 8px; }
.ds-catgrid a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: .75rem; font-weight: 500; color: #3f4064; }
.ds-catgrid-img { width: 96px; height: 96px; border-radius: 50%; background: #f0f0f1; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.8rem; font-weight: 800; color: #c0c2c5; }
.ds-catgrid-img img { width: 100%; height: 100%; object-fit: cover; }
.ds-catgrid a:hover .ds-catgrid-img { box-shadow: 0 0 0 3px #ef394e33; }
@media (max-width: 992px) { .ds-catgrid ul { grid-template-columns: repeat(4, 1fr); } .ds-rails-dark .ds-rail:not(.is-amazing) .ds-rail-track > li.ds-card { flex-basis: 28%; } }
@media (max-width: 640px) { .ds-catgrid ul { grid-template-columns: repeat(3, 1fr); } .ds-catgrid-img { width: 72px; height: 72px; } .ds-rails-dark .ds-rail:not(.is-amazing) .ds-rail-track > li.ds-card { flex-basis: 42%; } .ds-promo-strip-in { font-size: .75rem; padding-inline: 14px; } }
