/* ==================== BIẾN CSS CHỦ ĐỀ ==================== */
:root {
  --tgdd-yellow: #ffd400;
  --tgdd-yellow-dark: #f2c200;
  --tgdd-red: #d70018;
  --tgdd-red-dark: #b1000f;
  --tgdd-text: #222222;
  --tgdd-gray: #6e6e6e;
  --tgdd-bg-light: #f6f6f6;
  --tgdd-border: #e6e6e6;
  --primary-color: #667eea;
  --primary-dark: #5568d3;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
}

/* ==================== CẮT CHÂN TOÀN CỤC ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI", "-apple-system", "BlinkMacSystemFont", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  color: var(--tgdd-text);
  background-color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.topbar {
  background: linear-gradient(90deg, #ffb800 0%, #ff8a00 50%, #ffb800 100%);
  color: #6b3a00;
  font-weight: 700;
  padding: 6px 0;
  font-size: 13px;
}
.topbar .btn-buy-now {
  background: var(--tgdd-red);
  color: #fff;
  border-radius: 4px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 13px;
}

.main-header {
  background: var(--tgdd-yellow);
  padding: 10px 0;
  border-bottom: 3px solid var(--tgdd-yellow-dark);
}
.brand-logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--tgdd-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo img {
  height: 28px;
}
.brand-logo .dotcom {
  color: var(--tgdd-red);
  font-weight: 800;
}

.search-box {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e0c200;
}
.search-box input {
  border: none;
  padding: 8px 16px;
  font-size: 14px;
}
.search-box input:focus {
  outline: none;
  box-shadow: none;
}
.search-box .btn-search {
  background: #fff;
  border: none;
  padding: 0 14px;
  color: var(--tgdd-gray);
}

.header-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--tgdd-text);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.header-action i {
  font-size: 18px;
}

.cate-nav {
  background: var(--tgdd-yellow);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.cate-nav .nav-link {
  color: var(--tgdd-text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
}
.cate-nav .nav-link:hover,
.cate-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.35);
  color: var(--tgdd-red-dark);
}
.cate-nav .nav-link i {
  font-size: 16px;
}

.navbar-toggler {
  border: none;
  background: transparent;
  color: var(--tgdd-text);
  padding: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}
.cate-nav-mobile .nav-link {
  font-weight: 600;
  color: var(--tgdd-text);
  border-bottom: 1px solid var(--tgdd-border);
  padding: 12px 0;
}
.mobile-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-weight: 600;
  color: var(--tgdd-text);
  border-bottom: 1px solid var(--tgdd-border);
}

.hero-banner {
  background: linear-gradient(135deg, #111 0%, #1f1f1f 60%, #2a2a2a 100%);
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.hero-banner .apple-logo {
  font-size: 28px;
}
.hero-banner h1 {
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-price-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
}
.hero-price-box .price-old {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 13px;
}
.hero-price-box .price-new {
  color: var(--tgdd-yellow);
  font-weight: 800;
  font-size: 20px;
}

.product-thumb-strip img {
  width: 70px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.flash-sale-bar {
  background: #fff7e0;
  border: 1px solid #ffe6a8;
  border-radius: 8px;
}
.flash-badge {
  background: var(--tgdd-red);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.discount-pill {
  background: #18a900;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}
.online-only-pill {
  background: var(--tgdd-red);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}
.flash-timer {
  background: var(--tgdd-red);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  text-align: center;
}
.flash-timer .digit {
  background: #fff;
  color: var(--tgdd-red);
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 2px;
  font-weight: 800;
}
.cate-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--tgdd-text);
  padding: 6px 4px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.cate-pill.active {
  color: var(--tgdd-red);
  border-bottom-color: var(--tgdd-red);
}

.section-title {
  font-weight: 800;
  font-size: 20px;
  color: var(--tgdd-text);
  border-left: 5px solid var(--tgdd-red);
  padding-left: 10px;
  margin-bottom: 16px;
}
.product-card {
  border: 1px solid var(--tgdd-border);
  border-radius: 8px;
  padding: 12px;
  height: 100%;
  background: #fff;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 8px;
}
.product-card .sale-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--tgdd-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.product-card .p-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tgdd-text);
  display: block;
  margin-bottom: 6px;
  min-height: 36px;
}
.product-card .p-price {
  color: var(--tgdd-red);
  font-weight: 800;
  font-size: 15px;
}
.product-card .p-price-old {
  color: var(--tgdd-gray);
  text-decoration: line-through;
  font-size: 12px;
  margin-left: 6px;
}
.product-card .p-discount {
  background: var(--tgdd-bg-light);
  color: var(--tgdd-red);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
}
.product-card .p-rating {
  font-size: 12px;
  color: #ffb800;
}
.product-card .p-installment {
  font-size: 11.5px;
  color: var(--tgdd-gray);
  background: var(--tgdd-bg-light);
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
  margin-top: 4px;
}

.site-footer {
  background: #2b2b2b;
  color: #cfcfcf;
  font-size: 13px;
  padding-top: 40px;
}
.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 14px;
}
.site-footer a {
  color: #cfcfcf;
}
.site-footer a:hover {
  color: var(--tgdd-yellow);
}
.site-footer .social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3d3d3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 30px;
  padding: 16px 0;
  font-size: 12px;
  color: #9a9a9a;
}

.breadcrumb-bar {
  font-size: 13px;
  color: var(--tgdd-gray);
  padding: 12px 0;
}
.breadcrumb-bar a {
  color: var(--tgdd-gray);
}
.breadcrumb-bar a:hover {
  color: var(--tgdd-red);
}

.detail-gallery-main {
  border: 1px solid var(--tgdd-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.detail-gallery-main img {
  max-height: 380px;
}
.detail-thumb-list img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--tgdd-border);
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
}
.detail-thumb-list img.active {
  border-color: var(--tgdd-red);
}
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--tgdd-border);
  cursor: pointer;
}
.color-swatch.active {
  box-shadow: 0 0 0 2px var(--tgdd-red);
}
.price-box-detail {
  background: #fff7f0;
  border: 1px solid #ffe1c8;
  border-radius: 10px;
  padding: 18px;
}
.price-box-detail .price-main {
  color: var(--tgdd-red);
  font-weight: 800;
  font-size: 30px;
}
.price-box-detail .price-old {
  text-decoration: line-through;
  color: var(--tgdd-gray);
  font-size: 16px;
  margin-left: 10px;
}
.btn-buy-product {
  background: var(--tgdd-red);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
}
.btn-buy-product:hover {
  background: var(--tgdd-red-dark);
  color: #fff;
}
.btn-cart-outline {
  border: 2px solid var(--tgdd-red);
  color: var(--tgdd-red);
  font-weight: 700;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.btn-cart-outline:hover {
  background: #fff5f5;
  color: var(--tgdd-red-dark);
}

.spec-table tr td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--tgdd-border);
  font-size: 13.5px;
}
.spec-table tr td:first-child {
  color: var(--tgdd-gray);
  width: 40%;
}

.nav-tabs .nav-link {
  font-weight: 700;
  color: var(--tgdd-gray);
}
.nav-tabs .nav-link.active {
  color: var(--tgdd-red);
  border-bottom: 3px solid var(--tgdd-red);
}

.form-page-wrap {
  background: var(--tgdd-bg-light);
  padding: 40px 0;
}
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 32px;
}
.form-card .form-label {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--tgdd-text);
}
.form-card .form-control,
.form-card .form-select {
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  padding: 10px 12px;
  font-size: 14px;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--tgdd-red);
  box-shadow: 0 0 0 3px rgba(215, 0, 24, 0.1);
}
.btn-submit-form {
  background: var(--tgdd-red);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
}
.btn-submit-form:hover {
  background: var(--tgdd-red-dark);
}
.form-side-note {
  background: #fff7e0;
  border: 1px solid #ffe6a8;
  border-radius: 10px;
  padding: 20px;
}
.required-star {
  color: var(--tgdd-red);
}

@media (max-width: 991px) {
  .hero-banner {
    text-align: center;
  }
  .product-thumb-strip {
    justify-content: center;
  }
}
