/* Weekly Products (Товары недели) — all rules scoped to .wp-weekly to avoid theme clashes */
.wp-section { margin: 0 0 42px; }
.wp-weekly, .wp-weekly * { box-sizing: border-box; }
.wp-weekly { display: flex; background: #fff; padding: 10px; margin: 0; border-radius: 12px; box-shadow: 0 6px 25px #24273812; color: #252528; font-family: inherit; font-size: 14px; }
.wp-weekly button { font: inherit; cursor: pointer; }
.wp-weekly button:focus-visible, .wp-weekly .wp-track:focus-visible { outline: 3px solid #387bf2; outline-offset: 3px; }

/* Promo banner */
.wp-weekly .wp-promo { flex: 0 0 270px; position: relative; overflow: hidden; isolation: isolate; border-radius: 7px; padding: 26px; color: #fff; background: repeating-linear-gradient(125deg, #ffffff03 0 40px, transparent 40px 100px), linear-gradient(120deg, #292a2c, #161719); }
.wp-weekly .wp-promo:after { content: ''; position: absolute; right: -42px; bottom: -15px; width: 70px; height: 200px; background: #ff2034; transform: rotate(18deg); z-index: -1; pointer-events: none; }
.wp-weekly .wp-promo > * { position: relative; z-index: 1; }
.wp-weekly .wp-brand { letter-spacing: 5px; font-size: 13px; margin-bottom: 20px; color: #fff; }
.wp-weekly .wp-title { font-size: 33px; line-height: 1; font-style: italic; margin: 0 0 18px; padding: 0; font-weight: 900; text-transform: uppercase; color: #fff; font-family: inherit; }
.wp-weekly .wp-title em { display: block; color: #ff2034; font-style: italic; }
.wp-weekly .wp-text { font-size: 11px; color: #c4c4cb; line-height: 1.5; margin: 0 0 20px; }

/* Countdown */
.wp-weekly .wp-timer { display: flex; gap: 8px; }
.wp-weekly .wp-unit { text-align: center; }
.wp-weekly .wp-unit b { display: block; background: #ffffff12; border-radius: 4px; padding: 7px; min-width: 36px; font-size: 18px; font-weight: bold; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.wp-weekly .wp-unit small { display: block; font-size: 9px; color: #b1b1b7; margin-top: 5px; }

/* Carousel */
.wp-weekly .wp-catalog { position: relative; min-width: 0; flex: 1; padding-left: 12px; }
.wp-weekly .wp-track { display: flex; gap: 12px; column-gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 7px; margin: 0; }
.wp-weekly .wp-track::-webkit-scrollbar { display: none; }
.wp-weekly .wp-card { flex: 0 0 calc((100% - 36px) / 4); min-width: 0; padding: 9px; margin: 0; border: 1px solid #eeeef1; border-radius: 6px; display: flex; flex-direction: column; scroll-snap-align: start; background: #fff; }
.wp-weekly .wp-picture { aspect-ratio: 1; background: #fff; position: relative; border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
/* Natural size from the module settings, only scaled down when the card is narrower */
.wp-weekly .wp-picture img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; padding: 0; margin: 0; }
.wp-weekly .wp-discount { position: absolute; top: 5px; left: 5px; z-index: 1; background: #ff2034; color: #fff; border-radius: 10px; padding: 4px 5px; font-size: 9px; font-weight: bold; line-height: 1; }
.wp-weekly .wp-name { font-size: 12px; font-weight: bold; line-height: 1.45; margin: 13px 0 5px; padding: 0; overflow-wrap: anywhere; font-family: inherit; }
.wp-weekly .wp-name a { color: inherit; text-decoration: none; }
.wp-weekly .wp-name a:hover { color: #ff2034; }
.wp-weekly .wp-category { font-size: 10px; line-height: 1.4; color: #929299; margin: 0 0 9px; min-height: 14px; }
.wp-weekly .wp-buyrow { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: auto; }
.wp-weekly .wp-price { font-weight: bold; color: #ff2034; font-size: 14px; white-space: nowrap; }
.wp-weekly .wp-price del { display: block; color: #999; font-size: 10px; font-weight: normal; margin-top: 4px; }
.wp-weekly .wp-buy { border: 0; border-radius: 4px; background: #ff2034; color: #fff; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; flex-shrink: 0; margin-left: auto; transition: background .15s; }
.wp-weekly .wp-buy:hover { background: #d80c21; }
.wp-weekly .wp-buy svg { width: 17px; height: 17px; }
.wp-weekly .wp-arrow { position: absolute; top: 42%; width: 32px; height: 32px; padding: 0; background: #fff; border: 1px solid #eee; border-radius: 50%; box-shadow: 0 3px 10px #0001; font-size: 24px; color: #777; z-index: 2; line-height: 1; }
.wp-weekly .wp-prev { left: -4px; }
.wp-weekly .wp-next { right: -16px; }
.wp-weekly .wp-arrow:disabled { visibility: hidden; }

@media (max-width: 1100px) {
	.wp-weekly .wp-promo { flex-basis: 240px; padding: 23px; }
	.wp-weekly .wp-card { flex-basis: calc((100% - 24px) / 3); }
}
@media (max-width: 900px) {
	.wp-weekly .wp-card { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 640px) {
	.wp-weekly { display: block; padding: 8px; }
	.wp-weekly .wp-promo { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; flex-basis: auto; }
	.wp-weekly .wp-promo:after { opacity: .4; z-index: 0; }
	.wp-weekly .wp-brand { margin-bottom: 15px; font-size: 11px; }
	.wp-weekly .wp-title { font-size: 30px; margin-bottom: 12px; }
	.wp-weekly .wp-text { margin: 0 0 16px; font-size: 10px; }
	.wp-weekly .wp-timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 240px; }
	.wp-weekly .wp-unit { min-width: 0; }
	.wp-weekly .wp-unit b { min-width: 0; padding: 9px 4px; font-size: 20px; background: #323337; }
	.wp-weekly .wp-unit small { font-size: 10px; line-height: 1.3; color: #d0d0d5; }
	.wp-weekly .wp-catalog { padding: 10px 0 0; }
	.wp-weekly .wp-track { gap: 10px; column-gap: 10px; }
	.wp-weekly .wp-card { flex-basis: calc((100% - 10px) / 2); padding: 8px; }
	.wp-weekly .wp-prev { left: -14px; }
	.wp-weekly .wp-next { right: -14px; }
	.wp-weekly .wp-arrow { width: 29px; height: 29px; }
	.wp-weekly .wp-price { font-size: 13px; }
}
