:root {
  --qt-navy: #082b45;
  --qt-green: #079b79;
  --qt-green-dark: #08775f;
  --qt-coral: #ff5b4d;
  --qt-coral-dark: #e9473d;
  --qt-cream: #fffaf5;
  --qt-mint: #eefaf7;
  --qt-ink: #163248;
  --qt-muted: #687b89;
  --qt-border: #e8efed;
  --qt-shadow: 0 8px 28px rgba(8, 43, 69, 0.08);
}

body {
  color: var(--qt-ink);
  background: #fff;
}

body,
button,
input,
select,
textarea {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--qt-navy);
  letter-spacing: -0.02em;
}

a {
  color: var(--qt-navy);
}

a:hover {
  color: var(--qt-coral);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(7, 155, 121, 0.28);
  outline-offset: 3px;
}

.button,
button,
input[type="submit"] {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Header: the logo source remains the exact user-provided artwork. */
#header .header-top {
  background: #f1faf8;
  border-bottom: 1px solid #e5f0ed;
  color: #315568;
}

#header .header-top .nav > li > a,
#header .header-top .html {
  color: #315568;
  font-size: 12px;
}

.qt-topbar-right {
  display: flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
}

.qt-topbar-right > span,
.qt-topbar-message {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.qt-topbar-icon {
  display: inline-grid;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  place-items: center;
  color: var(--qt-green-dark);
}

.qt-topbar-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#header .header-main {
  border-bottom: 0;
}

#logo {
  width: 205px !important;
}

#logo a {
  display: block;
  height: 62px;
  overflow: hidden;
}

#logo img {
  width: 205px !important;
  height: 62px !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: cover;
  object-position: 50% 50%;
}

.header-main .searchform-wrapper {
  width: min(100%, 520px) !important;
}

.header-main .searchform {
  overflow: hidden;
  border: 1px solid #dfe7e5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 43, 69, 0.02);
}

.header-main .searchform > .flex-row {
  align-items: stretch;
  height: 44px;
}

.header-main .search-field {
  height: 44px;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
  padding-left: 18px;
  font-size: 14px;
}

.header-main .ux-search-submit {
  display: grid;
  width: 50px;
  min-width: 50px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--qt-coral) !important;
  box-shadow: none !important;
}

.header-main .ux-search-submit:hover {
  background: var(--qt-coral-dark) !important;
}

.header-main .ux-search-submit i {
  margin: 0;
  font-size: 18px;
}

.header-main .account-item > a,
.header-main .wishlist-icon,
.header-main .cart-item > a {
  color: var(--qt-navy) !important;
  font-size: 13px;
  text-transform: none;
}

.qt-header-wishlist {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--qt-navy) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.qt-header-wishlist span {
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.header-main .account-item .icon-user,
.header-main .wishlist-icon i,
.header-main .cart-icon strong {
  color: var(--qt-navy);
}

.header-bottom {
  background: #fff !important;
  border-top: 1px solid #edf2f0;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(8, 43, 69, 0.04);
}

.header-bottom-nav > li > a {
  color: #183a4e !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: none !important;
}

.header-bottom-nav > li > a:hover {
  color: var(--qt-green) !important;
}

.header-vertical-menu__opener {
  min-width: 245px;
  border-radius: 9px;
  background: var(--qt-green) !important;
  color: #fff !important;
  font-weight: 700;
  text-transform: none;
}

.header-vertical-menu__opener:hover {
  background: var(--qt-green-dark) !important;
}

.cart-item .header-cart-link .cart-icon strong {
  background: transparent;
  border-color: var(--qt-navy);
}

.cart-item .header-cart-link .cart-icon strong::after {
  border-color: var(--qt-navy);
}

.cart-item .header-cart-link .cart-icon .cart-icon-image {
  filter: none;
}

/* Homepage hero. */
.qt-home .section-content > .row,
.qt-section .section-content > .row {
  max-width: 1230px;
}

.qt-hero {
  min-height: 420px;
  overflow: hidden;
}

.qt-hero .section-bg.bg-loaded {
  background-position: center center !important;
}

.qt-hero-copy {
  max-width: 520px;
  padding: 40px 0 44px;
}

.qt-eyebrow {
  margin: 0 0 10px;
  color: var(--qt-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qt-hero h1 {
  margin: 0 0 14px;
  color: var(--qt-navy);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.02;
}

.qt-hero h1 span {
  color: var(--qt-coral);
}

.qt-hero-copy > p:not(.qt-eyebrow) {
  max-width: 410px;
  color: #395363;
  font-size: 17px;
  line-height: 1.55;
}

.qt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.qt-hero-actions .button {
  display: inline-flex;
  min-width: 190px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-width: 2px;
  border-radius: 8px !important;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.qt-button-arrow {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
}

.qt-button-coral {
  background: var(--qt-coral) !important;
  border-color: var(--qt-coral) !important;
}

.qt-button-green {
  color: var(--qt-green) !important;
  border-color: var(--qt-green) !important;
}

.qt-hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.qt-hero-benefit {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #29495b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.qt-hero-benefit .qt-benefit-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid #b7e7dc;
  border-radius: 50%;
  color: var(--qt-green);
}

.qt-benefit-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Gift occasion strip. */
.qt-occasion-section {
  padding: 16px 0 18px !important;
  border-bottom: 1px solid #f0f3f2;
}

.qt-occasions {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
}

/* UX Builder's text formatter inserts line-break nodes between inline anchors;
   they must not consume grid cells. */
.qt-occasions > br {
  display: none;
}

.qt-occasion {
  color: var(--qt-ink);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.qt-occasion-icon {
  display: grid;
  min-height: 72px;
  margin-bottom: 7px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff7f4, #f7eee9);
  box-shadow: inset 0 0 0 1px rgba(255, 126, 112, 0.08);
  font-size: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qt-occasion:nth-child(3n + 2) .qt-occasion-icon {
  background: linear-gradient(145deg, #f5fbfa, #e9f6f2);
}

.qt-occasion:nth-child(3n) .qt-occasion-icon {
  background: linear-gradient(145deg, #fffaf0, #f6eddf);
}

.qt-occasion:hover .qt-occasion-icon {
  transform: translateY(-4px);
  box-shadow: var(--qt-shadow);
}

/* Product sections. */
.qt-products-section,
.qt-promo-section {
  padding: 22px 0 6px !important;
}

.qt-section-title {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qt-section-title h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.qt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.qt-tab {
  padding: 7px 14px;
  border-radius: 999px;
  color: #536875;
  background: #f7faf9;
  font-size: 12px;
  font-weight: 700;
}

.qt-tab.is-active {
  color: #fff;
  background: var(--qt-green);
}

.qt-see-all {
  color: var(--qt-coral);
  font-size: 12px;
  font-weight: 800;
}

.qt-products-section .products {
  margin-left: -7px;
  margin-right: -7px;
}

.qt-products-section .product-small {
  padding: 7px;
}

.qt-products-section .product-small .col-inner {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--qt-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(8, 43, 69, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qt-products-section .product-small .col-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--qt-shadow);
}

.qt-products-section .box-image {
  background: #fff8f4;
}

.qt-products-section .image-tools.top.right {
  z-index: 4;
  top: 8px;
  right: 8px;
  opacity: 1;
  transform: none;
}

.qt-favourite-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 1px solid #dce7e4;
  border-radius: 50%;
  color: var(--qt-navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 7px rgba(8, 43, 69, 0.1);
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.qt-favourite-toggle:hover,
.qt-favourite-toggle.is-active {
  color: #fff;
  background: var(--qt-coral);
  transform: scale(1.06);
}

.qt-products-section .image-tools.grid-tools {
  display: block !important;
  z-index: 4;
  right: 8px;
  bottom: 8px;
  left: auto;
  width: 32px !important;
  opacity: 1;
  transform: none;
}

.qt-products-section .add-to-cart-grid {
  display: grid;
  width: 32px !important;
  min-width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0 !important;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #fff !important;
  background: var(--qt-coral) !important;
  box-shadow: 0 3px 9px rgba(255, 91, 77, 0.26);
}

.qt-products-section .add-to-cart-grid .cart-icon {
  display: none;
}

.qt-products-section .add-to-cart-grid::before {
  width: 17px;
  height: 17px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h8.9a2 2 0 0 0 2-1.6L22 8H6'/%3E%3C/svg%3E");
  content: "";
}

.qt-products-section .add-to-cart-grid:hover {
  background: var(--qt-coral-dark) !important;
}

.qt-products-section .box-image img {
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.qt-products-section .box-text {
  padding: 10px 42px 12px 11px;
}

.qt-products-section .product-title a {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  color: #203c4d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.qt-products-section .price-wrapper .price {
  color: #f0443a;
  font-size: 16px;
  font-weight: 800;
}

.qt-products-section .price-wrapper del {
  color: #a4adb2;
  font-size: 11px;
}

.qt-products-section .badge-container {
  margin: 8px 0 0 8px;
}

.qt-products-section .badge-inner {
  border-radius: 999px;
  background: var(--qt-coral);
  font-size: 11px;
}

/* Two promotional banners. */
.qt-promo-card {
  min-height: 245px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 22px rgba(8, 43, 69, 0.07);
}

.qt-promo-card .section-bg.bg-loaded {
  background-position: center center !important;
}

.qt-promo-copy {
  width: 53%;
  padding: 30px 0 30px 28px;
}

.qt-promo-copy .qt-label {
  color: var(--qt-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qt-promo-pink .qt-label {
  color: var(--qt-coral);
}

.qt-promo-copy h3 {
  margin: 8px 0 10px;
  font-size: 27px;
  line-height: 1.08;
}

.qt-promo-copy p {
  margin-bottom: 16px;
  color: #415968;
  font-size: 13px;
  line-height: 1.45;
}

.qt-promo-copy .button {
  display: inline-flex;
  min-width: 150px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-width: 2px;
  border-radius: 7px !important;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

/* Sale heading and countdown. */
.qt-sale-title h2 {
  color: var(--qt-coral);
}

.qt-countdown {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #687b89;
  font-size: 12px;
}

.qt-countdown strong {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: var(--qt-coral);
  font-size: 12px;
}

/* Trust and partner strips. */
.qt-trust-section {
  padding: 22px 0 !important;
  background: #eefaf7;
}

.qt-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.qt-trust-item {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.qt-trust-icon {
  color: var(--qt-green);
  font-size: 38px;
  line-height: 1;
}

.qt-trust-item strong {
  display: block;
  color: var(--qt-navy);
  font-size: 14px;
}

.qt-trust-item small {
  display: block;
  color: #647a87;
  font-size: 12px;
}

.qt-partners {
  padding: 20px 0 24px;
}

.qt-partners h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.qt-partner-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  align-items: center;
  color: #90a2ad;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  filter: grayscale(1);
}

/* Footer UX Block. */
.footer-wrapper .footer-2 {
  padding: 0;
  border: 0;
}

.qt-footer {
  padding: 48px 0 22px !important;
  background: var(--qt-navy);
  color: #d6e3e8;
}

.qt-footer h3 {
  color: #fff;
  font-size: 16px;
}

.qt-footer p,
.qt-footer li,
.qt-footer a {
  color: #c7d7de;
  font-size: 13px;
  line-height: 1.75;
}

.qt-footer a:hover {
  color: #fff;
}

.qt-footer ul {
  margin: 0;
  list-style: none;
}

.qt-footer li {
  margin: 0 0 4px;
}

.qt-footer-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}

.qt-footer-logo img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

.qt-footer-logo-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qt-footer-logo-copy strong {
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.qt-footer-logo-copy strong span {
  color: #15bd91;
}

.qt-footer-logo-copy small {
  margin-top: 7px;
  color: #c9d8df;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.qt-footer-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #91a9b4;
  text-align: center;
  font-size: 12px;
}

.absolute-footer {
  display: none;
}

/* Hide the inherited Japamall floating contact launcher until Quatang.me contact
   channels are configured; keeping it would expose the old brand's details. */
.devvn_toolbar,
.devvn_allcontact,
.devvn_icon_allcontact {
  display: none !important;
}

@media (max-width: 1024px) {
  .qt-occasions {
    grid-template-columns: repeat(5, 1fr);
  }

  .qt-hero-copy {
    max-width: 49%;
  }

  .qt-hero-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .qt-partner-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 849px) {
  #logo,
  #logo img {
    width: 175px !important;
  }

  #logo a,
  #logo img {
    height: 54px !important;
  }

  .qt-hero {
    min-height: 500px;
  }

  .qt-hero .section-bg.bg-loaded {
    background-position: 66% center !important;
  }

  .qt-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 250, 245, 0.98) 0%, rgba(255, 250, 245, 0.88) 53%, rgba(255, 250, 245, 0.08) 100%);
    content: "";
  }

  .qt-hero .section-content {
    z-index: 2;
  }

  .qt-hero-copy {
    max-width: 62%;
  }

  .qt-promo-card {
    min-height: 245px;
  }

  .qt-promo-copy {
    width: 60%;
  }

  .qt-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 549px) {
  #logo,
  #logo img {
    width: 155px !important;
  }

  #logo a,
  #logo img {
    height: 48px !important;
  }

  .header-main .nav > li > a {
    padding: 0 7px;
  }

  .qt-hero {
    min-height: 580px;
  }

  .qt-hero .section-bg.bg-loaded {
    background-position: 72% bottom !important;
  }

  .qt-hero::before {
    background: linear-gradient(180deg, rgba(255, 250, 245, 1) 0%, rgba(255, 250, 245, 0.96) 50%, rgba(255, 250, 245, 0.2) 100%);
  }

  .qt-hero-copy {
    max-width: 100%;
    padding: 26px 0 230px;
  }

  .qt-hero h1 {
    font-size: 38px;
  }

  .qt-hero-copy > p:not(.qt-eyebrow) {
    font-size: 15px;
  }

  .qt-hero-benefits {
    display: none;
  }

  .qt-occasion-section {
    padding: 14px 0 18px !important;
  }

  .qt-occasions {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .qt-occasion {
    min-width: 86px;
    scroll-snap-align: start;
  }

  .qt-occasion-icon {
    min-height: 68px;
    font-size: 38px;
  }

  .qt-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .qt-section-title h2 {
    font-size: 23px;
  }

  .qt-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .qt-tab {
    white-space: nowrap;
  }

  .qt-products-section .product-small {
    max-width: 50%;
    flex-basis: 50%;
  }

  .qt-products-section .box-text {
    min-height: 94px;
    padding: 9px 34px 10px 9px;
  }

  .qt-products-section .product-title a {
    min-height: 34px;
    font-size: 11px;
    line-height: 1.35;
  }

  .qt-products-section .price-wrapper .price {
    font-size: 13px;
  }

  .qt-products-section .add-to-cart-grid {
    width: 28px !important;
    min-width: 28px;
    height: 28px;
  }

  .qt-products-section .image-tools.grid-tools {
    width: 28px !important;
  }

  .qt-promo-copy {
    width: 72%;
    padding: 24px 0 24px 18px;
  }

  .qt-promo-copy h3 {
    font-size: 23px;
  }

  .qt-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qt-trust-item {
    justify-content: flex-start;
  }

  .qt-partner-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .qt-footer {
    padding-top: 34px !important;
  }
}
