/* GTD Warehouse Catalog - matches the Gulf Tires site style (BeTheme):
   Poppins body / Syne headings (site fonts), navy #16182d, blue accent #0089f7, square corners, flat cards. */
.gtd-cat { margin: 10px 0 40px; font-family: "Poppins", sans-serif; }
.gtd-cat-sub { color: #676A70; margin-top: -6px; }
.gtd-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 18px; }
/* Warehouse page: all 6 boxes in one full-width row. */
.gtd-cat-wh-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .gtd-cat-wh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gtd-cat-wh-grid { grid-template-columns: repeat(2, 1fr); } }
.gtd-cat-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 0; padding: 20px 12px;
  text-align: center; text-decoration: none !important; color: inherit; display: flex;
  flex-direction: column; align-items: center; justify-content: center; min-height: 150px; }
.gtd-cat-card:hover { border-color: #16182d; }
.gtd-cat-card img { max-width: 130px; max-height: 70px; object-fit: contain; margin-bottom: 10px; }
.gtd-cat-initials { font-size: 24px; font-weight: 700; margin-bottom: 10px; opacity: .55; color: #16182d; }
.gtd-cat-name { font-size: 14px; font-weight: 700; color: #16182d; }
.gtd-cat-wh { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: #16182d; }
.gtd-cat-wh-card { border-top: 4px solid #16182d; min-height: 150px; transition: transform .2s ease-in-out, border-color .2s ease-in-out; }
.gtd-cat-wh-card:hover { border-color: #16182d; border-top-color: #202448; transform: translateY(-3px); }
.gtd-cat-wh-card .gtd-cat-wh { font-size: 22px; margin-bottom: 14px; }
.gtd-cat-wh-go { display: inline-block; background: #16182d; color: #fff; font-family: "Syne", sans-serif;
  font-size: 13px; font-weight: 700; padding: 10px 20px; border: 1px solid #16182d; white-space: nowrap;
  transition: background-color .2s ease-in-out, border-color .2s ease-in-out; }
.gtd-cat-wh-card:hover .gtd-cat-wh-go { background: #202448; border-color: #202448; }
.gtd-cat-go { font-size: 13px; font-weight: 700; color: #202448; }
.gtd-cat-back { display: inline-block; margin-bottom: 14px; color: #16182d; }
.gtd-cat-error { background: #fdecea; border: 1px solid #f5c6cb; color: #a94442; padding: 14px 18px; border-radius: 0; }
.gtd-cat-empty { background: #fff; border: 1px solid #e2e2e2; padding: 20px; border-radius: 0; color: #676A70; }
.gtd-cat-table-wrap { overflow-x: auto; margin-top: 14px; }
.gtd-cat-table { width: 100%; border-collapse: collapse; background: #fff; }
.gtd-cat-table th, .gtd-cat-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.gtd-cat-table th { background: #d7e8f7; color: #111; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.gtd-cat-table tr:hover td { background: #f5f5f5; }
.gtd-cat-table th:last-child, .gtd-cat-table td:last-child { text-align: right; }
.gtd-cat-row-img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto; }
.gtd-cat-count { font-size: 13px; color: #6b7280; margin: 0 0 10px; font-family: 'Syne', sans-serif; }
.gtd-cat-pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 26px 0 10px; flex-wrap: wrap; }
.gtd-cat-pagination a, .gtd-cat-pagination span.current { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid #e5e7eb; font-family: 'Syne', sans-serif; font-size: 14px; color: #16182d; text-decoration: none; }
.gtd-cat-pagination a:hover { background: #16182d; color: #fff; border-color: #16182d; }
.gtd-cat-pagination span.current { background: #16182d; color: #fff; border-color: #16182d; }
.gtd-cat-pagination span.gtd-cat-dots { padding: 8px 4px; color: #9ca3af; }
.gtd-cat-login-btn { display: inline-block; background: #16182d; color: #fff !important; text-decoration: none !important;
  font-family: "Syne", sans-serif; font-size: 13px; font-weight: 700; padding: 10px 22px;
  border: 1px solid #16182d; border-radius: 0; white-space: nowrap;
  transition: background-color .2s ease-in-out, border-color .2s ease-in-out; }
.gtd-cat-login-btn:hover { background: #202448; border-color: #202448; color: #fff !important; }
.gtd-cat-meta { font-size: 12px; color: #676A70; margin-top: 6px; }
.gtd-cat-detail-head { display: flex; align-items: center; gap: 18px; margin: 6px 0 8px; }
.gtd-cat-detail-head h2 { margin: 0; color: #16182d; }
.gtd-cat-detail-head .gtd-cat-sub { margin: 4px 0 0; }
.gtd-cat-detail-img { max-width: 220px; max-height: 120px; object-fit: contain; background: #fff;
  border: 1px solid #e2e2e2; border-radius: 0; padding: 10px; }
/* Hero like the reference product page: gallery left (white), black info panel right. */
.gtd-cat-hero { display: flex; margin: 16px 0 30px; background: #fff; }
.gtd-cat-hero-gallery { flex: 1 1 55%; background: #fff; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gtd-cat-hero-main { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.gtd-cat-hero-main img { width: 100%; height: 380px; object-fit: contain; }
@media (max-width: 640px) { .gtd-cat-hero-main img { height: 280px; } }
.gtd-cat-gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: #16182d; border: none; box-shadow: 0 2px 10px rgba(0,0,0,.28); cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .2s ease, transform .2s ease; z-index: 2; }
.gtd-cat-gal-arrow:hover { background: #0089f7; transform: translateY(-50%) scale(1.08); }
.gtd-cat-gal-arrow svg { display: block; width: 18px; height: 18px; }
.gtd-cat-gal-prev { left: 10px; }
.gtd-cat-gal-next { right: 10px; }
.gtd-cat-hero-thumbs { display: flex; gap: 12px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.gtd-cat-hero-thumbs img { width: 72px; height: 72px; object-fit: contain; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; background: #fff; padding: 4px; transition: border-color .2s ease, transform .2s ease; }
.gtd-cat-hero-thumbs img:hover { border-color: #b9c2cf; }
.gtd-cat-hero-thumbs img.active { border-color: #0089f7; transform: scale(1.06); box-shadow: 0 2px 8px rgba(0,137,247,.25); }
.gtd-cat-hero-noimg { font-size: 22px; color: #9ca3af; padding: 60px 20px; }
.gtd-cat-hero-info { flex: 1 1 45%; background: #000; color: #fff; padding: 32px 34px; }
.gtd-cat-crumb { font-size: 13px; color: #9ca3af; margin-bottom: 16px; }
.gtd-cat-crumb a { color: #d1d5db; text-decoration: none; }
.gtd-cat-crumb a:hover { color: #fff; text-decoration: underline; }
.gtd-cat-hero-info h1 { color: #fff; font-size: 42px; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.gtd-cat-hero-brand { color: #9ca3af; text-transform: uppercase; letter-spacing: 3px; font-size: 13px; margin-bottom: 18px; }
.gtd-cat-hero-desc { color: #e8e8e8; font-size: 16px; line-height: 1.75; margin: 0; }
.gtd-cat-hero-desc p { margin: 0 0 14px; }
.gtd-cat-hero-desc p:last-child { margin-bottom: 0; }
.gtd-cat-more-title { color: #fff; font-size: 24px; margin: 26px 0 14px; }
.gtd-cat-more-cards { display: flex; flex-direction: column; gap: 12px; }
.gtd-cat-more-card { border: 1px solid #2b2b2b; border-radius: 10px; padding: 16px 18px; background: #0d0d0d; }
.gtd-cat-more-card-title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.gtd-cat-more-card-text { color: #c9c9c9; font-size: 14px; line-height: 1.7; }
.gtd-cat-table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.gtd-cat-find label { font-size: 14px; color: #374151; display: inline-flex; align-items: center; gap: 8px; }
.gtd-cat-find input[type="search"] { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; min-width: 200px; }
.gtd-cat-related-title { font-size: 26px; margin: 42px 0 16px; }
@media (max-width: 860px) {
  .gtd-cat-hero { flex-direction: column; }
  .gtd-cat-hero-info h1 { font-size: 32px; }
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1024px) {
  .gtd-cat-hero-gallery { padding: 22px 16px; }
  .gtd-cat-hero-info { padding: 26px 24px; }
  .gtd-cat-hero-info h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .gtd-cat { margin: 6px 0 28px; }
  .gtd-cat-hero { margin: 10px 0 22px; }
  .gtd-cat-hero-gallery { padding: 16px 12px; }
  .gtd-cat-gal-arrow { width: 38px; height: 38px; }
  .gtd-cat-gal-arrow svg { width: 16px; height: 16px; }
  .gtd-cat-gal-prev { left: 6px; }
  .gtd-cat-gal-next { right: 6px; }
  .gtd-cat-hero-thumbs { gap: 8px; margin-top: 14px; }
  .gtd-cat-hero-thumbs img { width: 56px; height: 56px; padding: 3px; border-radius: 8px; }
  .gtd-cat-hero-noimg { padding: 40px 16px; font-size: 18px; }
  .gtd-cat-hero-info { padding: 22px 20px; }
  .gtd-cat-hero-info h1 { font-size: 26px; letter-spacing: .5px; }
  .gtd-cat-hero-brand { font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
  .gtd-cat-hero-desc { font-size: 15px; line-height: 1.65; }
  .gtd-cat-crumb { font-size: 12px; margin-bottom: 12px; }
  .gtd-cat-more-title { font-size: 20px; margin: 20px 0 12px; }
  .gtd-cat-more-card { padding: 14px; }
  .gtd-cat-more-card-title { font-size: 14px; }
  .gtd-cat-more-card-text { font-size: 13px; }
  .gtd-cat-table { min-width: 620px; }
  .gtd-cat-table th, .gtd-cat-table td { padding: 10px 8px; font-size: 13px; }
  .gtd-cat-table th { font-size: 11px; }
  .gtd-cat-row-img { width: 52px; height: 52px; }
  .gtd-cat-login-btn { padding: 8px 14px; font-size: 12px; }
  .gtd-cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .gtd-cat-card { min-height: 120px; padding: 14px 8px; }
  .gtd-cat-card img { max-width: 100px; max-height: 56px; }
  .gtd-cat-initials { font-size: 20px; }
  .gtd-cat-name { font-size: 13px; }
  .gtd-cat-wh { font-size: 17px; }
  .gtd-cat-wh-card .gtd-cat-wh { font-size: 18px; margin-bottom: 10px; }
  .gtd-cat-back { font-size: 14px; }
  .gtd-cat-pagination { gap: 6px; margin: 20px 0 8px; }
  .gtd-cat-pagination a, .gtd-cat-pagination span.current { padding: 7px 11px; font-size: 13px; }
  .gtd-cat-count { font-size: 12px; }
}
