/**
 * RadiantDevX mWatch — Phase 5 home widget styles (.rdx- scoped).
 *
 * @author RadiantDevX
 */

/* Product grid + card */
.rdx-grid { display: grid; grid-template-columns: repeat(var(--rdx-cols, 5), 1fr); gap: 16px; }
.rdx-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.rdx-card__imgwrap { display: block; background: #f4f4f4; }
.rdx-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.rdx-card__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rdx-card__title { font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rdx-card__price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.rdx-card__price { font-weight: 700; }
.rdx-card__old { color: #888; font-size: 13px; }
.rdx-card__off { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.rdx-card__atc { display: block; text-align: center; padding: 10px; border-radius: 6px; text-decoration: none; font-weight: 600; border: 1px solid #e5b4b4; transition: background .25s ease, color .25s ease; }

/* Countdown */
.rdx-countdown { display: inline-flex; gap: 8px; }
.rdx-countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; }
.rdx-countdown__num { font-weight: 700; font-size: 18px; line-height: 1.1; }
.rdx-countdown__label { font-size: 10px; text-transform: uppercase; }

/* Category tiles */
.rdx-tiles { display: grid; grid-template-columns: repeat(var(--rdx-cols, 4), 1fr); gap: 16px; }
.rdx-tile { display: flex; align-items: center; justify-content: center; min-height: 120px; text-decoration: none; overflow: hidden; position: relative; }
.rdx-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rdx-tile__label { position: relative; font-weight: 700; font-size: 18px; }

/* Hero slider */
.rdx-hero { position: relative; overflow: hidden; }
.rdx-hero__track { display: flex; transition: transform .5s ease; }
.rdx-hero__slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px; min-height: 280px; }
.rdx-hero__title { font-size: 34px; font-weight: 700; margin: 0 0 10px; }
.rdx-hero__price { font-size: 20px; margin: 0 0 18px; }
.rdx-hero__btn { display: inline-block; padding: 10px 26px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.rdx-hero__img { max-width: 40%; max-height: 260px; object-fit: contain; }
.rdx-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rdx-hero__arrow svg { width: 18px; height: 18px; }
.rdx-hero__arrow--prev { left: 12px; }
.rdx-hero__arrow--next { right: 12px; }
@media (max-width: 767px) { .rdx-hero__slide { padding: 24px; min-height: 200px; } .rdx-hero__title { font-size: 24px; } .rdx-hero__img { display: none; } .rdx-hero--banner .rdx-hero__img { display: block; } }
.rdx-hero--banner .rdx-hero__slide { padding: 0; min-height: 0; display: block; }
.rdx-hero--banner .rdx-hero__text { display: none; }
.rdx-hero--banner .rdx-hero__img { max-width: 100%; width: 100%; max-height: none; object-fit: cover; display: block; }

/* Shop page (Phase 6): toolbar + sidebar placeholder + grid. */
.rdx-shop { display: flex; gap: 24px; align-items: flex-start; }
.rdx-shop__sidebar { flex: 0 0 240px; max-width: 240px; }
.rdx-shop__main { flex: 1 1 auto; min-width: 0; }
.rdx-shop__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.rdx-result-count { font-size: 14px; color: #111; }
.rdx-sorting select { font-size: 14px; color: #111; background: #fff; border: 1px solid #E5D6D6; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.rdx-sorting__label { font-size: 14px; margin-right: 8px; }
.rdx-pagination { margin-top: 24px; }
.rdx-pagination .woocommerce-pagination ul.page-numbers { list-style: none; display: inline-flex; gap: 6px; margin: 0; padding: 0; }
.rdx-pagination .woocommerce-pagination ul.page-numbers li { margin: 0; }
.rdx-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #E5D6D6; border-radius: 6px; text-decoration: none; color: #111; background: #fff; }
.rdx-pagination .page-numbers.current { background: #DB1B20; border-color: #DB1B20; color: #fff; }
.rdx-pagination .page-numbers a:hover { background: #FFE2E2; }
@media (max-width: 1024px) { .rdx-shop__sidebar { flex-basis: 200px; max-width: 200px; } }
@media (max-width: 767px) {
	.rdx-shop { flex-direction: column; }
	.rdx-shop__sidebar { flex: 1 1 auto; max-width: none; width: 100%; }
	.rdx-shop__toolbar { flex-direction: column; align-items: flex-start; }
}

/* Review carousel */
.rdx-reviews { position: relative; overflow: hidden; padding-inline: 46px; }
.rdx-reviews__track { display: flex; gap: 16px; transition: transform .5s ease; }
.rdx-review { flex: 0 0 calc(33.333% - 11px); padding: 20px; }
@media (max-width: 1024px) { .rdx-review { flex-basis: calc(50% - 8px); } }
@media (max-width: 767px) { .rdx-review { flex-basis: 100%; } }
.rdx-review__stars { display: flex; gap: 2px; margin: 0 0 8px; }
.rdx-review__stars svg { width: 16px; height: 16px; fill: currentColor; }
.rdx-review__name { font-weight: 700; margin: 10px 0 0; }
.rdx-review__verified { font-weight: 400; font-size: 12px; color: #2e7d32; }
.rdx-reviews__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: #bc1215; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.rdx-reviews__arrow svg { width: 18px; height: 18px; }
.rdx-reviews__arrow--prev { left: 4px; }
.rdx-reviews__arrow--next { right: 4px; }
