/* Catalogue: shop, categories, search (approved mock-ups k1 c, phone k1m a). Sizes measured off the mock-ups, 1536 px wide. */

/* --- ink band: crumbs, title, line, "You are here" ---------------------------------------------------------------------------- */
.ds-shop .ds-wrap { padding-left: calc(40 * var(--u)); padding-right: calc(36 * var(--u)); }
.ds-cathead { background: var(--c-ink); color: var(--c-white); }
.ds-cathead__in { display: flex; align-items: center; justify-content: space-between; gap: calc(30 * var(--u)); min-height: calc(185 * var(--u)); padding-top: calc(15 * var(--u)); padding-bottom: calc(16 * var(--u)); }
.ds-cathead__text { padding-left: calc(6 * var(--u)); max-width: calc(690 * var(--u)); }
.ds-crumbs { font-size: var(--t-s); line-height: 1.4; color: var(--c-white); }
.ds-crumbs a { color: var(--c-white); text-decoration: none; }
.ds-crumbs a:hover { text-decoration: underline; }
.ds-cathead__h { margin-top: calc(2 * var(--u)); font: 700 var(--t-h1)/1.15 var(--f-head); color: var(--c-white); letter-spacing: -.01em; }
.ds-cathead__h span { margin-left: calc(18 * var(--u)); font: 400 var(--t-m)/1 var(--f-text); color: var(--c-ink-2); letter-spacing: 0; vertical-align: calc(8 * var(--u)); }
.ds-cathead__lead { margin-top: calc(4 * var(--u)); font-size: var(--t-m); line-height: 1.38; color: #E5E7EB; }

.ds-here { flex: none; display: flex; align-items: center; margin-top: calc(24 * var(--u)); }
.ds-here__cloud { width: calc(84 * var(--u)); height: auto; fill: none; stroke: #BFDBFE; stroke-width: 2.2; filter: drop-shadow(0 0 3px rgba(59, 130, 246, .7)); overflow: visible; }
.ds-here__link { position: relative; width: calc(38 * var(--u)); height: 2px; background: #2F7BF6; box-shadow: 0 0 4px rgba(59, 130, 246, .9); }
.ds-here__link::before, .ds-here__link::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #5B9BFF; box-shadow: 0 0 5px #5B9BFF; }
.ds-here__link::before { left: -2px; } .ds-here__link::after { right: -2px; }
.ds-here__link:first-child::before { display: none; }
.ds-here__dev { position: relative; display: grid; place-items: center; width: calc(var(--w) * var(--u)); }
.ds-here__dev img { display: block; width: 100%; height: auto; }
.ds-here__dev.is-here::before { content: ''; position: absolute; left: 50%; top: 50%; width: calc(88 * var(--u)); height: calc(88 * var(--u)); transform: translate(-50%, -50%);
	border: 2.5px solid var(--c-yellow); border-radius: 50%; box-shadow: 0 0 10px rgba(255, 197, 1, .45); }
.ds-here__dev.is-here::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: calc(-44 * var(--u) - 5px) 0 0 -4.5px; border-radius: 50%;
	background: var(--c-yellow); box-shadow: 0 0 6px var(--c-yellow); }
.ds-here__dev.is-here img { position: relative; z-index: 1; }
.ds-here__pill { position: absolute; left: 50%; bottom: calc(50% + 44 * var(--u) + 12px); transform: translateX(-50%); padding: calc(3 * var(--u)) calc(14 * var(--u));
	border-radius: 5px; background: var(--c-yellow); color: var(--c-ink); font: 500 var(--t-xs)/1.3 var(--f-text); white-space: nowrap; }
.ds-here__pill::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--c-yellow); }

/* --- filters + grid ------------------------------------------------------------------------------------------------------------- */
.ds-cat { background: #F4F5F7; padding-bottom: calc(56 * var(--u)); }
.ds-cat__in { display: grid; grid-template-columns: calc(230 * var(--u)) 1fr; column-gap: calc(36 * var(--u)); padding-top: calc(13 * var(--u)); }
.ds-cat__in--wide { grid-template-columns: 1fr; }
.ds-filters { padding-top: calc(20 * var(--u)); }
.ds-filters__top, .ds-filters__apply { display: none; }
.ds-fgroup { margin: 0; padding: calc(16 * var(--u)) 0 calc(18 * var(--u)); border: 0; border-top: 1px solid #D9DDE3; min-width: 0; }
.ds-fgroup legend { float: left; width: 100%; margin-bottom: calc(14 * var(--u)); padding: 0; font: 600 var(--t-s)/1.3 var(--f-text); color: var(--c-ink); }
.ds-fgroup ul { clear: both; display: grid; gap: calc(4 * var(--u)); }
.ds-check { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(13 * var(--u)); min-height: max(32px, calc(28 * var(--u))); cursor: pointer;
	font-size: var(--t-xs); color: #374151; }
.ds-check input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #9CA3AF; border-radius: 4px; background: var(--c-white); display: grid; place-items: center; cursor: pointer; }
.ds-check input:checked { background: var(--c-blue); border-color: var(--c-blue); }
.ds-check input:checked::after { content: ''; width: 10px; height: 6px; margin-top: -2px; border: solid var(--c-white); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ds-check em { font-style: normal; font-size: var(--t-label); color: var(--c-muted); padding-right: calc(8 * var(--u)); }
.ds-fgroup__more { margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--c-blue); font: 500 var(--t-xs) var(--f-text); cursor: pointer; }
.ds-price__track { clear: both; position: relative; height: 26px; margin: calc(10 * var(--u)) calc(9 * var(--u)) calc(14 * var(--u)); }
.ds-price__track::before, .ds-price__fill { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #D1D5DB; }
.ds-price__fill { background: var(--c-blue); }
.ds-price__track input { position: absolute; left: -9px; width: calc(100% + 18px); top: 0; height: 26px;   /* 24 px targets */ margin: 0; appearance: none; background: none; pointer-events: none; }
.ds-price__track input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c-blue); border: 0; pointer-events: auto; cursor: pointer; }
.ds-price__track input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--c-blue); border: 0; pointer-events: auto; cursor: pointer; }
.ds-price__track:not(.is-js) { display: none; }
.ds-price__boxes { clear: both; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(10 * var(--u)); }
.ds-price__boxes span { color: var(--c-muted); }
.ds-price__boxes input { width: 100%; min-width: 0; height: max(40px, calc(42 * var(--u))); padding: 0 calc(12 * var(--u)); border: 1px solid #CBD2DA; border-radius: var(--radius); background: var(--c-white);
	font: 400 max(15px, calc(15.9 * var(--u))) var(--f-text); color: var(--c-ink); }
.ds-price__boxes input:focus { outline: 2px solid var(--c-blue); outline-offset: 0; border-color: var(--c-blue); }
.ds-filters__help { margin: calc(8 * var(--u)) calc(-8 * var(--u)) 0; padding: calc(18 * var(--u)) calc(17 * var(--u)) calc(17 * var(--u)); border-radius: 8px; background: var(--c-ink); }
.ds-filters__help p { font: 600 var(--t-s)/1.35 var(--f-text); color: var(--c-white); margin-bottom: calc(14 * var(--u)); }
.ds-filters__help .ds-btn { width: 100%; min-height: max(42px, calc(42 * var(--u))); padding: 0 10px; font-size: var(--t-s); }

.ds-cat__main { min-width: 0; }
.ds-cat__bar { display: flex; align-items: center; gap: calc(14 * var(--u)); min-height: calc(40 * var(--u)); }
.ds-cat__open { display: none; }
.ds-chips { display: flex; flex-wrap: wrap; gap: calc(14 * var(--u)); }
.ds-chip { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); min-height: max(38px, calc(40 * var(--u))); padding: 0 calc(10 * var(--u)) 0 calc(20 * var(--u));
	border: 1px solid var(--c-ink); border-radius: var(--radius); background: var(--c-white); color: var(--c-ink); text-decoration: none; white-space: nowrap;
	font: 500 var(--t-xs)/1.2 var(--f-text); }
.ds-chip span { padding: 2px 9px; border-radius: 9px; background: #EEF0F3; font-size: .9em; }
.ds-chip:hover { border-color: var(--c-blue); color: var(--c-blue); }
.ds-chip.is-on { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); }
.ds-chip.is-on span { background: #2F66CC; }
.ds-sort { margin-left: auto; }
.ds-sort select { height: max(40px, calc(40 * var(--u))); min-width: calc(216 * var(--u)); padding: 0 40px 0 calc(14 * var(--u)); border: 1px solid #CBD2DA; border-radius: 4px; appearance: none; cursor: pointer;
	background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
	font: 400 max(14px, calc(13.8 * var(--u))) var(--f-text); color: var(--c-ink); }
.ds-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: calc(12 * var(--u)); }
.ds-active__n { margin-right: 6px; font-size: var(--t-xs); color: var(--c-muted); }
.ds-active a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 17px; background: var(--c-white); border: 1px solid #CBD2DA;
	color: var(--c-ink); font-size: var(--t-xs); text-decoration: none; }
.ds-active a:hover { border-color: var(--c-blue); color: var(--c-blue); }
.ds-active .ds-active__clear { border: 0; background: none; color: var(--c-blue); text-decoration: underline; }

.ds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(14 * var(--u)) calc(13 * var(--u)); margin-top: calc(15 * var(--u)); }
.ds-pcard { display: flex; flex-direction: column; padding: calc(12 * var(--u)) calc(17 * var(--u)) calc(14 * var(--u)); border: 1px solid #E3E6EA; border-radius: var(--radius); background: var(--c-white); }
.ds-pcard__img { display: block; height: calc(126 * var(--u)); margin-bottom: calc(12 * var(--u)); }
.ds-pcard__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ds-pcard__brand { font-size: var(--t-label); line-height: 1.4; color: var(--c-muted); }
.ds-pcard__name { margin-top: calc(4 * var(--u)); font: 600 var(--t-s)/1.3 var(--f-text); color: var(--c-ink); }
.ds-pcard__name a { color: inherit; text-decoration: none; }
.ds-pcard__name a:hover { color: var(--c-blue); }
.ds-pcard__spec { margin-top: calc(4 * var(--u)); font-size: var(--t-xs); line-height: 1.4; color: var(--c-muted); }
.ds-pcard__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: calc(16 * var(--u)); }
.ds-pcard__price { font: 700 var(--t-h5)/1.1 var(--f-head); color: var(--c-ink); }
.ds-btn--sm { min-height: max(40px, calc(38 * var(--u))); padding: 0 calc(22 * var(--u)); font-size: var(--t-s); }
.ds-pages { margin-top: calc(36 * var(--u)); }
.ds-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ds-pages a, .ds-pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius); border: 1px solid #CBD2DA; background: var(--c-white);
	color: var(--c-ink); text-decoration: none; font-weight: 500; }
.ds-pages .current { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); }
.ds-pages .dots { border: 0; background: none; }
.ds-empty { margin-top: 24px; padding: 40px; border-radius: var(--radius); background: var(--c-white); text-align: center; display: grid; gap: 18px; justify-items: center; font-size: var(--t-m); }

/* --- phones (k1m a) ------------------------------------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
	.ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-here { display: none; }
}
@media (max-width: 960px) {
	.ds-shop .ds-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
	.ds-cathead__in { display: block; min-height: 0; padding-top: 16px; padding-bottom: 20px; }
	.ds-cathead__text { padding-left: 0; max-width: none; }

	.ds-cathead__h span { margin-left: 12px; vertical-align: 5px; }

	.ds-cathead__lead .ds-more-line { display: none; }
	/* the phone keeps only the category's own device, a link on each side */
	.ds-here { display: flex; justify-content: center; margin: 62px 0 4px; }
	.ds-here > :not(.is-here) { display: none; }
	.ds-here::before, .ds-here::after { content: ''; width: 80px; height: 10px;
		background: radial-gradient(circle at 5px 50%, #5B9BFF 4px, transparent 5px), linear-gradient(#2F7BF6, #2F7BF6) no-repeat center / 100% 2px; }
	.ds-here::after { transform: scaleX(-1); }
	.ds-here__dev.is-here { width: 112px; }
	.ds-here__dev.is-here::before { width: 126px; height: 84px; }
	.ds-here__dev.is-here::after { margin-top: -47px; }
	.ds-here__pill { bottom: calc(50% + 52px); padding: 2px 10px; }
	.ds-here__pill { bottom: calc(50% + 50px); }
	.ds-cat__in { display: block; padding-top: 12px; }
	.ds-cat__bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
	.ds-cat__open { display: inline-flex; min-height: 44px; justify-content: flex-start; gap: 12px; padding: 0 16px; border-width: 1px; border-color: #CBD2DA; font-size: var(--t-l); font-weight: 500; }
	.ds-sort { margin: 0; grid-column: 2; grid-row: 1; }
	.ds-sort select { width: 100%; min-width: 0; height: 44px; padding-right: 34px; color: var(--c-blue); font-size: 15px; background-position: right 12px center; }
	.ds-chips { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
	.ds-chip { border-color: #D7DCE3; color: var(--c-blue); padding-left: 16px; }
	/* the filter sheet */
	.ds-filters { position: fixed; inset: 0; z-index: 50; overflow-y: auto; padding: 0 20px 96px; background: var(--c-white); }
	.ds-filters:not(.is-open) { display: none; }
	.ds-filters__top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; height: 60px; background: var(--c-white); border-bottom: 1px solid var(--c-line);
		font: 600 var(--t-h5) var(--f-head); color: var(--c-ink); }
	.ds-filters__top button { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--c-ink); }
	.ds-fgroup:first-of-type { border-top: 0; }
	.ds-filters__apply { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--c-white); border-top: 1px solid var(--c-line); }
	.ds-filters__apply .ds-btn { width: 100%; }
	.ds-filters__help { margin: 12px 0 0; }
	html.ds-noscroll { overflow: hidden; }
	.ds-grid { gap: 12px; margin-top: 14px; }
	.ds-btn--sm { min-height: 46px; padding: 0 24px; }
}
@media (max-width: 560px) {
	/* cards: the first one large (image on top), the others in a row, photo left (k1m a) */
	.ds-grid { grid-template-columns: 1fr; }
	.ds-pcard { padding: 14px; }
	.ds-pcard__brand { display: none; }
	.ds-pcard__name { font-size: var(--t-h5); }
	.ds-pcard__spec { font-size: var(--t-m); }
	.ds-pcard__price { font-size: var(--t-h4); }
	.ds-pcard__img { height: 150px; }
	.ds-pcard:not(:first-child) { display: grid; grid-template-columns: 44% 1fr; column-gap: 14px; align-content: start; }
	.ds-pcard:not(:first-child) .ds-pcard__img { grid-row: 1 / span 4; height: auto; min-height: 120px; margin: 0; }
	.ds-pcard:not(:first-child) .ds-pcard__name { font-size: var(--t-s); margin-top: 0; }
	.ds-pcard:not(:first-child) .ds-pcard__spec { font-size: var(--t-xs); }
	.ds-pcard:not(:first-child) .ds-pcard__buy { display: block; padding-top: 10px; }
	.ds-pcard:not(:first-child) .ds-pcard__price { font-size: var(--t-h5); margin-bottom: 10px; }
	.ds-pcard:not(:first-child) .ds-btn { width: 100%; }
}

/* --- WooCommerce notices ("added to your cart", errors), without WooCommerce's own styles -------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: calc(14 * var(--u)) 0 0; padding: 12px 16px;
	border: 1px solid #CFE0FF; border-left: 4px solid var(--c-blue); border-radius: var(--radius); background: var(--c-white); color: var(--c-ink); font-size: var(--t-s); list-style: none; }
.woocommerce-error { border-color: #F5C2C0; border-left-color: #B42318; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius);
	background: var(--c-yellow); color: var(--c-ink); font-weight: 600; text-decoration: none; }
