@charset "UTF-8";

body {
  background: #fff;
}

.home-hero {
  padding: 58px 0 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 0, 14, .12), transparent 34%),
    linear-gradient(115deg, #fff 0%, #fff 60%, #fff4ef 60%, #fff 100%);
}

.home-hero .container {
  max-width: 1180px;
}

.home-hero .h1 {
  color: #ad000d;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.08;
  font-weight: 800;
}

.home-lead {
  max-width: 620px;
  color: #2b2020;
  font-size: 20px;
  line-height: 1.8;
}

.home-actions .btn,
.home-panel .btn {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(176, 0, 13, .16);
}

.home-actions .btn:first-child {
  background: #b0000b;
  border-color: #b0000b;
  color: #fff !important;
}

.home-actions .btn:last-child {
  background: #02b928;
  border-color: #02b928;
  color: #fff !important;
}

.home-actions .btn:hover,
.home-section .card-hover:hover,
.home-category-row .card-hover:hover,
.home-order-steps .d-block:hover,
.home-extra-boxes .card:hover,
.brand-logo:hover,
.home-hero-image:hover {
  transform: translateY(-4px);
}

.home-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
}

.home-checks .divCell {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
}

.home-checks .divCell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 2px solid #d80012;
  border-radius: 50%;
}

.home-hero-image {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e7b4aa;
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  color: #b0000b;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 22px 60px rgba(120, 28, 22, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-hero-image:hover {
  box-shadow: 0 28px 72px rgba(120, 28, 22, .15);
}

.home-stats {
  margin-top: 46px;
  border: 1px solid #efd1cc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 60px rgba(120, 28, 22, .08);
}

.home-stats .col {
  border-right: 1px solid #efd1cc;
}

.home-stats .col:last-child {
  border-right: 0;
}

.home-stats .icon-circle {
  border-color: #d00012;
  color: #d00012;
}

.home-search {
  max-width: 1180px;
}

.home-search .bg-blue {
  padding: 30px 44px;
  border-radius: 8px;
  background: #aa000c !important;
  color: #fff;
}

.home-search h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}

.home-search form {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.home-search input {
  width: 100%;
  min-height: 56px;
  border: 0;
  padding: 0 20px;
  outline: none;
}

.home-search button {
  min-width: 105px;
  border: 0;
  background: #e12a36;
  color: #fff !important;
}

.home-search p {
  margin-top: 12px;
  color: rgba(255, 255, 255, .88);
}

.highlight {
  margin-top: 46px;
  margin-bottom: 30px;
  color: #b0000b;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
}

.home-category-row {
  max-width: 1180px;
}

.home-category-row .card {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.category-image {
  display: flex;
  width: calc(100% - 26px);
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  margin: 13px auto 0;
  border: 1px dashed #e7b4aa;
  border-radius: 7px;
  background: linear-gradient(135deg, #fae1dc, #fff3ed);
  color: #b0000b;
  font-size: 13px;
  font-weight: 700;
}

.card {
  border: 1px solid #efd1cc !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(121, 32, 22, .06);
}

.card-hover {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card-hover:hover {
  border-color: #d48b82 !important;
  box-shadow: 0 24px 56px rgba(121, 32, 22, .13);
}

.card-hover a,
.card-body a {
  color: inherit;
  text-decoration: none;
}

.card-hover a:hover h3,
.card-body a:hover h3 {
  color: #b0000b;
}

.card-img {
  display: block;
  width: calc(100% - 26px);
  aspect-ratio: 4 / 3;
  margin: 13px auto 0;
  object-fit: cover;
  border-radius: 7px;
  background: #fae8e3;
}

.card-body {
  padding: 18px;
}

.home-promo-row .card {
  min-height: 278px;
  background: linear-gradient(135deg, #fff, #fff8f0);
}

.home-promo-row .card-body {
  text-align: left !important;
}

.home-promo-row .card-title {
  margin-top: 6px;
  font-size: 20px !important;
  line-height: 1.45;
}

.home-promo-row .card-text {
  color: #6d5451;
}

.home-order-steps .d-block {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  text-align: center;
  min-height: 132px;
  gap: 0;
  align-items: center;
  border-radius: 8px;
  background: #fff5f2;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-order-steps .d-block:hover {
  box-shadow: 0 18px 45px rgba(121, 32, 22, .1);
}

.home-order-steps .icon-circle {
  flex: 0 0 auto;
  margin: 0 auto 16px !important;
  background: #b0000b;
  color: #fff;
  border-color: #b0000b;
}

.home-extra-boxes {
  margin-top: 56px;
  margin-bottom: 56px;
}

.home-extra-boxes .card {
  min-height: 360px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.brand-logo {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e7b4aa;
  border-radius: 8px;
  background: #fff7f4;
  color: #b0000b;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.brand-logo:hover {
  border-color: #b0000b;
  background: #fff;
  color: #b0000b;
}

.printshop-image {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e7b4aa;
  border-radius: 8px;
  background: #fff7f4;
  color: #b0000b;
  font-weight: 700;
}

.home-extra-boxes .divContent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.home-extra-boxes .divCell {
  position: relative;
  padding-left: 22px;
  font-weight: 600;
}

.home-extra-boxes .divCell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #d00012;
  border-radius: 50%;
}

@media (max-width: 991.98px) {
  .home-hero {
    padding-top: 34px;
  }

  .home-hero-image {
    min-height: 280px;
    margin-top: 22px;
  }

  .home-stats .col {
    border-bottom: 1px solid #efd1cc;
  }

  .home-search .bg-blue {
    padding: 26px;
  }

  .home-search h2 {
    margin-bottom: 18px;
    font-size: 28px;
  }
}

@media (max-width: 575.98px) {
  .home-hero .h1 {
    font-size: 36px;
  }

  .home-lead {
    font-size: 17px;
  }

  .home-actions .btn {
    width: 100%;
  }

  .home-checks,
  .home-extra-boxes .divContent {
    grid-template-columns: 1fr;
  }

  .home-search form {
    display: block !important;
  }

  .home-search button {
    width: 100%;
    min-height: 48px;
  }
}

/* การ์ดงานพิมพ์ยอดนิยมชุดที่เพิ่มเอง */
.row.row-cols-xl-6 {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 190px));
  justify-content: center !important;
  gap: 20px 16px !important;
}

.row.row-cols-xl-6 > .col {
  display: flex;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0;
  padding-right: 0;
}

.row.row-cols-xl-6 .card-hover {
  width: 100%;
  min-height: 260px;
}

.row.row-cols-xl-6 .card-img {
  height: 140px;
  object-fit: cover;
  background: #f9e9e7;
}

.row.row-cols-xl-6 .card-body {
  flex: 1;
}

/* แถวที่ใช้ row-cols-xl-5 ในโค้ดเดิม */
.row.row-cols-xl-5 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 190px));
  justify-content: center !important;
  gap: 20px 16px !important;
}

.row.row-cols-xl-5 > .col {
  display: flex;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0;
  padding-right: 0;
}

.row.row-cols-xl-5 .card-hover {
  width: 100%;
  min-height: 260px;
}

.row.row-cols-xl-5 .card-img {
  height: 140px;
  object-fit: cover;
  background: #f9e9e7;
}

.row.row-cols-xl-5 .card-body {
  flex: 1;
}

@media (max-width: 1199.98px) {
  .row.row-cols-xl-6,
  .row.row-cols-xl-5 {
    grid-template-columns: repeat(4, minmax(0, 180px));
  }
}

@media (max-width: 767.98px) {
  .row.row-cols-xl-6,
  .row.row-cols-xl-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Center the full-width content inside each statistics column. */
.home-stats > .col > .d-block {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.home-stats > .col .icon-circle {
  width: 120px;
  height: 120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
