/* DLTA4K IPTV — shop & category archive (phase 3). Uses the dlta4k-theme tokens. */

body.dl-shop { background: var(--dl-bg); color: var(--dl-text); font-family: var(--dl-font); }
body.dl-shop .site-main, body.dl-shop #main { max-width: none; padding: 0; margin: 0; }
body.dl-shop .woocommerce-products-header, body.dl-shop .dlta-cat-hero, body.dl-shop .woocommerce-breadcrumb { display: none !important; }
body.dl-shop h1, body.dl-shop h2, body.dl-shop h3 { text-transform: none !important; letter-spacing: 0; }

/* ------------------------------------------------------------------ hero */
.dl-shop-hero { padding: clamp(28px, 4vw, 48px) 0 22px; background: radial-gradient(900px 420px at 15% -20%, rgba(47, 107, 255, .32), transparent 60%), var(--dl-bg); border-bottom: 1px solid var(--dl-line); }
.dl-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dl-muted); margin-bottom: 18px; flex-wrap: wrap; }
.dl-crumbs a { color: var(--dl-muted) !important; text-decoration: none !important; }
.dl-crumbs a:hover { color: #fff !important; }
.dl-crumbs strong { color: #fff; font-weight: 700; }
.dl-shop-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.dl-shop-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; color: #fff; }
.dl-shop-hero p { margin: 0; max-width: 680px; color: var(--dl-muted); font-size: 15px; line-height: 1.8; }
.dl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--dl-line); background: var(--dl-surface); color: var(--dl-text) !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; transition: background .18s ease, border-color .18s ease; }
.dl-chip small { font-size: 11px; font-weight: 800; color: var(--dl-muted); }
.dl-chip:hover { background: rgba(47, 107, 255, .16); border-color: rgba(47, 107, 255, .45); }
.dl-chip.is-active { background: var(--dl-blue); border-color: var(--dl-blue); color: #fff !important; }
.dl-chip.is-active small { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------------------- toolbar */
body.dl-shop .woocommerce-notices-wrapper:empty { display: none; }
body.dl-shop .woocommerce-result-count, body.dl-shop .woocommerce-ordering { margin: 0; }
body.dl-shop .woocommerce-result-count { float: none; color: var(--dl-muted); font-size: 14px; }
body.dl-shop .woocommerce-ordering { float: none; }
body.dl-shop .woocommerce-ordering select { min-height: 42px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--dl-line); background: var(--dl-surface); color: var(--dl-text); font-family: inherit; font-size: 14px; font-weight: 700; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='21' viewBox='0 0 20 21' fill='none'%3E%3Cpath d='M5 8L10 13L15 8' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
[dir="rtl"] body.dl-shop .woocommerce-ordering select { padding: 0 14px 0 36px; background-position: left 10px center; }
body.dl-shop .woocommerce-ordering select option { color: #0b1226; background: #fff; }
/* The two toolbar items sit inside the container we give the loop. */
body.dl-shop .site-main > .woocommerce-result-count, body.dl-shop .site-main > .woocommerce-ordering { display: inline-flex; align-items: center; }
body.dl-shop .site-main { width: min(1240px, 100% - 32px); margin-inline: auto !important; padding: 26px 0 60px !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
body.dl-shop .site-main > ul.products, body.dl-shop .site-main > nav, body.dl-shop .site-main > .woocommerce-notices-wrapper, body.dl-shop .site-main > div, body.dl-shop .site-main > .woocommerce-info { flex: 0 0 100%; }

/* ----------------------------------------------------------------- cards */
body.dl-cards ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 8px 0 0 !important; padding: 0 !important; list-style: none; }
body.dl-cards ul.products::before, body.dl-cards ul.products::after { display: none; }
body.dl-cards ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; display: flex; flex-direction: column; border-radius: 18px; background: #0e1730; border: 1px solid var(--dl-line); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
body.dl-cards ul.products li.product:hover { transform: translateY(-4px); border-color: rgba(47, 107, 255, .5); box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
body.dl-cards li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1 1 auto; position: relative; color: inherit !important; text-decoration: none !important; }
body.dl-cards li.product img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; margin: 0 !important; background: #0b1226; }
.dl-card-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.dl-badge-server, .dl-badge-sale { padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; backdrop-filter: blur(6px); }
.dl-badge-server { background: rgba(7, 11, 22, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .18); text-transform: capitalize; }
.dl-badge-sale { background: var(--dl-green); color: #fff; }
body.dl-cards li.product .onsale, body.dl-cards li.product .woow_whatsapp_button { display: none !important; }
body.dl-cards .dl-card-title { margin: 0 !important; padding: 16px 16px 6px !important; font-size: 15.5px !important; font-weight: 800; line-height: 1.5; color: #fff; text-transform: capitalize; min-height: 62px; }
body.dl-cards li.product .price { display: flex !important; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 16px 14px; margin: 0 !important; font-size: 15px !important; color: var(--dl-muted) !important; }
body.dl-cards li.product .price ins { text-decoration: none; }
body.dl-cards li.product .price ins .amount, body.dl-cards li.product .price > .amount { font-size: 22px; font-weight: 900; color: #fff; }
body.dl-cards li.product .price del .amount { font-size: 13px; color: var(--dl-muted); }
body.dl-cards li.product .price .woocommerce-Price-currencySymbol { font-size: .6em; font-weight: 800; color: #9db8ff; margin-inline-end: 3px; }
.dl-card-actions { display: grid; grid-template-columns: 1fr 44px; gap: 8px; padding: 0 16px 16px; margin-top: auto; }
.dl-card-actions .dl-btn { min-height: 42px; border-radius: 11px; }
.dl-card-actions .dl-btn-ghost { padding: 0; }

/* ------------------------------------------------------------ pagination */
body.dl-cards .woocommerce-pagination { margin-top: 30px; text-align: center; }
body.dl-cards .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 6px; border: 0 !important; margin: 0; padding: 0; }
body.dl-cards .woocommerce-pagination ul.page-numbers li { border: 0 !important; }
body.dl-cards .woocommerce-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dl-line); background: var(--dl-surface); color: var(--dl-text) !important; font-weight: 800; text-decoration: none !important; }
body.dl-cards .woocommerce-pagination .page-numbers.current { background: var(--dl-blue); border-color: var(--dl-blue); color: #fff !important; }
body.dl-cards .woocommerce-pagination a.page-numbers:hover { background: rgba(47, 107, 255, .16); }

/* ------------------------------------------------ term description (SEO) */
body.dl-shop .dl-term-description, body.dl-shop .term-description { margin: 40px 0 0 !important; padding: 26px 28px; border-radius: 18px; border: 1px solid var(--dl-line); background: var(--dl-surface); color: var(--dl-muted); font-size: 14.5px; line-height: 1.9; }
body.dl-shop .dl-term-description h2, body.dl-shop .dl-term-description h3 { color: #fff; font-size: 18px; margin: 0 0 10px; }
body.dl-shop .dl-term-description a { color: #9db8ff !important; }
body.dl-shop .woocommerce-info, body.dl-shop .woocommerce-message { background: var(--dl-surface); border-color: var(--dl-blue); color: var(--dl-text); border-radius: 12px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) { body.dl-cards ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  body.dl-cards ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  body.dl-cards .dl-card-title { min-height: 0; font-size: 14px !important; padding: 12px 12px 4px !important; }
  body.dl-cards li.product .price { padding: 0 12px 10px; }
  .dl-card-actions { padding: 0 12px 12px; grid-template-columns: 1fr 40px; }
  .dl-shop-hero-row .dl-btn { width: 100%; }
  body.dl-shop .site-main > .woocommerce-result-count { flex: 0 0 100%; }
}
@media (max-width: 420px) { body.dl-cards ul.products { grid-template-columns: 1fr; } }
