/*
Theme Name: Hoa Vinh
Theme URI: https://hoavinh.vn
Author: Hoa Vinh Technology Trading and Services Co., Ltd
Description: Theme WordPress tùy chỉnh cho Hoa Vinh — bán buôn/bán lẻ máy tính, linh kiện, dịch vụ CNTT và cho thuê thiết bị. Tương thích WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hoa-vinh
Tags: e-commerce, woocommerce, custom-colors, custom-logo, custom-menu, translation-ready
*/

/* ==========================================================================
   Toàn bộ hệ thống thiết kế (design tokens, layout, component) dưới đây
   được chuyển nguyên từ bản mockup đã duyệt (hoa-vinh-homepage.html).
   ========================================================================== */

  :root{
    --paper:#F4F9FB; --paper-raised:#FFFFFF; --paper-sunk:#EEF4F8;
    --ink:#122234; --ink-muted:#4D6579; --ink-faint:#7D93A5;
    --line:#DCE6EE; --line-soft:#E9F0F5;
    --navy:#0F2D4A; --navy-deep:#0A2138;
    --primary:#1E5A8C; --primary-dark:#123659;
    --teal:#1FAFC4; --cyan:#3FD8E8;
    --primary-tint:#E4F1F8; --teal-tint:#DEF7FA;
    --sale:#E0473B; --sale-tint:#FDEAE8;
    --success:#1E8A5F; --success-tint:#E4F5EC;
    --gold:#D9A22C; --gold-tint:#FBF1DC;
    --shadow:0 2px 6px rgba(15,45,74,0.06), 0 16px 36px -20px rgba(15,45,74,0.22);
    --radius:12px;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --paper:#0B141C; --paper-raised:#131F2B; --paper-sunk:#0F1922;
      --ink:#E7EEF5; --ink-muted:#9CB0C2; --ink-faint:#66798C;
      --line:#233241; --line-soft:#1B2733;
      --navy:#0A1B2C; --navy-deep:#060F1A;
      --primary:#5FA8D9; --primary-dark:#A9CFEA;
      --teal:#3FD0E2; --cyan:#6FE3EE;
      --primary-tint:#122439; --teal-tint:#0F2B31;
      --sale:#FF7A6E; --sale-tint:#3A1B18;
      --success:#4FBE8C; --success-tint:#0F2A20;
      --gold:#E8C468; --gold-tint:#2E250F;
      --shadow:0 2px 6px rgba(0,0,0,0.3), 0 16px 36px -20px rgba(0,0,0,0.55);
    }
  }
  :root[data-theme="dark"]{
    --paper:#0B141C; --paper-raised:#131F2B; --paper-sunk:#0F1922;
    --ink:#E7EEF5; --ink-muted:#9CB0C2; --ink-faint:#66798C;
    --line:#233241; --line-soft:#1B2733;
    --navy:#0A1B2C; --navy-deep:#060F1A;
    --primary:#5FA8D9; --primary-dark:#A9CFEA;
    --teal:#3FD0E2; --cyan:#6FE3EE;
    --primary-tint:#122439; --teal-tint:#0F2B31;
    --sale:#FF7A6E; --sale-tint:#3A1B18;
    --success:#4FBE8C; --success-tint:#0F2A20;
    --gold:#E8C468; --gold-tint:#2E250F;
    --shadow:0 2px 6px rgba(0,0,0,0.3), 0 16px 36px -20px rgba(0,0,0,0.55);
  }

  *{box-sizing:border-box;}
  body{
    background:var(--paper); color:var(--ink);
    font-family:"Be Vietnam Pro","Segoe UI",system-ui,sans-serif;
    font-size:15.5px; line-height:1.6; -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{font-family:"Quicksand","Be Vietnam Pro",sans-serif; font-weight:700; color:var(--ink); text-wrap:balance; margin:0;}
  a{color:inherit; text-decoration:none;}
  img,svg{display:block; max-width:100%;}
  .mono{font-family:"IBM Plex Mono",monospace; font-variant-numeric:tabular-nums;}
  button{font-family:inherit; cursor:pointer;}

  .wrap{max-width:1240px; margin:0 auto; padding:0 24px;}

  /* ---------------- Topbar ---------------- */
  .topbar{background:var(--navy-deep); color:#CFE0EC; font-size:12.8px;}
  .topbar .wrap{display:flex; justify-content:space-between; align-items:center; height:38px;}
  .topbar .left{display:flex; gap:18px; align-items:center;}
  .topbar .left span{display:flex; align-items:center; gap:6px;}
  .topbar .right{display:flex; gap:14px; align-items:center;}
  .topbar a{color:#CFE0EC; opacity:.85;}
  .topbar a:hover{opacity:1;}
  .icon-dot{width:5px;height:5px;border-radius:50%;background:var(--cyan);display:inline-block;}

  /* ---------------- Header ---------------- */
  header.site{background:var(--paper-raised); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40;}
  .header-row{display:flex; align-items:center; gap:28px; height:82px;}
  .hamburger{display:none; width:40px; height:40px; border:1px solid var(--line); border-radius:9px; background:none; align-items:center; justify-content:center; flex-shrink:0;}
  .logo{display:flex; align-items:center; gap:10px; flex-shrink:0;}
  .logo img{height:46px; width:auto;}
  .search{flex:1; max-width:620px; display:flex; align-items:center; background:var(--paper-sunk); border:2px solid var(--primary); border-radius:999px; padding:4px 6px 4px 20px; margin:0 auto;}
  .search input{flex:1; border:none; background:none; outline:none; font-size:14px; color:var(--ink); font-family:inherit;}
  .search input::placeholder{color:var(--ink-faint);}
  .search button{background:var(--primary); color:#fff; border:none; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .header-actions{display:flex; align-items:center; gap:16px; margin-left:auto;}
  .header-actions .cart, .header-actions .wish{position:relative; display:flex; align-items:center; gap:8px; color:var(--ink);}
  .header-actions .badge{position:absolute; top:-7px; right:-9px; background:var(--sale); color:#fff; font-size:10px; font-weight:700; width:17px; height:17px; border-radius:50%; display:flex; align-items:center; justify-content:center;}
  .cta-btn{background:var(--primary); color:#fff; padding:11px 22px; border-radius:999px; font-weight:600; font-size:14px; border:none; display:inline-flex; align-items:center; gap:8px; white-space:nowrap; transition:background .15s;}
  .cta-btn:hover{background:var(--primary-dark);}

  nav.mainnav{background:var(--navy);}
  nav.mainnav .wrap{display:flex; align-items:center; gap:2px; height:52px;}
  nav.mainnav a{position:relative; color:#DCE9F2; font-size:14px; font-weight:600; padding:8px 16px; border-radius:8px; display:flex; align-items:center; gap:6px; white-space:nowrap;}
  nav.mainnav a:hover{background:rgba(255,255,255,0.08); color:#fff;}
  nav.mainnav a.has-sale{color:var(--cyan);}
  nav.mainnav .has-drop{position:relative;}
  nav.mainnav .has-drop:hover .megamenu{display:grid;}
  .megamenu{display:none; position:absolute; top:100%; left:0; background:var(--paper-raised); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:18px; grid-template-columns:repeat(2,160px); gap:6px 22px; z-index:50;}
  .megamenu a{color:var(--ink-muted); font-size:13px; font-weight:500; padding:8px 10px; border-radius:7px;}
  .megamenu a:hover{background:var(--paper-sunk); color:var(--primary);}

  /* ---------------- Floating sidebar ---------------- */
  .float-side{position:fixed; right:20px; bottom:100px; z-index:50; display:flex; flex-direction:column; gap:10px;}
  .float-side a, .float-side button{width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:var(--shadow); border:none;}
  .float-side .fb{background:#3B5DE6;} .float-side .zalo{background:#1D8FF0;} .float-side .call{background:var(--sale);}
  .float-side .ai-btn{background:linear-gradient(135deg,var(--teal),var(--primary)); position:relative;}
  .float-side .ai-btn .dot{position:absolute; top:-2px; right:-2px; width:12px; height:12px; border-radius:50%; background:var(--success); border:2px solid #fff;}

  /* ---------------- AI Chat widget ---------------- */
  .ai-chat{position:fixed; right:20px; bottom:100px; width:320px; max-height:440px; background:var(--paper-raised); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); z-index:60; display:none; flex-direction:column; overflow:hidden;}
  .ai-chat.open{display:flex;}
  .ai-chat-head{background:linear-gradient(120deg,var(--primary-dark),var(--teal)); color:#fff; padding:14px 16px; display:flex; align-items:center; gap:10px;}
  .ai-chat-head .av{width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .ai-chat-head .info b{display:block; font-size:13.5px;}
  .ai-chat-head .info span{font-size:11px; opacity:.85; display:flex; align-items:center; gap:5px;}
  .ai-chat-head .info span::before{content:""; width:6px; height:6px; border-radius:50%; background:#5CE87A; display:inline-block;}
  .ai-chat-head .close{margin-left:auto; background:rgba(255,255,255,.15); width:26px; height:26px; border-radius:50%; border:none; color:#fff; cursor:pointer;}
  .ai-chat-body{flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:var(--paper-sunk);}
  .ai-msg{max-width:80%; padding:9px 12px; border-radius:12px; font-size:12.5px; line-height:1.5;}
  .ai-msg.bot{background:var(--paper-raised); border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:3px;}
  .ai-msg.user{background:var(--primary); color:#fff; align-self:flex-end; border-bottom-right-radius:3px;}
  .ai-chat-quick{display:flex; gap:6px; flex-wrap:wrap; padding:0 14px 12px; background:var(--paper-sunk);}
  .ai-chat-quick button{font-size:11px; border:1px solid var(--line); background:var(--paper-raised); color:var(--primary); padding:6px 10px; border-radius:999px; font-weight:600;}
  .ai-chat-input{display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:var(--paper-raised);}
  .ai-chat-input input{flex:1; border:1px solid var(--line); border-radius:999px; padding:9px 14px; font-size:12.5px; font-family:inherit;}
  .ai-chat-input button{width:36px; height:36px; border-radius:50%; background:var(--primary); color:#fff; border:none; flex-shrink:0;}

  /* ---------------- Hero ---------------- */
  .hero{background:linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 45%, var(--primary-dark) 78%, var(--teal) 130%); position:relative; overflow:hidden;}
  .hero .wrap{display:grid; grid-template-columns:0.95fr 1.05fr; gap:40px; align-items:center; padding-top:64px; padding-bottom:64px; position:relative; z-index:2;}
  .hero-art{order:-1;}
  .hero .eyebrow{font-family:"IBM Plex Mono",monospace; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--cyan); display:flex; align-items:center; gap:10px; margin-bottom:16px;}
  .hero .eyebrow::before{content:""; width:22px; height:1px; background:var(--cyan);}
  .hero h1{color:#fff; font-size:clamp(30px,3.6vw,46px); line-height:1.15; max-width:14ch;}
  .hero h1 em{font-style:normal; color:var(--cyan);}
  .hero p.lede{color:#C4D6E3; font-size:15.5px; margin-top:16px; max-width:46ch;}
  .hero .actions{display:flex; gap:14px; margin-top:28px;}
  .btn-gold{background:linear-gradient(135deg,#F0C468,var(--gold)); color:#2A1E05; font-weight:700; padding:14px 28px; border-radius:10px; border:none; font-size:15px; display:inline-flex; align-items:center; gap:8px;}
  .btn-ghost{border:1.5px solid rgba(255,255,255,0.35); color:#fff; padding:13px 26px; border-radius:10px; font-weight:600; font-size:15px;}
  .hero-trust{display:flex; gap:26px; margin-top:36px; flex-wrap:wrap;}
  .hero-trust div{color:#BFD3E1; font-size:12.5px; display:flex; align-items:center; gap:8px;}
  .hero-art{display:flex; align-items:center; justify-content:center;}

  /* ---------------- Trust bar ---------------- */
  .trustbar{background:var(--paper-sunk); padding:26px 0;}
  .trustbar .wrap{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
  .trust-item{display:flex; align-items:center; gap:14px; background:var(--paper-raised); padding:18px 26px 18px 22px; box-shadow:var(--shadow); position:relative;
    clip-path:polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);}
  .trust-item .ic{width:44px; height:44px; border-radius:50%; background:var(--primary-tint); color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:inset 0 0 0 2px var(--primary-tint), 0 0 0 3px var(--paper-raised);}
  .trust-item .ic svg{width:21px; height:21px;}
  .trust-item .t{font-weight:800; font-size:14px; color:var(--primary-dark);}
  .trust-item .s{font-size:12px; color:var(--ink-faint);}

  /* ---------------- Section heading ---------------- */
  .section{padding:56px 0;}
  .section.tint{background:var(--paper-sunk);}
  .sec-head{display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:28px; gap:16px; flex-wrap:wrap;}
  .sec-head .tag{font-family:"IBM Plex Mono",monospace; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--teal); margin-bottom:8px; display:block;}
  .sec-head h2{font-size:25px;}
  .sec-head p{color:var(--ink-muted); font-size:14px; margin-top:6px; max-width:52ch;}
  .see-all{font-size:13.5px; font-weight:600; color:var(--primary); display:flex; align-items:center; gap:6px; flex-shrink:0;}

  /* ---------------- Category showcase (dark tech band) ---------------- */
  .showcase-band{
    background-color:var(--navy-deep);
    background-image:
      radial-gradient(circle at 15% 25%, rgba(63,216,232,0.18) 0, transparent 40%),
      radial-gradient(circle at 85% 75%, rgba(31,175,196,0.16) 0, transparent 42%),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px);
    padding:56px 0; position:relative;
  }
  .showcase-band .sec-head .tag{color:var(--cyan);}
  .showcase-band .sec-head h2{color:#fff;}
  .showcase-band .sec-head p{color:#9FB6C6;}
  .showcase-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .showcase-card{background:var(--paper-raised); border-radius:16px; overflow:hidden; box-shadow:0 20px 40px -18px rgba(0,0,0,.5); transition:transform .18s;}
  .showcase-card:hover{transform:translateY(-4px);}
  .showcase-media{aspect-ratio:16/10; background:linear-gradient(150deg,#0F2D4A 0%,#123659 55%,#1E5A8C 100%); display:flex; align-items:center; justify-content:center; gap:10px; position:relative; overflow:hidden;}
  .showcase-media::before{content:""; position:absolute; inset:0; background-image:radial-gradient(circle at 25% 20%, rgba(255,255,255,.10) 0, transparent 35%); }
  .showcase-media svg{width:38%; height:auto; filter:drop-shadow(0 8px 14px rgba(0,0,0,.35));}
  .showcase-body{padding:18px 20px 20px;}
  .showcase-body .name{font-weight:800; font-size:17px; color:var(--primary-dark); margin-bottom:12px;}
  .showcase-btn{display:inline-flex; align-items:center; gap:10px; background:var(--primary-dark); color:#fff; font-weight:700; font-size:13.5px; padding:10px 10px 10px 18px; border-radius:999px;}
  .showcase-btn .arrow{width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .showcase-btn .arrow svg{width:13px; height:13px;}
  .showcase-card:hover .showcase-btn{background:var(--teal);}

  /* ---------------- Product cards ---------------- */
  .prod-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
  .prod-card{background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .15s, transform .15s;}
  .prod-card:hover{box-shadow:var(--shadow); transform:translateY(-2px);}
  .prod-media{aspect-ratio:1.15; background:radial-gradient(circle at 30% 20%, var(--primary-tint), var(--paper-sunk)); display:flex; align-items:center; justify-content:center; position:relative;}
  .prod-media svg{width:62%; height:62%;}
  .prod-badge{position:absolute; top:10px; left:10px; background:var(--sale); color:#fff; font-size:11px; font-weight:700; padding:4px 9px; border-radius:999px;}
  .prod-badge.new{background:var(--success);}
  .prod-wish{position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%; background:var(--paper-raised); display:flex; align-items:center; justify-content:center; color:var(--ink-faint); box-shadow:0 1px 3px rgba(0,0,0,.1); font-size:14px;}
  .prod-body{padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1;}
  .prod-brand{font-size:11px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.04em; font-weight:600;}
  .prod-title{font-size:14px; font-weight:600; line-height:1.35; color:var(--ink); min-height:38px;}
  .spec-chips{display:flex; flex-wrap:wrap; gap:5px; margin-top:2px;}
  .spec-chips span{font-size:10.5px; background:var(--paper-sunk); color:var(--ink-muted); padding:3px 8px; border-radius:6px; font-family:"IBM Plex Mono",monospace;}
  .prod-price{margin-top:auto; padding-top:8px; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap;}
  .prod-price .now{font-size:16.5px; font-weight:800; color:var(--sale);}
  .prod-price .now.reg{color:var(--primary);}
  .prod-price .old{font-size:12px; color:var(--ink-faint); text-decoration:line-through;}
  .prod-price .call{display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:var(--primary);}
  .prod-price .call svg{width:15px; height:15px; flex-shrink:0;}
  .prod-actions{display:flex; gap:8px; margin-top:10px;}
  .btn-add{flex:1; background:var(--primary); color:#fff; border:none; padding:10px; border-radius:9px; font-size:13px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:6px;}
  .btn-add:hover{background:var(--primary-dark);}
  .btn-icon{width:38px; height:38px; border-radius:9px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--ink-muted); flex-shrink:0; font-size:15px;}

  /* ---------------- Flash sale / countdown ---------------- */
  .flash-band{background:linear-gradient(120deg,var(--navy-deep),var(--primary-dark) 60%,var(--teal) 130%); padding:26px 0;}
  .flash-head{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:18px;}
  .flash-title{display:flex; align-items:center; gap:12px;}
  .flash-title .bolt{width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg,#F0C468,var(--gold)); display:flex; align-items:center; justify-content:center; color:#2A1E05; flex-shrink:0;}
  .flash-title .bolt svg{width:20px; height:20px;}
  .flash-title h2{color:#fff; font-size:21px;}
  .flash-title p{color:#B9CDDC; font-size:12px; margin-top:2px;}
  .countdown{display:flex; align-items:center; gap:8px;}
  .countdown .cbox{background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); color:#fff; font-family:"IBM Plex Mono",monospace; font-weight:700; font-size:19px; width:44px; height:44px; border-radius:9px; display:flex; align-items:center; justify-content:center;}
  .countdown .csep{color:var(--cyan); font-weight:700; font-size:18px;}
  .countdown .clabel{color:#9FB6C6; font-size:10.5px; margin-top:4px; text-align:center; display:block;}
  .flash-scroll{display:flex; gap:16px; overflow-x:auto; padding-bottom:6px; scroll-snap-type:x proximity;}
  .flash-scroll .prod-card{min-width:210px; max-width:210px; scroll-snap-align:start;}
  .flash-scroll::-webkit-scrollbar{height:6px;}
  .flash-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25); border-radius:3px;}

  /* ---------------- Stock indicator ---------------- */
  .stock-row{display:flex; align-items:center; gap:8px; margin-top:2px;}
  .stock-bar{flex:1; height:5px; border-radius:3px; background:var(--line-soft); overflow:hidden;}
  .stock-bar span{display:block; height:100%; background:linear-gradient(90deg,var(--sale),#F0A85C);}
  .stock-text{font-size:10px; color:var(--ink-faint); white-space:nowrap;}
  .in-stock{display:flex; align-items:center; gap:5px; font-size:11px; color:var(--success); font-weight:600; margin-top:2px;}
  .in-stock svg{width:12px; height:12px;}

  /* ---------------- Compare ---------------- */
  .btn-compare{width:38px; height:38px; border-radius:9px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--ink-muted); flex-shrink:0; background:var(--paper-raised);}
  .btn-compare svg{width:16px; height:16px;}
  .btn-compare.active{background:var(--primary); border-color:var(--primary); color:#fff;}
  .compare-float{position:fixed; left:20px; bottom:24px; z-index:55; background:var(--navy-deep); color:#fff; border-radius:999px; padding:10px 18px 10px 14px; display:none; align-items:center; gap:10px; box-shadow:var(--shadow); font-size:13px; font-weight:700;}
  .compare-float.show{display:flex;}
  .compare-float .n{background:var(--sale); width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px;}
  .compare-float button{background:var(--teal); color:var(--navy-deep); border:none; padding:6px 14px; border-radius:999px; font-weight:700; font-size:12px;}

  /* ---------------- Brand filter pills ---------------- */
  .pill-row{display:flex; gap:10px; margin-bottom:24px; flex-wrap:wrap;}
  .pill{padding:9px 20px; border-radius:999px; border:1.5px solid var(--line); font-size:13.5px; font-weight:600; color:var(--ink-muted); background:var(--paper-raised);}
  .pill.active{background:var(--primary); border-color:var(--primary); color:#fff;}

  /* ---------------- Service band ---------------- */
  .svc-band{background:var(--navy); padding:56px 0;}
  .svc-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px;}
  .svc-card{background:linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border:1px solid rgba(255,255,255,0.12); border-radius:20px; padding:32px; display:flex; flex-direction:column; gap:14px;}
  .svc-card .ic{width:54px; height:54px; border-radius:14px; background:linear-gradient(135deg,var(--teal),var(--cyan)); display:flex; align-items:center; justify-content:center; color:var(--navy-deep);}
  .svc-card .ic svg{width:26px; height:26px;}
  .svc-card h3{color:#fff; font-size:20px;}
  .svc-card p{color:#B9CDDC; font-size:14px; max-width:42ch;}
  .svc-card .btn-ghost{align-self:flex-start; margin-top:6px;}
  .svc-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:7px;}
  .svc-list li{color:#D6E4EE; font-size:13px; display:flex; gap:8px; align-items:flex-start;}
  .svc-list li::before{content:"✓"; color:var(--cyan); font-weight:700;}

  /* ---------------- Blog ---------------- */
  .blog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
  .blog-card{background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
  .blog-thumb{aspect-ratio:16/10; background:linear-gradient(135deg,var(--primary-tint),var(--teal-tint)); display:flex; align-items:center; justify-content:center; color:var(--primary);}
  .blog-thumb svg{width:30px; height:30px;}
  .blog-body{padding:16px 18px 20px;}
  .blog-date{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-faint); margin-bottom:6px;}
  .blog-title{font-size:14.5px; font-weight:700; line-height:1.4;}

  /* ---------------- Newsletter ---------------- */
  .news-strip{background:linear-gradient(120deg,var(--primary-dark),var(--teal)); border-radius:20px; padding:36px 40px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; margin:0 24px;}
  .news-strip h3{color:#fff; font-size:20px;}
  .news-strip p{color:#DCEFF5; font-size:13.5px; margin-top:4px;}
  .news-form{display:flex; gap:10px;}
  .news-form input{padding:12px 16px; border-radius:9px; border:none; font-size:14px; width:240px; font-family:inherit;}
  .news-form button{background:var(--navy-deep); color:#fff; border:none; padding:12px 20px; border-radius:9px; font-weight:700; font-size:14px;}

  /* ---------------- Footer ---------------- */
  footer.site{background:var(--navy-deep); color:#B7C9D8; padding-top:56px;}
  .footer-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr; gap:32px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.08);}
  .footer-grid h4{color:#fff; font-size:14px; margin-bottom:16px; letter-spacing:.02em;}
  .footer-logo img{height:38px; margin-bottom:14px;}
  .footer-grid p{font-size:13px; line-height:1.7;}
  .footer-grid ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px;}
  .footer-grid ul a{font-size:13.3px;}
  .footer-grid ul a:hover{color:#fff;}
  .footer-social{display:flex; gap:10px; margin-top:16px;}
  .footer-social a{width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; font-size:12.5px;}
  .footer-bottom{display:flex; justify-content:space-between; padding:20px 0; font-size:12px; color:#7C93A5; flex-wrap:wrap; gap:8px;}

  .icon{width:22px; height:22px;}
  .icon-lg{width:26px; height:26px;}

  nav.mainnav a.active{background:rgba(255,255,255,0.1); color:#fff;}

  /* ---------------- Breadcrumb ---------------- */
  .breadcrumb{padding:18px 0; font-size:13px; color:var(--ink-faint); display:flex; gap:8px; align-items:center;}
  .breadcrumb a{color:var(--ink-muted);}
  .breadcrumb a:hover{color:var(--primary);}
  .breadcrumb .sep{opacity:.5;}
  .breadcrumb .current{color:var(--ink); font-weight:600;}

  /* ---------------- Category / listing layout ---------------- */
  .listing{display:grid; grid-template-columns:250px 1fr; gap:32px; padding-bottom:64px;}
  .filter-box{background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius); padding:20px; align-self:start; position:sticky; top:96px;}
  .filter-box h4{font-size:13.5px; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); display:flex; justify-content:space-between; align-items:center;}
  .filter-box h4 .clear{font-size:11.5px; font-weight:600; color:var(--primary); cursor:pointer;}
  .filter-group{margin-bottom:20px;}
  .filter-group .ftitle{font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:10px; text-transform:uppercase; letter-spacing:.03em;}
  .filter-check{display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink-muted); padding:5px 0; cursor:pointer;}
  .filter-check input{width:15px; height:15px; accent-color:var(--primary);}
  .filter-check .n{margin-left:auto; font-size:11.5px; color:var(--ink-faint);}
  .listing-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px;}
  .listing-head .count{font-size:13.5px; color:var(--ink-muted);}
  .sort-select{border:1px solid var(--line); border-radius:9px; padding:9px 14px; font-size:13px; color:var(--ink); background:var(--paper-raised); font-family:inherit;}
  .active-chips{display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap;}
  .chip{background:var(--primary-tint); color:var(--primary); font-size:12.5px; padding:6px 12px; border-radius:999px; display:flex; align-items:center; gap:6px; font-weight:600;}
  .pagination{display:flex; justify-content:center; gap:8px; margin-top:36px;}
  .pagination a{width:38px; height:38px; border-radius:9px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:13.5px; color:var(--ink-muted); font-weight:600;}
  .pagination a.active{background:var(--primary); border-color:var(--primary); color:#fff;}

  /* ---------------- Product detail ---------------- */
  .pd-layout{display:grid; grid-template-columns:1fr 1fr; gap:48px; padding-bottom:24px;}
  .pd-gallery-main{aspect-ratio:1; background:radial-gradient(circle at 30% 20%, var(--primary-tint), var(--paper-sunk)); border-radius:var(--radius); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; margin-bottom:14px;}
  .pd-gallery-main svg{width:52%; height:52%;}
  .pd-thumbs{display:flex; gap:10px;}
  .pd-thumbs .t{width:64px; height:64px; border-radius:10px; border:1.5px solid var(--line); background:var(--paper-sunk); display:flex; align-items:center; justify-content:center;}
  .pd-thumbs .t.active{border-color:var(--primary);}
  .pd-thumbs .t svg{width:60%; height:60%; color:var(--primary);}
  .pd-brand{font-size:12.5px; color:var(--primary); font-weight:700; text-transform:uppercase; letter-spacing:.04em;}
  .pd-title{font-size:24px; margin-top:8px; line-height:1.3;}
  .pd-rating{display:flex; align-items:center; gap:10px; margin-top:10px; font-size:13px; color:var(--ink-muted);}
  .pd-rating .stars{color:var(--gold);}
  .pd-price-box{background:var(--paper-sunk); border-radius:14px; padding:18px 20px; margin-top:18px;}
  .pd-price-box .now{font-size:28px; font-weight:800; color:var(--sale);}
  .pd-price-box .old{font-size:15px; color:var(--ink-faint); text-decoration:line-through; margin-left:10px;}
  .pd-price-box .save{display:inline-block; margin-left:10px; background:var(--sale-tint); color:var(--sale); font-size:12px; font-weight:700; padding:3px 9px; border-radius:6px;}
  .pd-highlights{list-style:none; padding:0; margin:18px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:10px;}
  .pd-highlights li{font-size:13.5px; color:var(--ink); display:flex; gap:8px; align-items:flex-start; background:var(--paper-sunk); padding:9px 12px; border-radius:9px;}
  .pd-highlights li b{color:var(--ink-faint); font-weight:600; min-width:60px; display:inline-block;}
  .pd-buybar{display:flex; gap:12px; align-items:center; margin-top:22px; flex-wrap:wrap;}
  .stepper{display:flex; align-items:center; border:1.5px solid var(--line); border-radius:10px; overflow:hidden;}
  .stepper button{width:38px; height:44px; border:none; background:var(--paper-sunk); font-size:16px; color:var(--ink);}
  .stepper span{width:42px; text-align:center; font-weight:700; font-size:14px;}
  .btn-buynow{background:linear-gradient(135deg,#F0C468,var(--gold)); color:#2A1E05; font-weight:700; padding:14px 26px; border-radius:10px; border:none; font-size:14.5px;}
  .btn-addcart{background:var(--primary); color:#fff; font-weight:700; padding:14px 26px; border-radius:10px; border:none; font-size:14.5px; flex:1;}
  .pd-minitrust{display:flex; gap:20px; margin-top:22px; padding-top:20px; border-top:1px solid var(--line-soft); flex-wrap:wrap;}
  .pd-minitrust div{font-size:12.5px; color:var(--ink-muted); display:flex; align-items:center; gap:7px;}

  .tabs-nav{display:flex; gap:4px; border-bottom:2px solid var(--line); margin-top:48px;}
  .tabs-nav button{background:none; border:none; padding:14px 22px; font-size:14.5px; font-weight:700; color:var(--ink-faint); border-bottom:2px solid transparent; margin-bottom:-2px;}
  .tabs-nav button.active{color:var(--primary); border-color:var(--primary);}
  .tab-panel{display:none; padding:28px 0; color:var(--ink-muted); font-size:14.5px; line-height:1.8;}
  .tab-panel.active{display:block;}
  .spec-table{width:100%; border-collapse:collapse;}
  .spec-table tr{border-bottom:1px solid var(--line-soft);}
  .spec-table td{padding:11px 4px; font-size:13.8px;}
  .spec-table td:first-child{color:var(--ink-faint); width:220px;}
  .spec-table td:last-child{color:var(--ink); font-weight:600;}
  .review-item{display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line-soft);}
  .review-avatar{width:40px; height:40px; border-radius:50%; background:var(--primary-tint); color:var(--primary); display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0; font-size:14px;}
  .review-name{font-weight:700; font-size:13.5px;}
  .review-date{font-size:11.5px; color:var(--ink-faint); margin-left:8px; font-weight:400;}
  .review-stars{color:var(--gold); font-size:12px; margin:4px 0;}

  /* ---------------- Cart ---------------- */
  .cart-layout{display:grid; grid-template-columns:1fr 340px; gap:32px; padding-bottom:64px; align-items:start;}
  .cart-table{width:100%; border-collapse:collapse; background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
  .cart-table th{text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-faint); background:var(--paper-sunk); padding:14px 16px;}
  .cart-table td{padding:16px; border-top:1px solid var(--line-soft); vertical-align:middle;}
  .cart-item{display:flex; gap:14px; align-items:center;}
  .cart-thumb{width:60px; height:60px; border-radius:10px; background:var(--paper-sunk); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .cart-thumb svg{width:60%; color:var(--primary);}
  .cart-name{font-size:13.8px; font-weight:600; line-height:1.4; max-width:220px;}
  .cart-spec{font-size:11.5px; color:var(--ink-faint); margin-top:3px;}
  .cart-remove{color:var(--sale); font-size:12px; font-weight:600; margin-top:6px; display:inline-block;}
  .cart-price{font-weight:700; color:var(--ink); white-space:nowrap; font-size:14px;}
  .summary-card{background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius); padding:22px; position:sticky; top:96px;}
  .summary-card h4{font-size:15px; margin-bottom:16px;}
  .summary-row{display:flex; justify-content:space-between; font-size:13.8px; color:var(--ink-muted); padding:8px 0;}
  .summary-row.total{border-top:1px solid var(--line); margin-top:8px; padding-top:14px; font-size:16px; font-weight:800; color:var(--ink);}
  .summary-row.total span:last-child{color:var(--sale);}
  .promo-row{display:flex; gap:8px; margin:14px 0;}
  .promo-row input{flex:1; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-size:13px; font-family:inherit;}
  .promo-row button{background:var(--paper-sunk); border:1px solid var(--line); border-radius:8px; padding:0 16px; font-size:13px; font-weight:700; color:var(--ink);}
  .btn-checkout{width:100%; background:var(--primary); color:#fff; border:none; padding:15px; border-radius:10px; font-weight:700; font-size:15px; margin-top:8px;}
  .btn-checkout:hover{background:var(--primary-dark);}
  .empty-note{text-align:center; padding:60px 0; color:var(--ink-faint);}

  /* ---------------- Checkout ---------------- */
  .checkout-layout{display:grid; grid-template-columns:1fr 380px; gap:32px; padding-bottom:64px; align-items:start;}
  .co-section{background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin-bottom:20px;}
  .co-section h4{font-size:15px; margin-bottom:16px; display:flex; align-items:center; gap:10px;}
  .co-section h4 .num{width:24px; height:24px; border-radius:50%; background:var(--primary); color:#fff; font-size:12px; display:flex; align-items:center; justify-content:center; font-weight:700;}
  .form-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  .form-grid .full{grid-column:1/-1;}
  .form-field label{font-size:12.5px; font-weight:600; color:var(--ink-muted); display:block; margin-bottom:6px;}
  .form-field input, .form-field textarea, .form-field select{width:100%; border:1px solid var(--line); border-radius:9px; padding:11px 14px; font-size:13.8px; font-family:inherit; color:var(--ink); background:var(--paper);}
  .pay-options{display:flex; flex-direction:column; gap:10px;}
  .pay-card{display:flex; align-items:center; gap:12px; border:1.5px solid var(--line); border-radius:12px; padding:14px 16px; cursor:pointer;}
  .pay-card.active{border-color:var(--primary); background:var(--primary-tint);}
  .pay-card .radio{width:18px; height:18px; border-radius:50%; border:2px solid var(--line); flex-shrink:0; position:relative;}
  .pay-card.active .radio{border-color:var(--primary);}
  .pay-card.active .radio::after{content:""; position:absolute; inset:3px; border-radius:50%; background:var(--primary);}
  .pay-card .pname{font-weight:700; font-size:13.8px;}
  .pay-card .pdesc{font-size:12px; color:var(--ink-faint);}
  .co-review-item{display:flex; justify-content:space-between; font-size:13px; color:var(--ink-muted); padding:8px 0; border-bottom:1px solid var(--line-soft);}
  .btn-place{width:100%; background:linear-gradient(135deg,#F0C468,var(--gold)); color:#2A1E05; border:none; padding:16px; border-radius:10px; font-weight:800; font-size:15.5px; margin-top:16px;}

  /* ---------------- Reusable: info list / map / rental ---------------- */
  .info-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:16px;}
  .info-list li{display:flex; gap:14px; align-items:flex-start; font-size:13.5px; color:var(--ink-muted);}
  .info-list .ic{width:40px; height:40px; border-radius:11px; background:var(--primary-tint); color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .info-list .ic svg{width:19px; height:19px;}
  .info-list b{display:block; color:var(--ink); font-size:14px; margin-bottom:2px;}
  .map-box{aspect-ratio:16/11; background:radial-gradient(circle at 30% 20%, var(--primary-tint), var(--paper-sunk)); border:1px solid var(--line); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; color:var(--ink-faint); flex-direction:column; gap:10px; font-size:13px;}
  .rent-card .rent-dates{display:flex; gap:8px; margin-top:8px;}
  .rent-card .rent-dates input{flex:1; border:1px solid var(--line); border-radius:8px; padding:8px 9px; font-size:12px; font-family:inherit; color:var(--ink);}
  .rent-card .rent-price{font-size:15px; font-weight:800; color:var(--primary); margin-top:8px;}
  .rent-card .rent-price span{font-size:12px; font-weight:500; color:var(--ink-faint);}
  .time-slots{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
  .time-slot{border:1.5px solid var(--line); border-radius:10px; padding:14px; text-align:center; cursor:pointer;}
  .time-slot.active{border-color:var(--primary); background:var(--primary-tint);}
  .time-slot .tt{font-weight:700; font-size:13.5px;}
  .time-slot .ts{font-size:12px; color:var(--ink-faint); margin-top:3px;}
  .empty-state{text-align:center; padding:72px 20px; color:var(--ink-faint);}
  .empty-state .ic{width:64px; height:64px; margin:0 auto 16px; border-radius:50%; background:var(--paper-sunk); display:flex; align-items:center; justify-content:center; color:var(--ink-faint);}
  .empty-state h3{font-size:17px; color:var(--ink); margin-bottom:7px;}
  .empty-state p{font-size:13.5px; margin-bottom:18px;}

  @media (max-width: 980px){
    .hero .wrap{grid-template-columns:1fr;}
    .hero-art{display:none;}
    .showcase-grid{grid-template-columns:repeat(2,1fr);}
    .trustbar .wrap{grid-template-columns:repeat(2,1fr);}
    .trust-item{clip-path:none; border-radius:12px;}
    .prod-grid{grid-template-columns:repeat(2,1fr);}
    .trustbar .wrap{grid-template-columns:repeat(2,1fr);}
    .svc-grid{grid-template-columns:1fr;}
    .blog-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    nav.mainnav{display:none;}
    nav.mainnav.open{display:block;}
    nav.mainnav .wrap{flex-direction:column; align-items:stretch; gap:0; height:auto; padding:6px 20px 10px;}
    nav.mainnav a{padding:10px 4px;}
    .megamenu{display:block !important; position:static; border:none; box-shadow:none; padding:4px 0 4px 12px; grid-template-columns:1fr;}
    .search{display:none;}
    .hamburger{display:flex;}
    .listing{grid-template-columns:1fr;}
    .filter-box{position:static;}
    .pd-layout{grid-template-columns:1fr;}
    .cart-layout, .checkout-layout{grid-template-columns:1fr;}
    .form-grid{grid-template-columns:1fr;}
    .time-slots{grid-template-columns:1fr;}
  }

/* =====================================================================
   BỐ CỤC WOOCOMMERCE — quy cách theo trang tham khảo maytinh15
   Kích thước/tỷ lệ lấy theo tham khảo; màu sắc giữ theo logo Hoa Vinh.
   ===================================================================== */

/* Khung nội dung: 1240px -> 1265px */
.wrap{ max-width:1265px; }

/* ---------- Lưới sản phẩm: 5 cột ---------- */
ul.products{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:24px 20px;
}
@media (max-width:1180px){ ul.products{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
@media (max-width:940px) { ul.products{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:640px) { ul.products{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px 12px; } }

/* Lưới trong theme cũng đưa về 5 cột cho đồng bộ */
.prod-grid{ grid-template-columns:repeat(5, minmax(0,1fr)); gap:24px 20px; }
@media (max-width:1180px){ .prod-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
@media (max-width:940px) { .prod-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:640px) { .prod-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px 12px; } }

/* ---------- Thẻ sản phẩm: viền 1px, bo góc 22px, nền trắng ---------- */
ul.products li.product{
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--paper-raised);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  margin:0;
  padding:0;
  text-align:left;
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
ul.products li.product:hover{
  border-color:var(--primary);
  box-shadow:var(--shadow);
  transform:translateY(-2px);
}

/* Liên kết bọc ảnh + tên + giá */
ul.products li.product > a.woocommerce-LoopProduct-link,
ul.products li.product > a.woocommerce-loop-product__link{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  text-decoration:none;
  color:inherit;
}

/* ---------- Ảnh sản phẩm: vuông 1:1 ---------- */
ul.products li.product img{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:contain;
  background:#FFFFFF;
  padding:12px;
  margin:0;
  border-radius:0;
}

/* ---------- Tên sản phẩm: 16px / 600 ---------- */
ul.products li.product .woocommerce-loop-product__title{
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  color:var(--ink);
  margin:0;
  padding:12px 14px 6px;
  /* gọn trong 2 dòng để các thẻ bằng nhau */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:calc(1.4em * 2 + 18px);
}

/* ---------- Giá: 14.4px, giá cũ xám gạch ngang ---------- */
ul.products li.product .price{
  display:block;
  font-size:14.4px;
  font-weight:400;
  color:var(--ink);
  padding:0 14px 12px;
  margin:0;
}
ul.products li.product .price del{
  color:var(--ink-faint);
  opacity:1;
  font-size:14.4px;
  margin-right:6px;
}
ul.products li.product .price ins{
  background:transparent;
  text-decoration:none;
  color:var(--sale);
  font-weight:700;
}

/* ---------- Nhãn "Giảm giá!" ---------- */
ul.products li.product .onsale{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  background:var(--sale);
  color:#FFFFFF;
  font-size:12px;
  font-weight:700;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  margin:0;
}

/* ---------- Nút Thêm vào giỏ ---------- */
ul.products li.product .button{
  margin:auto 14px 14px;
  display:block;
  text-align:center;
  background:var(--primary);
  color:#FFFFFF;
  font-size:13.5px;
  font-weight:600;
  padding:9px 12px;
  border:0;
  border-radius:999px;
  text-decoration:none;
  transition:background .16s ease;
}
ul.products li.product .button:hover{ background:var(--primary-dark); }
ul.products li.product .added_to_cart{
  margin:0 14px 14px;
  display:block;
  text-align:center;
  font-size:12.8px;
  color:var(--primary);
}

/* ---------- Tiêu đề mục: 25.6px / 700 ---------- */
.woocommerce-products-header__title,
.woocommerce h1.page-title{
  font-size:25.6px;
  font-weight:700;
  color:var(--ink);
  margin:28px 0 18px;
}

/* ---------- Thanh công cụ trang cửa hàng ---------- */
.woocommerce-result-count{ color:var(--ink-muted); font-size:13.5px; margin:0 0 14px; }
.woocommerce-ordering select{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 14px;
  font-size:13.5px;
  background:var(--paper-raised);
  color:var(--ink);
}

/* Khoảng đệm chung cho các trang WooCommerce */
.woocommerce-page .wrap,
.woocommerce .wrap{ padding-top:8px; padding-bottom:56px; }

/* ---------- Phân trang ---------- */
.woocommerce-pagination ul{
  list-style:none; display:flex; gap:8px; padding:0; margin:28px 0 0; justify-content:center;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span{
  display:inline-block;
  min-width:38px; text-align:center;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  text-decoration:none;
  color:var(--ink);
  font-size:14px;
}
.woocommerce-pagination ul li span.current{
  background:var(--primary); border-color:var(--primary); color:#FFFFFF; font-weight:600;
}

/* Ghi de width mac dinh cua WooCommerce (22.05%) lam thẻ bị co lại */
ul.products li.product{
  width:auto !important;
  margin:0 !important;
  float:none !important;
  clear:none !important;
}
.woo-wrap{ padding-top:24px; padding-bottom:56px; }

/* WooCommerce chen ::before/::after de clearfix — trong grid chung bi tinh la o luoi */
.woocommerce ul.products::before,
.woocommerce ul.products::after{ display:none !important; }

/* Nang do uu tien de thang selector cua woocommerce.css (.woocommerce ...) */
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-size:16px; font-weight:600; }
.woocommerce ul.products li.product .price{ font-size:14.4px; }
.woocommerce ul.products li.product .price del{ font-size:14.4px; color:var(--ink-faint); }
.woocommerce ul.products li.product .price ins{ font-size:14.4px; font-weight:700; color:var(--sale); }
.woocommerce ul.products li.product{ width:auto !important; margin:0 !important; float:none !important; }

/* =====================================================================
   KHUNG KHỐI CÓ VIỀN + TAB TIÊU ĐỀ  (quy cách theo trang tham khảo)
   Viền 5px · bo góc 20px · tab tiêu đề đè lên viền trên, canh giữa.
   Màu dùng biến thương hiệu Hoa Vinh.
   ===================================================================== */

.boxed-frame{
  position:relative;
  border:5px solid var(--primary);
  border-radius:20px;
  padding:38px 18px 22px;
  margin-top:26px;
  background:var(--paper-raised);
}

.boxed-frame > .boxed-title{
  position:absolute;
  top:0;
  left:50%;
  transform:translate(-50%, -50%);
  background:var(--primary);
  color:#FFFFFF;
  border-radius:12px;
  padding:8px 26px;
  margin:0;
  white-space:nowrap;
  box-shadow:0 2px 0 rgba(0,0,0,0.05);
}
.boxed-frame > .boxed-title h2{
  font-size:24px;
  font-weight:700;
  color:#FFFFFF;
  margin:0;
  line-height:1.2;
}

.boxed-frame .see-all{
  display:inline-block;
  margin-top:16px;
  font-size:14px;
  font-weight:600;
  color:var(--primary);
  text-decoration:none;
}
.boxed-frame .see-all:hover{ text-decoration:underline; }
.boxed-foot{ text-align:center; }

@media (max-width:640px){
  .boxed-frame{ border-width:3px; border-radius:14px; padding:32px 12px 18px; }
  .boxed-frame > .boxed-title{ padding:6px 16px; border-radius:10px; }
  .boxed-frame > .boxed-title h2{ font-size:18px; }
}

/* =====================================================================
   THẺ SẢN PHẨM KIỂU MỚI (.hv-card)
   ===================================================================== */

ul.products li.product.hv-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--paper-raised);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:visible;
  padding:10px;
  text-align:center;
  box-shadow:0 1px 2px rgba(15,45,74,0.04);
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
ul.products li.product.hv-card:hover{
  border-color:var(--primary);
  box-shadow:0 8px 22px -10px rgba(15,45,74,0.35);
  transform:translateY(-3px);
}

/* Ảnh vuông 1:1 */
.hv-card__media{
  display:block;
  border-radius:10px;
  overflow:hidden;
  background:#FFFFFF;
}
ul.products li.product.hv-card .hv-card__media img{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:contain;
  padding:6px;
  margin:0;
  background:#FFFFFF;
}

/* Tên sản phẩm — gọn 2 dòng cho các thẻ bằng nhau */
ul.products li.product.hv-card .hv-card__title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:15px;
  font-weight:600;
  line-height:1.45;
  color:var(--ink);
  text-decoration:none;
  margin:10px 4px 8px;
  min-height:calc(1.45em * 2);
}
ul.products li.product.hv-card .hv-card__title:hover{ color:var(--primary); }

/* Giá */
ul.products li.product.hv-card .hv-card__price{
  margin:0 4px 12px;
  min-height:22px;
  font-size:14.4px;
}
ul.products li.product.hv-card .hv-card__price .price{
  display:block; padding:0; margin:0; font-size:14.4px;
}
ul.products li.product.hv-card .hv-card__price del{
  color:var(--ink-faint); font-size:13.5px; margin-right:6px; opacity:1;
}
ul.products li.product.hv-card .hv-card__price ins{
  background:transparent; text-decoration:none;
  color:var(--sale); font-weight:700; font-size:15px;
}

/* Dòng "Gọi Zalo" khi chưa có giá */
.hv-call{
  display:inline-flex; align-items:center; gap:6px;
  color:var(--primary); font-size:14px; font-weight:500;
}
.hv-call .icon{ width:16px; height:16px; }
.hv-call strong{ font-weight:700; }

/* Nút "Xem chi tiết" */
ul.products li.product.hv-card .hv-card__btn{
  margin-top:auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  background:var(--primary);
  color:#FFFFFF;
  font-size:15px; font-weight:500;
  border-radius:16px;
  padding:8px 8px 8px 18px;
  text-decoration:none;
  transition:background .16s ease;
}
ul.products li.product.hv-card .hv-card__btn:hover{ background:var(--primary-dark); }
.hv-card__arrow{
  flex:0 0 auto;
  width:32px; height:32px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.18);
  border-radius:50%;
}
.hv-card__arrow svg{ width:16px; height:16px; }

/* Nhãn giảm giá dạng giọt nước, góc trên phải */
.hv-card .hv-badge{
  position:absolute;
  top:-8px; right:-8px;
  z-index:3;
  width:45px; height:45px;
  display:flex; align-items:center; justify-content:center;
  background:var(--primary);
  color:#FFFFFF;
  font-size:14px; font-weight:700;
  border-radius:100% 100% 100% 14px;
  box-shadow:0 2px 6px rgba(15,45,74,0.25);
}

/* An nhan .onsale mac dinh cua WooCommerce vi da co .hv-badge */
ul.products li.product.hv-card .onsale{ display:none !important; }

@media (max-width:640px){
  ul.products li.product.hv-card .hv-card__btn{ font-size:13.5px; padding:7px 7px 7px 14px; }
  .hv-card__arrow{ width:28px; height:28px; }
  .hv-card .hv-badge{ width:38px; height:38px; font-size:12.5px; }
}

/* =====================================================================
   .hv-card dùng được ở mọi vùng chứa
   (ul.products của WooCommerce, .prod-grid và .flash-scroll của theme)
   ===================================================================== */

.hv-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--paper-raised);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:visible;
  padding:10px;
  margin:0;
  text-align:center;
  list-style:none;
  box-shadow:0 1px 2px rgba(15,45,74,0.04);
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.hv-card:hover{
  border-color:var(--primary);
  box-shadow:0 8px 22px -10px rgba(15,45,74,0.35);
  transform:translateY(-3px);
}

.hv-card .hv-card__media{
  display:block;
  border-radius:10px;
  overflow:hidden;
  background:#FFFFFF;
}
.hv-card .hv-card__media img{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:contain;
  padding:6px;
  margin:0;
  background:#FFFFFF;
  border-radius:0;
}

.hv-card .hv-card__title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:15px;
  font-weight:600;
  line-height:1.45;
  color:var(--ink);
  text-decoration:none;
  margin:10px 4px 8px;
  min-height:calc(1.45em * 2);
}
.hv-card .hv-card__title:hover{ color:var(--primary); }

.hv-card .hv-card__price{
  margin:0 4px 12px;
  min-height:22px;
  font-size:14.4px;
  color:var(--ink);
}
.hv-card .hv-card__price .price{
  display:block; padding:0; margin:0; font-size:14.4px; color:var(--ink);
}
.hv-card .hv-card__price del{
  color:var(--ink-faint); font-size:13.5px; margin-right:6px; opacity:1;
}
.hv-card .hv-card__price ins{
  background:transparent; text-decoration:none;
  color:var(--sale); font-weight:700; font-size:15px;
}

.hv-card .hv-card__btn{
  margin-top:auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  background:var(--primary);
  color:#FFFFFF;
  font-size:15px; font-weight:500;
  border-radius:16px;
  padding:8px 8px 8px 18px;
  text-decoration:none;
  transition:background .16s ease;
}
.hv-card .hv-card__btn:hover{ background:var(--primary-dark); }
.hv-card .hv-card__arrow{
  flex:0 0 auto;
  width:32px; height:32px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.18);
  border-radius:50%;
}
.hv-card .hv-card__arrow svg{ width:16px; height:16px; }

/* Lưới của theme cũng phải là grid 5 cột như ul.products */
.prod-grid, .flash-scroll{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:24px 20px;
}
@media (max-width:1180px){ .prod-grid, .flash-scroll{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
@media (max-width:940px) { .prod-grid, .flash-scroll{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:640px) { .prod-grid, .flash-scroll{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px 12px; } }

/* Trong ngữ cảnh WooCommerce, ghi đè width mặc định */
.woocommerce ul.products li.product.hv-card,
ul.products li.product.hv-card{
  width:auto;
  margin:0;
  float:none;
  border-radius:14px;
  padding:10px;
  overflow:visible;
  text-align:center;
}

/* Ep khung anh ve vuong 1:1 (anh co thuoc tinh width/height 300 lam vo ty le) */
.hv-card .hv-card__media{
  aspect-ratio:1 / 1;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hv-card .hv-card__media img{
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:contain;
}

/* =====================================================================
   FORM ĐẶT LỊCH / THUÊ THIẾT BỊ
   ===================================================================== */

.hv-form{ margin:0; }

.hv-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:640px){ .hv-row{ grid-template-columns:1fr; } }

.hv-field{
  display:block;
  margin-bottom:14px;
}
.hv-field > span{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
}
.hv-field > span b{ color:var(--sale); font-weight:700; }

.hv-field input[type=text],
.hv-field input[type=tel],
.hv-field input[type=date],
.hv-field input[type=number],
.hv-field select,
.hv-field textarea{
  width:100%;
  box-sizing:border-box;
  font-family:inherit;
  font-size:14.5px;
  color:var(--ink);
  background:var(--paper-raised);
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px 13px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.hv-field textarea{ resize:vertical; min-height:96px; }
.hv-field input:focus,
.hv-field select:focus,
.hv-field textarea:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-tint);
}
.hv-field input::placeholder,
.hv-field textarea::placeholder{ color:var(--ink-faint); }

.hv-submit{
  display:inline-block;
  width:100%;
  margin-top:6px;
  background:var(--primary);
  color:#FFFFFF;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  border:0;
  border-radius:999px;
  padding:13px 20px;
  cursor:pointer;
  transition:background .16s ease;
}
.hv-submit:hover{ background:var(--primary-dark); }

.hv-note{
  margin:10px 0 0;
  font-size:12.5px;
  color:var(--ink-muted);
  text-align:center;
}

/* Ô bẫy bot — ẩn khỏi người dùng nhưng không dùng display:none */
.hv-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px; height:1px; overflow:hidden;
}

/* Thông báo sau khi gửi */
.hv-notice{
  border-radius:12px;
  padding:13px 16px;
  margin:0 0 18px;
  font-size:14px;
  font-weight:600;
  border:1px solid transparent;
}
.hv-notice--thanh-cong{
  background:var(--success-tint);
  border-color:var(--success);
  color:var(--success);
}
.hv-notice--canh-bao{
  background:var(--sale-tint);
  border-color:var(--sale);
  color:var(--sale);
}

/* =====================================================================
   SLIDER TRƯỢT NGANG — 5 sản phẩm mỗi lượt, nút trái/phải
   ===================================================================== */

.hv-slider{
  position:relative;
  padding:0 4px;
}

.hv-slider__track{
  display:grid !important;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 4 * 20px) / 5);
  grid-template-columns:none !important;
  gap:20px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:8px 2px 14px;
  /* ẩn thanh cuộn nhưng vẫn kéo được */
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.hv-slider__track::-webkit-scrollbar{ display:none; }
.hv-slider__track > *{ scroll-snap-align:start; }

.hv-slider__btn{
  position:absolute;
  top:calc(50% - 14px);
  transform:translateY(-50%);
  z-index:5;
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  background:var(--primary);
  color:#FFFFFF;
  border:0;
  border-radius:10px;
  cursor:pointer;
  box-shadow:0 4px 12px -4px rgba(15,45,74,0.5);
  transition:background .16s ease, opacity .16s ease;
}
.hv-slider__btn:hover{ background:var(--primary-dark); }
.hv-slider__btn svg{ width:20px; height:20px; }
.hv-slider__btn--prev{ left:-14px; }
.hv-slider__btn--next{ right:-14px; }
.hv-slider__btn[disabled]{ opacity:.3; cursor:default; }

@media (max-width:1180px){ .hv-slider__track{ grid-auto-columns:calc((100% - 3 * 20px) / 4); } }
@media (max-width:940px) { .hv-slider__track{ grid-auto-columns:calc((100% - 2 * 20px) / 3); } }
@media (max-width:640px) {
  .hv-slider__track{ grid-auto-columns:calc((100% - 12px) / 2); gap:12px; }
  .hv-slider__btn{ width:32px; height:32px; }
  .hv-slider__btn--prev{ left:-6px; }
  .hv-slider__btn--next{ right:-6px; }
}

/* =====================================================================
   KHỐI DANH MỤC — gọn lại, chỉ 1 hàng
   ===================================================================== */

.showcase-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr)) !important;
  gap:14px;
}
@media (max-width:1180px){ .showcase-grid{ grid-template-columns:repeat(6, minmax(0,1fr)) !important; gap:10px; } }
@media (max-width:900px) { .showcase-grid{ grid-template-columns:repeat(3, minmax(0,1fr)) !important; } }
@media (max-width:560px) { .showcase-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; } }

.showcase-card{
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
}
.showcase-card .showcase-media{
  aspect-ratio:16 / 10;
  display:flex; align-items:center; justify-content:center;
  padding:10px;
}
.showcase-card .showcase-media svg{ width:56px; height:56px; }

.showcase-card .showcase-body{
  padding:10px 10px 12px;
  text-align:center;
}
.showcase-card .showcase-body .name{
  font-size:13.5px;
  font-weight:700;
  line-height:1.35;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:calc(1.35em * 2);
}
.showcase-card .showcase-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:var(--primary);
  color:#FFFFFF;
  font-size:12.5px;
  font-weight:600;
  border-radius:999px;
  padding:6px 6px 6px 12px;
  white-space:nowrap;
}
.showcase-card .showcase-btn .arrow{
  width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.2);
  border-radius:50%;
}
.showcase-card .showcase-btn .arrow svg{ width:12px; height:12px; }
