/* Radhin PAUD V1.8.0 — Web Template Catalog & Order */
.template-page-hero{padding-bottom:32px}
.template-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
.template-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-top:18px;border:1px solid #dfe7ef;border-radius:20px;overflow:hidden;background:#dfe7ef}
.template-benefits article{display:flex;align-items:center;gap:14px;padding:21px;background:#fff}
.template-benefits b{display:grid;place-items:center;flex:0 0 37px;height:37px;border-radius:11px;background:#0b1d3a;color:#fff;font-size:11px;letter-spacing:.08em}
.template-benefits strong,.template-benefits span{display:block}.template-benefits strong{color:#0b1d3a;font-size:14px}.template-benefits span{margin-top:3px;color:#738397;font-size:12px;line-height:1.4}
.template-catalog{padding-top:56px}
.template-filter{display:grid;grid-template-columns:minmax(260px,1fr) minmax(190px,260px) auto auto;gap:10px;align-items:center;margin:0 0 28px;padding:14px;border:1px solid #dde6ef;border-radius:18px;background:#fff;box-shadow:0 12px 36px rgba(7,27,54,.06)}
.template-filter input,.template-filter select{width:100%;height:48px;padding:0 14px;border:1px solid #ced9e5;border-radius:12px;background:#fff;color:#18314f;font:inherit}
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.template-grid-home{grid-template-columns:repeat(3,minmax(0,1fr))}
.template-card{position:relative;overflow:hidden;border:1px solid #dbe4ee;border-radius:22px;background:#fff;box-shadow:0 16px 48px rgba(7,27,54,.08);transition:transform .22s ease,box-shadow .22s ease}
.template-card:hover{transform:translateY(-5px);box-shadow:0 24px 60px rgba(7,27,54,.13)}
.template-card.featured:before{content:"";position:absolute;z-index:3;inset:0 auto auto 0;width:5px;height:100%;background:linear-gradient(#d4af37,#1e4edb)}
.template-preview{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#eef3f8}
.template-preview img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s ease}
.template-preview:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(7,27,54,.72));opacity:.65}
.template-preview span{position:absolute;z-index:2;left:18px;bottom:15px;padding:8px 12px;border-radius:999px;background:#fff;color:#0b1d3a;font-size:12px;font-weight:800;opacity:0;transform:translateY(6px);transition:.25s ease}
.template-card:hover .template-preview img{transform:scale(1.025)}
.template-card:hover .template-preview span{opacity:1;transform:none}
.template-card-body{padding:21px}
.template-card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.template-card-meta span{color:#6c7d91;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.template-card-meta b{padding:6px 9px;border-radius:999px;background:#fff4cb;color:#816310;font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.template-card h3{margin:0;color:#0b1d3a;font-size:22px;line-height:1.15}
.template-subtitle{display:block;margin-top:6px;color:#1e4edb;font-size:12px}
.template-card p{min-height:66px;margin:12px 0;color:#6b7b8f;font-size:14px;line-height:1.6}
.template-card ul{display:grid;gap:7px;margin:15px 0;padding:0;list-style:none;color:#43566e;font-size:13px}
.template-card li{display:flex;gap:7px}
.template-swatches{display:flex;align-items:center;gap:7px;margin:13px 0}
.template-swatches i{width:19px;height:19px;border-radius:50%;background:var(--swatch);border:2px solid #fff;box-shadow:0 0 0 1px #d5dee8}
.template-swatches span{margin-left:4px;color:#607187;font-size:12px;font-weight:700}
.template-price{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:13px 0;border-top:1px solid #e6edf4}
.template-price span{color:#7a899b;font-size:11px;text-transform:uppercase;letter-spacing:.07em}
.template-price strong{color:#0b1d3a;font-size:13px;text-align:right}
.template-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:7px}
.template-card-actions .btn{padding:12px 10px;font-size:12px}
.template-home-section .center-action{margin-top:24px}
.template-home-section .center-action a{color:#0b1d3a;font-weight:800}
.template-cta{margin-top:30px}

/* Order template selector */
[data-template-field][hidden]{display:none!important}
[data-template-field] small{display:block;margin-top:7px;color:#6c7d91;font-size:12px}
[data-template-field] small a{color:#1e4edb;font-weight:700}
.order-review dl{grid-template-columns:minmax(100px,140px) 1fr}

/* Admin template management */
.admin-template-list{display:grid;gap:13px}
.admin-template-item{display:grid;grid-template-columns:150px 1fr auto;gap:16px;align-items:center;padding:14px;border:1px solid #dde6ef;border-radius:16px;background:#fff}
.admin-template-thumb{width:150px;aspect-ratio:16/10;overflow:hidden;border-radius:12px;background:#edf2f7}
.admin-template-thumb img{width:100%;height:100%;object-fit:cover}
.admin-template-copy strong{display:block;color:#142b49;font-size:15px}.admin-template-copy small{display:block;margin-top:4px;color:#728196}.admin-template-copy p{margin:7px 0 0;color:#5e6e82;font-size:12px;line-height:1.5}
.admin-template-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.admin-template-actions a,.admin-template-actions button{padding:8px 10px;border:0;border-radius:9px;background:#edf2f7;color:#193454;font:inherit;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}
.template-color-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.template-color-input{display:grid;grid-template-columns:50px 1fr;gap:8px;align-items:center}
.template-color-input input[type=color]{width:50px;height:44px;padding:3px;border:1px solid #ccd8e4;border-radius:10px;background:#fff}
.template-admin-preview{display:block;margin-top:12px;border:1px solid #dce5ef;border-radius:15px;overflow:hidden}.template-admin-preview img{display:block;width:100%;height:auto}

/* Template demo badge on orders */
.order-template-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:999px;background:#edf3ff;color:#173f8d;font-size:11px;font-weight:800}
.order-template-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:#1e4edb}

@media(max-width:1080px){
  .template-grid,.template-grid-home{grid-template-columns:repeat(2,minmax(0,1fr))}
  .template-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .template-filter{grid-template-columns:1fr}
  .template-grid,.template-grid-home{grid-template-columns:1fr}
  .template-benefits{grid-template-columns:1fr}
  .template-card p{min-height:0}
  .admin-template-item{grid-template-columns:100px 1fr}.admin-template-thumb{width:100px}.admin-template-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:480px){
  .template-card-actions{grid-template-columns:1fr}
  .template-benefits article{padding:17px}
  .template-color-row{grid-template-columns:1fr}
}

.template-placeholder{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:10px;background:linear-gradient(135deg,#eef4fb,#fff8df)}.template-placeholder img{width:80px!important;height:90px!important;object-fit:contain!important}.template-placeholder strong{color:#0b1d3a;font-size:17px}
