/*
Theme Name: ToanWeb
Theme URI: https://doxuantoan.com/
Author: ToanWeb
Author URI: https://doxuantoan.com/
Description: Landing page theme for VN Store Locator.
Version: 1.0.0
Text Domain: toanweb
*/

@import url("https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css");

:root {
  --tw-primary: #64b2fa;
  --tw-primary-dark: #248be6;
  --tw-ink: #071126;
  --tw-muted: #627089;
  --tw-line: rgba(120, 148, 185, 0.24);
  --tw-glass: rgba(255, 255, 255, 0.58);
  --tw-glass-strong: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tw-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(100, 178, 250, 0.26), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(122, 224, 198, 0.22), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #eef6ff 45%, #ffffff 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.tw-page-shell {
  position: relative;
  overflow: visible;
}

.tw-section {
  padding: 88px 0;
}

.tw-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.tw-glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(33, 96, 150, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.tw-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(100, 178, 250, 0.34);
  background: rgba(255, 255, 255, 0.56);
  color: var(--tw-primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tw-btn:hover {
  transform: translateY(-2px);
}

.tw-btn-sm {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
}

.tw-btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #7bc1ff, var(--tw-primary));
  box-shadow: 0 18px 38px rgba(100, 178, 250, 0.32);
}

.tw-btn-ghost {
  color: var(--tw-ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(100, 178, 250, 0.22);
}

.tw-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 16px;
  pointer-events: none;
}

.tw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-radius: 22px;
  padding: 10px 12px 10px 18px;
  pointer-events: auto;
}

.tw-brand {
  min-width: 0;
}

.tw-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tw-logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #8dccff, var(--tw-primary));
  box-shadow: 0 12px 24px rgba(100, 178, 250, 0.32);
}

.tw-hero {
  padding: 92px 0 64px;
}

.tw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
}

.tw-hero-grid > *,
.tw-showcase-grid > * {
  min-width: 0;
}

.tw-hero-title {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.tw-hero-copy {
  max-width: 620px;
  color: var(--tw-muted);
  font-size: 18px;
  line-height: 1.75;
}

.tw-device {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 34px;
  padding: 12px;
}

.tw-app-window {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(250, 252, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.tw-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--tw-line);
}

.tw-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d7e2ef;
}

.tw-dot:nth-child(1) {
  background: #ff6b7a;
}

.tw-dot:nth-child(2) {
  background: #ffd166;
}

.tw-dot:nth-child(3) {
  background: #57d989;
}

.tw-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.tw-admin-table th,
.tw-admin-table td {
  border-bottom: 1px solid rgba(128, 147, 170, 0.16);
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.tw-admin-table th {
  color: #68758c;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tw-store-photo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background:
    linear-gradient(rgba(7, 17, 38, 0.1), rgba(7, 17, 38, 0.1)),
    url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=220&q=80") center / cover;
}

.tw-placeholder {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: #c7d1de;
  background: #f0f3f8;
}

.tw-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--tw-primary-dark);
  background: rgba(100, 178, 250, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.tw-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tw-feature-card {
  border-radius: 24px;
  padding: 24px;
}

.tw-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #8dccff, var(--tw-primary));
  box-shadow: 0 14px 30px rgba(100, 178, 250, 0.28);
}

.tw-showcase-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
}

.tw-sidebar {
  overflow: hidden;
  border-radius: 24px;
}

.tw-select-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 13px;
  border: 1px solid rgba(126, 143, 166, 0.22);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.76);
  color: #111b31;
  font-size: 14px;
}

.tw-store-list-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(126, 143, 166, 0.14);
}

.tw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tw-store-card {
  overflow: hidden;
  min-height: 250px;
  border-radius: 24px;
}

.tw-card-media {
  height: 132px;
  background: #f0f3f8;
}

.tw-card-media.photo {
  background: url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=600&q=80") center / cover;
}

.tw-card-media.blank {
  display: grid;
  place-items: center;
  color: #c7d1de;
}

.tw-map-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(100, 178, 250, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(100, 178, 250, 0.09) 1px, transparent 1px),
    #f7fbff;
  background-size: 54px 54px;
}

.tw-map-pin {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--tw-primary);
  box-shadow: 0 12px 24px rgba(36, 139, 230, 0.32);
}

.tw-map-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(330px, calc(100% - 44px));
  border-radius: 20px;
  padding: 18px;
}

.tw-cta {
  padding-bottom: 96px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 42px rgba(33, 96, 150, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(100, 178, 250, 0.58);
  transform: translateY(-2px);
}

.back-to-top svg path {
  transition: stroke 180ms ease;
}

.back-to-top:hover svg path {
  stroke: var(--tw-primary);
}

.tw-content-section {
  padding-top: 72px;
}

.tw-content-layout {
  max-width: 1400px;
}

.tw-archive-header,
.tw-singular-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.tw-content-title {
  margin: 18px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.tw-archive-description {
  margin-top: 16px;
  color: var(--tw-muted);
  font-size: 17px;
  line-height: 1.75;
}

.tw-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tw-post-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  flex-direction: column;
}

.tw-post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef4fb;
}

.tw-post-card-media img,
.tw-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-post-card-body {
  display: flex;
  min-height: 260px;
  padding: 24px;
  flex-direction: column;
}

.tw-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #718099;
  font-size: 13px;
  font-weight: 700;
}

.tw-post-meta a {
  color: var(--tw-primary-dark);
}

.tw-post-card-title {
  margin: 14px 0 10px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.tw-post-card-title a:hover,
.tw-read-more:hover,
.tw-entry-content a:hover {
  color: var(--tw-primary-dark);
}

.tw-post-excerpt {
  color: var(--tw-muted);
  line-height: 1.7;
}

.tw-post-excerpt p {
  margin: 0;
}

.tw-read-more {
  margin-top: auto;
  padding-top: 22px;
  color: var(--tw-primary-dark);
  font-weight: 900;
}

.tw-pagination {
  margin-top: 36px;
}

.tw-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tw-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 178, 250, 0.22);
  border-radius: 13px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.tw-pagination .page-numbers.current {
  color: #fff;
  background: var(--tw-primary);
}

.tw-featured-image {
  overflow: hidden;
  margin: 0 0 24px;
  border-radius: 26px;
  aspect-ratio: 16 / 9;
}

.tw-singular-meta {
  margin-top: 16px;
}

.tw-entry-content {
  border-radius: 26px;
  padding: clamp(24px, 5vw, 46px);
  color: #172033;
  font-size: 18px;
  line-height: 1.78;
}

.tw-entry-content > *:first-child {
  margin-top: 0;
}

.tw-entry-content > *:last-child {
  margin-bottom: 0;
}

.tw-entry-content h2,
.tw-entry-content h3,
.tw-entry-content h4 {
  margin: 1.45em 0 0.55em;
  color: var(--tw-ink);
  font-weight: 900;
  line-height: 1.2;
}

.tw-entry-content h2 {
  font-size: 34px;
}

.tw-entry-content h3 {
  font-size: 26px;
}

.tw-entry-content p,
.tw-entry-content ul,
.tw-entry-content ol,
.tw-entry-content blockquote,
.tw-entry-content table {
  margin: 0 0 1.2em;
}

.tw-entry-content ul,
.tw-entry-content ol {
  padding-left: 1.35em;
}

.tw-entry-content a {
  color: var(--tw-primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tw-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.tw-entry-content blockquote {
  border-left: 4px solid var(--tw-primary);
  padding: 12px 0 12px 18px;
  color: var(--tw-muted);
  font-size: 20px;
}

.tw-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.tw-entry-content th,
.tw-entry-content td {
  border-bottom: 1px solid rgba(128, 147, 170, 0.18);
  padding: 12px;
  text-align: left;
}

.tw-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  font-weight: 800;
}

.tw-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.tw-post-navigation a,
.tw-empty-state {
  display: block;
  border-radius: 22px;
  padding: 22px;
}

.tw-post-navigation a {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(100, 178, 250, 0.18);
  color: var(--tw-primary-dark);
  font-weight: 900;
}

.tw-post-navigation span {
  display: block;
  margin-top: 6px;
  color: var(--tw-ink);
  font-size: 16px;
}

.tw-empty-state {
  max-width: 680px;
}

.tw-empty-state h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
}

.tw-empty-state p {
  margin: 0;
  color: var(--tw-muted);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .tw-hero-grid,
  .tw-showcase-grid {
    grid-template-columns: 1fr;
  }

  .tw-feature-grid,
  .tw-card-grid,
  .tw-post-grid,
  .tw-post-navigation {
    grid-template-columns: 1fr;
  }

  .tw-device {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .tw-section {
    padding: 64px 0;
  }

  .tw-hero {
    padding-top: 60px;
  }

  .tw-container {
    width: min(100% - 24px, 1160px);
  }

  .tw-nav {
    padding-top: 10px;
  }

  .tw-nav-inner {
    min-height: 56px;
    gap: 10px;
    border-radius: 18px;
    padding: 8px;
  }

  .tw-brand {
    flex: 1 1 auto;
  }

  .tw-brand-name {
    font-size: 14px;
  }

  .tw-brand-meta,
  .tw-nav-link {
    display: none;
  }

  .tw-nav-links {
    flex: 0 0 auto;
    gap: 6px;
  }

  .tw-nav-links .tw-btn {
    min-height: 34px;
    border-radius: 11px;
    padding: 0 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .tw-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .tw-window-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tw-hero-copy {
    font-size: 16px;
  }

  .tw-hero .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .tw-device {
    border-radius: 22px;
    padding: 6px;
  }

  .tw-app-window {
    border-radius: 18px;
  }

  .tw-admin-table {
    min-width: 720px;
  }

  .tw-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .tw-brand-name {
    display: none;
  }

  .tw-nav-inner {
    gap: 8px;
  }

  .tw-nav-links .tw-btn {
    padding: 0 8px;
  }
}
