/* =============================================================
   Category SEO Engine — storefront presentation
   Scoped under .category-engine (clean, bright, professional).
   ============================================================= */
.category-engine{padding-top:18px;padding-bottom:48px;min-width:0;color:#382e30}

/* ---------- Category page header (breadcrumb + title + description) ---------- */
.category-page-header{margin-bottom:22px}
.category-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13.5px;color:#8a8a8a;margin:0 0 14px;padding:0}
.category-breadcrumb a{color:#a62839;text-decoration:none;transition:color .2s}
.category-breadcrumb a:hover{color:#8e2030;text-decoration:underline}
.category-breadcrumb-sep{color:#c9bfc1;font-size:12px}
.category-breadcrumb-current{color:#4c4144;font-weight:600}
.category-title{font-size:clamp(28px,3.2vw,36px);line-height:1.2;font-weight:700;color:#2a2224;margin:0 0 8px}
.category-title::after{content:'';display:block;width:48px;height:3px;border-radius:2px;background:#e74c3c;margin-top:12px}
.category-description{max-width:900px;font-size:15px;line-height:1.7;color:#666;margin:4px 0 0}

/* ---------- USPs ---------- */
.category-usps{display:flex;flex-wrap:wrap;gap:12px;padding:0;list-style:none;margin:0 0 6px}
.category-usps li{flex:1 1 180px;padding:12px 14px;background:#fff7f7;border:1px solid #f3dde0;border-radius:10px}
.category-usps span{display:block;font-size:14px;color:#5a4e50}

/* ---------- Filter bar (compact card) ---------- */
.category-filter-bar{background:#fff;border:1px solid #f0e3e5;border-radius:14px;padding:18px 20px;margin-bottom:24px}
.category-filters{margin:0}
.category-filter-grid{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.category-filter-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.category-filter-field--sort{flex:0 1 150px}
.category-filter-field--price{flex:0 1 210px}
.category-filter-field--styles{flex:0 1 170px}
.category-filter-field--topics{flex:0 1 180px}
.category-filter-field--flowers{flex:0 1 170px}
.category-filter-field label{font-size:12.5px;font-weight:600;color:#666}
.category-filter-field select{display:block!important;height:44px;width:100%;min-width:0;border:1px solid #ddd;background:#fff;border-radius:9px;padding:0 34px 0 12px;font-size:14px;color:#2a2224;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;transition:border-color .2s,box-shadow .2s}
.category-filter-field select:hover{border-color:#c9bfc1}
.category-filter-field select:focus{border-color:#e74c3c;box-shadow:0 0 0 3px rgba(231,76,60,.12);outline:none}
.category-filters .nice-select{display:none!important}
.category-filter-actions{display:flex;align-items:flex-end;gap:10px;margin-left:auto}
.category-filters button{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 22px;border:0;border-radius:9px;color:#fff;background:#e74c3c;font-weight:600;font-size:14px;cursor:pointer;transition:background .2s}
.category-filters button:hover{background:#c62828}
.category-filters button:disabled{opacity:.6;cursor:not-allowed}
.category-filter-reset{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 18px;border:1px solid #ddd;border-radius:9px;background:#fff;color:#666;font-size:14px;font-weight:500;text-decoration:none;transition:background .2s,border-color .2s,color .2s}
.category-filter-reset:hover{background:#f8f8f8;border-color:#ccc;color:#4c4144}

/* CTA buttons (phone/Zalo in category-contact) */
.category-order{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;margin:6px 8px 0 0;border:1px solid #e74c3c;border-radius:7px;color:#e74c3c!important;background:#fff;font-weight:600;font-size:14px;text-decoration:none;transition:background .2s,color .2s}
.category-order:hover{background:#CC2121;color:#fff!important}

/* ---------- Product grid (4/3/2 responsive) ---------- */
.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
/* Cards render with the theme's .product-item (same markup + CSS as homepage .our-product section) */

/* ---------- Empty state ---------- */
.category-empty{padding:48px 16px;text-align:center;background:#fff7f7;border:1px solid #f3dde0;border-radius:12px}
.category-empty p{color:#5a4e50;font-size:15px;margin:0 0 16px}
.category-empty .btn_add{display:inline-block;color:#e74c3c;font-size:14px;font-weight:600;background:#fff;border:1px solid #e74c3c;border-radius:6px;padding:11px 22px;text-decoration:none;transition:background .2s,color .2s}
.category-empty .btn_add:hover{color:#fff;background:#CC2121}

/* ---------- Pagination (client style pills) ---------- */
.category-pagination{margin-top:28px;display:flex;justify-content:center}
.category-pagination-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px;list-style:none;margin:0;padding:0}
.category-page-item .category-page-link{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid #e5d9db;border-radius:8px;color:#5a4e50;background:#fff;font-size:14px;text-decoration:none;transition:all .2s}
.category-page-item a.category-page-link:hover{border-color:#e74c3c;color:#e74c3c}
.category-page-item.active .category-page-link{background:#e74c3c;border-color:#e74c3c;color:#fff;font-weight:600}
.category-page-item.disabled .category-page-link{opacity:.45;cursor:not-allowed}

/* ---------- SEO content blocks (readable) ---------- */
.category-block{margin-top:36px;padding:24px;border:1px solid #ecdfe1;border-radius:14px}
.category-block h2{font-size:24px;margin:0 0 16px;color:#2a2224}
.category-guide{line-height:1.7;color:#4c4144;max-width:900px}
.category-guide img{max-width:100%;height:auto;border-radius:10px}
.category-guide h3{font-size:19px;margin:18px 0 10px;color:#2a2224}
.category-case-grid,.category-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.category-case-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px}
.category-case-grid h3{font-size:18px;margin:12px 0 0}
.category-link-grid a{padding:14px;background:#fff6f7;border-radius:8px;min-height:44px;color:#a62839;text-decoration:none}
.category-link-grid a:hover{background:#fdeef0}
.category-link-grid span{display:block;font-size:14px;color:#5a4e50}
.category-faq details{border-top:1px solid #ecdfe1;padding:10px 0}
.category-faq summary{cursor:pointer;min-height:44px;padding:10px;font-weight:600;color:#2a2224}
.category-faq p{white-space:pre-line;padding:0 10px;color:#4c4144}
.category-table-wrap{overflow-x:auto}
.category-table-wrap table{width:100%;border-collapse:collapse}
.category-table-wrap th,.category-table-wrap td{padding:10px;border-bottom:1px solid #eee;text-align:left}
.category-editorial-image{margin:32px auto;max-width:900px}
.category-editorial-image img{width:100%;height:auto;border-radius:10px}
.category-contact{background:#fff7f7}
.category-product-count{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.category-product-count strong{font-size:15px;font-weight:600;color:#333}
.category-product-range{font-size:13px;color:#8a8a8a}
.category-engine [aria-busy=true]{opacity:.6}

/* ---------- Responsive breakpoints ---------- */
@media(max-width:1199px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:991px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.category-case-grid,.category-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.category-filter-field{flex:1 1 calc(50% - 6px)}
.category-filter-actions{flex:1 1 100%;margin-left:0;margin-top:2px}}
@media(max-width:767px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.category-block{padding:18px}
.category-filter-bar{padding:14px}}
@media(max-width:575px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.category-block{padding:16px}
.category-case-grid,.category-link-grid{grid-template-columns:1fr}
.category-filter-field{flex:1 1 calc(50% - 6px)}
.category-filter-actions button,.category-filter-actions a{flex:1}
.category-filter-actions{width:100%}
.category-block h2{font-size:21px}
.category-pagination{margin-top:20px}
.category-page-item .category-page-link{min-width:36px;height:36px;font-size:13px}
.category-title{font-size:26px}
.category-product-count strong{font-size:14px}
.category-product-range{font-size:12px}}
