/*
 * DDM brand theme and late catalogue refinements.
 * This file loads after main.css so these declarations intentionally override base styles.
 */

:root {
  --navy: #071b2a;
  --blue: #128fbd;
  --ice: #eefafa;
  --ink: #0d1e29;
  --muted: #647681;
  --line: #dce9ec;
  --bg: #f5fafb;
  --shadow: 0 22px 60px rgba(15, 74, 92, 0.12);
}
.nav {
  height: 68px;
}
.brand img {
  width: 148px;
}
.hero-box {
  background: linear-gradient(135deg, #effafb 0%, #f8fcfd 55%, #edf7ff 100%);
  border: 1px solid rgba(21, 143, 189, 0.08);
  border-radius: 24px;
}
.hero h1 em,
.hero small,
.title small,
.service > div > small,
.location-head small {
  color: #10a99a;
}
.btn {
  border-radius: 12px;
}
.btn.primary {
  background: linear-gradient(110deg, #117fb9, #13aa98);
  box-shadow: 0 10px 24px rgba(18, 143, 173, 0.2);
}
.categories button,
.products > article {
  border-color: #e2ecee;
  border-radius: 17px;
  box-shadow: 0 7px 22px rgba(27, 78, 92, 0.035);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.categories button:hover,
.products > article:hover {
  border-color: #b9dfe2;
  transform: translateY(-2px);
}
.chips button.active {
  background: #0b2836;
}
.service {
  background: #071b2a;
  border-radius: 24px;
}
.service aside {
  background: linear-gradient(145deg, #0c6e91, #14aa91);
}
.shop {
  background: #f5fafb;
}
footer {
  background: #061923;
}
.location-section {
  padding-top: 64px;
}
.location-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto 22px;
}
.location-head small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.location-head h2 {
  margin: 8px 0 0;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.location-head > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
}
.location-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(330px, 1.1fr);
  min-height: 0;
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.map-wrap {
  position: relative;
  min-height: 260px;
  background: #eaf2f3;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  filter: saturate(0.82) contrast(0.96);
}
.map-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(9, 37, 50, 0.16);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.map-badge strong {
  font-size: 0.86rem;
  color: #102332;
}
.map-badge span {
  font-size: 0.7rem;
  color: var(--muted);
}
.location-details {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-label {
  color: #0c9d90;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.location-details h3 {
  margin: 10px 0 14px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.location-details address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.65;
}
.location-details address strong {
  color: #102332;
}
.location-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
}
.contact-line a {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0b7e92;
}
.contact-line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a7b9bd;
}
@media (max-width: 800px) {
  .location-head {
    display: block;
  }
  .location-head > p {
    margin-top: 12px;
  }
  .location-card {
    grid-template-columns: 1fr;
  }
  .map-wrap,
  .map-wrap iframe {
    min-height: 230px;
  }
  .location-details {
    padding: 28px 26px;
  }
}
@media (max-width: 600px) {
  .nav {
    height: 60px;
  }
  .brand img {
    width: 126px;
    height: 48px;
  }
  .hero-box {
    border-radius: 20px;
  }
  .location-section {
    padding-top: 46px;
  }
  .location-head h2 {
    font-size: 2.2rem;
  }
  .location-card {
    border-radius: 19px;
  }
  .map-wrap,
  .map-wrap iframe {
    min-height: 205px;
  }
  .map-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
  .location-details {
    padding: 24px 20px;
  }
  .location-details h3 {
    font-size: 1.6rem;
  }
  .location-actions {
    grid-template-columns: 1fr 1fr;
  }
  .location-actions .btn {
    padding-inline: 8px;
  }
}

/* Alignment and assisted-ordering refinements */
.perks article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.perk-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ice);
  color: #0a8f9a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.perk-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.perk-copy b,
.perk-copy small {
  display: block;
  line-height: 1.35;
}
.perk-copy b {
  font-size: 0.82rem;
}
.perk-copy small {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}
.contact-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.contact-button {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #0b7e92 !important;
  font-size: 0.76rem;
  font-weight: 800;
}
.contact-button.whatsapp-contact {
  border-color: #ccebdd;
  background: #eaf8f2;
  color: #087a57 !important;
}
.order-policy {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cfe8e5;
  border-radius: 12px;
  background: #f2fbfa;
}
.order-policy strong {
  font-size: 0.78rem;
  color: #0b716d;
}
.order-policy span {
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--muted);
}
.payment-summary {
  display: grid;
  gap: 8px;
  margin: 18px auto;
  max-width: 420px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  text-align: left;
}
.payment-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.76rem;
}
.payment-summary > div + div {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.payment-summary span {
  color: var(--muted);
}
.payment-summary b {
  white-space: nowrap;
}
.confirmation-note {
  max-width: 470px;
  margin: 0 auto 14px !important;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-width: 470px;
  margin: auto;
}
.confirm-actions .btn {
  width: 100%;
  min-height: 48px;
}
.btn.email {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.replacement-note {
  display: block;
  max-width: 470px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}
.finish-button {
  margin-top: 14px;
  min-width: 180px;
}
.success {
  padding: 38px 25px 28px;
}
.success > span {
  margin-bottom: 12px;
}
.success h2 {
  margin: 0 0 8px;
}
.success > p {
  margin: 0 auto;
  max-width: 480px;
}
.modal form > p {
  font-size: 0.7rem;
  line-height: 1.5;
}
.cart-total > small {
  margin: 6px 0 12px;
  font-size: 0.68rem;
  line-height: 1.5;
}
.drawer header button,
.modal header button {
  display: grid;
  place-items: center;
  line-height: 1;
}
.cart-list article > button {
  min-width: 36px;
  min-height: 36px;
  font-size: 1.1rem;
}
.form input,
.form select {
  width: 100%;
}
.form select {
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .perks {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 12px 0 30px;
  }
  .perks article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 8px 0;
    align-items: center;
  }
  .perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .perk-copy b {
    font-size: 0.72rem;
  }
  .perk-copy small {
    font-size: 0.64rem;
  }
  .contact-line {
    grid-template-columns: 1fr 1fr;
  }
  .contact-button {
    min-height: 44px;
  }
  .modal {
    max-height: 92dvh;
  }
  .modal header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .modal form {
    padding: 16px 18px 22px;
  }
  .order-policy {
    padding: 12px;
  }
  .success {
    padding: 26px 18px calc(24px + env(safe-area-inset-bottom));
  }
  .confirm-actions {
    grid-template-columns: 1fr;
  }
  .confirm-actions .btn {
    min-height: 50px;
  }
  .payment-summary {
    margin: 15px 0;
  }
  .replacement-note {
    font-size: 0.66rem;
  }
  .finish-button {
    width: 100%;
  }
  footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .foot {
    align-items: start;
  }
  .footer-brand img {
    max-width: 170px;
    height: auto;
  }
  .foot p {
    margin-top: 4px;
    line-height: 1.55;
  }
}

/* Price-free catalogue: complete product visible, no image zoom or cropping. */
.products .visual {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  overflow: visible;
}
.products .visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: none !important;
}
.products .visual > [hidden] {
  display: none !important;
}
.details .enquire-product {
  margin-top: auto;
  font-size: 0.73rem;
  min-height: 44px;
}
.details p {
  white-space: normal;
}
.chips {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .products .visual {
    height: 180px;
    padding: 14px;
  }
  .details .enquire-product {
    font-size: 0.65rem;
    padding: 10px 6px;
  }
  .chips {
    flex-wrap: nowrap;
  }
  .search input {
    min-width: 0;
    width: 100%;
  }
}

.product-features {
  margin: 2px 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.55;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 2px;
}
.product-price b {
  font-size: 1.05rem;
  color: var(--ink);
}
.product-price del {
  font-size: 0.65rem;
  color: #98a2b3;
}
.product-price span {
  margin-left: auto;
  color: #16855f;
  font-size: 0.64rem;
  font-weight: 800;
}
@media (max-width: 600px) {
  .product-features {
    font-size: 0.56rem;
    margin-bottom: 10px;
    padding-left: 14px;
  }
  .product-price span {
    width: 100%;
    margin-left: 0;
  }
  .product-price b {
    font-size: 0.88rem;
  }
}

/* Store-priority brands */
.brand-grid > button {
  position: relative;
}
.brand-grid > button.featured {
  border-color: #8bd6cf;
  background: linear-gradient(145deg, #effbf9, #fff);
  box-shadow: 0 14px 34px rgba(11, 143, 133, 0.1);
}
.brand-pick {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-grid > button.featured .brand-logo b {
  color: #087c74;
}
