:root {
  color-scheme: light;
  --cream: #fdf3e7;
  --pink: #f5b8c4;
  --soft-pink: #fce8ed;
  --brown: #5c4033;
  --sage: #a8c6a0;
  --wa-green: #25d366;
  --white: #fffdfb;
  --shadow: 0 14px 38px rgba(92, 64, 51, .1);
  --font: "Nunito", "Noto Sans Sinhala", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--cream); color: var(--brown); font-family: var(--font); font-size: 16px; line-height: 1.55; }
body, button, input, textarea { font-family: var(--font); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { max-width: 100%; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b46f83; outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header { min-height: 76px; padding: 10px clamp(18px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; background: rgba(253, 243, 231, .94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(92, 64, 51, .08); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 112px; height: 50px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle, .cart-button { border: 1px solid rgba(92, 64, 51, .16); background: var(--white); border-radius: 999px; min-height: 44px; padding: 8px 14px; font-weight: 800; cursor: pointer; }
.language-toggle { font-size: 14px; }
.language-toggle span { color: var(--pink); margin: 0 3px; }
.cart-button { display: flex; align-items: center; gap: 8px; }
.cart-button svg { display: none; width: 21px; height: 21px; }
.cart-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 50%; background: var(--soft-pink); font-size: 13px; }
.section-wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.hero { min-height: 465px; padding-block: 40px 58px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; }
.hero-copy { position: relative; padding: 25px 0; }
.eyebrow { display: inline-block; color: #9a6870; font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; }
h1 { max-width: 640px; margin: 12px 0 16px; font-size: clamp(40px, 6.2vw, 70px); font-weight: 900; letter-spacing: -.04em; }
.hero-copy > p { max-width: 400px; margin-bottom: 24px; font-size: 19px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 23px; text-decoration: none; font-weight: 900; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(92, 64, 51, .13); }
.button:active { transform: scale(.98); }
.button-primary { background: var(--pink); }
.button-secondary { border: 1px solid rgba(92, 64, 51, .17); background: var(--white); }
.button-wa { width: 100%; color: #173d26; background: var(--wa-green); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 350px; }
.hero-art img { position: relative; z-index: 1; width: min(100%, 395px); height: auto; max-height: 370px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(92,64,51,.12)); animation: float 4.8s ease-in-out infinite; }
.hero-blob { position: absolute; width: min(85%, 340px); aspect-ratio: 1; border-radius: 48% 52% 61% 39% / 44% 46% 54% 56%; background: var(--soft-pink); transform: rotate(-8deg); }
.sticker { position: absolute; z-index: 2; right: 6%; bottom: 15%; width: 86px; height: 86px; display: grid; place-content: center; border-radius: 50%; background: var(--sage); text-align: center; font-size: 13px; font-weight: 900; line-height: 1.2; transform: rotate(10deg); }
.hero-sparkle { position: absolute; color: #c68f9d; }
.sparkle-one { right: 13%; top: 1%; font-size: 32px; }
.sparkle-two { right: 4%; top: 36%; font-size: 28px; }

.steps-section, .shop-section, .faq-section { padding-block: 42px 66px; }
.steps-section > h2, .faq-section > h2 { margin-bottom: 24px; text-align: center; font-size: clamp(28px, 4vw, 40px); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card, .faq-card { min-height: 150px; padding: 22px; border: 1px solid rgba(92,64,51,.08); border-radius: 24px; background: var(--white); box-shadow: 0 7px 24px rgba(92,64,51,.04); }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 13px; border-radius: 50%; background: var(--soft-pink); font-weight: 900; }
.step-card h3, .faq-card h3 { margin-bottom: 7px; font-size: 18px; }
.step-card p, .faq-card p { margin-bottom: 0; color: #725d52; }
.shop-section { padding-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 44px); }
.section-heading > p { margin: 0 0 4px; }
.design-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.design-card { min-width: 0; overflow: hidden; position: relative; padding: 0; border: 1px solid rgba(92,64,51,.1); border-radius: 23px; background: var(--white); text-align: left; cursor: pointer; box-shadow: 0 8px 24px rgba(92,64,51,.05); transition: transform .18s, box-shadow .18s; }
.design-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.design-image { width: 100%; aspect-ratio: 1 / 1.02; display: block; object-fit: cover; background: var(--soft-pink); }
.design-card-copy { display: block; padding: 12px 13px 15px; }
.design-name { display: block; margin-bottom: 2px; font-weight: 900; }
.design-price { color: #856a5d; font-size: 14px; }
.design-badge { position: absolute; top: 11px; left: 11px; padding: 4px 10px; border-radius: 99px; background: var(--sage); font-size: 12px; font-weight: 900; }
.guide-section { padding-block: 12px 62px; }
.guide-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px 46px; align-items: center; padding: clamp(23px, 5vw, 46px); border: 1px solid rgba(245,184,196,.65); border-radius: 30px; background: var(--soft-pink); }
.guide-intro h2 { margin: 7px 0 10px; font-size: clamp(28px, 4vw, 39px); }
.guide-intro p { margin-bottom: 0; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; text-align: left; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid rgba(92,64,51,.12); white-space: nowrap; }
.price-table th { font-size: 14px; }
.price-table td:not(:first-child) { font-weight: 800; }
.delivery-note { grid-column: 1 / -1; margin: 0; font-weight: 800; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq-card { min-height: 0; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 30px 22px 95px; border-top: 1px solid rgba(92,64,51,.1); text-align: left; }
.site-footer > img { object-fit: contain; }
.site-footer p { margin: 0; color: #725d52; }
.site-footer .footer-title { color: var(--brown); font-size: 20px; font-weight: 900; }
.footer-links { display: flex; flex-direction: column; gap: 3px; margin-left: 26px; font-size: 14px; font-weight: 800; }

.product-dialog { width: min(650px, calc(100% - 26px)); max-width: none; max-height: min(92vh, 850px); overflow-y: auto; padding: 26px; border: 0; border-radius: 28px; color: var(--brown); background: var(--cream); box-shadow: 0 25px 90px rgba(45,30,20,.27); }
.product-dialog::backdrop { background: rgba(45,30,20,.48); backdrop-filter: blur(3px); }
.dialog-close, .drawer-close { position: absolute; z-index: 3; top: 12px; right: 12px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(92,64,51,.12); border-radius: 50%; background: var(--white); font-size: 25px; line-height: 1; cursor: pointer; }
.product-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 23px; }
.product-photo { width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; border-radius: 22px; background: var(--soft-pink); }
.product-info h2 { padding-right: 30px; margin: 0 0 16px; font-size: 27px; }
.option-group { margin: 15px 0; }
.option-title { display: block; margin-bottom: 8px; font-weight: 900; }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 42px; padding: 7px 12px; border: 1px solid rgba(92,64,51,.2); border-radius: 14px; background: var(--white); cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--brown); background: var(--brown); color: white; }
.colour-choice { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 19px; height: 19px; border: 1px solid rgba(92,64,51,.22); border-radius: 50%; background: #272421; }
.swatch-white { background: #fff; }
.quantity-control { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid rgba(92,64,51,.18); border-radius: 14px; background: var(--white); }
.quantity-control button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.quantity-control output { min-width: 36px; text-align: center; font-weight: 900; }
.product-price { margin: 15px 0; font-size: 20px; font-weight: 900; }
.product-actions { display: grid; gap: 9px; }
.custom-field, .form-field { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid rgba(92,64,51,.2); border-radius: 14px; background: var(--white); color: var(--brown); font-size: 16px; }
textarea.custom-field { min-height: 90px; resize: vertical; }
.helper-note { margin: 8px 0 0; color: #725d52; font-size: 14px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 8; background: rgba(45,30,20,.43); }
.cart-drawer { width: min(480px, 100%); height: 100dvh; overflow-y: auto; position: fixed; z-index: 9; top: 0; right: 0; padding: 30px 22px 25px; background: var(--cream); box-shadow: -15px 0 45px rgba(45,30,20,.16); transform: translateX(105%); transition: transform .25s ease; }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-title { margin: 17px 50px 22px 0; font-size: 30px; }
.empty-cart { padding: 18px 6px 28px; text-align: center; }
.empty-cart img { width: 150px; height: 150px; object-fit: contain; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid rgba(92,64,51,.12); }
.cart-line img { width: 76px; height: 82px; border-radius: 14px; object-fit: cover; background: var(--soft-pink); }
.cart-line h3 { margin: 0 0 3px; font-size: 16px; }
.cart-line p { margin: 0; color: #725d52; font-size: 14px; }
.cart-line-actions { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.cart-line-actions button { min-width: 31px; min-height: 31px; border: 1px solid rgba(92,64,51,.15); border-radius: 9px; background: var(--white); cursor: pointer; }
.cart-line-actions .remove-line { padding: 4px 8px; font-size: 12px; }
.line-price { white-space: nowrap; font-size: 14px; font-weight: 900; }
.cart-totals { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0 5px; font-size: 19px; font-weight: 900; }
.cart-note { padding: 10px 12px; border-radius: 13px; background: var(--soft-pink); font-size: 14px; }
.drawer-actions { display: grid; gap: 9px; margin-top: 15px; }
.checkout-form { display: grid; gap: 13px; }
.checkout-form label { display: grid; gap: 6px; font-weight: 800; }
.checkout-form textarea { min-height: 90px; }
.checkbox-label { display: flex !important; align-items: start; gap: 9px !important; font-size: 14px; font-weight: 600 !important; }
.checkbox-label input { width: 18px; height: 18px; accent-color: #9a6870; }
.field-error { min-height: 1.35em; color: #a33149; font-size: 13px; font-weight: 700; }
.checkout-summary { margin: 16px 0; padding: 14px; border-radius: 15px; background: var(--white); }
.checkout-summary p { margin: 0 0 5px; }
.copy-message { min-height: 44px; border: 0; border-radius: 99px; background: transparent; text-decoration: underline; font-weight: 800; cursor: pointer; }
.copy-warning { padding: 10px 12px; border-radius: 13px; background: #fff1cc; font-size: 14px; }
.floating-cart { position: fixed; z-index: 6; right: 15px; bottom: 15px; left: 15px; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 11px 19px; border: 0; border-radius: 18px; background: var(--brown); color: white; box-shadow: var(--shadow); font-weight: 900; cursor: pointer; }
.toast { position: fixed; z-index: 15; bottom: 25px; left: 50%; max-width: calc(100% - 30px); padding: 12px 18px; border-radius: 999px; background: var(--brown); color: white; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.lang-si { font-family: "Noto Sans Sinhala", "Nunito", sans-serif; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 800px) {
  .hero { min-height: 0; grid-template-columns: 1fr .78fr; gap: 5px; padding-block: 35px 25px; }
  .hero-art { min-height: 290px; }
  .hero-art img { max-height: 300px; }
  .design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .guide-card { grid-template-columns: 1fr; gap: 16px; }
  .delivery-note { grid-column: auto; }
}
@media (max-width: 560px) {
  .site-header { min-height: 62px; padding: 7px 12px; }
  .brand img { width: 80px; height: 40px; }
  .header-actions { gap: 6px; }
  .language-toggle, .cart-button { min-height: 44px; padding: 7px 9px; font-size: 13px; }
  .cart-button { gap: 5px; }
  .section-wrap { width: min(100% - 28px, 440px); }
  .hero { grid-template-columns: 1fr .72fr; align-items: center; gap: 0; padding-block: 30px 18px; }
  .hero-copy { z-index: 1; }
  .hero h1 { font-size: clamp(35px, 10vw, 49px); }
  .hero-copy > p { font-size: 16px; }
  .hero-art { min-height: 210px; margin-left: -19px; }
  .hero-art img { max-height: 230px; }
  .sticker { right: -3%; bottom: 7%; width: 68px; height: 68px; font-size: 11px; }
  .steps-section, .shop-section, .faq-section { padding-block: 35px 48px; }
  .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .step-card { min-height: 0; padding: 17px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
  .step-number { grid-row: span 2; margin: 0; }
  .step-card h3 { align-self: end; }
  .step-card p { font-size: 14px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 16px; }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .design-card { border-radius: 18px; }
  .design-card-copy { padding: 9px 10px 12px; }
  .design-name { font-size: 14px; }
  .design-price { font-size: 13px; }
  .design-badge { top: 7px; left: 7px; font-size: 10px; }
  .guide-section { padding-bottom: 42px; }
  .guide-card { padding: 21px 17px; border-radius: 23px; }
  .price-table th, .price-table td { padding: 8px 9px; font-size: 14px; }
  .faq-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: center; gap: 10px; padding: 23px 14px 95px; }
  .site-footer > img { width: 60px; height: 60px; }
  .site-footer p { font-size: 12px; }
  .site-footer .footer-title { font-size: 17px; }
  .footer-links { margin-left: auto; font-size: 12px; }
  .product-dialog { width: 100%; max-width: none; max-height: 94dvh; align-self: end; margin: auto 0 0; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; overscroll-behavior: contain; }
  .product-layout { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: start; }
  .product-photo { width: 82px; height: 82px; aspect-ratio: 1; object-fit: contain; border-radius: 15px; }
  .product-info h2 { min-height: 40px; display: flex; align-items: center; margin: 2px 35px 5px 0; font-size: 20px; }
  .product-info .option-group { margin: 8px 0; }
  .option-title { margin-bottom: 6px; }
  .choice { min-width: 44px; min-height: 44px; padding: 5px 8px; font-size: 13px; }
  .choice-list { gap: 6px; }
  .quantity-control button { width: 44px; height: 44px; }
  .product-price { margin: 8px 0 0; font-size: 19px; }
  .custom-field { min-height: 76px; }
  .product-actions { position: sticky; bottom: -14px; z-index: 2; gap: 8px; margin: 0 -14px calc(-14px - env(safe-area-inset-bottom)); padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(253,243,231,.88), var(--cream) 22%); }
  .product-actions .button { min-height: 48px; }
  .product-wide { grid-column: 1 / -1; }
  .cart-drawer { padding: 20px 15px calc(18px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .drawer-title { margin-top: 14px; font-size: 27px; }
  .cart-line { grid-template-columns: 58px minmax(0, 1fr); gap: 9px; }
  .cart-line img { width: 58px; height: 64px; }
  .line-price { grid-column: 2; font-size: 14px; }
  .cart-line-actions button { min-width: 40px; min-height: 40px; }
  .cart-line-actions .remove-line { min-height: 40px; font-size: 13px; }
  .checkout-form .button-wa { position: sticky; bottom: -18px; z-index: 2; margin: 0 -15px; width: calc(100% + 30px); border-radius: 0; box-shadow: 0 -8px 18px rgba(253,243,231,.9); }
}
@media (max-width: 380px) {
  .section-wrap { width: calc(100% - 24px); }
  .site-header { padding-inline: 10px; }
  .brand img { width: 70px; }
  .language-toggle, .cart-button { padding-inline: 8px; font-size: 12px; }
  .cart-button > [data-i18n="cart"] { display: none; }
  .cart-button svg { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(112px, .68fr); }
  .hero h1 { font-size: clamp(32px, 9.4vw, 40px); }
  .hero-art { margin-left: -10px; }
  .design-grid { gap: 9px; }
  .product-layout { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .product-photo { width: 70px; height: 70px; }
  .product-dialog { padding-right: 12px; padding-left: 12px; }
  .product-actions { bottom: -12px; margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
