/* ===== Cát Phương Xa - Common Stylesheet ===== */
:root {
    --green: #0E6B4E;       /* Xanh lá ngọc */
    --green-dark: #094A36;
    --green-light: #E8F5EF;
    --gold: #D4A53A;        /* Vàng gold */
    --gold-dark: #B5872A;
    --gold-light: #FBF3DC;
    --black: #1a1a1a;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --red: #dc2626;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  /* Real-image overlay that covers the gradient placeholder. Falls back gracefully via onerror. */
  .ph-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    display: block;
  }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.5;
  }

  /* === DEMO NAV === */
  .demo-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
    color: white;
    padding: 14px 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-wrap: wrap;
  }
  .demo-nav .demo-title {
    font-weight: 700;
    margin-right: 16px;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.5px;
  }
  .demo-nav button {
    background: transparent;
    color: white;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
  }
  .demo-nav button:hover { background: #333; border-color: var(--gold); }
  .demo-nav button.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 700;
  }

  /* Demo-only rules removed: conflicted with WordPress body.page class.
     Original demo HTML toggled .page/.page.active to swap views in a single file.
     In WP integration each URL is its own page so display toggling is unnecessary. */

  /* === HEADER === */
  body { position: relative; }

  .top-bar {
    background: linear-gradient(90deg, var(--green-dark) 0%, #0b5a40 50%, var(--green-dark) 100%);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    padding: 7px max(28px, calc((100% - 1280px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.2px;
  }
  .top-bar span { opacity: 0.95; }
  .top-bar a {
    color: var(--gold);
    text-decoration: none;
    margin-left: 12px;
    transition: color 0.2s, opacity 0.2s;
  }
  .top-bar a:hover { color: #f0c75a; }

  .header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    padding: 12px max(28px, calc((100% - 1280px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 2px 14px rgba(9,74,54,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 15%, var(--gold-dark) 50%, var(--gold) 85%, transparent 100%);
    opacity: 0.85;
    pointer-events: none;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s;
  }
  .logo:hover { transform: translateY(-1px); }
  .logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 19px;
    font-style: italic;
    letter-spacing: -0.5px;
    box-shadow: 0 6px 14px rgba(14,107,78,0.28), inset 0 0 0 1.5px rgba(212,165,58,0.2);
    position: relative;
    overflow: hidden;
  }
  .logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
  }
  .logo-text-row1 { font-size: 10px; color: var(--gray-500); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
  .logo-text-row2 { font-size: 19px; color: var(--green-dark); font-weight: 800; letter-spacing: 0.3px; line-height: 1.15; }
  .logo-text-row3 { font-size: 10px; color: var(--gold-dark); font-weight: 600; font-style: italic; letter-spacing: 0.3px; }

  .search-bar {
    flex: 1;
    max-width: 520px;
    margin: 0;
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    background: var(--gray-50);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  }
  .search-bar:hover { border-color: var(--gray-300); }
  .search-bar:focus-within {
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 3px rgba(14,107,78,0.10);
  }
  .search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--gray-900);
  }
  .search-bar input::placeholder { color: var(--gray-500); }
  .search-bar button {
    background: var(--green);
    color: white;
    border: none;
    padding: 0 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    transition: background 0.2s;
  }
  .search-bar button:hover { background: var(--green-dark); }

  .header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .icon-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--gray-700);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.1s;
  }
  .icon-btn:hover {
    background: var(--green-light);
    color: var(--green-dark);
  }
  .icon-btn:active { transform: scale(0.94); }
  .icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--red);
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px white;
  }

  .main-nav {
    background: linear-gradient(180deg, var(--green) 0%, #0a6147 100%);
    padding: 0 max(24px, calc((100% - 1280px) / 2));
    display: flex;
    gap: 0;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
  }
  .main-nav a {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.18s, color 0.18s;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .main-nav a:last-child { border-right: none; }
  .main-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
  }
  .main-nav a.active {
    background: var(--green-dark);
    color: var(--gold);
  }
  .main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px 2px 0 0;
  }

  /* === BREADCRUMB === */
  .breadcrumb {
    background: white;
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-500);
  }
  .breadcrumb a { color: var(--green); text-decoration: none; }
  .breadcrumb .sep { margin: 0 8px; color: var(--gray-300); }

  /* === LAYOUT === */
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
  .container.single { grid-template-columns: 1fr; max-width: 1100px; }

  /* === SIDEBAR === */
  .sidebar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
    position: sticky;
    top: 100px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .sidebar-header {
    background: var(--green);
    color: white;
    padding: 14px 18px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--gold);
  }
  .sidebar-list { list-style: none; }
  .sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    transition: all 0.15s;
  }
  .sidebar-list li a:hover { background: var(--green-light); color: var(--green); padding-left: 22px; }
  .sidebar-list li a.active { background: var(--green-light); color: var(--green); font-weight: 600; border-left: 3px solid var(--gold); }
  .sidebar-list .count { background: var(--gray-100); color: var(--gray-500); font-size: 11px; padding: 2px 8px; border-radius: 999px; }

  .sidebar-banner {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .sidebar-banner .gold-text { color: var(--gold); font-weight: 700; }
  .sidebar-banner h4 { font-size: 16px; margin-bottom: 8px; }
  .sidebar-banner p { font-size: 12px; opacity: 0.9; margin-bottom: 12px; }
  .sidebar-banner .phone {
    background: var(--gold);
    color: var(--black);
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
  }

  /* === BANNER === */
  .page-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--gold-dark) 100%);
    color: white;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .page-banner h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .page-banner .sub {
    font-size: 14px;
    opacity: 0.95;
    letter-spacing: 1px;
  }
  .page-banner .gold { color: var(--gold); }

  /* === PRODUCT GRID === */
  .toolbar {
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    background: white;
  }
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .product-img {
    height: 180px;
    background: linear-gradient(135deg, #d4d4d4, #a3a3a3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
  }
  .product-img::before {
    content: '';
    position: absolute;
    inset: 0;
    /* striped pattern removed */
  }
  .badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: var(--black);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
  }
  .product-info { padding: 14px 16px; }
  .product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 40px;
  }
  .product-price {
    color: var(--red);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
  }
  .product-price .unit { color: var(--gray-500); font-weight: 400; font-size: 12px; }
  .product-card .btn-add {
    width: 100%;
    background: var(--green);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
  }
  .product-card .btn-add:hover { background: var(--green-dark); }

  /* === PRODUCT DETAIL === */
  .pd-grid {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pd-main-img {
    height: 380px;
    background: linear-gradient(135deg, #c0c0c0, #808080);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-weight: 500;
  }
  .pd-main-img::before {
    content: '';
    position: absolute;
    inset: 0;
    /* striped pattern removed */
    border-radius: 8px;
  }
  .pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .pd-thumb {
    height: 70px;
    background: linear-gradient(135deg, #d4d4d4, #a3a3a3);
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
  }
  .pd-thumb.active { border-color: var(--green); }

  .pd-info h1 {
    font-size: 24px;
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .pd-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-500);
  }
  .pd-meta span strong { color: var(--gray-900); }
  .pd-price-box {
    background: var(--green-light);
    border-left: 4px solid var(--green);
    padding: 16px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
  }
  .pd-price-box .label { font-size: 12px; color: var(--gray-700); margin-bottom: 4px; }
  .pd-price-box .price { color: var(--red); font-size: 28px; font-weight: 800; }
  .pd-price-box .unit { color: var(--gray-500); font-size: 13px; font-weight: 400; margin-left: 6px; }
  .pd-price-box .note { font-size: 11px; color: var(--gray-500); margin-top: 6px; font-style: italic; }

  .pd-section { margin-bottom: 18px; }
  .pd-section-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .pd-section-title .num {
    width: 22px;
    height: 22px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
  }
  .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .size-opt {
    padding: 8px 14px;
    border: 1.5px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
  }
  .size-opt:hover { border-color: var(--green); }
  .size-opt.selected {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green);
    font-weight: 700;
  }

  /* === TOPPING / SERVICE === */
  .service-box {
    background: var(--gold-light);
    border: 1.5px dashed var(--gold);
    border-radius: 8px;
    padding: 16px;
  }
  .service-box .hint {
    font-size: 12px;
    color: var(--gold-dark);
    margin-bottom: 12px;
    font-style: italic;
  }
  .service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
  }
  .service-item:hover { border-color: var(--gold); }
  .service-item.selected { border-color: var(--green); background: var(--green-light); }
  .service-item label {
    display: flex;
    gap: 10px;
    cursor: pointer;
    flex: 1;
  }
  .service-item input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
  }
  .service-item .s-name { font-weight: 600; font-size: 14px; color: var(--gray-900); }
  .service-item .s-desc { font-size: 11px; color: var(--gray-500); margin-top: 2px; font-style: italic; }
  .service-item .s-price { font-weight: 700; color: var(--green); font-size: 13px; white-space: nowrap; margin-left: 12px; }
  .service-item .s-price.free { color: var(--gold-dark); }

  .qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }
  .qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    overflow: hidden;
  }
  .qty-control button {
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 38px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-700);
  }
  .qty-control button:hover { background: var(--green-light); color: var(--green); }
  .qty-control input {
    width: 56px;
    height: 38px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    outline: none;
  }

  .pd-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  .btn {
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .btn-primary { background: var(--green); color: white; flex: 1; }
  .btn-primary:hover { background: var(--green-dark); }
  .btn-gold { background: var(--gold); color: var(--black); }
  .btn-gold:hover { background: var(--gold-dark); color: white; }
  .btn-outline {
    background: white;
    color: var(--green);
    border: 1.5px solid var(--green);
  }
  .btn-outline:hover { background: var(--green-light); }

  /* === CART PAGE === */
  .cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
  }
  .cart-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
  }
  .cart-header {
    background: var(--green);
    color: white;
    padding: 14px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--gold);
    display: flex;
    justify-content: space-between;
  }
  .cart-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: start;
  }
  .cart-item:last-child { border-bottom: none; }
  .cart-img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4d4d4, #a3a3a3);
    border-radius: 6px;
    position: relative;
  }
  .cart-img::before {
    content: '';
    position: absolute;
    inset: 0;
    /* striped pattern removed */
    border-radius: 6px;
  }
  .cart-item-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 15px;
    margin-bottom: 4px;
  }
  .cart-item-variant {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
  }
  .cart-item-price {
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
  }
  .cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .qty-control.small button { width: 28px; height: 30px; font-size: 14px; }
  .qty-control.small input { width: 40px; height: 30px; font-size: 13px; }
  .remove-btn {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
  }

  /* Services under each product in cart */
  .cart-services {
    grid-column: 2 / 4;
    background: var(--green-light);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin-top: 10px;
  }
  .cart-services-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .cart-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .cart-services-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-700);
  }
  .cart-services-list li .price { font-weight: 600; color: var(--green); }
  .cart-services-list li .price.free { color: var(--gold-dark); }

  .cart-note-box {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .cart-note-box label {
    display: block;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  .cart-note-box textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
  }
  .cart-note-box textarea:focus { outline: none; border-color: var(--green); }

  .cart-summary {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    align-self: start;
    position: sticky;
    top: 100px;
  }
  .cart-summary h3 {
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-700);
  }
  .summary-row.services {
    background: var(--gold-light);
    padding: 8px 10px;
    border-radius: 6px;
    margin: 6px 0;
  }
  .summary-row.total {
    border-top: 2px solid var(--gray-200);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-900);
  }
  .summary-row.total .amount { color: var(--red); font-size: 20px; }
  .summary-btn {
    width: 100%;
    margin-top: 14px;
  }

  /* === CHECKOUT PAGE === */
  .co-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
  }
  .co-section {
    background: white;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .co-section h3 {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .co-section h3 .num {
    width: 26px;
    height: 26px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }
  .form-group { margin-bottom: 14px; }
  .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
  }
  .form-group label .req { color: var(--red); }
  .form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
  }
  .form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--green);
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .ref-btn-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .ref-btn {
    background: var(--gold-light);
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
  }
  .ref-btn:hover { background: var(--gold); color: var(--black); }
  .ref-btn .icon { font-size: 14px; }

  /* Reference modal/panel */
  .ref-panel {
    display: none;
    background: linear-gradient(135deg, #fef9e7, #fbf3dc);
    border: 1.5px solid var(--gold);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    animation: slideDown 0.25s ease;
  }
  .ref-panel.show { display: block; }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .ref-panel h4 {
    font-size: 14px;
    color: var(--gold-dark);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .ref-panel .close-x { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--gray-500); }
  .ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
  }
  .ref-table th, .ref-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
  }
  .ref-table th {
    background: var(--green);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .ref-table tr:last-child td { border-bottom: none; }
  .ref-table td:last-child { color: var(--red); font-weight: 700; }
  .ref-note { font-size: 11px; color: var(--gray-500); margin-top: 8px; font-style: italic; }

  /* Payment options */
  .payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pay-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .pay-opt:hover { border-color: var(--green); }
  .pay-opt.selected { border-color: var(--green); background: var(--green-light); }
  .pay-opt input[type="radio"] { width: 18px; height: 18px; accent-color: var(--green); }
  .pay-icon {
    width: 44px;
    height: 44px;
    background: var(--green-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 20px;
    font-weight: 800;
  }
  .pay-opt-text strong { display: block; font-size: 14px; color: var(--gray-900); margin-bottom: 2px; }
  .pay-opt-text span { font-size: 12px; color: var(--gray-500); }

  /* QR section */
  .qr-section {
    display: none;
    background: linear-gradient(135deg, var(--green-light), #fef9e7);
    border: 2px dashed var(--green);
    border-radius: 10px;
    padding: 24px;
    margin-top: 16px;
    text-align: center;
  }
  .qr-section.show { display: block; }
  .qr-section h4 {
    font-size: 15px;
    color: var(--green-dark);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .qr-wrap {
    display: inline-block;
    background: white;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .qr-code {
    width: 200px;
    height: 200px;
    background: white;
    position: relative;
  }
  .qr-bank-info {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.7;
  }
  .qr-bank-info .bank-name { color: var(--green-dark); font-weight: 800; font-size: 15px; }
  .qr-bank-info .acct-no { font-family: monospace; font-weight: 700; color: var(--black); font-size: 16px; letter-spacing: 1px; }
  .qr-amount {
    background: var(--gold-light);
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 12px;
    display: inline-block;
  }
  .qr-amount .label { font-size: 11px; color: var(--gold-dark); text-transform: uppercase; }
  .qr-amount .amount { font-size: 22px; font-weight: 800; color: var(--red); }
  .qr-note-bottom { font-size: 12px; color: var(--gray-500); margin-top: 12px; font-style: italic; }

  /* Order summary card */
  .order-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    align-self: start;
    position: sticky;
    top: 100px;
  }
  .order-card h3 {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .order-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--gray-200);
  }
  .order-item-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .order-item .o-img {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #d4d4d4, #a3a3a3);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
  }
  .order-item .o-img::before {
    content: '';
    position: absolute;
    inset: 0;
    /* striped pattern removed */
    border-radius: 6px;
  }
  .order-item .o-name { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
  .order-item .o-variant { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
  .order-item .o-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-700);
  }
  .order-item .o-price-row strong { color: var(--red); }

  /* services inside checkout order item */
  .o-services {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--green-light);
    border-left: 2px solid var(--gold);
    border-radius: 0 4px 4px 0;
  }
  .o-services .title {
    font-size: 10px;
    color: var(--green-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }
  .o-services ul { list-style: none; }
  .o-services li {
    font-size: 11px;
    color: var(--gray-700);
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
  }
  .o-services li .v { color: var(--green); font-weight: 600; }
  .o-services li .v.free { color: var(--gold-dark); }

  .o-note {
    background: var(--gold-light);
    border-left: 2px solid var(--gold);
    padding: 6px 10px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--gray-700);
    border-radius: 0 4px 4px 0;
  }
  .o-note .title { font-size: 10px; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; }

  .toggle-promo {
    display: flex;
    gap: 8px;
    margin: 14px 0;
  }
  .toggle-promo input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    font-size: 13px;
  }
  .toggle-promo button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
  }

  /* === FOOTER === */
  .footer {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    padding: 32px 24px 16px;
    margin-top: 40px;
    border-top: 4px solid var(--gold);
  }
  .footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-col h4 {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .footer-col p, .footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.6;
  }
  .footer-col a:hover { color: var(--gold); }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 24px;
    padding-top: 14px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* === MISC === */
  .checkout-stepper {
    background: white;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
  }
  .stepper-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
  }
  .stepper-inner::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
  }
  .step {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    padding: 0 8px;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
  }
  .step.done .step-circle { background: var(--green); color: white; }
  .step.current .step-circle { background: var(--gold); color: var(--black); box-shadow: 0 0 0 4px var(--gold-light); }
  .step-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; }
  .step.done .step-label, .step.current .step-label { color: var(--gray-900); }

  /* === HERO (full-width background image) === */
  .hero {
    position: relative;
    height: 520px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--gold-dark) 100%);
    color: white;
    overflow: hidden;
  }
  /* full-bleed background image */
  .hero > .ph-img {
    z-index: 0;
  }
  /* dark gradient overlay so text stays readable on top of photo */
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(7,40,28,0.92) 0%, rgba(9,74,54,0.80) 42%, rgba(9,74,54,0.30) 75%, rgba(9,74,54,0.10) 100%),
      linear-gradient(0deg, rgba(7,40,28,0.55), rgba(7,40,28,0));
  }
  .hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 20px, transparent 20px 40px);
  }
  .hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 90px 40px;
    display: block;
    max-width: 1280px;
    z-index: 2;
  }
  .hero-text { max-width: 640px; }
  .hero-text .badge-tag-hero {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }
  .hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 18px;
    text-shadow: 0 3px 18px rgba(0,0,0,0.45);
  }
  .hero-text h1 .gold { color: var(--gold); }
  .hero-text p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 24px;
    max-width: 540px;
    line-height: 1.6;
  }
  .hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .hero-stat .num { font-size: 32px; font-weight: 800; color: var(--gold); display: block; }
  .hero-stat .lbl { font-size: 12px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
  .hero-visual {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, #b5b5b5, #707070);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 4px solid var(--gold);
  }
  .hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 12px, transparent 12px 24px);
  }
  .hero-visual:not(:has(img))::after {
    content: '[Hình ảnh nhà máy sản xuất / sản phẩm chủ đạo]';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
  }
  .hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
  }
  .hero-dots span {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    cursor: pointer;
  }
  .hero-dots span.active { background: var(--gold); width: 50px; }

  /* === HERO SWIPER === */
  .hero-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
  }
  .hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
  }
  .hero-swiper .hero-overlay { z-index: 1; }
  .hero-swiper .hero-content { z-index: 2; }

  /* Pagination dots */
  .hero-swiper .swiper-pagination {
    bottom: 22px !important;
    z-index: 6;
  }
  .hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.45);
    opacity: 1;
    margin: 0 5px !important;
    transition: width 0.25s ease, background 0.25s ease;
  }
  .hero-swiper .swiper-pagination-bullet-active {
    background: var(--gold);
    width: 32px;
    border-radius: 5px;
  }

  /* Navigation arrows */
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    color: var(--gold);
    width: 46px;
    height: 46px;
    background: rgba(7,40,28,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    margin-top: -23px;
    z-index: 6;
  }
  .hero-swiper .swiper-button-prev { left: 28px; }
  .hero-swiper .swiper-button-next { right: 28px; }
  .hero-swiper .swiper-button-prev:hover,
  .hero-swiper .swiper-button-next:hover {
    background: var(--gold);
    color: var(--green-dark);
    transform: scale(1.06);
    border-color: var(--gold);
  }
  .hero-swiper .swiper-button-prev::after,
  .hero-swiper .swiper-button-next::after {
    font-size: 17px;
    font-weight: 800;
  }

  /* === SECTION === */
  .section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
  }
  .section-head {
    text-align: center;
    margin-bottom: 36px;
  }
  .section-head .eyebrow {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .section-head h2 {
    font-size: 30px;
    color: var(--gray-900);
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .section-head h2 .gold { color: var(--gold-dark); }
  .section-head .line {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 8px auto 12px;
    border-radius: 2px;
  }
  .section-head p { color: var(--gray-500); font-size: 14px; max-width: 600px; margin: 0 auto; }

  /* === CATEGORY GRID === */
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .cat-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 4px solid transparent;
  }
  .cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-bottom-color: var(--gold);
  }
  .cat-img {
    height: 140px;
    background: linear-gradient(135deg, #d4d4d4, #888);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 13px;
  }
  .cat-img::before {
    content: '';
    position: absolute;
    inset: 0;
    /* striped pattern removed */
  }
  .cat-info { padding: 14px 16px; }
  .cat-info h4 { color: var(--green-dark); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
  .cat-info p { color: var(--gray-500); font-size: 12px; }

  /* === SERVICE GRID === */
  .svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .svc-card {
    background: white;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.2s;
    border-top: 4px solid var(--green);
  }
  .svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-top-color: var(--gold);
  }
  .svc-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(14,107,78,0.3);
  }
  .svc-card h4 {
    color: var(--gray-900);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .svc-card p {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .svc-card .price-tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
  }

  /* === WHY US === */
  .why-section {
    background: linear-gradient(135deg, var(--green-light), white);
  }
  .why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .why-card {
    text-align: center;
    padding: 24px 16px;
  }
  .why-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
    color: var(--green);
  }
  .why-card h5 { color: var(--gray-900); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
  .why-card p { color: var(--gray-500); font-size: 12px; line-height: 1.5; }

  /* === NEWS PREVIEW === */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
  }
  .news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .news-img {
    height: 180px;
    background: linear-gradient(135deg, #c0c0c0, #707070);
    position: relative;
  }
  .news-img::before {
    content: '';
    position: absolute;
    inset: 0;
    /* striped pattern removed */
  }
  .news-img .date-stamp {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--black);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    text-align: center;
    line-height: 1.2;
  }
  .news-img .date-stamp strong { font-size: 18px; display: block; }
  .news-info { padding: 18px; }
  .news-info .cat-label {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }
  .news-info h4 {
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 44px;
  }
  .news-info p {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .news-info .read-more {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  /* === PARTNERS === */
  .partner-section {
    background: white;
  }
  .partner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: center;
  }
  .partner-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    color: var(--gray-500);
    font-weight: 700;
    font-size: 13px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  .partner-card:hover {
    border-color: var(--gold);
    color: var(--green);
    transform: scale(1.05);
  }

  /* === CTA BANNER === */
  .cta-banner {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    border-radius: 16px;
    padding: 40px;
    margin: 24px;
    max-width: 1232px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--gold);
  }
  .cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px);
  }
  .cta-banner > * { position: relative; z-index: 1; }
  .cta-banner h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  .cta-banner h2 .gold { color: var(--gold); }
  .cta-banner p { font-size: 14px; opacity: 0.95; }
  .cta-banner .cta-actions { display: flex; flex-direction: column; gap: 10px; }

  /* === VERTICAL FIXED BANNER (Services page) === */
  .side-banner {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
  }
  .side-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    /* striped pattern removed */
  }
  .side-banner > * { position: relative; z-index: 1; }
  .side-banner .ribbon {
    background: var(--green-dark);
    color: var(--gold);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .side-banner h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .side-banner p { font-size: 12px; margin-bottom: 14px; line-height: 1.5; }
  .side-banner .price {
    font-size: 24px;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 14px;
  }
  .side-banner .btn-side {
    background: var(--green-dark);
    color: white;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
  }

  /* === NEWS DETAIL LIST === */
  .news-list-vert {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .news-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
  }
  .news-row:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
  .news-row .news-img { height: auto; min-height: 160px; }
  .news-row .news-info { padding: 18px 22px 18px 0; }
  .news-row .news-info h4 { min-height: auto; font-size: 17px; margin-bottom: 6px; }
  .news-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
  .news-meta span { margin-right: 14px; }

  /* === CONTACT === */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
  }
  .contact-info {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .contact-info h3 {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .contact-info > p {
    font-size: 13px;
    opacity: 0.95;
    margin-bottom: 22px;
    line-height: 1.6;
  }
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .contact-item:last-child { border-bottom: none; }
  .contact-icon {
    width: 42px;
    height: 42px;
    background: var(--gold);
    color: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
  }
  .contact-item .label { font-size: 12px; opacity: 0.85; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
  .contact-item .value { font-size: 14px; font-weight: 600; line-height: 1.5; color: #fff; }
  .contact-item .value a { color: #fff; }
  .contact-item .value a:hover { color: var(--gold); }

  .contact-form {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .contact-form h3 {
    color: var(--gray-900);
    font-size: 20px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .contact-form > p { color: var(--gray-500); font-size: 13px; margin-bottom: 20px; }

  .map-block {
    background: linear-gradient(135deg, #b8d4c5, #8ebca6);
    height: 320px;
    border-radius: 12px;
    margin-top: 24px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    font-weight: 600;
    border: 3px solid var(--gold);
  }
  .map-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,0.3) 0 1px, transparent 1px 50px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0 1px, transparent 1px 50px);
  }
  .map-pin {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .map-pin .pin {
    width: 48px;
    height: 48px;
    background: var(--red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .map-pin .pin::after {
    content: '';
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
  }

  /* === ABOUT === */
  .about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .about-img {
    background: linear-gradient(135deg, #b5b5b5, #707070);
    border-radius: 16px;
    height: 360px;
    position: relative;
    border: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  .about-img:not(:has(img))::before {
    content: '[Hình ảnh nhà máy / showroom]';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
  }
  .about-text .eyebrow {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
  }
  .about-text h2 {
    font-size: 28px;
    color: var(--gray-900);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
  }
  .about-text h2 .gold { color: var(--gold-dark); }
  .about-text p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--green-light);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--gold);
  }
  .about-stat { text-align: center; }
  .about-stat .num { font-size: 28px; font-weight: 900; color: var(--green-dark); display: block; }
  .about-stat .lbl { font-size: 11px; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.5px; }

  .timeline-block {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .timeline {
    position: relative;
    padding-left: 30px;
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
  }
  .timeline-item {
    position: relative;
    padding-bottom: 22px;
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border: 3px solid var(--gold);
    border-radius: 50%;
  }
  .timeline-item .year {
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
  }
  .timeline-item h5 { color: var(--gray-900); font-size: 15px; margin-bottom: 4px; }
  .timeline-item p { color: var(--gray-700); font-size: 13px; line-height: 1.6; }

  .values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .value-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-bottom: 4px solid var(--gold);
  }
  .value-card .ico {
    width: 50px;
    height: 50px;
    background: var(--green-light);
    color: var(--green-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
  }
  .value-card h5 { color: var(--gray-900); font-size: 16px; margin-bottom: 8px; }
  .value-card p { color: var(--gray-500); font-size: 13px; line-height: 1.6; }

  /* === SERVICES PAGE === */
  .svc-detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
  }
  .svc-detail-img {
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
  }
  .svc-detail-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px);
  }
  .svc-detail-body { padding: 22px 24px; }
  .svc-detail-body h3 {
    color: var(--gray-900);
    font-size: 18px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 800;
  }
  .svc-detail-body .price-row {
    color: var(--red);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
  }
  .svc-detail-body p {
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .svc-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }
  .svc-features li {
    font-size: 12px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .svc-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* Hamburger toggle — ẩn ở desktop, hiện ở mobile (≤720px) */
.nav-toggle { display: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */

/* ===== ≤ 1200px: kéo container về sát mép, giảm gap ===== */
@media (max-width: 1200px) {
  .container { padding: 18px; gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ===== ≤ 1024px (tablet landscape): sidebar mỏng hơn, grid 2 cột ===== */
@media (max-width: 1024px) {
  .container { grid-template-columns: 220px 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr 320px; }
  .co-layout { grid-template-columns: 1fr 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pd-main-img { height: 320px; }
  .page-banner h1 { font-size: 26px; }
  .header { padding: 12px 18px; gap: 16px; }
  .search-bar { max-width: 380px; }
}

/* ===== ≤ 860px: stack hết các grid 2 cột ===== */
@media (max-width: 860px) {
  .container,
  .container.single { grid-template-columns: 1fr; padding: 16px; }
  .sidebar { position: static; top: auto; }
  .sidebar-banner { display: none; }
  .pd-grid { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .pd-main-img { height: 280px; }
  .cart-layout,
  .co-layout { grid-template-columns: 1fr; }
  .cart-summary,
  .order-card { position: static; top: auto; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-stepper { padding: 14px 16px; }
  .step-label { font-size: 11px; }
}

/* ===== ≤ 720px (tablet portrait & lớn hơn mobile): header wrap, nav scroll ===== */
@media (max-width: 720px) {
  .top-bar {
    padding: 6px 14px;
    font-size: 11px;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
  }
  .top-bar span:last-child { display: none; }
  .top-bar span:first-child {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }
  .logo-icon { width: 44px; height: 44px; font-size: 18px; }
  .logo-text-row1 { font-size: 10px; }
  .logo-text-row2 { font-size: 16px; }
  .logo-text-row3 { font-size: 9px; }
  .search-bar {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    max-width: none;
  }
  .header-actions { gap: 4px; }
  .icon-btn { width: 38px; height: 38px; font-size: 17px; border-radius: 9px; }

  .nav-toggle { display: inline-flex !important; }

  .main-nav {
    display: none;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .main-nav.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 49;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    max-height: 75vh;
    overflow-y: auto;
    /* top được JS set khi mở (= cao của header + scroll hiện tại) */
  }
  .main-nav a {
    flex: 0 0 auto;
    text-align: left;
    padding: 14px 18px;
    font-size: 13px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { border-left: 4px solid var(--gold); padding-left: 14px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img { height: 140px; }
  .product-title { font-size: 13px; min-height: 36px; }
  .product-price { font-size: 14px; }

  .page-banner { padding: 28px 14px; }
  .page-banner h1 { font-size: 22px; letter-spacing: 1px; }
  .page-banner .sub { font-size: 12px; }

  .pd-info h1 { font-size: 20px; }
  .pd-meta { flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }
  .pd-price-box .price { font-size: 24px; }

  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
  .btn { padding: 10px 16px; font-size: 13px; }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .cart-img { width: 60px; height: 60px; }
  .cart-item-controls {
    grid-column: 1 / 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
  }
  .cart-services { grid-column: 1 / 3; }

  .footer { padding: 24px 16px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* ===== ≤ 480px (mobile): 1 cột mọi thứ, gọn tối đa ===== */
@media (max-width: 480px) {
  .top-bar { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-img { height: 180px; }
  .product-title { min-height: auto; }

  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .toolbar > div { flex-direction: column; }
  .toolbar select { width: 100%; }

  .pd-grid { padding: 14px; }
  .pd-main-img { height: 220px; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pd-thumb { height: 54px; }

  .breadcrumb { padding: 10px 14px; font-size: 12px; }
  .breadcrumb .sep { margin: 0 5px; }

  .checkout-stepper { padding: 10px 8px; }
  .stepper-inner::before { left: 8%; right: 8%; top: 12px; }
  .step-circle { width: 26px; height: 26px; font-size: 12px; }
  .step-label { font-size: 10px; }
  .step { padding: 0 4px; }

  .co-section { padding: 16px 14px; }
  .co-section h3 { font-size: 13px; }
  .ref-btn { font-size: 11px; padding: 7px 10px; }
  .ref-table { font-size: 11px; }
  .ref-table th, .ref-table td { padding: 6px 8px; }

  .qr-section { padding: 16px 12px; }
  .qr-code { width: 170px; height: 170px; }
  .qr-amount .amount { font-size: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom { font-size: 11px; }

  .summary-row.total .amount { font-size: 18px; }
}

/* =================================================================
   RESPONSIVE — Trang khác (index, about, contact, news, service)
   ================================================================= */

/* ===== ≤ 1024px ===== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid,
  .news-grid,
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .about-hero { gap: 20px; }
  .about-img { height: 300px; }
  .about-text h2 { font-size: 24px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cta-banner { padding: 32px; margin: 18px; }
  .svc-detail-card { grid-template-columns: 200px 1fr; }
}

/* ===== ≤ 860px ===== */
@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 14px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid,
  .news-grid,
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .about-img { height: 240px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .map-block { height: 260px; }

  .cta-banner { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .cta-banner .cta-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }

  .news-row { grid-template-columns: 160px 1fr; }
  .news-row .news-img { min-height: 130px; }

  .svc-detail-card { grid-template-columns: 1fr; }
  .svc-detail-img { min-height: 160px; height: 160px; font-size: 48px; }
  .svc-features { grid-template-columns: 1fr; }
}

/* ===== ≤ 720px ===== */
@media (max-width: 720px) {
  .section { padding: 36px 16px; }
  .section-head { margin-bottom: 22px; }

  .hero { height: auto; min-height: 420px; }
  .hero-content { padding: 36px 18px; }
  .hero-text h1 { font-size: 24px; line-height: 1.25; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .hero-stat .num { font-size: 24px; }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
  .hero-swiper .swiper-button-prev { left: 10px; }
  .hero-swiper .swiper-button-next { right: 10px; }
  .hero-swiper .swiper-button-prev::after,
  .hero-swiper .swiper-button-next::after { font-size: 13px; }
  .hero-swiper .swiper-pagination { bottom: 14px !important; }

  .section-head h2 { font-size: 22px !important; }

  .cat-img,
  .news-img { height: 130px; }
  .svc-card { padding: 22px 16px; }
  .svc-icon { width: 56px; height: 56px; font-size: 24px; }

  .partner-grid { grid-template-columns: repeat(3, 1fr); }

  .cta-banner { padding: 22px; margin: 14px; }
  .cta-banner h2 { font-size: 20px; }

  .news-row { grid-template-columns: 1fr; }
  .news-row .news-img { min-height: 160px; height: 160px; }
  .news-row .news-info { padding: 14px 18px 18px; }

  .timeline-block { padding: 20px 16px; }

  .contact-info,
  .contact-form { padding: 22px 18px; }
  .contact-info h3,
  .contact-form h3 { font-size: 17px; }
}

/* ===== ≤ 480px ===== */
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-img { height: 110px; }
  .cat-info { padding: 10px 12px; }
  .cat-info h4 { font-size: 13px; }
  .cat-info p { font-size: 11px; }

  .svc-grid,
  .news-grid,
  .values-grid,
  .why-grid { grid-template-columns: 1fr; }

  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card { height: 64px; font-size: 12px; }

  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .about-stat .num { font-size: 22px; }
  .about-text h2 { font-size: 20px; }

  .news-info h4 { font-size: 15px; min-height: auto; }
  .news-img .date-stamp { padding: 4px 8px; font-size: 10px; }

  .map-block { height: 220px; }

  .cta-banner h2 { font-size: 18px; }
  .cta-banner p { font-size: 13px; }
}
