:root {
  --primary: #d63384;
  --primary-hover: #b02a6b;
  --secondary: #198754;
  --zalo-blue: #0068ff;
  --dark: #212529;
  --light: #f8f9fa;
  --border: #e9ecef;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--dark);
  line-height: 1.6;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
header {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
}
nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
  padding: 4px 0;
}
nav a:hover, nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.hotline-btn {
  background: linear-gradient(135deg, #d63384, #e83e8c);
  color: #fff;
  padding: 9px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(214, 51, 132, 0.3);
}

/* Breadcrumb */
.breadcrumb-nav {
  padding: 10px 0;
  background: #fdfafb;
  font-size: 13.5px;
  border-bottom: 1px solid #f4ecef;
}
.breadcrumb {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb li+li:before {
  content: "/";
  margin-right: 8px;
  color: #999;
}
.breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb .current {
  color: var(--dark);
  font-weight: 600;
}

/* Hero & Headings */
.page-header {
  padding: 25px 0 15px;
  text-align: center;
}
h1 {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.intro-text {
  font-size: 15.5px;
  color: #555;
  max-width: 850px;
  margin: 0 auto 20px;
  line-height: 1.65;
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 20px 0;
  background: #fff5f8;
  padding: 18px;
  border-radius: 8px;
  border: 1px dashed #f5c2d7;
}
.badge-item {
  text-align: center;
  font-size: 13.5px;
}
.badge-item strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 3px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 15.5px;
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.4;
}
.product-title a {
  text-decoration: none;
  color: var(--dark);
}
.product-title a:hover {
  color: var(--primary);
}
.product-price {
  font-size: 17.5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.fast-delivery-tag {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11.5px;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 10px;
  align-self: flex-start;
}
.btn-buy {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-buy:hover {
  background: var(--primary-hover);
}

/* Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin: 25px 0 45px;
}
.product-main-image img {
  width: 100%;
  border-radius: 8px;
  height: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.detail-price {
  font-size: 24px;
  color: var(--primary);
  font-weight: 800;
  margin: 12px 0;
}
.specs-list {
  list-style: none;
  margin: 18px 0;
}
.specs-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}

/* Content Area & Tables */
.content-section {
  margin: 40px 0;
}
.content-section h2 {
  font-size: 21px;
  margin: 25px 0 12px;
  color: var(--dark);
}
.content-section p {
  margin-bottom: 14px;
  color: #444;
  line-height: 1.7;
}

/* Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.seo-table th, .seo-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.seo-table th {
  background: #fdf2f4;
  color: var(--primary);
  font-weight: 700;
}
.seo-table tr:nth-child(even) {
  background: #fafafa;
}

/* FAQ Section */
.faq-accordion {
  margin: 20px 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 14px;
  background: #fff;
}
.faq-question {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--dark);
  margin-bottom: 6px;
}
.faq-answer {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #adb5bd;
  padding: 45px 0 20px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}
.footer-col h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 7px;
}
.footer-col a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover {
  color: #fff;
}
.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 18px;
  font-size: 12.5px;
}

/* ========================================================
   THANH ĐIỀU HƯỚNG NHANH & STICKY CTA CHO ĐIỆN THOẠI (MOBILE)
   ======================================================== */

/* Thanh cuộn danh mục ngang trên Mobile */
.mobile-cat-bar {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}
.mobile-cat-bar::-webkit-scrollbar {
  display: none;
}
.mobile-cat-pill {
  display: inline-block;
  padding: 6px 14px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s;
}
.mobile-cat-pill.active, .mobile-cat-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Thanh Sticky Bottom Bar cố định dưới đáy Mobile */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  grid-template-columns: 1fr 1fr 1.3fr;
  align-items: center;
  padding: 6px 8px;
  gap: 6px;
}

.bottom-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.15s;
}
.bottom-action-btn:active {
  transform: scale(0.96);
}

/* Nút Gọi Điện (Green pulse) */
.btn-call {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}
.btn-call .btn-icon {
  font-size: 16px;
  margin-bottom: 2px;
}

/* Nút Chat Zalo (Zalo Blue) */
.btn-zalo {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}
.btn-zalo .btn-icon {
  font-size: 16px;
  margin-bottom: 2px;
}

/* Nút Đặt Hoa Nhanh (Primary Accent) */
.btn-order-now {
  background: linear-gradient(135deg, #d63384, #e83e8c);
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(214, 51, 132, 0.35);
}
.btn-order-now .btn-icon {
  font-size: 15px;
  margin-bottom: 2px;
}

/* Responsive Media Queries cho Mobile & Tablet */
@media (max-width: 768px) {
  body {
    padding-bottom: 65px; /* Để nội dung không bị thanh Sticky che khuất */
  }

  .header-wrap nav ul {
    display: none; /* Ẩn menu desktop trên màn hình nhỏ */
  }
  .header-wrap .hotline-btn {
    display: none; /* Đã có trong thanh bottom bar */
  }

  .mobile-cat-bar {
    display: flex;
  }
  .mobile-bottom-bar {
    display: grid;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Lưới 2 cột trên điện thoại như Shopee/Tiki */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card img {
    height: 180px;
  }
  .product-info {
    padding: 10px;
  }
  .product-title {
    font-size: 13.5px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .product-price {
    font-size: 15px;
  }
  .btn-buy {
    padding: 7px;
    font-size: 12.5px;
  }
  .fast-delivery-tag {
    font-size: 10px;
    padding: 2px 5px;
  }

  h1 {
    font-size: 21px;
  }
  .trust-badges {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
}
