/* KEDAICDID R312 — tablet desktop-style header and hero row placement.
   Keep touch-friendly hit targets while placing the service cards and two action buttons directly below the subtitle. */
@media (min-width:701px) and (max-width:1100px) {
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda {
    --kcd-r312-home-row-top:clamp(288px,43.5svh,320px);
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header {
    position:fixed !important;
    inset:0 0 auto !important;
    display:grid !important;
    grid-template-columns:clamp(76px,8vw,90px) minmax(0,1fr) 42px !important;
    grid-template-rows:1fr !important;
    align-items:center !important;
    column-gap:clamp(10px,2vw,22px) !important;
    width:100% !important;
    height:70px !important;
    min-height:70px !important;
    margin:0 !important;
    padding:8px clamp(18px,3.2vw,34px) !important;
    overflow:visible !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    transform:none !important;
    isolation:isolate !important;
    z-index:2147481000 !important;
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header .header-top {
    grid-area:1 / 1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:auto !important;
    min-width:0 !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    justify-self:start !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header .logo {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header .logo :is(img,video) {
    display:block !important;
    width:clamp(76px,8vw,90px) !important;
    max-width:100% !important;
    height:auto !important;
    max-height:44px !important;
    object-fit:contain !important;
  }

  /* Centered glass navigation capsule, similar to the desktop reference. */
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header .scroll-nav-wrapper {
    grid-area:1 / 2 !important;
    position:relative !important;
    inset:auto !important;
    display:block !important;
    align-self:center !important;
    justify-self:center !important;
    width:max-content !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    margin:0 auto !important;
    padding:4px 6px !important;
    overflow:visible !important;
    border:1px solid rgba(220,194,247,.82) !important;
    border-radius:999px !important;
    background:rgba(126,75,184,.30) !important;
    background-image:linear-gradient(135deg,rgba(221,199,241,.11),rgba(107,68,146,.10)) !important;
    box-shadow:0 3px 14px rgba(43,17,73,.12),0 0 10px rgba(173,82,255,.54),0 0 22px rgba(143,54,238,.30),inset 0 1px 0 rgba(255,255,255,.34) !important;
    -webkit-backdrop-filter:blur(10px) saturate(135%) !important;
    backdrop-filter:blur(10px) saturate(135%) !important;
    transform:none !important;
    z-index:auto !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav {
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:nowrap !important;
    gap:2px !important;
    width:max-content !important;
    min-width:0 !important;
    max-width:100% !important;
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    margin:0 !important;
    padding:3px 4px !important;
    overflow:visible !important;
    border:0 !important;
    border-radius:999px !important;
    background:transparent !important;
    box-shadow:none !important;
    transform:none !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav > .nav-item {
    position:relative !important;
    display:inline-flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    margin:0 !important;
    padding:0 clamp(7px,1vw,11px) !important;
    border:1px solid transparent !important;
    border-radius:999px !important;
    background:transparent !important;
    box-shadow:none !important;
    color:rgba(37,26,47,.96) !important;
    -webkit-text-fill-color:rgba(37,26,47,.96) !important;
    font-family:inherit !important;
    font-size:clamp(10px,1.15vw,12px) !important;
    font-weight:750 !important;
    line-height:1 !important;
    letter-spacing:-.01em !important;
    text-decoration:none !important;
    text-shadow:none !important;
    white-space:nowrap !important;
    transform:none !important;
    transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav > .nav-item.active {
    background:linear-gradient(135deg,#a84cff 0%,#7a25cf 100%) !important;
    border-color:rgba(236,211,255,.42) !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    box-shadow:0 3px 12px rgba(117,39,201,.40),inset 0 1px 0 rgba(255,255,255,.22) !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav > .nav-item .kcd-nav-icon {
    display:inline-grid !important;
    place-items:center !important;
    flex:0 0 14px !important;
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:currentColor !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav > .nav-item .kcd-nav-icon svg {
    display:block !important;
    width:14px !important;
    height:14px !important;
    stroke:currentColor !important;
    fill:none !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav > .nav-item .kcd-nav-custom-label {
    display:inline !important;
    max-width:none !important;
    color:inherit !important;
    -webkit-text-fill-color:currentColor !important;
    font-size:inherit !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav .kcd-nav-glow {
    display:none !important;
    animation:none !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav > .nav-item::before,
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #main-scroll-nav > .nav-item::after {
    content:none !important;
    display:none !important;
    animation:none !important;
  }

  /* Search becomes the desktop-style icon at the far right. */
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #kcd-header-actions {
    grid-area:1 / 3 !important;
    position:static !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    justify-self:end !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    margin:0 !important;
    padding:0 !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #kcd-search-toggle {
    display:grid !important;
    place-items:center !important;
    flex:0 0 42px !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:50% !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#38254f !important;
    stroke:currentColor !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #kcd-search-toggle svg {
    display:block !important;
    width:22px !important;
    height:22px !important;
    stroke:currentColor !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #kcd-search-toggle::after {
    content:none !important;
    display:none !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] > #kcd-site-header #kcd-catalog-search-panel {
    position:absolute !important;
    top:calc(100% + 8px) !important;
    right:clamp(18px,3.2vw,34px) !important;
    left:auto !important;
    width:min(500px,calc(100vw - 120px)) !important;
    max-width:500px !important;
  }

  /* The floating cart returns to the desktop corner, scaled for a tablet. */
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #kcd-cart-r293-fab {
    position:fixed !important;
    top:auto !important;
    right:18px !important;
    bottom:16px !important;
    left:auto !important;
    display:grid !important;
    place-items:center !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    max-width:48px !important;
    padding:0 !important;
    gap:0 !important;
    border:1px solid rgba(255,255,255,.88) !important;
    border-radius:50% !important;
    background:linear-gradient(135deg,#a64dff,#8128e6) !important;
    color:#fff !important;
    box-shadow:0 8px 22px rgba(125,45,220,.28),inset 0 1px 0 rgba(255,255,255,.32) !important;
    font-size:0 !important;
    line-height:1 !important;
    aspect-ratio:1 / 1 !important;
    z-index:2147481100 !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #kcd-cart-r293-fab > span:not(#kcd-cart-r293-count) {
    display:none !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #kcd-cart-r293-fab svg {
    display:block !important;
    width:22px !important;
    height:22px !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #kcd-cart-r293-count {
    position:absolute !important;
    top:-5px !important;
    right:-5px !important;
    min-width:17px !important;
    height:17px !important;
    padding:0 3px !important;
    border:1.5px solid #fff !important;
    border-radius:999px !important;
    font-size:9px !important;
    line-height:14px !important;
    box-sizing:content-box !important;
  }
  /* R312: place the service cards and action buttons directly below the subtitle.
     Keep both groups on the same horizontal row, with the desktop-style left/right split. */
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .hero-section {
    position:relative !important;
    height:clamp(620px,82svh,690px) !important;
    min-height:620px !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .kcd-sakura-welcome {
    position:relative !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
    margin:0 !important;
    padding:140px clamp(30px,4.8vw,46px) 40px !important;
    box-sizing:border-box !important;
    background:transparent !important;
    overflow:visible !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .kcd-welcome-copy {
    display:block !important;
    position:static !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .kcd-welcome-copy h1 {
    width:auto !important;
    max-width:min(610px,51vw) !important;
    margin:0 !important;
    font-size:clamp(2.65rem,5.25vw,5.35rem) !important;
    text-align:left !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .kcd-welcome-copy h1 b {
    display:inline-block !important;
    margin-top:14px !important;
    text-align:left !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda #kcd-home-service-links.kcd-home-service-links {
    position:absolute !important;
    z-index:9 !important;
    top:auto !important;
    right:auto !important;
    top:var(--kcd-r312-home-row-top) !important;
    bottom:auto !important;
    left:clamp(30px,4.8vw,46px) !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,var(--kcd-r310-home-card-size))) !important;
    grid-auto-flow:row !important;
    align-items:stretch !important;
    justify-content:start !important;
    gap:var(--kcd-r310-home-card-gap) !important;
    width:max-content !important;
    max-width:calc(100% - 2 * clamp(30px,4.8vw,46px)) !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    box-sizing:border-box !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .r226-hero-actions {
    position:absolute !important;
    z-index:10 !important;
    top:var(--kcd-r312-home-row-top) !important;
    right:clamp(28px,7vw,66px) !important;
    bottom:auto !important;
    left:auto !important;
    inset:var(--kcd-r312-home-row-top) clamp(28px,7vw,66px) auto auto !important;
    display:flex !important;
    flex:0 0 auto !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:12px !important;
    width:var(--kcd-r310-home-action-width) !important;
    max-width:var(--kcd-r310-home-action-width) !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .r226-hero-actions a {
    display:flex !important;
    flex:0 0 auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:38px !important;
    padding:clamp(9px,1.25vw,12px) clamp(10px,1.4vw,20px) !important;
    font-size:clamp(11px,1.05vw,13px) !important;
    line-height:1.25 !important;
    box-sizing:border-box !important;
    white-space:normal !important;
    text-align:center !important;
  }

}
