/* /css/fonts.css */
/* The shop's two typefaces, served from the shop itself (no outside font host). */
/* arabic */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/el-messiri-arabic-0.woff2?v=G1gizVaaGT) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/el-messiri-latin-ext-1.woff2?v=bp1aU7QvXc) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/el-messiri-latin-2.woff2?v=pPJWhduu5M) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/el-messiri-arabic-0.woff2?v=G1gizVaaGT) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/el-messiri-latin-ext-1.woff2?v=bp1aU7QvXc) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/el-messiri-latin-2.woff2?v=pPJWhduu5M) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/el-messiri-arabic-0.woff2?v=G1gizVaaGT) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/el-messiri-latin-ext-1.woff2?v=bp1aU7QvXc) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/el-messiri-latin-2.woff2?v=pPJWhduu5M) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-3.woff2?v=qc79yuVGdi) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-ext-4.woff2?v=nhAnc1Ww0E) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-5.woff2?v=ZTv9UkqkZ0) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-6.woff2?v=McuXkrH5gU) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-ext-7.woff2?v=lG3KQQY7Py) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-8.woff2?v=xVtLG1tdV9) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-9.woff2?v=nlwBnY1ums) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-ext-10.woff2?v=mVkgXTDtIf) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-11.woff2?v=7hYPU7_oWF) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-12.woff2?v=J3ZduvJP84) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-ext-13.woff2?v=bRPSVwc24T) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-14.woff2?v=ngAuZW_4ut) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Amiri: the classic Naskh used for the luxury headlines (h1, h2, section titles) */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/amiri-700-arabic.woff2?v=1PzR_hW6ad) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/amiri-700-latin.woff2?v=pzp8OwGM4R) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* /css/shop.css */
:root {
  --cocoa: #4a1620;
  --cocoa-2: #812939;
  --amber: #c98b3a;
  --amber-2: #e9c58c;
  --amber-ink: #8a5a1c;
  --pista: #7a8f3c;
  --pista-2: #e8edd6;
  --cream: #fbf5ee;
  --card: #fffdf9;
  --ink: #2b1015;
  --muted: #7d6466;
  --line: #ecdccb;
  /* identity colours, taken from the real Tara logo */
  --maroon: #812939;
  --deep: #4a1620;
  --sand: #ecdccb;
  --gold: #c98b3a;
  --danger: #b4432c;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(74, 22, 32, .06), 0 8px 24px rgba(74, 22, 32, .07);
  --display: "El Messiri", "IBM Plex Sans Arabic", serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --max: 1240px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0 0 .4em; color: var(--cocoa); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
/* read by screen readers only; shared by every page */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* header */
.topbar { background: var(--cocoa); color: #f6e7d2; text-align: center; font-size: .85rem; padding: 7px 12px; }
.header { position: sticky; top: 0; z-index: 30; background: rgba(250, 245, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--cocoa); line-height: 1.1; }
.brand small { color: var(--muted); font-size: .72rem; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 500; color: var(--cocoa-2); transition: background .2s; white-space: nowrap; }
.nav a:hover, .nav a.on { background: #f1e6d6; color: var(--cocoa); }
.search { position: relative; flex: 1; max-width: 420px; margin-inline-start: auto; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding-inline: 14px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(201, 139, 58, .15); }
.search .i { color: var(--muted); width: 20px; }
.search input { border: 0; outline: 0; background: transparent; padding: 11px 10px; width: 100%; }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; max-height: 70vh; overflow: auto; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.suggest a:hover, .suggest a.on { background: var(--cream); }
.suggest .thumb { width: 44px; height: 44px; border-radius: 8px; }
.suggest .all { justify-content: center; color: var(--amber-ink); font-weight: 600; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: transform .15s; }
.cart-btn:hover { transform: translateY(-1px); }
.badge { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--amber); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; height: 20px; display: grid; place-items: center; padding-inline: 5px; font-weight: 700; }
.badge.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; background: var(--cocoa); color: #fff; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--cocoa-2); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.amber { background: var(--amber); color: #2b1015; }
.btn.amber:hover { background: #e7a24a; }
.btn.ghost { background: transparent; color: var(--cocoa); border: 1px solid var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.link { color: var(--amber-ink); font-weight: 600; background: none; border: 0; padding: 0; }

/* hero */
.hero { padding: 40px 0 28px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--pista-2); color: #4b5a20; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.12rem; color: var(--cocoa-2); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.coupon-pill { display: inline-flex; gap: 10px; align-items: center; border: 1.5px dashed var(--amber); border-radius: 12px; padding: 8px 14px; background: #fff8ec; font-weight: 500; }
.coupon-pill code { font-family: var(--body); font-weight: 700; letter-spacing: .05em; color: var(--cocoa); direction: ltr; }
.proof { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.proof b { color: var(--cocoa); font-size: 1.15rem; display: block; font-family: var(--display); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 8px; }
.trust div { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.trust .i { color: var(--pista); width: 28px; height: 28px; }
.trust b { display: block; font-size: .95rem; }
.trust span { color: var(--muted); font-size: .82rem; }

/* sections */
.section { padding-block: 34px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head p { margin: 0; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { position: relative; background: var(--cocoa); border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: end; padding: 20px; color: #fff; isolation: isolate; transition: transform .2s; }
.cat:hover { transform: translateY(-3px); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 26, 16, .82), rgba(42, 26, 16, .05) 65%); z-index: -1; }
.cat h3 { color: #fff; font-size: 1.5rem; margin: 0; }
.cat span { opacity: .85; font-size: .9rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }

/* product card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .media { position: relative; aspect-ratio: 1 / .82; background: #efe4d4; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .media img { transform: scale(1.04); }
.tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #fff; color: var(--cocoa); border-radius: 999px; font-size: .74rem; font-weight: 600; padding: 3px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.tag.sale { background: var(--danger); color: #fff; }
.tag.own { background: var(--cocoa); color: var(--amber-2); }
.tag.low { background: #fff3d6; color: #8a5a00; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .name { font-weight: 600; font-size: 1rem; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 1.15rem; color: var(--cocoa); }
.price s { color: var(--muted); font-size: .88rem; }
.price small { color: var(--muted); }
.weights { display: flex; gap: 4px; background: var(--cream); border-radius: 999px; padding: 3px; }
.weights button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 5px 4px; font-size: .8rem; font-weight: 500; color: var(--cocoa-2); transition: background .15s; }
.weights button.on { background: #fff; color: var(--cocoa); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font-weight: 700; }
.card .add { margin-top: auto; }
.card .add.done { background: var(--pista); }

/* designed tile for products without a photo */
.tile { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 14px; position: relative; overflow: hidden; }
.tile.nuts { background: radial-gradient(circle at 30% 20%, #f6d9a8, #e3b36c 60%, #c98a3d); }
.tile.coffee { background: radial-gradient(circle at 70% 20%, #8a5a3b, #812939 55%, #4a1620); color: #f6e7d2; }
.tile.sweets { background: radial-gradient(circle at 30% 80%, #f4d2c4, #e9b0a0 55%, #c97b68); }
.tile.gifts { background: radial-gradient(circle at 50% 30%, #e8edd6, #b9c78d 60%, #7a8f3c); }
.tile .i { width: 46%; height: 46%; stroke-width: 1.1; opacity: .35; position: absolute; }
.tile b { position: relative; font-family: var(--display); font-size: 1.25rem; line-height: 1.35; max-width: 90%; }

/* listing page */
.page-head { padding: 28px 0 10px; }
.crumbs { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.crumbs a:hover { color: var(--amber); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 12px 0 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .9rem; transition: all .15s; }
.chip:hover { border-color: var(--amber); }
.chip.on { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }
.select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .i { width: 48px; height: 48px; color: var(--amber); margin: 0 auto 10px; }

/* product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0; }
.pdp .media { border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: #efe4d4; position: relative; }
.pdp .media img { width: 100%; height: 100%; object-fit: cover; }
.pdp .tile b { font-size: 2rem; }
.pdp h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pdp .price b { font-size: 1.7rem; }
.opt-label { font-weight: 600; margin: 18px 0 8px; display: block; }
.weights.lg { max-width: 380px; padding: 5px; }
.weights.lg button { padding: 10px; font-size: .95rem; }
.buy { display: flex; gap: 12px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; }
.perks { display: grid; gap: 10px; margin-top: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.perks div { display: flex; gap: 10px; align-items: center; color: var(--cocoa-2); font-size: .93rem; }
.perks .i { color: var(--pista); }
.bundle { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.bundle-items { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bundle-items .mini { width: 120px; text-align: center; font-size: .85rem; }
.bundle-items .mini .m { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #efe4d4; margin-bottom: 6px; }
.bundle-items .mini .m img { width: 100%; height: 100%; object-fit: cover; }
.bundle-items .plus { font-size: 1.6rem; color: var(--muted); }

/* drawer (cart) */
.scrim { position: fixed; inset: 0; background: rgba(42, 26, 16, .4); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--cream); z-index: 50; display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .28s ease; box-shadow: -8px 0 30px rgba(0, 0, 0, .12); }
[dir="rtl"] .drawer { transform: translateX(-105%); inset-inline-end: auto; inset-inline-start: auto; left: 0; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; background: #fff; }
.freebar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem; }
.freebar .bar { height: 7px; background: var(--line); border-radius: 9px; margin-top: 8px; overflow: hidden; }
.freebar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pista), #a3b75c); border-radius: 9px; transition: width .4s; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .m { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #efe4d4; }
.line .m img { width: 100%; height: 100%; object-fit: cover; }
.line .m .tile b { font-size: .7rem; }
.line .nm { font-weight: 600; font-size: .93rem; line-height: 1.4; }
.line .meta { color: var(--muted); font-size: .82rem; }
.line .stepper button { width: 30px; height: 32px; font-size: 1rem; }
.line .rm { background: none; border: 0; color: var(--muted); font-size: .8rem; padding: 0; }
.line .rm:hover { color: var(--danger); }
.totals { display: grid; gap: 6px; margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.15rem; font-weight: 700; color: var(--cocoa); padding-top: 6px; border-top: 1px dashed var(--line); }
.cross { margin-top: 18px; }
.cross h3 { font-size: 1rem; }
.cross-list { display: grid; gap: 8px; }
.cross-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.cross-item .m { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: #efe4d4; }
.cross-item .m img { width: 100%; height: 100%; object-fit: cover; }
.cross-item .m .tile b { font-size: .6rem; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 24px 0 40px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.panel h2 { font-size: 1.3rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(201, 139, 58, .14); }
.field .err { color: var(--danger); font-size: .82rem; min-height: 0; }
.field.bad input, .field.bad select { border-color: var(--danger); }
.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; direction: ltr; text-align: right; text-transform: uppercase; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin: 10px 0; }
.notice.warn { background: #fff3d6; color: #6b4600; }
.notice.ok { background: var(--pista-2); color: #3d4a17; }
.notice.bad { background: #fbe3dc; color: #7c2a17; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* order page */
.order-hero { text-align: center; padding: 34px 0 10px; }
.order-hero .ok { width: 74px; height: 74px; border-radius: 50%; background: var(--pista-2); color: var(--pista); display: grid; place-items: center; margin: 0 auto 12px; }
.order-hero .ok .i { width: 38px; height: 38px; stroke-width: 2.4; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0; counter-reset: s; }
.timeline div { text-align: center; position: relative; color: var(--muted); font-size: .9rem; }
.timeline div::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 8px; background: var(--line); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--line); }
.timeline div.done { color: var(--cocoa); font-weight: 600; }
.timeline div.done::before { background: var(--pista); box-shadow: 0 0 0 2px var(--pista); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* chat */
.chat { position: fixed; bottom: 86px; left: 20px; z-index: 36; width: min(380px, calc(100% - 40px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 22px; box-shadow: 0 20px 60px rgba(42, 26, 16, .3); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { background: var(--cocoa); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head b { display: block; }
.chat-head small { opacity: .75; }
.chat-head .icon-btn { margin-inline-start: auto; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.chat-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: .93rem; white-space: pre-line; }
.msg.user { align-self: flex-start; background: var(--cocoa); color: #fff; border-end-start-radius: 4px; }
.msg.assistant { align-self: flex-end; background: #fff; border: 1px solid var(--line); border-end-end-radius: 4px; }
.msg .prods { display: grid; gap: 6px; margin-top: 8px; }
.msg .prods a { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; background: var(--cream); border-radius: 10px; padding: 5px; font-size: .85rem; }
.msg .prods .m { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; }
.msg .prods .m img { width: 100%; height: 100%; object-fit: cover; }
.msg .prods .m .tile b { font-size: .5rem; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px 0; background: #fff; }
.quick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: .82rem; }
.quick button:hover { border-color: var(--amber); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--amber); display: grid; place-items: center; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* misc */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); background: var(--cocoa); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 60; transition: transform .3s; box-shadow: var(--shadow); max-width: calc(100% - 40px); text-align: center; }
.toast:not(.show) { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.toast.show { transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, #f0e7da 25%, #f7f0e6 50%, #f0e7da 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 300px; }
@keyframes sk { to { background-position: -200% 0; } }

.footer { background: #2b1015; color: #d9c8b4; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding: 44px 20px 26px; }
.footer .foot-h { color: #fff; margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.5; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a:hover { color: var(--amber-2); }
.pay-logos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pay-logos span { background: #fff; color: #2b1015; border-radius: 6px; padding: 2px 8px; font-size: .78rem; font-weight: 700; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 20px; font-size: .85rem; color: #a8957f; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .pdp, .checkout { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 14px; }
  .header-in { height: auto; flex-wrap: wrap; padding-block: 10px; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .cart-btn { margin-inline-start: auto; }
  .brand small { display: none; }
  .hero { padding-top: 20px; }
  .cats { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 7; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .row { grid-auto-columns: 46%; gap: 10px; }
  .card .body { padding: 10px; }
  .card .name { font-size: .9rem; }
  .weights button { font-size: .72rem; padding: 4px 2px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust div { padding: 10px; gap: 8px; }
  .fields { grid-template-columns: 1fr; }
  .bundle { grid-template-columns: 1fr; }
  .bundle-items .mini { width: 90px; }
  .footer-in { grid-template-columns: 1fr; }
}

/* /css/premium.css */
/* Premium layer: glass, depth (3D), motion. Loaded after shop.css. Nothing here hides content. */
:root {
  --glass: rgba(255, 250, 241, .62);
  --glass-line: rgba(255, 255, 255, .7);
  --glass-shadow: 0 10px 40px rgba(74, 22, 32, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* living background: soft aurora behind everything */
body { background: var(--cream); position: relative; }
body::before {
  content: ""; position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(243, 194, 122, .45), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(122, 143, 60, .22), transparent 70%),
    radial-gradient(45% 55% at 60% 60%, rgba(201, 139, 58, .18), transparent 70%);
  filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(-4%, 6%, 0) scale(1.08); } }

/* glass header */
.topbar { background: linear-gradient(90deg, #2b1015, #812939 50%, #2b1015); letter-spacing: .01em; }
.header { background: var(--glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid var(--glass-line); transition: box-shadow .3s, background .3s; }
.header.scrolled { box-shadow: 0 8px 30px rgba(74, 22, 32, .14); background: rgba(255, 250, 241, .8); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; inset-inline: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.header .icon-btn.wish-btn, .wish-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); display: grid; place-items: center; transition: transform .2s var(--ease); }
.wish-btn:hover { transform: translateY(-2px) scale(1.06); }
.wish-btn .badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--amber); color: #2b1015; font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.cart-btn { backdrop-filter: blur(10px); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-6deg); } 60% { transform: scale(.95); } }

/* buttons: sheen */
.btn { position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(-120%); }
.btn.amber { background: linear-gradient(135deg, #dca556, #c98b3a 55%, #a9712a); box-shadow: 0 8px 22px rgba(201, 139, 58, .38); }
.btn.amber:hover { box-shadow: 0 12px 28px rgba(201, 139, 58, .5); transform: translateY(-2px); }

/* hero: layered 3D scene */
.hero { padding: 48px 0 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; background: linear-gradient(120deg, var(--cocoa) 30%, #8a5a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); box-shadow: var(--glass-shadow); color: var(--cocoa); }
.hero .eyebrow .i { color: var(--amber); }
@keyframes float { 50% { translate: 0 -12px; } }
.glass-chip { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px) saturate(1.5); box-shadow: var(--glass-shadow); font-weight: 600; font-size: .9rem; color: var(--cocoa); transform: translateZ(150px); white-space: nowrap; }
.glass-chip .i { width: 22px; height: 22px; color: var(--amber-ink); }
.glass-chip small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.glass-chip.one { top: 6%; inset-inline-start: 0; animation: float 6s ease-in-out -1s infinite; }
.glass-chip.two { top: 46%; inset-inline-end: -2%; animation: float 7s ease-in-out -3s infinite; }

/* marquee */
.marquee { overflow: hidden; margin-block: 22px; border-block: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: marq 38s linear infinite; font-family: var(--display); font-size: 1.15rem; color: var(--cocoa-2); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; }
.marquee-track span::after { content: "✦"; color: var(--amber); }
@keyframes marq { to { transform: translateX(50%); } }

/* trust: glass tiles */
.trust div { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); box-shadow: var(--glass-shadow); transition: transform .3s var(--ease); }
.trust div:hover { transform: translateY(-4px); }

/* category cards: depth */
.cats { perspective: 1200px; }
.cat { transition: transform .45s var(--ease), box-shadow .45s; box-shadow: 0 10px 30px rgba(74, 22, 32, .18); transform-style: preserve-3d; }
.cat:hover { transform: translateY(-6px) rotateX(2deg) rotateY(-3deg); box-shadow: 0 26px 50px rgba(74, 22, 32, .3); }
.cat h3 { transform: translateZ(30px); text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }

/* product cards: tilt + glare + wishlist */
.card { position: relative; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(6px); box-shadow: var(--glass-shadow);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform .35s var(--ease), box-shadow .35s; will-change: transform; }
.card.tilting { transition: transform .08s linear, box-shadow .35s; --lift: -6px; box-shadow: 0 24px 48px rgba(74, 22, 32, .22); }
.card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, -4px)); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 60%); }
.card.tilting::after { opacity: 1; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255, 250, 241, .8); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--cocoa); transition: transform .25s var(--ease), background .2s; }
.heart:hover { transform: scale(1.12); }
.heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.heart.on { background: #fff; color: #d4403a; }
.heart.on svg { fill: #d4403a; stroke: #d4403a; animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.4); } }
.card .tags { inset-inline-start: 10px; }
.card .add { background: linear-gradient(135deg, var(--cocoa), #812939); }

/* scroll rise (transform only, content always visible) */
.rise { transform: translateY(26px) scale(.985); transition: transform .8s var(--ease); }
.rise.in { transform: none; }

/* fly to cart + confetti */
.fly { position: fixed; z-index: 90; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); border: 3px solid #fff; background: var(--amber); }
.fly img { width: 100%; height: 100%; object-fit: cover; }
.spark { position: fixed; z-index: 91; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

/* wishlist + recently viewed */
.wish-panel { position: fixed; top: 0; inset-inline-start: 0; height: 100%; width: min(420px, 100%); z-index: 70; background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); border-inline-end: 1px solid var(--glass-line); box-shadow: 20px 0 60px rgba(0, 0, 0, .2); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.wish-panel.open { transform: none; visibility: visible; }
.wish-panel header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.wish-panel h2 { margin: 0; font-size: 1.3rem; }
.wish-list { overflow: auto; padding: 14px; display: grid; gap: 10px; align-content: start; flex: 1; }
.wish-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.wish-item img, .wish-item .tile { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.wish-item b { display: block; font-size: .95rem; }
.wish-empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.recent .row { grid-auto-columns: minmax(150px, 170px); }
.mini-card { display: block; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; overflow: hidden; box-shadow: var(--glass-shadow); transition: transform .3s var(--ease); }
.mini-card:hover { transform: translateY(-4px); }
.mini-card img { aspect-ratio: 1 / .8; width: 100%; object-fit: cover; }
.mini-card div { padding: 8px 10px; font-size: .9rem; font-weight: 600; }
.mini-card small { display: block; color: var(--amber-ink); font-weight: 700; }

/* sticky buy bar on phones */
.sticky-buy { display: none; }
@media (max-width: 720px) {
  .sticky-buy { display: flex; position: fixed; inset-inline: 10px; bottom: 10px; z-index: 40; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 20px; background: rgba(255, 250, 241, .85); backdrop-filter: blur(18px) saturate(1.6); border: 1px solid var(--glass-line); box-shadow: 0 14px 40px rgba(74, 22, 32, .3); transform: translateY(140%); transition: transform .4s var(--ease); }
  .sticky-buy.show { transform: none; }
  .sticky-buy b { flex: 1; font-size: .9rem; line-height: 1.3; }
  .sticky-buy small { display: block; color: var(--amber-ink); }
  .glass-chip { font-size: .78rem; padding: 8px 12px; }
}

.pdp .media { position: relative; border-radius: 28px; box-shadow: 0 30px 60px rgba(74, 22, 32, .2); overflow: hidden; }
.pdp .media img { transition: transform .6s var(--ease); }
.pdp .media:hover img { transform: scale(1.06); }

/* glass for surfaces */
.drawer { background: rgba(255, 250, 241, .88); backdrop-filter: blur(24px) saturate(1.6); }
.chat { backdrop-filter: blur(20px); }
.pdp .gallery { transition: transform .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card, .rise { transform: none !important; }
}
@media (hover: none) { .card { transform: none; } .card::after { display: none; } }

/* nut roastery: four nut types and the roasting steps */
.cats.four { grid-template-columns: repeat(4, 1fr); }
.cats.four .cat { aspect-ratio: 4 / 5; }
@media (max-width: 980px) { .cats.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats.four { grid-template-columns: 1fr 1fr; gap: 10px; } .cats.four .cat { aspect-ratio: 3 / 4; padding: 14px; } .cats.four .cat h3 { font-size: 1.1rem; } }
.card .tags { max-width: calc(100% - 66px); }

/* /css/growth.css */
/* Accounts, reviews, gifts, mix builder, subscriptions and the new checkout options */
.acc-btn { display: grid; place-items: center; }
.acc-btn.on { color: var(--amber-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; line-height: 1.5; }
.check input { width: auto; margin-top: 4px; accent-color: var(--amber); }
.check span { display: grid; }
.check small { font-weight: 400; }
.check .i { flex: none; color: var(--amber-ink); margin-top: 2px; }

/* stars */
.stars-row { display: inline-flex; gap: 1px; vertical-align: middle; }
.st .i, .stars-row .i { width: 16px; height: 16px; stroke: #d7c6ae; fill: #efe4d4; }
.st.on .i { stroke: #c98a1e; fill: #f3b544; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; margin-top: -4px; }
.card-rating .i { width: 14px; height: 14px; stroke: #c98a1e; fill: #f3b544; }
.tag.new { background: var(--pista); color: #fff; }

/* product page */
.fresh-line { display: flex; gap: 8px; align-items: center; color: var(--amber-ink); font-weight: 600; font-size: .92rem; margin-top: 10px; }
.alert-form { margin-top: 12px; padding: 16px; }
.alert-form b { display: flex; gap: 8px; align-items: center; }
.alert-form input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; }
.rv-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.rv-summary { display: grid; gap: 6px; justify-items: start; position: sticky; top: 90px; }
.rv-summary > b { font-size: 2.6rem; font-family: var(--display); color: var(--cocoa); line-height: 1; }
.rv-bar { display: grid; grid-template-columns: 14px 14px 1fr 28px; gap: 6px; align-items: center; width: 100%; font-size: .85rem; }
.rv-bar .i { width: 13px; height: 13px; stroke: #c98a1e; fill: #f3b544; }
.rv-bar i { height: 7px; border-radius: 9px; background: #efe4d4; overflow: hidden; }
.rv-bar u { display: block; height: 100%; background: #f3b544; }
.rv-list { display: grid; gap: 12px; }
.rv { padding: 16px 18px; }
.rv p { margin: 6px 0; }
.rv-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verified { display: inline-flex; gap: 4px; align-items: center; font-size: .78rem; color: var(--pista); font-weight: 600; }
.verified .i { width: 14px; height: 14px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.rv-reply { background: var(--pista-2); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-top: 8px; }
.rv-empty { display: flex; gap: 14px; align-items: center; }
.rv-empty > .i { width: 34px; height: 34px; color: var(--amber); }
.rv-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.rv.mini { display: grid; gap: 6px; align-content: start; scroll-snap-align: start; transition: box-shadow .2s, transform .2s; }
.rv.mini:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.rv.mini p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv.mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #efe4d4; }

/* review form */
.rv-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rv-item:last-child { border-bottom: 0; }
.rv-item .m { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #efe4d4; }
.rv-item .m img, .rv-item .m .tile { width: 100%; height: 100%; object-fit: cover; }
.rv-item .m .tile b { display: none; }
.rv-body { display: grid; gap: 8px; }
.rv-body textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; width: 100%; }
.star-pick { display: flex; gap: 2px; align-items: center; }
.star-pick button { background: none; border: 0; padding: 2px; }
.star-pick .i { width: 30px; height: 30px; stroke: #d7c6ae; fill: #efe4d4; transition: transform .15s, fill .15s; }
.star-pick button.on .i { stroke: #c98a1e; fill: #f3b544; }
.star-pick button:hover .i { transform: scale(1.12); }
.photo-pick { display: inline-flex; gap: 8px; align-items: center; border: 1.5px dashed var(--amber); border-radius: 12px; padding: 8px 12px; cursor: pointer; width: fit-content; font-weight: 500; }
.rv-item.done { grid-template-columns: 72px 1fr; align-items: center; }
.small.ok, .num.ok { color: var(--pista); }

/* sign in */
.auth { display: grid; place-items: center; padding: 48px 16px 70px; }
.auth-card { width: min(440px, 100%); text-align: center; display: grid; gap: 6px; }
.auth-card form { display: grid; gap: 14px; text-align: start; margin-top: 10px; }
.auth-ic { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: #fff3dd; color: var(--amber-ink); }
.code-in { letter-spacing: .6em; text-align: center; font-size: 1.4rem; font-weight: 700; }

/* account */
.account { display: grid; gap: 18px; padding: 26px 0 50px; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.acc-grid .panel { display: grid; gap: 12px; align-content: start; }
.loyalty-card { background: linear-gradient(135deg, var(--cocoa), #6b4326); color: #fff3e2; border: 0; }
.loyalty-card p { color: #f0dcc0; margin: 0; }
.lc-top { display: grid; gap: 2px; }
.lc-top span { display: flex; gap: 6px; align-items: center; color: var(--amber-2); font-weight: 600; }
.lc-top b { font-size: 2.6rem; font-family: var(--display); line-height: 1.1; color: #fff; }
.tier-bar { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.tier-bar i { display: block; height: 100%; background: var(--amber); }
.acc-order { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.acc-order:last-child { border-bottom: 0; }
.acc-order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acc-actions select { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; }
.pill { display: inline-block; font-size: .76rem; padding: 2px 10px; border-radius: 999px; background: #f2eadf; font-weight: 600; }
.pill.s-delivered, .pill.s-paid, .pill.s-shipped { background: var(--pista-2); color: #4f5f20; }
.pill.s-payment_failed, .pill.s-cancelled { background: #fbe3dc; color: var(--danger); }
.promo-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.promo-line > .i { color: var(--amber-ink); }
.promo-line span { flex: 1; min-width: 200px; }

/* checkout: the columns may shrink below their longest line, so a phone never scrolls sideways */
.checkout > * { min-width: 0; }
.coupon-row input { min-width: 0; }
.coupon-row .btn { flex: none; }
.acc-strip { display: flex; gap: 10px; align-items: center; background: #fff8ec; border: 1px solid #f1dfc2; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: .92rem; }
.acc-strip .i { color: var(--amber-ink); flex: none; }
.opts { display: grid; gap: 10px; margin-top: 16px; }
.opt-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.opt-card select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: fit-content; max-width: 100%; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:has(input:checked) { border-color: var(--amber); background: #fffaf1; }
.pay-opt input { accent-color: var(--amber); width: auto; }
.pay-opt.soon { cursor: not-allowed; opacity: .6; background: #faf6f0; }
.pay-opt span { display: grid; }
.earn { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .88rem; color: var(--amber-ink); margin-top: 10px; }

/* gifts, mix, subscribe */
.page-hero { padding: 34px 0 20px; max-width: 760px; }
.sub-steps { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sub-steps li { display: grid; gap: 6px; justify-items: start; }
.sub-steps .n { font-family: var(--display); color: var(--amber); font-size: 1.5rem; font-weight: 700; }
.sub-steps .i { color: var(--amber-ink); }
.promo-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-pair.two { grid-template-columns: repeat(2, 1fr); }
.promo { display: flex; gap: 14px; align-items: center; transition: box-shadow .2s, transform .2s, border-color .2s; }
.promo:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--amber); }
.promo > .i { width: 34px; height: 34px; color: var(--amber-ink); flex: none; }
.promo div { display: grid; }
.promo small { color: var(--muted); }

/* header: the menu (nut types, gifts, mix, offers) gives way before the icons do */
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.search { min-width: 150px; }
@media (max-width: 1400px) { .nav a { padding-inline: 9px; font-size: .95rem; } .header-in { gap: 12px; } }

@media (max-width: 860px) {
  .rv-wrap, .acc-grid, .promo-pair, .promo-pair.two { grid-template-columns: 1fr; }
  .rv-summary { position: static; }
  .sub-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sub-steps { grid-template-columns: 1fr; }
}

/* /css/ux.css */
/* UX layer: navigation, cards, product page, cart and checkout. Loaded last. */
:root { --tab-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px); }

/* ---------- top bar: one line, the phone shows the most useful message ---------- */
.topbar { display: flex; justify-content: center; gap: 0; white-space: nowrap; overflow: hidden; }
.topbar span + span::before { content: "·"; margin-inline: 10px; opacity: .6; }

/* ---------- header: brand, a wide search and the icons; the sections get their own row ---------- */
.header-in { height: 70px; gap: 14px; }
.search { max-width: 620px; margin-inline: auto; }
.search input { padding-block: 12px; }
.menu-btn { display: none; flex: none; }
#cart-open { width: auto; padding-inline: 12px 16px; gap: 8px; display: flex; align-items: center; border-radius: 999px; background: var(--cocoa); color: #fff; border-color: var(--cocoa); font-weight: 600; }
#cart-open .i { stroke: currentColor; }
#cart-open .badge { position: static; background: var(--amber); color: #2b1015; }
.nav-row { border-top: 1px solid var(--line); }
.nav-row .nav { display: flex; align-items: center; gap: 2px; height: 46px; overflow-x: auto; }
.nav-row .nav a { padding: 7px 12px; font-size: .95rem; }
.nav-row .nav a.hot { color: #b4451f; font-weight: 600; }
.nav-sep { flex: none; width: 1px; height: 20px; background: var(--line); margin-inline: 8px; }

/* ---------- side menu (phone and tablet) ---------- */
.menu { position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 88vw); z-index: 50; background: var(--cream); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .28s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .14); visibility: hidden; }
.menu.open { transform: none; visibility: visible; }
.menu:not(.open) { transition: transform .28s ease, visibility 0s .28s; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.menu-head b { font-family: var(--display); font-size: 1.25rem; color: var(--cocoa); }
.menu-body { flex: 1; overflow: auto; padding: 12px 14px 28px; }
.menu-body h3 { font-size: .8rem; color: var(--muted); font-weight: 600; margin: 18px 6px 8px; }
.menu-body a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--cocoa); transition: background .15s; }
.menu-body a:hover, .menu-body a:focus-visible { background: #f1e6d6; }
.menu-body a > .i:last-child { margin-inline-start: auto; width: 18px; color: var(--muted); }
.menu-body a > span { min-width: 0; }
.m-all { background: var(--cocoa); color: #fff !important; font-weight: 600; }
.m-all:hover { background: var(--cocoa-2) !important; }
.m-all .i { color: #fff !important; }
.m-type img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: #efe3d2; }
.m-type b { display: block; font-weight: 600; }
.m-type small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-link > .i:first-child { width: 22px; color: var(--amber-ink, #9a5f12); }

/* ---------- bottom tab bar (phone) ---------- */
.tabbar { display: none; }

@media (max-width: 1020px) {
  .menu-btn { display: grid; }
  .nav-row .nav { display: flex; }
  .search { max-width: none; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 34; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 250, 241, .94); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-top: 1px solid var(--line); }
  .tabbar > * { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 500; }
  .tabbar .i { width: 23px; height: 23px; }
  .tabbar .on { color: var(--cocoa); font-weight: 700; }
  .tabbar .on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
  .tabbar .badge { position: absolute; top: 6px; inset-inline-end: calc(50% - 22px); min-width: 18px; height: 18px; font-size: .68rem; }
  .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 14px); }
  .sticky-buy { bottom: calc(var(--tab-h) + var(--safe-b) + 8px); }
  .sticky-buy:not(.show) { transform: translateY(calc(100% + var(--tab-h) + 40px)); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
  /* checkout: nothing over the form; the pay bar takes the bottom */
  body[data-route="checkout"], body[data-route="cart"] { padding-bottom: 0; }
  body[data-route="checkout"] .tabbar, body[data-route="cart"] .tabbar { display: none; }
  #account-link { display: none; }
}
@media (max-width: 640px) {
  .topbar { font-size: .78rem; padding-block: 6px; }
  .topbar span:not(:last-child) { display: none; }
  .topbar span + span::before { content: none; }
  /* height auto: the search wraps to its own line and must push the page down, not cover it */
  .header-in { height: auto; gap: 8px; padding-block: 8px; }
  .menu-btn, .header .wish-btn { width: 40px; height: 40px; }
  .brand b { font-size: 1.2rem; }
  #cart-open { margin-inline-start: 0; width: 40px; height: 40px; padding: 0; justify-content: center; position: relative; }
  #cart-open .cart-label { display: none; }
  #cart-open .badge { position: absolute; top: -5px; inset-inline-end: -5px; }
  .header .brand { margin-inline-end: auto; }
  .search input { padding-block: 10px; }
  .nav-row { display: none; }
}

/* ---------- product cards: price at the bottom edge, one tidy action row ---------- */
.card .name { min-height: 0; }
.card .pb { margin-top: auto; }
.card .cta { display: flex; min-height: 40px; }
.card .cta > * { flex: 1; }
.card .add { white-space: nowrap; width: 100%; margin-top: 0; }
.weights button { white-space: nowrap; }
.card-qty { display: flex; align-items: center; justify-content: space-between; gap: 4px; border-radius: 999px; background: #eef2e4; border: 1px solid #cfdab4; padding: 3px; }
.card-qty span { font-size: .85rem; color: #3f4f1c; white-space: nowrap; }
.card-qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; color: var(--cocoa); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: transform .15s; }
.card-qty button:active { transform: scale(.92); }
.card-qty .i { width: 17px; height: 17px; }
.card.in-cart { border-color: #cfdab4; }

/* ---------- toast with an action ---------- */
.toast { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 20px; width: max-content; }
.toast:not(:has(button)) { padding-inline: 20px; }
.toast button { border: 0; background: var(--amber); color: #2b1015; font-weight: 700; border-radius: 999px; padding: 6px 14px; white-space: nowrap; }

/* ---------- section pages: a compact head, the nut types as pills ---------- */
/* block padding only: the side padding comes from .wrap (it was zeroed on phones) */
.page-head { padding-block: 18px 6px; }
.ph-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-title h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.count-pill { background: #f1e6d6; color: var(--cocoa-2); border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.ph-sub { margin: 4px 0 0; }
.types { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 16px 0 4px; padding-bottom: 2px; }
.types::-webkit-scrollbar { display: none; }
.types a { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s; }
.types a:hover { border-color: var(--amber); }
.types a.on { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }
.types img, .types .ti { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.types .ti { display: grid; place-items: center; background: #f1e6d6; color: var(--cocoa); }
.types a.on .ti { background: rgba(255, 255, 255, .15); color: #fff; }
.toolbar { margin: 14px 0 16px; flex-wrap: nowrap; }
.toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.toolbar .chip { white-space: nowrap; flex: none; }
.sort-box { display: flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .page-head { padding-top: 12px; }
  .ph-sub { font-size: .9rem; }
  .toolbar { gap: 8px; margin: 10px 0 12px; }
  .toolbar .chip { padding: 6px 12px; font-size: .85rem; }
  .sort-box { font-size: 0; }
  .sort-box .select { font-size: .85rem; padding: 7px 10px; max-width: 128px; }
  .card .add { padding-inline: 8px; font-size: .85rem; }
  .card-qty span { font-size: .78rem; }
  .card-qty button { width: 30px; height: 30px; }
  .toast { max-width: calc(100% - 24px); padding-inline-start: 16px; font-size: .9rem; }
}

/* ---------- product page: one buy box with everything needed to decide ---------- */
.pdp { align-items: start; }
.pdp > div:last-child { min-width: 0; }
@media (min-width: 1021px) { .pdp > .media { position: sticky; top: 140px; } }
.pdp h1 { margin-bottom: .2em; }
.buybox { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .7); box-shadow: 0 10px 30px rgba(74, 22, 32, .06); }
.pdp-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.buybox .opt-label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .92rem; }
.weights.lg { max-width: none; }
.weights.lg button { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.3; padding: 8px 6px; }
.weights.lg button small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.weights.lg button.on small { color: var(--amber-ink, #9a5f12); }
.buybox .buy { margin: 0; flex-wrap: nowrap; }
.buybox .stepper { flex: none; }
.buybox #add-one { flex: 1; min-width: 0; white-space: nowrap; padding-inline: 14px; }
.pay-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.pay-line .i { width: 16px; height: 16px; color: var(--pista); flex: none; }
.pdp-desc { margin: 16px 0 0; line-height: 1.8; }
@media (max-width: 640px) {
  .pdp { gap: 14px; padding-top: 8px; }
  .pdp > .media { aspect-ratio: 4 / 3; border-radius: 20px; }
  .pdp h1 { font-size: 1.6rem; }
  .buybox { padding: 14px; margin-inline: -2px; }
  .pdp .price b { font-size: 1.5rem; }
  .buybox #add-one { font-size: .95rem; }
}

/* ---------- cart drawer: count in the title, clear edit and delete, total on the button ---------- */
.drawer-head h2 { display: flex; align-items: center; gap: 10px; }
.drawer-head .count-pill { font-family: var(--body, inherit); font-size: .8rem; font-weight: 500; }
.line { grid-template-columns: 72px 1fr auto; align-items: start; gap: 12px; padding: 14px 0; }
.line .m { width: 72px; height: 72px; }
.line-info { min-width: 0; }
.line .nm { display: block; }
.line .nm:hover { color: var(--amber-ink, #9a5f12); }
.line .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.line .meta .wt { background: #f1e6d6; color: var(--cocoa-2); border-radius: 6px; padding: 0 6px; }
.line .meta.short { color: var(--danger); }
.line-ctl { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.stepper.sm button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--cocoa); }
.stepper.sm .i { width: 16px; height: 16px; }
.stepper.sm span { min-width: 26px; }
.line .rm { display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; font-size: .82rem; border-radius: 8px; }
.line .rm .i { width: 16px; height: 16px; }
.line-total { font-size: .98rem; color: var(--cocoa); white-space: nowrap; padding-top: 2px; }
.drawer-foot .keep { margin-top: 8px; }
@media (max-width: 640px) {
  .drawer-foot { padding: 12px 16px calc(12px + var(--safe-b)); }
  .drawer-body { padding-inline: 16px; }
  .drawer-foot .totals { font-size: .92rem; gap: 4px; }
}
@media (max-width: 640px) { .drawer-foot .keep { border: 0; padding-block: 8px; margin-top: 2px; text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- checkout: where you are, three numbered parts, the total always in sight ---------- */
body[data-route="checkout"] .nav-row, body[data-route="cart"] .nav-row { display: none; }
.co-steps { list-style: none; display: flex; align-items: center; justify-content: center; gap: 0; margin: 22px auto 6px; padding: 0; max-width: 560px; counter-reset: s; }
.co-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: .88rem; color: var(--muted); }
.co-steps li + li::before { content: ""; position: absolute; top: 15px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.co-steps li.done + li::before, .co-steps li.on::before { background: var(--pista); }
.co-steps .dot, .co-steps button .i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: .9rem; }
.co-steps button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--pista); font: inherit; font-weight: 600; padding: 0; }
.co-steps button .i { background: var(--pista); border-color: var(--pista); color: #fff; padding: 6px; }
.co-steps li.on { color: var(--cocoa); font-weight: 700; }
.co-steps li.on .dot { background: var(--cocoa); border-color: var(--cocoa); color: #fff; box-shadow: 0 0 0 5px rgba(74, 22, 32, .12); }
.co-mini { display: none; }
.checkout { padding-top: 14px; }
.co-h { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 22px 0 12px; }
#co-form > .co-h:first-of-type, #co-form > .acc-strip + .co-h, #co-form > .notice + .co-h { margin-top: 4px; }
.co-h .num { width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #2b1015; display: grid; place-items: center; font-size: .9rem; font-family: var(--body, inherit); flex: none; }
.field { align-content: start; }
.field .hint { color: var(--muted); font-size: .8rem; }
.field.bad .hint { display: none; }
.field.good input, .field.good select { border-color: #9bb36a; background: #fbfdf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8a2b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat left 12px center / 18px; padding-inline-end: 38px; }
.field.good select { background-position: left 30px center; }
.field.good input[dir="ltr"] { background-position: right 12px center; }
.field.bad input, .field.bad select, .field.bad textarea { background: #fff8f6; }
.field .err:not(:empty) { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.field .err:not(:empty)::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; display: grid; place-items: center; flex: none; }
.more { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 14px; padding: 4px 14px; }
.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--amber-ink, #9a5f12); font-weight: 600; font-size: .92rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary .i { width: 18px; height: 18px; transition: transform .2s; }
.more[open] summary .i { transform: rotate(45deg); }
.more > .fields { padding: 6px 0 12px; }
.co-summary { position: sticky; top: 130px; }
.co-summary h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.co-summary h2 .link { display: inline-flex; align-items: center; gap: 4px; font-family: var(--body, inherit); font-size: .85rem; }
.co-summary h2 .link .i { width: 15px; height: 15px; }
.co-paybar { display: none; }
@media (max-width: 1020px) {
  .co-summary { position: static; }
  .co-mini { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: var(--cocoa); }
  .co-mini > span { flex: 1; text-align: start; font-weight: 600; }
  .co-mini > .i:last-child { width: 18px; transform: rotate(-90deg); color: var(--muted); }
  /* the form first, the pay bar pinned under it */
  .co-paybar { display: flex; align-items: center; gap: 12px; position: fixed; inset-inline: 0; bottom: 0; z-index: 34; padding: 10px 16px calc(10px + var(--safe-b)); background: rgba(255, 250, 241, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(74, 22, 32, .1); }
  .co-paybar > div { flex: 1; display: grid; line-height: 1.3; }
  .co-paybar small { color: var(--muted); font-size: .78rem; }
  .co-paybar b { font-size: 1.15rem; color: var(--cocoa); }
  .co-paybar .btn { flex: none; padding-inline: 22px; }
  body[data-route="checkout"] .footer, body[data-route="cart"] .footer { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .co-steps { margin-top: 14px; }
  .co-steps li { font-size: .78rem; }
  .checkout .panel { padding: 16px; border-radius: 16px; }
  .co-h { font-size: 1.08rem; margin-top: 18px; }
}

/* /css/brand.css */
/* Tara identity: the real logo, its maroon, and the pattern built from its own marks.
   Loaded last. Colours: maroon #812939 (the logo), deep #4a1620, cream #fbf5ee, sand #ecdccb,
   gold #c98b3a (accent), pistachio #7a8f3c (success). */

/* header logo: the original artwork, never redrawn */
.brand { gap: 12px; }
.brand-logo { display: block; height: 60px; width: auto; transition: transform .25s var(--ease, ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-tag small { display: block; color: var(--maroon); font-family: var(--display); font-size: .82rem; line-height: 1.2; padding-inline-start: 12px; border-inline-start: 1px solid var(--sand); }
.menu-logo { display: block; height: 40px; width: auto; }

/* the main call to action wears the logo's maroon; gold stays the accent */
.btn.amber { background: linear-gradient(135deg, #9a3346, var(--maroon) 55%, #6c1f2d); color: var(--cream); box-shadow: 0 8px 22px rgba(129, 41, 57, .3); }
.btn.amber:hover { background: linear-gradient(135deg, #a43a4e, #8a2c3d 55%, #5e1a27); box-shadow: 0 12px 28px rgba(129, 41, 57, .4); }
.btn.amber .i { color: inherit; }
.btn { background: var(--deep); }
.cart-btn .badge, .wish-btn .badge, .tabbar .badge { background: var(--maroon); color: var(--cream); }

/* the top strip and the footer: deep maroon with the logo pattern */
.topbar { background: linear-gradient(90deg, var(--deep), var(--maroon) 50%, var(--deep)); color: #f4e4d6; }
.footer { background: var(--deep) url(/brand/pattern-cream.svg?v=YjAsGaUqn0) 0 0 / 120px; color: #e4cfc6; position: relative; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--maroon), var(--gold), var(--maroon)); }
.footer-logo { display: block; height: 70px; width: auto; margin-bottom: 12px; }
.footer a:hover { color: var(--gold); }
.footer .copy { border-top-color: rgba(251, 245, 238, .12); }
.pay-logos span { border-color: rgba(251, 245, 238, .2); }
.footer .muted, .footer .copy { color: #cdb2aa; }

/* the hero and the order confirmation sit on a light veil of the pattern */
body[data-route="home"] .hero { position: relative; isolation: isolate; }
body[data-route="home"] .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: url(/brand/pattern-maroon.svg?v=Y_xdIoO9lV) 0 0 / 150px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 0, #000 20%, transparent 75%); mask-image: radial-gradient(120% 90% at 85% 0, #000 20%, transparent 75%); }
.hero h1 { background: linear-gradient(120deg, var(--deep) 25%, var(--maroon) 75%); -webkit-background-clip: text; background-clip: text; }
.order-hero, .empty { position: relative; isolation: isolate; border-radius: 24px; }
.order-hero::before, .empty::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45; border-radius: inherit;
  background: url(/brand/pattern-maroon.svg?v=Y_xdIoO9lV) center / 130px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.empty .i { color: var(--maroon); }

/* nav underline and focus in the brand colour */
.nav a::after { background: var(--maroon); }
.nav a.on { color: var(--maroon); }
:focus-visible { outline-color: var(--maroon); }

/* the owner's own photos: thumbs over the product photo, and the roastery reel */
.pdp-thumbs { position: absolute; inset-inline: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 8px; padding: 0 12px; }
.pdp-thumbs button { width: 58px; height: 46px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid rgba(251, 245, 238, .9); background: var(--sand); box-shadow: 0 6px 16px rgba(74, 22, 32, .25); cursor: pointer; opacity: .85; transition: transform .2s, opacity .2s, border-color .2s; }
.pdp-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.pdp-thumbs button[aria-current] { border-color: var(--maroon); opacity: 1; }
.pdp-thumbs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pdp .media .pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; transform: none; }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.reel figure { margin: 0; scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: var(--sand); position: relative; aspect-ratio: 4 / 5; box-shadow: 0 14px 30px rgba(74, 22, 32, .14); }
.reel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease, ease); }
.reel figure:hover img { transform: scale(1.05); }
.reel figcaption { position: absolute; inset: auto 0 0; padding: 34px 14px 12px; color: var(--cream); font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(43, 16, 21, .82)); }

@media (max-width: 640px) {
  .reel { grid-auto-columns: 62%; }
  .pdp-thumbs button { width: 48px; height: 38px; }
  .brand-logo { height: 42px; }
  .brand-tag { display: none; }
  .footer-logo { height: 60px; }
}

/* /css/buy.css */
/* Buying layer: contrast, what sells first on the phone, a clear price on
   every card, the buy button always in reach. Loaded after every other sheet. */
:root { --muted: #685054; }

/* ---------- home hero: on the phone a real photo with the offer over it ---------- */
/* (the film over this photo frame lives in hero.css, loaded after this sheet) */
.type-rail { display: none; }
@media (max-width: 720px) {
  body[data-route="home"] .hero { padding: 12px 0 0; }
  body[data-route="home"] .hero::before, .marquee { display: none; }
  .hero .hero-txt { display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; }
  .hero .eyebrow { align-self: flex-start; background: rgba(251, 245, 238, .16); border-color: rgba(251, 245, 238, .35); color: #fbf5ee; font-size: .8rem; backdrop-filter: blur(6px); }
  .hero .eyebrow .i { color: var(--gold); }
  .hero h1 { margin: 10px 0 6px; font-size: 1.75rem; line-height: 1.25; background: none; color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
  .hero p.lead { margin: 0; color: #f3e4d8; font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero .hero-cta { margin: 14px 0 0; gap: 8px; flex-wrap: nowrap; }
  .hero .hero-cta .btn { flex: 1; padding-inline: 10px; }
  .hero .hero-cta .btn.amber { background: var(--cream); color: var(--deep); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
  .hero .hero-cta .btn.ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; }
  .hero .coupon-pill, .hero .proof { display: none; }

  /* the nut types as round photos, one swipe */
  .type-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-block: 16px 4px; }
  .type-rail::-webkit-scrollbar { display: none; }
  .type-rail a { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; line-height: 1.3; color: var(--deep); text-align: center; }
  .type-rail .ring { display: block; width: 62px; height: 62px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--gold), var(--maroon)); }
  .type-rail .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); }
  .type-rail .ring.hot { display: grid; place-items: center; background: var(--maroon); color: var(--cream); }
  .type-rail .ring.hot .i { width: 26px; height: 26px; }
  .type-rail a:active .ring { transform: scale(.94); }
  .types-sec { display: none; }
  .section.best { padding-top: 16px; }
}

/* ---------- product cards: solid white, a strong price, a clear weight choice ---------- */
.card { background: #fff; border-color: #ead9c6; box-shadow: 0 2px 12px rgba(74, 22, 32, .07); backdrop-filter: none; }
.card .name { color: var(--ink); font-weight: 700; }
.price b { color: var(--maroon); }
.card .price b { font-size: 1.22rem; }
.price small { color: var(--muted); font-weight: 500; }
.price s { color: #8b6f72; }
.weights { background: #f5ece1; border: 1px solid #ecdcc9; }
.weights button { color: var(--deep); font-weight: 600; }
.weights button.on { background: var(--maroon); color: #fff; box-shadow: 0 2px 6px rgba(129, 41, 57, .3); }
.weights.lg button small { color: var(--muted); }
.weights.lg button.on small { color: #f7dccc; }
.sec-head p { color: var(--muted); }
@media (max-width: 640px) {
  .card .name { font-size: .95rem; min-height: 2.8em; }
  .card .price b { font-size: 1.15rem; }
  .weights button { font-size: .78rem; padding: 6px 2px; }
}

/* ---------- product page: delivery promise in the buy box, the buy bar always on the phone ---------- */
.ship-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: .88rem; font-weight: 500; color: var(--deep); }
.ship-line .i { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--pista); }
@media (max-width: 720px) {
  body[data-route="p"] { padding-bottom: calc(80px + var(--safe-b)); }
  body[data-route="p"] .tabbar { display: none; }
  body[data-route="p"] .crumbs { margin-top: 10px !important; font-size: .8rem; }
  body[data-route="p"] .toast { bottom: calc(92px + var(--safe-b)); }
  body[data-route="p"] .sticky-buy { transform: none; visibility: visible; inset-inline: 0; bottom: 0; border-radius: 18px 18px 0 0; padding: 10px 14px calc(10px + var(--safe-b)); background: rgba(255, 255, 255, .97); border: 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(74, 22, 32, .12); }
  .sticky-buy b { color: var(--ink); font-size: .92rem; min-width: 0; }
  .sticky-buy small { color: var(--maroon); font-weight: 700; font-size: .95rem; }
  .sticky-buy .btn { flex: none; padding-inline: 22px; }
}

/* ---------- cart and checkout: nothing that pulls away from paying ---------- */
@media (max-width: 720px) {
  body[data-route="checkout"] .search, body[data-route="cart"] .search,
  body[data-route="checkout"] .header .wish-btn, body[data-route="cart"] .header .wish-btn { display: none; }
  body[data-route="checkout"] .header-in, body[data-route="cart"] .header-in { justify-content: space-between; }
}

/* a pay button that cannot be pressed yet reads as such, not as a faded one */
.btn.amber:disabled { opacity: 1; background: #eadccd; color: #5b4246; box-shadow: none; }

/* product page: a weight or an amount of the customer's own */
.weigh .opt-label { font-size: .86rem; color: var(--muted); font-weight: 600; }
.weigh-row { display: flex; align-items: center; gap: 8px; }
.weigh-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid #e3d2bf; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.weigh-in:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(129, 41, 57, .14); }
.weigh-in span { font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.weigh-in input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 6px 0; font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--deep); text-align: center; font-variant-numeric: tabular-nums; }
.weigh-in em { font-style: normal; font-size: .8rem; color: var(--deep); font-weight: 600; }
.weigh-or { font-size: .8rem; color: var(--muted); }
.weigh-msg { margin: 6px 2px 0; font-size: .84rem; color: #5b4246; min-height: 1.4em; }
.weigh-msg b { color: var(--deep); }
.weigh-msg.bad { color: #a12a2a; }

/* four packs on a card: two by two, nothing cut off */
.card .weights { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 14px; }
.card .weights button { min-width: 0; border-radius: 10px; padding: 5px 2px; }

/* flavours of one product: outlined pills, the chosen one filled */
.flavours { display: flex; flex-wrap: wrap; gap: 6px; }
.flavours button { min-width: 0; border: 1.5px solid #e3d2bf; background: #fff; color: var(--deep); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.5; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.flavours button:hover { border-color: var(--maroon); }
.flavours button:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.flavours button.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.flavours button.out { color: #8b6f72; text-decoration: line-through; text-decoration-color: rgba(139, 111, 114, .6); }
.flavours.lg { gap: 8px; margin-bottom: 4px; }
.flavours.lg button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 18px; border-radius: 14px; font-size: .95rem; }
.flavours.lg button small { font-size: .76rem; font-weight: 500; color: var(--muted); }
.flavours.lg button.on small { color: #f3dccd; }
.flavours[aria-busy="true"] { opacity: .6; pointer-events: none; }
.card .flavours { gap: 4px; }
.card .flavours button { padding: 3px 9px; font-size: .74rem; }
h1 .flav-name { display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 2px 10px; border-radius: 999px; background: #f5ece1; color: var(--maroon); font-size: .9rem; font-weight: 700; }

/* /css/hero.css */
/* Home hero: a film from inside the roastery, the offer and the buy button
   over a deep maroon shade so they read on any frame. Loaded last. */
body[data-route="home"] .hero.hero-film { padding: 18px 0 6px; }
body[data-route="home"] .hero-film::before { display: none; }

.film { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(470px, 66vh, 620px); border-radius: 28px; background: var(--deep);
  box-shadow: 0 30px 60px rgba(74, 22, 32, .26); }
/* a hairline of gold inside the frame */
.film::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(201, 139, 58, .28); }
.film-poster, .film-poster img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-poster { z-index: -3; }
/* the film sits 2px inside the still frame (under the gold hairline): the same
   picture to the eye, but never larger than the still, so the browser counts the
   still as the page's main paint instead of waiting for the film to fade in */
.film video { z-index: -2; opacity: 0; transition: opacity .9s ease; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
.film video.on { opacity: 1; }
/* RTL: the text sits on the right, so the shade is deepest there */
.film-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(43, 16, 21, .92) 0%, rgba(43, 16, 21, .8) 38%, rgba(43, 16, 21, .3) 66%, rgba(43, 16, 21, 0) 100%),
    linear-gradient(to top, rgba(43, 16, 21, .5) 0%, rgba(43, 16, 21, 0) 40%); }

.hero-film .hero-txt { position: relative; max-width: 660px; padding: 40px clamp(24px, 4vw, 56px); color: #fff; }
.hero-film .eyebrow { margin: 0; background: rgba(251, 245, 238, .14); border: 1px solid rgba(251, 245, 238, .32); color: var(--cream); box-shadow: none; backdrop-filter: blur(8px); }
.hero-film .eyebrow .i { color: var(--gold); }
.hero-film h1 { margin: 16px 0 12px; font-size: clamp(2.1rem, 3.5vw, 3.1rem); line-height: 1.18; background: none; color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-film p.lead { margin: 0; color: #f3e4d8; font-size: 1.1rem; line-height: 1.75; max-width: 36em; }
.hero-film .hero-cta { margin: 24px 0 0; }
.hero-film .hero-cta .btn { padding: 14px 28px; font-size: 1.02rem; }
.hero-film .hero-cta .btn.amber { background: var(--cream); color: var(--deep); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.hero-film .hero-cta .btn.amber:hover { background: #fff; transform: translateY(-2px); }
.hero-film .hero-cta .btn.ghost { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.hero-film .hero-cta .btn.ghost:hover { background: rgba(255, 255, 255, .18); }
.hero-film .hero-cta .btn:focus-visible, .film-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero-film .coupon-pill { margin-top: 18px; background: rgba(251, 245, 238, .12); border-color: var(--gold); color: #fff; }
.hero-film .coupon-pill code { color: var(--gold); }
.hero-film .proof { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid rgba(251, 245, 238, .2); color: #e6d3c4; }
.hero-film .proof b { color: #fff; }

/* the two promises float on the open side of the frame */
.film-chips { position: absolute; bottom: 28px; inset-inline-end: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.film-chips .glass-chip { position: static; transform: none; animation: none; background: rgba(251, 245, 238, .88); border-color: rgba(255, 255, 255, .6); color: var(--deep); }
.film-chips .glass-chip small { color: #6b4c51; }
.film-chips .glass-chip .i { color: var(--maroon); }

.film-toggle { position: absolute; top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(43, 16, 21, .45); color: #fff; backdrop-filter: blur(8px); cursor: pointer; transition: background .2s; }
.film-toggle:hover { background: rgba(43, 16, 21, .7); }
.film-toggle .i { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.film-toggle[hidden] { display: none; }

@media (max-width: 1000px) {
  .film-chips { display: none; }
  .hero-film .hero-txt { max-width: 520px; }
}

/* phones: a tall frame, the words at the bottom over a shade from below */
@media (max-width: 720px) {
  body[data-route="home"] .hero.hero-film { padding: 12px 0 0; }
  .film { align-items: flex-end; min-height: 390px; border-radius: 24px; box-shadow: 0 18px 40px rgba(74, 22, 32, .25); }
  .film-shade { background: linear-gradient(to top, rgba(43, 16, 21, .95) 0%, rgba(43, 16, 21, .78) 42%, rgba(43, 16, 21, .15) 78%, rgba(43, 16, 21, 0) 100%); }
  .hero-film .hero-txt { width: 100%; max-width: none; padding: 20px 18px 18px; }
  .hero-film .eyebrow { font-size: .8rem; padding: 5px 12px; }
  .hero-film h1 { margin: 10px 0 6px; font-size: 1.75rem; line-height: 1.25; }
  .hero-film p.lead { font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-film .hero-cta { margin-top: 14px; gap: 8px; flex-wrap: nowrap; }
  .hero-film .hero-cta .btn { flex: 1; padding: 12px 10px; font-size: .95rem; }
  .hero-film .coupon-pill, .hero-film .proof { display: none; }
  .film-toggle { top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; }
}

/* /css/promo-film.css */
/* Home feature films: gift boxes and the smart mix assistant as two large
   film cards, the words over a deep maroon shade so they read on any frame. */
.pfilm-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pfilm { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 440px;
  border-radius: 26px; background: var(--deep); color: #fff; cursor: pointer;
  box-shadow: 0 24px 50px rgba(74, 22, 32, .22); transition: transform .25s ease, box-shadow .25s ease; }
.pfilm:hover { transform: translateY(-3px); box-shadow: 0 30px 60px rgba(74, 22, 32, .3); }
.pfilm::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(201, 139, 58, .3); }
.pfilm-media, .pfilm-media img, .pfilm-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pfilm-media { z-index: -2; }
.pfilm-media video { opacity: 0; transition: opacity .9s ease; }
.pfilm-media video.on { opacity: 1; }
.pfilm-media img, .pfilm-media video { transition: opacity .9s ease, transform 6s ease; }
.pfilm:hover .pfilm-media img, .pfilm:hover .pfilm-media video { transform: scale(1.03); }
.pfilm-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(43, 16, 21, .96) 0%, rgba(43, 16, 21, .86) 34%, rgba(43, 16, 21, .35) 64%, rgba(43, 16, 21, 0) 88%); }

.pfilm-txt { position: relative; width: 100%; padding: 26px 26px 24px; }
.pfilm-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(43, 16, 21, .55); border: 1px solid rgba(251, 245, 238, .35); color: var(--cream); backdrop-filter: blur(8px); }
.pfilm-eyebrow .i { width: 16px; height: 16px; color: var(--gold); }
.pfilm h3 { margin: 12px 0 6px; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.25; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.pfilm p { margin: 0; color: #f3e4d8; font-size: 1.02rem; line-height: 1.7; max-width: 30em; }
.pfilm-cta.btn { margin-top: 16px; min-height: 48px; padding: 12px 22px; background: var(--cream); color: var(--deep); font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3); display: inline-flex; align-items: center; gap: 8px; }
.pfilm-cta.btn:hover { background: #fff; transform: translateY(-2px); }
.pfilm-cta .i { width: 18px; height: 18px; }
.pfilm-cta:focus-visible, .pfilm-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* the pause button: 44 px for a finger */
.pfilm-toggle.film-toggle { width: 44px; height: 44px; top: 14px; inset-inline-end: 14px; z-index: 1; }
.pfilm-toggle[hidden] { display: none; }

@media (max-width: 720px) {
  .pfilm-pair { grid-template-columns: 1fr; gap: 14px; }
  .pfilm { min-height: 380px; border-radius: 22px; }
  .pfilm-txt { padding: 18px 18px 18px; }
  .pfilm h3 { font-size: 1.5rem; }
  .pfilm-cta.btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pfilm, .pfilm-media img, .pfilm-media video { transition: none; }
  .pfilm:hover, .pfilm:hover .pfilm-media img { transform: none; }
}

/* /css/journey.css */
/* "From the roastery to your door": four stations on a gold line that fills
   as the section scrolls by. Unlit stations only dim their photo; the words
   always keep full contrast. */
.jr { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 48px 44px 40px; color: #f3e4d8;
  background: radial-gradient(120% 80% at 100% 0%, rgba(201, 139, 58, .2), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(129, 41, 57, .55), transparent 60%), var(--deep);
  box-shadow: 0 30px 60px rgba(74, 22, 32, .25); }
.jr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(201, 139, 58, .28); }

.jr-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: end; }
.jr .eyebrow { margin: 0; background: #5c2c35; border: 1px solid rgba(251, 245, 238, .3); color: var(--cream); box-shadow: none; }
.jr .eyebrow .i { color: var(--amber-2); }
.jr h2 { margin: 14px 0 4px; color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.25; }
.jr-quote { margin: 0 0 12px; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--amber-2); }
.jr-lead { margin: 0; font-size: 1.02rem; line-height: 1.85; max-width: 38em; }

.jr-promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jr-promise li { padding: 14px 16px; border-radius: 16px; background: #55232c; border: 1px solid rgba(251, 245, 238, .14); }
.jr-promise b { display: block; font-family: var(--display); font-size: 1.2rem; color: #fff; line-height: 1.4; }
.jr-promise span { display: block; font-size: 1rem; color: #e6cfbd; }

/* the stations and their line */
.jr-steps { --gap: 20px; --dot: 44px; position: relative; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.jr-steps::before, .jr-steps::after { content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px); height: 2px; border-radius: 2px; pointer-events: none; }
/* from the first station's centre to the last's */
.jr-steps::before { inset-inline: calc((100% - 3 * var(--gap)) / 8); background: rgba(251, 245, 238, .16); }
.jr-steps::after { inset-inline-start: calc((100% - 3 * var(--gap)) / 8); width: calc((100% - (100% - 3 * var(--gap)) / 4) * var(--p, 1));
  background: linear-gradient(to left, var(--amber-2), var(--gold)); box-shadow: 0 0 12px rgba(233, 197, 140, .55); }

.jr-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.jr-dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber-2), var(--gold)); color: var(--deep);
  box-shadow: 0 0 0 6px rgba(233, 197, 140, .16), 0 6px 18px rgba(0, 0, 0, .3); transition: background .35s ease, color .35s ease, box-shadow .35s ease; }
.jr-dot .i { width: 20px; height: 20px; }
.jr-card { width: 100%; overflow: hidden; border-radius: 20px; background: #55232c; border: 1px solid rgba(233, 197, 140, .35);
  transition: border-color .4s ease, transform .5s var(--ease, ease), background .4s ease; }
.jr-ph { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #5a2029; overflow: hidden; }
.jr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .6s ease, transform 1.2s ease; }
.jr-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 16, 21, .7), rgba(43, 16, 21, 0) 55%); pointer-events: none; }
.jr-n { position: absolute; z-index: 1; bottom: 6px; inset-inline-end: 12px; font-family: var(--display); font-size: 2.4rem; line-height: 1; font-weight: 700; color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.jr-body { padding: 16px 18px 18px; }
.jr-body h3 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.jr-body p { margin: 0; font-size: 1rem; line-height: 1.7; color: #ead6c4; }
.jr-step:hover .jr-ph img { transform: scale(1.05); }

/* with script: stations wait dimmed until the line reaches them */
.jr-steps.armed .jr-step:not(.lit) .jr-dot { background: #5e2531; color: rgba(251, 245, 238, .75); box-shadow: 0 0 0 1px rgba(251, 245, 238, .25); }
.jr-steps.armed .jr-step:not(.lit) .jr-card { border-color: rgba(251, 245, 238, .12); transform: translateY(8px); }
.jr-steps.armed .jr-step:not(.lit) .jr-ph img { filter: saturate(.45) brightness(.72); }
.jr-steps.armed .jr-step.lit .jr-card { background: #5c2a33; }

.jr-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.jr-cta .btn { min-height: 48px; padding: 12px 24px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.jr-cta .btn.amber { background: var(--cream); color: var(--deep); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.jr-cta .btn.amber:hover { background: #fff; }
.jr-cta .btn .i { width: 18px; height: 18px; }
.jr-ghost.btn { background: transparent; color: var(--cream); border: 1px solid rgba(251, 245, 238, .45); box-shadow: none; }
.jr-ghost.btn:hover { background: rgba(251, 245, 238, .1); }
.jr-cta .btn:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 3px; }

/* phones: the line runs down beside the stations */
@media (max-width: 720px) {
  .jr { padding: 28px 16px 22px; border-radius: 22px; }
  .jr-head { grid-template-columns: 1fr; gap: 20px; }
  .jr-lead { font-size: 1rem; line-height: 1.8; }
  .jr-promise li { padding: 11px 12px; }
  .jr-promise b { font-size: 1.05rem; }
  .jr-steps { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .jr-steps::before, .jr-steps::after { top: calc(var(--dot) / 2); inset-inline-start: calc(var(--dot) / 2 - 1px); inset-inline-end: auto; width: 2px; height: auto; }
  .jr-steps::before { bottom: calc(var(--dot) / 2); }
  .jr-steps::after { height: calc((100% - var(--dot)) * var(--p, 1)); background: linear-gradient(to bottom, var(--amber-2), var(--gold)); }
  .jr-step { flex-direction: row; align-items: flex-start; gap: 12px; }
  .jr-card { display: flex; align-items: stretch; min-height: 112px; }
  .jr-ph { order: 2; flex: none; width: 108px; aspect-ratio: auto; }
  .jr-n { font-size: 1.6rem; bottom: 4px; inset-inline-end: 8px; }
  .jr-body { flex: 1; min-width: 0; padding: 12px 14px; align-self: center; }
  .jr-body h3 { font-size: 1.1rem; }
  .jr-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-dot, .jr-card, .jr-ph img { transition: none; }
  .jr-step:hover .jr-ph img { transform: none; }
}

/* /css/info.css */
/* Information pages (about, FAQ, shipping, returns, privacy) and the
   readable page text sent with each page before the shop script runs */
.info { max-width: 820px; padding-block: 22px 40px; }
.info h1 { font-family: var(--display); font-size: clamp(1.6rem, 4.6vw, 2.3rem); margin: 6px 0 10px; color: var(--maroon); line-height: 1.3; }
.info-lead { font-size: 1.06rem; line-height: 1.85; color: var(--ink); margin: 0 0 22px; }
.info-sec { padding-block: 16px; border-top: 1px solid var(--line); }
.info-sec h2 { font-family: var(--display); font-size: 1.22rem; margin: 0 0 8px; color: var(--cocoa); }
.info-sec p { margin: 0; line-height: 1.85; color: var(--ink); }
.info-sec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.info-sec li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.75; }
.info-sec li .i { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--pista); }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; line-height: 1.6; transition: background .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq summary:focus-visible { background: var(--sand); }
.faq summary .i { flex: none; width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .2s; color: var(--muted); }
.faq details[open] summary .i { transform: rotate(90deg); }
.faq details p { margin: 0; padding: 0 16px 16px; line-height: 1.85; color: var(--ink); }
.info-help { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 16px; }
.info-help > .i { flex: none; width: 28px; height: 28px; color: var(--maroon); }
.info-help > div { flex: 1; }
.info-help p { margin: 2px 0 0; }
.info-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-about { margin-top: 12px !important; }
.pdp-links { list-style: none; padding: 0; margin: 14px 0 0; gap: 6px 16px; font-size: 14px; }
.pdp-links a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.pdp-links a:hover { text-decoration-thickness: 2px; }
@media (max-width: 560px) {
  .info-help { flex-wrap: wrap; }
  .info-help .btn { width: 100%; }
}

/* the page text search engines read. Visitors never see it flash before the
   shop draws the page: it stays hidden, and appears only when the shop's
   scripts have not drawn the page after a few seconds (they failed to load). */
.seo-text { max-width: 820px; padding-block: 22px 40px; }
#app > .seo-text { visibility: hidden; animation: seo-late 0s 6s forwards; }
@keyframes seo-late { to { visibility: visible; } }
.seo-text h1 { font-family: var(--display); font-size: clamp(1.5rem, 4.4vw, 2.1rem); color: var(--maroon); margin: 0 0 10px; line-height: 1.3; }
.seo-text h2 { font-family: var(--display); font-size: 1.15rem; margin: 18px 0 6px; color: var(--cocoa); }
.seo-text p { line-height: 1.85; margin: 0 0 8px; }
.seo-text ul { padding-inline-start: 20px; margin: 0; line-height: 1.9; }

/* /css/easy.css */
/* Easy for every age, 8 to 100: readable text (16px for anything a customer
   reads or presses, 14px only for small badges), tap targets of at least
   44px, clear contrast and a visible keyboard focus. Loaded after every other
   sheet, so it only raises what was smaller. */

/* ---------- keyboard: always see where you are ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--gold, #c98b3a); outline-offset: 2px; border-radius: 10px; }

.skip:focus { padding: 12px 18px; font-weight: 700; color: var(--deep); box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }

/* ---------- header and shared controls ---------- */
.brand { min-height: 44px; display: flex; align-items: center; }
.icon-btn, .header .wish-btn, .header .cart-btn, .menu-btn { min-width: 44px; min-height: 44px; }
.small { font-size: 1rem; }
.btn.sm { min-height: 44px; font-size: 1rem; }
.btn { min-height: 48px; }
.link.small, .co-summary h2 .link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 1rem; }
.sec-head .link { white-space: nowrap; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; font-size: 1rem; }
.chip { min-height: 44px; display: inline-flex; align-items: center; font-size: 1rem; }
/* the desktop category bar */
.nav a, .nav-row .nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 1rem; }
.brand-tag small { font-size: 1rem; }
.proof, .hero-film .proof { font-size: 1rem; }
.cat span { font-size: 1rem; opacity: 1; }
.crumbs, body[data-route="p"] .crumbs { font-size: .95rem !important; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- home ---------- */
.eyebrow, .hero .eyebrow { font-size: .9rem; }
.hero p.lead { font-size: 1.05rem; }
.hero-film .hero-cta .btn, .hero .hero-cta .btn { font-size: 1.05rem; min-height: 50px; }
.film-toggle { width: 44px !important; height: 44px !important; }
.type-rail a { width: 84px; font-size: 1rem; }
.trust b { font-size: 1.02rem; }
.trust span { font-size: 1rem; }
.glass-chip small { font-size: .95rem; }
.promo small { font-size: 1rem; }
.reel figcaption { font-size: 1rem; }

/* ---------- product cards: one clear name, big chips, a big button ---------- */
.card .name, .card .name:where(*) { font-size: 1.05rem !important; line-height: 1.4; min-height: 44px; display: flex; align-items: center; }
.card .price small, .price small { font-size: 1rem; }
.card .flavours { gap: 6px; }
.card .flavours button { min-height: 44px; min-width: 44px; padding: 6px 12px; font-size: 1rem; }
.card .weights { gap: 4px; }
.card .weights button { min-height: 44px; font-size: 1rem !important; padding: 6px 2px !important; }
.card .btn.add { width: 100%; min-height: 48px; font-size: 1.05rem; }
.card-qty button { min-width: 44px; min-height: 44px; }
.card-qty span { font-size: 1rem; }
.card-rating { font-size: 1rem; }
.tag { font-size: .875rem; padding: 4px 10px; }
/* the heart sits in its own corner, the tags never run under it */
.heart { width: 44px; height: 44px; }
.card .tags { top: 10px; max-width: calc(100% - 72px); }

/* ---------- product page ---------- */
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 8px; border-radius: 50%; background: var(--maroon); color: #fff; font-size: .9rem; font-weight: 700; vertical-align: middle; }
.toast { font-size: 1.02rem; padding: 14px 20px; }
.toast button { min-height: 44px; font-size: 1rem; font-weight: 700; }
.opt-label, .buybox .opt-label, .weigh .opt-label { font-size: 1.05rem; }
.buy .btn, .buybox .btn, .buybox #add-one { font-size: 1.05rem; min-height: 52px; }
.flavours.lg button { min-height: 52px; font-size: 1.05rem; }
.flavours.lg button small, .weights.lg button small { font-size: .9rem; }
.weights.lg button { min-height: 52px; font-size: 1.05rem; }
.weigh-in { min-height: 52px; }
.weigh-in input { min-height: 44px; font-size: 1.1rem; }
.weigh-in span, .weigh-in em, .weigh-or { font-size: 1rem; }
.weigh-msg { font-size: 1rem; }
.stepper button { min-width: 48px; min-height: 48px; }
.pay-line, .ship-line, .fresh-line, .perks div { font-size: 1rem; }
.pdp-thumbs button { min-height: 48px; min-width: 56px; }
.pdp-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.bundle-items .mini { font-size: 1rem; }
h1 .flav-name { font-size: 1rem; }
.sticky-buy b, .sticky-buy small { font-size: 1rem !important; }
.sticky-buy .btn { min-height: 50px; font-size: 1.05rem; }

/* ---------- cart ---------- */
.drawer-head .count-pill, .count-pill { font-size: .9rem; }
.freebar { font-size: 1rem; }
.freebar .bar { height: 10px; }
.line .nm { font-size: 1.02rem; display: flex; align-items: center; min-height: 44px; }
.line .meta { font-size: 1rem; }
.drawer .tile b, .co-summary .tile b { display: none; }
.totals, .drawer-foot .totals { font-size: 1.02rem; }
.line .line-total { font-size: 1.05rem; }
.stepper.sm button { width: 44px; height: 44px; }
.stepper.sm span { font-size: 1.05rem; min-width: 32px; }
.line .rm { min-height: 44px; padding-inline: 8px; font-size: 1rem; }
.secure { font-size: 1rem; }
.drawer-foot .btn { min-height: 52px; font-size: 1.1rem; }
.drawer-foot .keep { min-height: 48px; }
.cross-item .btn.sm { min-width: 56px; }
.cross-item .small, .cross-item b.small { font-size: 1rem; }

/* ---------- checkout: big fields, clear errors ---------- */
.field label { font-size: 1.02rem; }
.field input, .field select, .field textarea { min-height: 50px; font-size: 1.05rem; }
.field textarea { min-height: 90px; }
.field .hint { font-size: 1rem; color: #5b4246; }
.field .err { font-size: 1rem; font-weight: 600; }
.opt-tag { color: var(--muted, #6b5458); font-weight: 500; font-size: 1rem; }
.field.bad input, .field.bad select, .field.bad textarea { border-width: 2px; }
.more summary { min-height: 48px; display: flex; align-items: center; gap: 6px; font-size: 1rem; }
.check, .check.small { font-size: 1rem; min-height: 44px; }
.check input, .field input[type="checkbox"] { width: 22px !important; height: 22px; min-height: 0; flex: none; }
.pay-opt small { font-size: 1rem; }
.co-steps li, .co-steps button { font-size: 1rem !important; }
.co-steps button { min-width: 48px; color: #4f6118; }
.coupon-row input { min-height: 48px; font-size: 1rem; }
.notice { font-size: 1rem; }
.co-errors { margin: 12px 0; }
.co-errors ul { margin: 6px 0 0; padding-inline-start: 20px; }
.co-errors a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; color: inherit; }
.co-paybar small { font-size: .9rem; }
.co-paybar .btn { min-height: 50px; font-size: 1.05rem; }

/* ---------- reading comfort ---------- */
.info p, .info li, .faq p { font-size: 1.05rem; line-height: 1.8; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* /css/cro.css */
/* Buying path: nothing floats over a product or a buy button, the products
   and their prices show sooner, what every shopper in the kingdom gets sits
   next to the first buy button, and the buy button follows the shopper on a product
   page at every width. Loaded last. */

/* ---------- the assistant: in the header (computer) or the bottom bar (phone) ---------- */
.chat-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-line, #ecdcc9); background: var(--glass, #fffaf3); color: var(--deep, #4a1620); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.chat-btn:hover { background: #fff; transform: translateY(-1px); }
.chat-btn .i { width: 20px; height: 20px; }
.chat { bottom: 20px; }
@media (max-width: 720px) {
  .header .chat-btn { display: none; }
  .chat { bottom: calc(var(--tab-h) + var(--safe-b) + 10px); }
  /* the product, cart and checkout pages hide the bottom bar for their own buy
     bar, so the assistant moves up into the header as an icon there */
  body:is([data-route="p"], [data-route="cart"], [data-route="checkout"]) .header .chat-btn { display: inline-flex; padding: 0; width: 40px; min-height: 40px; height: 40px; justify-content: center; flex: none; }
  body:is([data-route="p"], [data-route="cart"], [data-route="checkout"]) .header .chat-btn span { display: none; }
  body:is([data-route="p"], [data-route="cart"], [data-route="checkout"]) .chat { bottom: calc(var(--safe-b) + 10px); }
  body[data-route="p"] .chat { bottom: calc(92px + var(--safe-b)); }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .chat-btn span { display: none; }
  .chat-btn { padding: 0; width: 44px; justify-content: center; }
}

/* ---------- hero: what every shopper in the kingdom gets, next to the buy button ---------- */
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; color: #fff; font-size: 1rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .i { width: 18px; height: 18px; color: var(--gold, #c98b3a); }

@media (max-width: 720px) {
  /* the first products start right under the hero: a shorter hero, the
     trust line instead of the repeated tagline */
  .hero-film .eyebrow { display: none; }
  .hero-film h1 { margin-top: 0; }
  .hero-film .hero-txt { padding: 18px 16px 16px; }
  .hero-film .hero-cta { margin-top: 12px; }
  .hero-trust { margin-top: 12px; gap: 6px 14px; }
  .type-rail { padding-block: 12px 0; }
  .section.best { padding-top: 14px; }
  .section.best .sec-head p { display: none; }
}

/* ---------- cards: the weight is a dropdown (one 48px line, native picker) ---------- */
.card .wsel { position: relative; }
.card .weight-select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px; padding: 0 14px 0 40px; border: 1px solid var(--glass-line, #ecdcc9); border-radius: 14px; background: #f5ece1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23812939' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center / 18px; color: var(--deep, #4a1620); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.card .weight-select:focus-visible { outline: 2px solid var(--maroon, #812939); outline-offset: 2px; }
/* flavours on a card: the same one sideways row, so one product with many
   flavours no longer makes every card in its row taller */
.card .flavours { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 3px; margin: -3px; }
.card .flavours::-webkit-scrollbar { display: none; }
.card .flavours button { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
.card .flavours button:focus-visible { outline-offset: -3px; }

/* ---------- product page: the buy bar follows on a computer too ---------- */
@media (min-width: 721px) {
  body[data-route="p"] .sticky-buy { display: flex; position: fixed; z-index: 40; bottom: 18px; left: 50%; width: min(580px, calc(100% - 40px)); gap: 14px; align-items: center; padding: 10px 12px 10px 18px; border-radius: 20px; background: rgba(255, 250, 241, .94); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-line, #ecdcc9); box-shadow: 0 16px 44px rgba(74, 22, 32, .28); transform: translate(-50%, 160%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }
  body[data-route="p"] .sticky-buy.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s ease; }
  body[data-route="p"] .sticky-buy b { flex: 1; min-width: 0; color: var(--ink, #2b1015); line-height: 1.35; }
  body[data-route="p"] .sticky-buy small { display: block; color: var(--maroon, #812939); font-weight: 700; }
  body[data-route="p"] .sticky-buy .btn { flex: none; padding-inline: 24px; }
}

/* checkout: the sign-in hint is readable and its link easy to tap */
.acc-strip { font-size: 1rem; }
.acc-strip a.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* card: the typed weight ("وزن آخر") sits right under the dropdown */
.card .wcustom { margin-top: -2px; }
.card .wcustom[hidden] { display: none; }
.card .wcustom label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--maroon, #812939); border-radius: 14px; background: #fff; }
.card .wcustom label span { font-size: 1rem; color: var(--muted, #6b5559); white-space: nowrap; }
.card .wcustom input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--deep, #4a1620); text-align: end; }
.card .wcustom label:focus-within { box-shadow: 0 0 0 3px rgba(129, 41, 57, .2); }
.card .wcustom em { font-style: normal; font-weight: 600; }
.card .wc-msg { margin: 4px 2px 0; font-size: 1rem; color: #5b4246; }
.card .wc-msg.bad { color: #a12a2a; }

/* no connection: one line above everything at the top, never over a button */
.net-off { position: fixed; z-index: 90; top: 0; inset-inline: 0; padding: 10px 16px; background: #4a1620; color: #fff; font-size: 1rem; font-weight: 600; text-align: center; line-height: 1.5; }
.net-off[hidden] { display: none; }
/* a button busy with its request: visibly waiting, not pressable */
button[aria-busy="true"] { cursor: progress; opacity: .75; }

/* /css/mix.css */
/* The mix assistant: steps, then the suggested mix with its meter and profile */
.mx-wrap { max-width: 860px; }
.mx-progress { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mx-progress button { inline-size: 100%; min-height: 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0 8px; font: inherit; font-size: .95rem; color: var(--muted); border-block-end: 4px solid var(--line); cursor: pointer; transition: color .2s, border-color .2s; }
.mx-progress button:disabled { cursor: default; }
.mx-progress .num { inline-size: 28px; block-size: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-weight: 700; }
.mx-progress .num .i { inline-size: 16px; block-size: 16px; }
.mx-progress .on button { color: var(--maroon); font-weight: 700; border-color: var(--maroon); }
.mx-progress .on .num { background: var(--maroon); color: var(--cream); }
.mx-progress .done button { color: var(--ink); border-color: var(--gold); }
.mx-progress .done .num { background: var(--gold); color: #fff; }

.mx-step { display: grid; gap: 18px; animation: mx-in .25s ease; }
@keyframes mx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mx-step fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.mx-step legend { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--deep); margin-block-end: 6px; padding: 0; }
.mx-step p { margin: 0; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chips .chip { gap: 8px; padding-inline: 16px; }
.mx-wrap .chip[aria-pressed="true"] { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.mx-chips .dot { inline-size: 12px; block-size: 12px; border-radius: 50%; display: inline-block; }
.mx-chips .dot.salty { background: #c98b3a; } .mx-chips .dot.sweet { background: #812939; } .mx-chips .dot.spicy { background: #b4432c; } .mx-chips .dot.smoky { background: #6b5a4e; } .mx-chips .dot.crunchy { background: #7a8f3c; }
.mx-chips .chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--cream); }

.mx-occ { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mx-occ button { display: grid; justify-items: start; gap: 4px; text-align: start; padding: 14px; min-height: 96px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.mx-occ button:hover { border-color: var(--gold); transform: translateY(-1px); }
.mx-occ .i { inline-size: 26px; block-size: 26px; color: var(--maroon); }
.mx-occ b { font-size: 1.05rem; }
.mx-occ small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.mx-occ button[aria-pressed="true"] { border-color: var(--maroon); background: #fbf1ec; box-shadow: inset 0 0 0 1px var(--maroon); }

.mx-people { display: flex; justify-content: center; align-items: center; gap: 22px; }
.mx-people button { inline-size: 56px; block-size: 56px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--maroon); }
.mx-people button:disabled { opacity: .4; cursor: default; }
.mx-people output { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--deep); min-inline-size: 64px; text-align: center; }
.mx-center { text-align: center; }
.mx-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #f4ebe1; border-radius: 14px; padding: 4px; gap: 4px; }
.mx-seg button { min-height: 46px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.mx-seg button[aria-pressed="true"] { background: var(--maroon); color: var(--cream); box-shadow: 0 4px 12px rgba(129, 41, 57, .25); }

.mx-budget { text-align: center; color: var(--deep); }
.mx-budget b { font-family: var(--display); font-size: 2.8rem; }
.mx-budget span { font-size: 1.1rem; }
.mx-step input[type="range"] { inline-size: 100%; accent-color: var(--maroon); block-size: 32px; }
.mx-nav { display: flex; justify-content: space-between; gap: 10px; border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.mx-nav .btn { min-inline-size: 130px; }
.mx-nav [data-act="back"] .i { transform: scaleX(-1); }
[dir="rtl"] .mx-nav [data-act="back"] .i { transform: none; }

.mx-wait { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 34px 18px; }
.mx-orb { inline-size: 64px; block-size: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); background: radial-gradient(circle at 30% 30%, #b0485c, var(--maroon) 60%, var(--deep)); box-shadow: 0 0 0 0 rgba(129, 41, 57, .4); animation: mx-pulse 1.4s infinite; }
.mx-orb .i { inline-size: 30px; block-size: 30px; }
@keyframes mx-pulse { 70% { box-shadow: 0 0 0 16px rgba(129, 41, 57, 0); } 100% { box-shadow: 0 0 0 0 rgba(129, 41, 57, 0); } }
@media (prefers-reduced-motion: reduce) { .mx-orb, .mx-step { animation: none; } }

.mx-result { display: grid; gap: 16px; padding: 0; overflow: hidden; }
.mx-result > * { margin-inline: 18px; }
.mx-head { margin: 0; padding: 20px 18px 16px; background-color: var(--maroon); background-image: linear-gradient(135deg, var(--deep), var(--maroon) 70%, #9a3346); color: var(--cream); display: grid; gap: 8px; }
.mx-head .eyebrow { justify-self: start; background: #5e1a28; border-color: #8a3a4c; color: #f6dcae; }
.mx-head h2 { margin: 0; font-family: var(--display); font-size: 1.6rem; color: #fff; }
.mx-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-facts span { display: inline-flex; align-items: center; gap: 6px; background: #5e1a28; color: var(--cream); border: 1px solid #8a3a4c; border-radius: 999px; padding: 4px 12px; font-size: .95rem; }
.mx-facts b { color: #fff; }
.mx-facts .i { inline-size: 16px; block-size: 16px; }

.mx-meter { display: grid; gap: 6px; }
.mx-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mx-meter i, .mx-bar i { display: block; block-size: 10px; border-radius: 99px; background: #f1e6da; overflow: hidden; }
.mx-meter em, .mx-bar em { display: block; block-size: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--maroon)); transition: inline-size .35s ease; }
.mx-meter.over em { background: var(--danger); }
.mx-over { color: var(--danger); display: flex; gap: 6px; align-items: center; font-weight: 600; }
.mx-profile { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: #fbf6f0; border: 1px solid var(--line); }
.mx-bar { display: grid; grid-template-columns: 64px 1fr 44px; gap: 10px; align-items: center; font-size: .95rem; }
.mx-bar b { text-align: end; font-size: .95rem; }

.mx-lines { list-style: none; padding: 0; display: grid; gap: 10px; }
.mx-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mx-line .m { inline-size: 64px; block-size: 64px; border-radius: 12px; overflow: hidden; background: #efe4d4; }
.mx-line .m img, .mx-line .m .tile { inline-size: 100%; block-size: 100%; object-fit: cover; }
.mx-line .m .tile b { display: none; }
.mx-info { display: grid; gap: 4px; min-inline-size: 0; }
.mx-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.mx-info small { font-size: .92rem; line-height: 1.5; }
.mx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 4px; }
.mx-tools .mx-step { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fffaf4; animation: none; gap: 0; }
.mx-tools .mx-step button { inline-size: 44px; block-size: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--maroon); cursor: pointer; border-radius: 50%; }
.mx-tools .mx-step button:disabled { opacity: .35; cursor: default; }
.mx-tools output { min-inline-size: 64px; text-align: center; font-weight: 700; }
.mx-mini { min-height: 44px; min-inline-size: 44px; display: inline-flex; align-items: center; gap: 6px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.mx-mini:hover:not(:disabled) { border-color: var(--maroon); color: var(--maroon); }
.mx-mini:disabled { opacity: .4; cursor: default; }
.mx-mini .i { inline-size: 18px; block-size: 18px; }
.mx-price { white-space: nowrap; font-size: 1.05rem; color: var(--deep); }
.mx-add-line { min-height: 48px; border: 1.5px dashed var(--gold); border-radius: 14px; background: #fffaf1; font: inherit; color: var(--amber-ink); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.mx-add-line:hover { background: #fff3dd; }

.mx-why { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; background: #fff; }
.mx-why summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; color: var(--maroon); }
.mx-why ul { list-style: none; padding: 0 0 10px; margin: 0; display: grid; gap: 8px; }
.mx-why li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.mx-why li .i { inline-size: 18px; block-size: 18px; color: var(--pista); flex: none; margin-block-start: 4px; }

.mx-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.mx-foot > div { display: grid; }
.mx-total { font-family: var(--display); font-size: 1.6rem; color: var(--deep); }
.mx-more { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px !important; }
.mx-more .btn { flex: 1 1 130px; white-space: nowrap; }
.mx-result > .notice { margin-block: 0; }

@media (max-width: 560px) {
  .mx-progress button { font-size: .85rem; }
  .mx-occ { grid-template-columns: 1fr 1fr; }
  .mx-line { grid-template-columns: 56px 1fr; }
  .mx-line .m { inline-size: 56px; block-size: 56px; }
  .mx-price { grid-column: 2; }
  .mx-foot .btn { inline-size: 100%; }
  .mx-nav .btn { min-inline-size: 0; flex: 1; }
}

/* /css/gifts.css */
/* The gifts page: a deep maroon hero, occasion and budget filters, box cards
   with a photo collage, the customize sheet and the gift panel in the cart. */

/* hero */
.gh { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; margin: 18px 0 22px; padding: 38px 36px; border-radius: 24px; overflow: hidden;
  color: var(--cream); background-color: var(--deep);
  background-image: radial-gradient(120% 90% at 100% 0%, #812939 0%, transparent 60%), radial-gradient(80% 80% at 0% 100%, #5e1a28 0%, transparent 70%),
    repeating-linear-gradient(45deg, rgba(201, 139, 58, .07) 0 2px, transparent 2px 22px); }
.gh::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 139, 58, .35); border-radius: 18px; pointer-events: none; }
.gh-text { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; }
.gh-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #5e1a28; color: #f6dcae; font-weight: 600; font-size: 1rem; border: 1px solid rgba(201, 139, 58, .45); }
.gh-kicker .i { inline-size: 18px; block-size: 18px; }
.gh h1 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.25; color: #fff8ee; }
.gh-lead { margin: 0; font-size: 1.1rem; line-height: 1.8; color: #f3e4d4; max-inline-size: 52ch; }
.gh-promise { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.gh-promise li { display: flex; gap: 10px; align-items: center; font-size: 1.02rem; color: #f3e4d4; }
.gh-promise .i { inline-size: 34px; block-size: 34px; padding: 7px; border-radius: 10px; background: #5e1a28; color: var(--gold); flex: none; border: 1px solid rgba(201, 139, 58, .35); }
.gh-promise b { color: #fff8ee; }
.gh-cta { margin-top: 6px; min-height: 52px; font-size: 1.05rem; }
.gh-art { position: relative; z-index: 1; block-size: 340px; }
.gh-pic { position: absolute; border-radius: 18px; overflow: hidden; border: 3px solid #f6dcae; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); background: #5e1a28; }
.gh-pic img, .gh-pic .tile { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.gh-pic.p0 { inset-inline-start: 6%; top: 6%; inline-size: 62%; aspect-ratio: 4 / 5; transform: rotate(-4deg); z-index: 2; }
.gh-pic.p1 { inset-inline-end: 0; top: 0; inline-size: 44%; aspect-ratio: 1; transform: rotate(5deg); }
.gh-pic.p2 { inset-inline-end: 4%; bottom: 0; inline-size: 46%; aspect-ratio: 1; transform: rotate(-2deg); z-index: 3; }
.gh-ribbon { position: absolute; z-index: 4; inset-inline-start: 2%; bottom: 8%; inline-size: 92px; block-size: 92px; border-radius: 50%;
  background: radial-gradient(circle, #e2b46a 0 30%, #c98b3a 31% 60%, transparent 61%), conic-gradient(from 20deg, #c98b3a, #f6dcae, #c98b3a, #a46e27, #c98b3a);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }

.gh-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gh-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.gh-steps .num { grid-row: span 2; inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--maroon); font-weight: 700; font-size: 1.15rem; border: 1.5px solid var(--gold); }
.gh-steps b { font-size: 1.05rem; color: var(--deep); }
.gh-steps small { color: var(--muted); font-size: .95rem; }

/* filters */
.gf { scroll-margin-top: 90px; }
.gf-bar { display: grid; gap: 10px; margin-bottom: 8px; scroll-margin-top: 90px; }
.gf-row { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px 6px; scrollbar-width: none; }
.gf-row::-webkit-scrollbar { display: none; }
.gf-row .chip { flex: none; gap: 6px; padding-inline: 16px; white-space: nowrap; cursor: pointer; }
.gf-row .chip .i { inline-size: 18px; block-size: 18px; color: var(--gold); }
.gf-row .chip[aria-pressed="true"] { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.gf-row .chip[aria-pressed="true"] .i { color: #f6dcae; }
.gf-budget { background: #fbf5ee; }
.gf-count { margin: 4px 0 14px; color: var(--muted); font-size: 1rem; }
.gf-count b { color: var(--deep); }
.gf-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 16px; border: 1.5px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); margin-bottom: 20px; }
.gf-empty .i { inline-size: 40px; block-size: 40px; color: var(--gold); }

/* box cards */
.gbx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 24px; }
.gbx { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.gbx:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.gbx-media { position: relative; background: var(--deep); padding: 10px; }
.gbx-collage { display: grid; gap: 6px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
.gbx-collage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gbx-collage.n3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.gbx-collage.n3 span:first-child { grid-row: span 2; }
.gbx-collage span { overflow: hidden; background: #5e1a28; min-block-size: 0; }
.gbx-collage img, .gbx-collage .tile { inline-size: 100%; block-size: 100%; object-fit: cover; display: grid; place-items: center; }
.gbx-collage .tile { padding: 6px; font-size: .9rem; text-align: center; gap: 4px; align-content: center; }
.gbx-collage .tile .i { inline-size: 26px; block-size: 26px; }
.gbx-collage .tile b { display: none; } /* the list under the photo names every item */
.gbx-collage .tile .i { position: static; opacity: .55; inline-size: 44%; block-size: 44%; }
.gbx-tier { position: absolute; top: 18px; inset-inline-start: 18px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: #5e1a28; color: #f6dcae; font-size: .95rem; font-weight: 700; border: 1px solid rgba(201, 139, 58, .55); }
.gbx-tier .i { inline-size: 16px; block-size: 16px; color: var(--gold); }
.gbx-body { display: grid; gap: 12px; align-content: start; padding: 18px; }
.gbx-occ { display: flex; flex-wrap: wrap; gap: 6px; }
.gbx-occ span { font-size: .9rem; padding: 3px 10px; border-radius: 999px; background: #f6ecdf; color: var(--amber-ink); font-weight: 600; }
.gbx h2 { margin: 0; font-family: var(--display); font-size: 1.5rem; color: var(--deep); }
.gbx-line { margin: 0; color: var(--muted); line-height: 1.7; }
.gbx-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #f4ebe1; }
.gbx-sizes button { min-height: 52px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); cursor: pointer; display: grid; place-items: center; gap: 0; line-height: 1.3; transition: background .2s, color .2s; }
.gbx-sizes button small { font-size: .9rem; color: var(--muted); }
.gbx-sizes button[aria-pressed="true"] { background: var(--maroon); color: var(--cream); box-shadow: 0 4px 12px rgba(129, 41, 57, .25); }
.gbx-sizes button[aria-pressed="true"] small { color: #f6dcae; }
.gbx-list { list-style: none; margin: 0; padding: 0; display: grid; }
.gbx-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
.gbx-list li:last-child { border-bottom: 0; }
.gbx-list a { color: var(--ink); }
.gbx-list a:hover { color: var(--maroon); }
.gbx-list .num { color: var(--muted); white-space: nowrap; }
.gbx-meta { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--pista); font-weight: 600; }
.gbx-meta .i { inline-size: 18px; block-size: 18px; }
.gbx-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.gbx-price { display: grid; line-height: 1.25; }
.gbx-price small { color: var(--muted); font-size: .9rem; }
.gbx-price b { font-family: var(--display); font-size: 1.6rem; color: var(--maroon); }
.gbx-foot .btn { min-height: 48px; }

/* the customize sheet */
.gift-sheet { padding: 0; border: 0; border-radius: 22px; inline-size: min(560px, calc(100vw - 24px)); max-block-size: min(88vh, 820px); background: #fffdf9; color: var(--ink); box-shadow: 0 30px 80px rgba(74, 22, 32, .35); overflow: hidden; }
.gift-sheet[open] { display: flex; animation: gs-in .22s ease; }
.gift-sheet::backdrop { background: rgba(43, 14, 20, .55); backdrop-filter: blur(2px); }
@keyframes gs-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gs-form { display: flex; flex-direction: column; inline-size: 100%; min-block-size: 0; }
.gs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--deep); color: var(--cream); }
.gs-head h2 { margin: 2px 0 0; font-family: var(--display); font-size: 1.4rem; color: #fff8ee; }
.gs-kicker { display: inline-flex; gap: 6px; align-items: center; color: #f6dcae; font-size: .95rem; }
.gs-kicker .i { inline-size: 16px; block-size: 16px; }
.gs-head .icon-btn { color: var(--cream); min-inline-size: 44px; min-block-size: 44px; }
.gs-scroll { overflow-y: auto; padding: 16px 18px; display: grid; gap: 18px; overscroll-behavior: contain; }
.gs-scroll fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.gs-scroll legend { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--deep); padding: 0; margin-bottom: 8px; }
.gs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gs-seg button { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; display: grid; place-items: center; line-height: 1.35; }
.gs-seg button small { color: var(--muted); font-size: .9rem; }
.gs-seg button[aria-pressed="true"] { border-color: var(--maroon); background: #fbf1ec; box-shadow: inset 0 0 0 1px var(--maroon); }
.gs-contents { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.gs-count { display: flex; align-items: center; gap: 18px; }
.gs-count button { inline-size: 48px; block-size: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--maroon); cursor: pointer; }
.gs-count button:disabled { opacity: .4; cursor: default; }
.gs-count output { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--deep); min-inline-size: 40px; text-align: center; }
.gs-wraps { display: grid; gap: 8px; }
.gs-wrap { position: relative; display: block; cursor: pointer; }
.gs-wrap input { position: absolute; opacity: 0; inset: 0; }
.gs-wrap-card { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, background .2s; }
.gs-wrap-card i { grid-row: span 2; inline-size: 44px; block-size: 44px; border-radius: 10px; }
.wrap-tara i { background: linear-gradient(135deg, #fbf5ee, #e8d9c6); border: 2px solid #812939; }
.wrap-ribbon i { background: linear-gradient(90deg, transparent 42%, #c98b3a 42% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, #c98b3a 42% 58%, transparent 58%), #812939; }
.wrap-premium i { background: linear-gradient(90deg, transparent 44%, #f6dcae 44% 56%, transparent 56%), linear-gradient(0deg, transparent 44%, #f6dcae 44% 56%, transparent 56%), linear-gradient(135deg, #4a1620, #2b0e14); border: 2px solid #c98b3a; }
.gs-wrap-card b { font-size: 1.02rem; }
.gs-wrap-card small { grid-column: 2; color: var(--muted); font-size: .9rem; }
.gs-wrap-card em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-weight: 700; color: var(--maroon); white-space: nowrap; }
.gs-wrap input:checked + .gs-wrap-card { border-color: var(--maroon); background: #fbf1ec; box-shadow: inset 0 0 0 1px var(--maroon); }
.gs-wrap input:focus-visible + .gs-wrap-card { outline: 3px solid var(--gold); outline-offset: 2px; }
.gs-card { position: relative; padding: 22px 20px 18px; border-radius: 14px; background: #fffaf1; border: 1px solid #e6cfa6; box-shadow: inset 0 0 0 5px #fffaf1, inset 0 0 0 6px #c98b3a; text-align: center; min-block-size: 120px; display: grid; align-content: center; gap: 8px; }
.gs-card-brand { font-family: var(--display); color: var(--maroon); font-size: .95rem; letter-spacing: .02em; }
.gs-card p { margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.7; color: var(--deep); white-space: pre-wrap; overflow-wrap: anywhere; }
.gs-card p span { color: #9a8b80; font-family: var(--body); font-size: 1rem; }
.gs-scroll textarea { inline-size: 100%; min-height: 88px; border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 12px; font: inherit; font-size: 1rem; resize: vertical; background: #fff; }
.gs-scroll textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(129, 41, 57, .15); }
.gs-note-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gs-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-ideas .chip { font-size: .95rem; cursor: pointer; text-align: start; line-height: 1.4; padding-block: 6px; }
.gs-note-foot > small { color: var(--muted); font-size: .9rem; padding-top: 10px; }
.gs-hide { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.gs-hide .i { inline-size: 18px; block-size: 18px; color: var(--maroon); }
.gs-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; display: grid; gap: 10px; }
.gs-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.gs-sum b { font-family: var(--display); font-size: 1.4rem; color: var(--maroon); }
.gs-foot .btn { min-height: 52px; font-size: 1.05rem; }

/* the gift panel in the cart and the checkout summary */
.gift-panel { margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: #fffaf1; border: 1px solid #e6cfa6; display: grid; gap: 8px; }
.gp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gp-head .i { inline-size: 20px; block-size: 20px; color: var(--maroon); }
.gp-head b { color: var(--deep); }
.gp-wrap { color: var(--muted); font-size: .95rem; }
.gp-note { margin: 0; padding: 8px 12px; border-inline-start: 3px solid var(--gold); background: #fff; border-radius: 8px; font-family: var(--display); color: var(--deep); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.gp-none, .gp-flag { margin: 0; color: var(--muted); font-size: .95rem; display: flex; gap: 6px; align-items: center; }
.gp-flag .i { inline-size: 16px; block-size: 16px; }
.gp-act { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gp-act .link { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: .95rem; background: none; border: 0; padding: 0; cursor: pointer; color: var(--maroon); font-weight: 600; }
.gp-act .link .i { inline-size: 16px; block-size: 16px; }
.totals .wrap-row small { font-size: .9rem; }

@media (max-width: 760px) {
  .gh { grid-template-columns: 1fr; padding: 26px 20px 22px; gap: 18px; border-radius: 20px; margin-top: 12px; }
  .gh-art { order: -1; block-size: 200px; }
  .gh-pic.p0 { inline-size: 44%; inset-inline-start: 10%; }
  .gh-pic.p1 { inline-size: 34%; inset-inline-end: 6%; }
  .gh-pic.p2 { inline-size: 32%; inset-inline-end: 30%; bottom: -4%; }
  .gh-ribbon { inline-size: 64px; block-size: 64px; bottom: 4%; inset-inline-start: 0; }
  .gh-cta { inline-size: 100%; justify-content: center; }
  .gh-steps { grid-template-columns: 1fr; gap: 8px; }
  .gbx-grid { grid-template-columns: 1fr; }
  .gift-sheet { inline-size: 100vw; max-inline-size: 100vw; max-block-size: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .gift-sheet[open] { animation: gs-up .25s ease; }
  @keyframes gs-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .gbx-foot .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .gift-sheet[open], .gbx { animation: none; transition: none; } }

/* /css/flow.css */
/* Moving around and feedback: section links land below the sticky header,
   a thin bar while a page loads, and a spinner on any button at work. */

/* a link to a section, the field an error names, the focus moving down the
   form: all stop below the header (its height is measured in scroll.js),
   and above the phone's bottom bar */
html { scroll-padding-top: calc(var(--hdr, 72px) + 12px); }
@media (max-width: 720px) { html { scroll-padding-bottom: calc(var(--tab-h, 64px) + 12px); } }
/* the page's own offsets would add to the header's: one offset only */
.gf, .gf-bar { scroll-margin-top: 0; }

/* the page is loading: a moving line at the very top, the old page fades a little */
.route-bar { position: fixed; z-index: 95; top: 0; inset-inline: 0; height: 3px; overflow: hidden; background: rgba(201, 139, 58, .25); pointer-events: none; }
.route-bar[hidden] { display: none; }
.route-bar::before { content: ""; position: absolute; inset-block: 0; width: 40%; background: var(--amber, #c98b3a); animation: route-run 1s ease-in-out infinite; }
@keyframes route-run { from { inset-inline-start: -40%; } to { inset-inline-start: 100%; } }
#app { transition: opacity .2s; }
#app[aria-busy="true"] { opacity: .55; }

/* a button sending something: a turning ring next to its «جارٍ...» text */
button[aria-busy="true"], .btn[aria-busy="true"] { cursor: progress; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
button[aria-busy="true"]::before { content: ""; flex: none; width: 1.05em; height: 1.05em; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: busy-turn .7s linear infinite; }
@keyframes busy-turn { to { transform: rotate(360deg); } }
button[aria-busy="true"]:disabled { opacity: 1; }
/* even with reduced motion the ring stays visible, it only turns slower */
@media (prefers-reduced-motion: reduce) {
  button[aria-busy="true"]::before { animation: busy-turn 1.6s linear infinite !important; }
  .route-bar::before { animation: none !important; inset-inline-start: 0; width: 100%; opacity: .7; }
}

/* the card just added to the cart: a short glow says it worked */
.card.just-added .card-qty { animation: added-glow .9s ease-out; }
@keyframes added-glow { from { box-shadow: 0 0 0 0 rgba(129, 41, 57, .45); } to { box-shadow: 0 0 0 12px rgba(129, 41, 57, 0); } }

/* the current section in the header menu is marked for every reader */
#nav a[aria-current="page"] { font-weight: 700; }

/* every tap target is at least 44 px, also the small ones inside text rows */
.gbx-list li { padding-block: 0; align-items: center; }
.gbx-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
button.link { min-height: 44px; min-width: 44px; padding-inline: 6px; }
.select { min-height: 44px; }

/* the card's heart sits beside the name, off the photo link */
.card .name-row { display: flex; align-items: flex-start; gap: 6px; }
.card .name-row .name { flex: 1; min-width: 0; }
.card .name-row .heart { position: static; flex: none; width: 44px; height: 44px; margin-inline-end: -6px; background: transparent; border-color: transparent; backdrop-filter: none; }
.card .name-row .heart:hover { transform: none; background: var(--cream, #f7efe3); }
.card .name-row .heart.on { background: transparent; }
.card .tags { max-width: calc(100% - 20px); }

/* the cart drawer while it prices the basket on the server */
.drawer-wait { display: flex; align-items: center; gap: 10px; padding: 10px 0 14px; color: var(--maroon); font-weight: 600; }
.drawer-wait::before { content: ""; flex: none; width: 1.1em; height: 1.1em; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: busy-turn .7s linear infinite; }
#drawer[aria-busy="true"] .drawer-foot { opacity: .6; pointer-events: none; }

/* the product page's add button confirms what happened, then is ready again */
#add-one.is-done { background: var(--maroon); color: var(--cream, #fff); }

/* /css/spacing.css */
/* One spacing system for the whole store, loaded last so it settles the
   rhythm the earlier sheets set piece by piece. Everything sits on a 4px
   grid; a section owns half of the space between it and its neighbour, so
   any two sections are the same distance apart. */
:root {
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sec-y: 32px;          /* half the gap between two sections */
  --head-gap: 24px;       /* section head to what it introduces */
  --pad-card: 12px 14px 14px;
  --pad-panel: 24px;
  --pad-tile: 14px 16px;
}
@media (max-width: 720px) {
  :root { --sec-y: 26px; --head-gap: 16px; --pad-card: 12px; --pad-panel: 16px; --pad-tile: 12px; }
}

/* sections: the same breathing room everywhere */
.section { padding-block: var(--sec-y); }
.section + .section, .wrap.trust + .section { margin-top: 0; }
/* a scrolling row keeps a little room for card shadows; take it back from the section */
.section:has(> .row:last-child), .section:has(> .reel:last-child) { padding-bottom: calc(var(--sec-y) - var(--sp-2)); }

/* the first shelf hangs right under the hero and the type rail */
body[data-route="home"] .section.best { padding-top: var(--sp-6); }
.marquee { margin-block: var(--sp-5) 0; }

/* the trust strip is a band of its own between two sections */
.wrap.trust { margin-block: 0; padding-block: var(--sec-y); gap: var(--sp-3); }
.trust div { padding: var(--pad-tile); }

/* section heads: title, one line under it, the link level with the title */
.sec-head { align-items: center; gap: var(--sp-4); margin-bottom: var(--head-gap); }
.sec-head h2 { margin: 0; line-height: 1.3; }
.sec-head p { margin: var(--sp-1) 0 0; line-height: 1.6; }
.sec-head .link { align-self: flex-start; }

/* cards and panels: one inner padding each */
.card .body { padding: var(--pad-card); gap: var(--sp-2); }
.checkout .panel { padding: var(--pad-panel); }
.faq { gap: var(--sp-3); }
.row, .grid { gap: var(--sp-4); }
.jr-sec .jr-body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }

/* category pages: head, toolbar, grid and count on the same steps */
.page-head { padding-block: var(--sp-6) 0; }
.page-head .crumbs { margin-bottom: var(--sp-2); }
.page-head .ph-sub { margin: var(--sp-2) 0 0; }
.toolbar { margin: var(--sp-5) 0 var(--sp-6); }
#count { margin-top: var(--sp-5) !important; padding-bottom: var(--sp-2); }

/* product page: the buy block, then the sections below it at the normal rhythm */
.pdp { gap: var(--sp-10); padding: var(--sp-4) 0 var(--sec-y); }

/* cart and checkout */
.checkout { gap: var(--sp-6); padding: var(--sp-5) 0 var(--sp-10); }

/* the footer starts one section away from the last block */
.footer { margin-top: var(--sec-y); }

@media (max-width: 720px) {
  .row, .grid { gap: var(--sp-3); }
  body[data-route="home"] .section.best { padding-top: var(--sp-4); }
  .wrap.trust { gap: var(--sp-2); }
  .sec-head h2 { font-size: 1.5rem; }
  .jr-sec .jr-body { padding: var(--sp-3) var(--sp-4); }
  .page-head { padding-top: var(--sp-4); }
  .toolbar { margin: var(--sp-4) 0 var(--sp-5); }
  .pdp { gap: var(--sp-5); padding-top: var(--sp-2); }
  .checkout { gap: var(--sp-4); padding-top: var(--sp-4); }
}

/* /css/trust.css */
/* Home trust band: four promises (shipping, daily roast, secure payment,
   any weight) as four equal solid cards with a round maroon badge.
   Loaded after spacing.css, which owns the band's block padding. */
.wrap.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4, 16px);
  align-items: stretch;
}
.wrap.trust > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4, 16px);
  min-width: 0;
  padding: var(--sp-5, 20px);
  background: #fff;
  border: 1px solid #ecdccb;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(74, 22, 32, .05), 0 10px 24px -16px rgba(74, 22, 32, .28);
  backdrop-filter: none;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* a thin gold-to-maroon line along the top edge */
.wrap.trust > div::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #c98b3a, #812939);
}
@media (hover: hover) {
  .wrap.trust > div:hover { transform: translateY(-3px); border-color: rgba(129, 41, 57, .3); box-shadow: 0 2px 4px rgba(74, 22, 32, .06), 0 16px 30px -16px rgba(74, 22, 32, .35); }
}

.trust .tr-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f7ece6;
  box-shadow: inset 0 0 0 1px rgba(129, 41, 57, .14), 0 0 0 4px #fbf5ee;
  color: #812939;
}
.trust .tr-ic .i { width: 26px; height: 26px; color: #812939; stroke-width: 1.8; }

.trust .tr-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust .tr-txt b {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #4a1620;
}
.trust .tr-txt > span { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.trust .tr-txt .num { color: #812939; font-weight: 700; font-size: inherit; }

/* tablets: two by two, still side by side */
@media (max-width: 980px) {
  .wrap.trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3, 12px); }
}

/* phones: two by two, each promise stacked and centred so all four match */
@media (max-width: 720px) {
  .wrap.trust { gap: var(--sp-3, 12px); }
  .wrap.trust > div {
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--sp-3, 12px);
    padding: var(--sp-5, 20px) var(--sp-3, 12px) var(--sp-4, 16px);
    text-align: center;
  }
  .wrap.trust > div::before { inset-inline: 28%; }
  .trust .tr-ic { width: 48px; height: 48px; }
  .trust .tr-ic .i { width: 24px; height: 24px; }
  .trust .tr-txt { align-items: center; }
  .trust .tr-txt b { font-size: 1.05rem; }
}

/* /css/future.css */
/* Future layer: strong figure/ground contrast for the whole shop. The page
   sits on a deeper warm sand with a faint dot grid, sections alternate full
   width bands (sand / deep maroon), and every card is solid white with a
   real edge and depth so it reads clearly against what is behind it.
   Loaded last among the shop styles. Nothing here hides content. */
:root {
  --page: #f3e9dc;
  --band: #e7d3bb;
  --band-line: #d9bf9f;
  --edge: #d6bd9f;
  --edge-2: #c9ab88;
  --muted: #5b4246;
  --ink-2: #3d2227;
  --lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(74, 22, 32, .07), 0 14px 30px -16px rgba(74, 22, 32, .38);
  --lift-hi: 0 2px 6px rgba(74, 22, 32, .1), 0 24px 44px -18px rgba(74, 22, 32, .5);
  --ring: linear-gradient(135deg, #812939, #c98b3a 55%, #812939);
}

html, body { overflow-x: clip; }
body {
  background-color: var(--page);
  background-image: radial-gradient(rgba(74, 22, 32, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
body::before { opacity: .55; }

/* ---------- header: solid glass with a clear edge ---------- */
.header { background: rgba(255, 252, 247, .9); border-bottom: 1px solid var(--edge); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset; }
.header.scrolled { background: rgba(255, 252, 247, .96); box-shadow: 0 10px 30px -12px rgba(74, 22, 32, .35); }
.header::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--ring); opacity: .55; pointer-events: none; }
.search { background: #fff; border: 1.5px solid var(--edge); box-shadow: 0 6px 18px -12px rgba(74, 22, 32, .35); }
.search:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(129, 41, 57, .14); }

/* ---------- full-width bands behind a section ---------- */
.band { position: relative; isolation: isolate; }
.band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 calc(50% - 50vw);
}
.band.sand::before {
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(255, 255, 255, .45), transparent 70%),
    var(--band);
  border-block: 1px solid var(--band-line);
}
/* the section itself also carries the dark base, so its white text never
   depends on the full-bleed layer or a photo having painted first */
.band.deep { color: #f6e7d2; background-color: #3a1119; }
.hero-film .film, .pfilm { background-color: #2b1015; }
.hero-film .hero-cta .btn.ghost { background: rgba(43, 16, 21, .42); backdrop-filter: blur(6px); }
.hero-film .hero-cta .btn.ghost:hover { background: rgba(43, 16, 21, .6); }
.band.deep::before {
  background:
    radial-gradient(50% 70% at 90% 10%, rgba(201, 139, 58, .28), transparent 70%),
    radial-gradient(40% 60% at 5% 100%, rgba(129, 41, 57, .7), transparent 70%),
    #3a1119 url(/brand/pattern-cream.svg?v=YjAsGaUqn0) 0 0 / 120px;
  background-blend-mode: normal, normal, soft-light;
}
.band.deep .sec-head h2 { color: #fff; }
.band.deep .sec-head p { color: #ecd3b6; }
.band.deep .sec-head h2::after { background: linear-gradient(90deg, #e9c58c, #c98b3a); }
.band.deep .sec-head .link { color: #fff; border-color: rgba(255, 255, 255, .55); background: #4b1d26; }
.band.deep .sec-head .link:hover { background: #fff; color: var(--deep); }
.band.deep .row::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .35); }

/* ---------- section heads: a title with a gold rule and a pill link ---------- */
.sec-head h2 { position: relative; padding-bottom: 10px; color: var(--deep); letter-spacing: -.01em; }
.sec-head h2::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
}
.sec-head p { color: var(--muted); font-size: 1rem; }
.sec-head .link {
  gap: 6px; padding: 6px 16px; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  color: var(--maroon); border: 1.5px solid currentColor; background: rgba(255, 255, 255, .55);
  transition: background .2s, color .2s, transform .2s;
}
.sec-head .link::after { content: "←"; font-weight: 700; transition: transform .2s; }
.sec-head .link:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.sec-head .link:hover::after { transform: translateX(-3px); }

/* ---------- product cards: solid white, a real edge, depth, a gradient ring on hover ---------- */
.card {
  background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--edge); border-radius: 18px; box-shadow: var(--lift);
  transition: transform .25s var(--ease, ease), box-shadow .25s, border-color .25s;
}
.card .media { background: linear-gradient(160deg, #f4e7d6, #e9d6bf); border-bottom: 1px solid #ecdcc8; }
.card .media::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(43, 16, 21, .14)); pointer-events: none; }
.card .name { color: var(--ink-2); }
.card .price b { color: var(--maroon); }
.card .price small, .card .price .per { color: var(--muted); }
.card .weight-select { background-color: #f6ede2; border: 1.5px solid var(--edge); color: var(--ink-2); font-weight: 700; }
.card .weight-select:hover { border-color: var(--maroon); }
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box;
    box-shadow: var(--lift-hi);
  }
}
.row { padding-top: 6px; padding-bottom: 18px; }
.grid .card { height: 100%; }

/* category tiles, the home rail and the photo reel: framed and lifted */
.cat { border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 2px 6px rgba(43, 16, 21, .18), 0 18px 36px -18px rgba(43, 16, 21, .6); }
.cat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); pointer-events: none; }
.type-rail .ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold), 0 8px 18px -8px rgba(74, 22, 32, .5); }
.reel figure { border: 1px solid var(--edge); background: linear-gradient(160deg, #e9d6bf, #d9bf9f); }

/* panels, FAQ, reviews, trust: white surfaces with the same edge */
.panel, .perks, .bundle, .opt-card, .rv { background: #fff; border-color: var(--edge); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 26px -18px rgba(74, 22, 32, .35); }
.faq details.panel { border-width: 1px; }
.faq details[open] { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(129, 41, 57, .1), 0 14px 30px -20px rgba(74, 22, 32, .45); }
.faq summary { color: var(--ink-2); font-weight: 700; }
/* shop.css gives .trust "margin: 18px 0 8px", which drops the wrap's centring */
.wrap.trust { margin-inline: auto; }
.wrap.trust > div { border-color: var(--edge); box-shadow: var(--lift); }

/* ---------- readable secondary text everywhere ---------- */
.muted, .sec-head p, .ph-sub, .card-rating, .crumbs, .crumbs a { color: var(--muted); }
.footer .muted, .footer .copy { color: #dcc3b8; }
/* payment options not active yet: still readable, clearly unavailable */
.pay-opt.soon { opacity: 1; background: repeating-linear-gradient(135deg, #f7efe5 0 10px, #f3e8db 10px 20px); border-style: dashed; border-color: var(--edge-2); }
.pay-opt.soon b, .pay-opt.soon strong { color: #6b5054; }
.pay-opt.soon small { color: #7a5f62; }
small, .small { font-size: max(.875rem, 1em * .875); }
.crumbs a:hover { color: var(--maroon); }
.page-head h1 { color: var(--deep); }
.count-pill { background: var(--deep); color: #fff; border: 0; }
.band.deep .muted { color: #ecd3b6; }

/* ---------- fields: clear outline, warm fill, a maroon focus ring ---------- */
.field label { color: var(--ink-2); font-size: 1rem; }
.field input, .field select, .field textarea, .coupon-row input, .chat-form input, .weigh-in, .wcustom label {
  border: 1.5px solid var(--edge-2); background-color: #fffcf8;
}
.field input::placeholder, .field textarea::placeholder, .coupon-row input::placeholder, .chat-form input::placeholder, .search input::placeholder { color: #8a7270; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a98763; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon-row input:focus, .chat-form input:focus {
  outline: 0; background: #fff; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(129, 41, 57, .15);
}
.field .err { font-size: .95rem; font-weight: 600; }
.field.bad input, .field.bad select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 67, 44, .12); }

/* ---------- product page, cart and checkout surfaces ---------- */
.pdp .media, .pdp .gallery { border: 1px solid var(--edge); border-radius: 22px; box-shadow: var(--lift); background: #fff; }
.pdp-price-row .price b, .pdp .price b { color: var(--maroon); }
.co-h { color: var(--deep); }
.acc-strip { border-color: var(--edge); }

/* ---------- the footer meets the page with a gold seam ---------- */
.footer { box-shadow: 0 -1px 0 var(--band-line); }

@media (max-width: 720px) {
  .sec-head .link { padding: 4px 12px; min-height: 38px; font-size: .9rem; }
  .sec-head h2::after { width: 44px; height: 3px; }
  .card { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transition: none; transform: none; }
}

/* the hero label sat on a 14% cream fill: over the bright frames of the film
   its cream text washed out. A dark glass pill keeps it readable on any frame. */
.hero-film .eyebrow, .hero .eyebrow { background: rgba(43, 16, 21, .58); border-color: rgba(233, 197, 140, .45); color: #fff6ea; }
@media (max-width: 720px) { .hero-film .eyebrow, .hero .eyebrow { font-size: .875rem; } }

/* cart drawer foot: the three promises on one short line instead of two paragraphs */
.foot-promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.foot-promises li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.foot-promises .i { width: 15px; height: 15px; color: var(--pista, #6b8e23); flex: none; }
.foot-promises a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--edge-2); }
.foot-promises a:hover { color: var(--maroon); }

/* readability floor: no text under 13px, and the green hints dark enough on white */
.gbx-meta { color: #4c6619; }
.topbar { font-size: max(.875rem, 14px); }
.pay-logos span { font-size: .8125rem; padding: 3px 9px; }
@media (max-width: 720px) {
  .tabbar > * { font-size: .8125rem; font-weight: 600; color: #5b4246; }
  .topbar { font-size: .875rem; }
}

/* /css/kinetic.css */
/* Typewriter hero headline (js/kinetic.js). The full sentence (.tw-ghost) and
   the typed one (.tw-line) share one grid cell: the ghost is invisible and
   holds the heading's final size, so the page never jumps while typing. The
   resting state, before and after the script, is the full visible sentence.
   The rest of the hero only starts hidden while its entrance runs (.kin-on). */
.hero-film h1.tw { display: grid; }
.tw-stack { display: grid; }
.tw-ghost, .tw-line { grid-area: 1 / 1; }
.tw-ghost { visibility: hidden; }

/* the cursor: a slim gold bar the height of the letters */
.tw-caret {
  /* the side margins add up to zero, so the cursor never pushes a word to the next line */
  display: none; inline-size: 3px; block-size: .95em; margin-inline: 4px -7px; vertical-align: -.12em;
  border-radius: 2px; background: #f2cf94; box-shadow: 0 0 12px rgba(242, 207, 148, .7);
}
.tw.tw-on .tw-caret { display: inline-block; }
/* after the last letter the cursor blinks a few times, then leaves */
.tw.tw-done .tw-caret { display: inline-block; animation: tw-blink .9s steps(1) 3 forwards, tw-out .3s ease 2.7s forwards; }
@keyframes tw-blink { 50% { opacity: 0; } }
@keyframes tw-out { to { opacity: 0; visibility: hidden; } }

.hero-film h1 .h1-rule {
  display: block; width: 92px; height: 4px; margin-top: 14px; border-radius: 4px;
  background: linear-gradient(270deg, #f2cf94, #c98b3a 70%, rgba(201, 139, 58, 0));
  transform-origin: right center; box-shadow: 0 0 18px rgba(242, 207, 148, .45);
}
[dir="ltr"] .hero-film h1 .h1-rule { transform-origin: left center; }

.kin-on h1 .h1-rule, .kin-on .eyebrow, .kin-on .lead, .kin-on .hero-cta .btn, .kin-on .hero-trust { opacity: 0; }

@media (max-width: 720px) {
  .hero-film h1 .h1-rule { width: 64px; height: 3px; margin-top: 10px; }
  .tw-caret { inline-size: 2.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-caret { display: none !important; }
  .kin-on h1 .h1-rule, .kin-on .eyebrow, .kin-on .lead, .kin-on .hero-cta .btn, .kin-on .hero-trust { opacity: 1; }
}

/* /css/convert.css */
/* What moves a visit towards an order: the product page's reasons to order
   now, the cart's "added" note, the one-tap add on recently viewed products
   and the cart reminder. Linked after kinetic.css; classes are page-owned
   (pdp-proof, added-note, mini-add, nudge). */

/* product page: real reasons, one per line */
.pdp-proof { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; gap: 6px; }
.pdp-proof li { display: flex; align-items: flex-start; gap: 8px; font-size: 1rem; font-weight: 500; line-height: 1.6; color: var(--ink-2, #3d2227); }
.pdp-proof .i { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--cocoa); }
.pdp-proof .ok { color: #3b5214; font-weight: 600; }
.pdp-proof .ok .i { color: #5a7420; }
.pdp-proof .hot { color: #8a2a12; font-weight: 600; }
.pdp-proof .gift .i { color: #a46a1f; }

/* cart drawer: the pack just added says so */
.added-note { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #cfdcb0; background: #eef4e1; color: #2f4214; font-size: 1rem; line-height: 1.5; animation: added-in .35s ease-out; }
.added-note .i { width: 20px; height: 20px; flex: none; color: #4d6a1e; }
.line.just-in { border-radius: 12px; box-shadow: 0 0 0 2px #c98b3a inset; animation: line-in 1.8s ease-out; }
@keyframes added-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes line-in { from { background: #fdf1dc; } }

/* recently viewed: open it or add it in one tap */
.mini-card.has-add { display: flex; flex-direction: column; }
.mini-card.has-add > a { display: block; flex: 1; color: inherit; }
.mini-card .mini-add { margin: 0 10px 10px; min-height: 44px; justify-content: center; }

/* the cart reminder: a card at the bottom, no backdrop */
.nudge { position: fixed; z-index: 38; inset-inline: 12px; bottom: 16px; max-width: 480px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; padding: 14px; padding-inline-end: 50px; border: 1px solid var(--edge, #d6bd9f); border-radius: 18px; background: #fff; box-shadow: var(--lift-hi, 0 20px 40px -18px rgba(74, 22, 32, .5)); opacity: 0; transform: translateY(calc(100% + 40px)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s, bottom .3s ease; }
.nudge.show { opacity: 1; transform: none; }
.nudge-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background .2s; }
.nudge-x:hover, .nudge-x:focus-visible { background: var(--page, #f3e9dc); }
.nudge-x .i { width: 20px; height: 20px; }
.nudge-thumbs { display: flex; }
.nudge-thumbs span { width: 52px; height: 52px; flex: none; overflow: hidden; margin-inline-start: -16px; border: 2px solid #fff; border-radius: 12px; background: #ecdccb; box-shadow: 0 1px 4px rgba(74, 22, 32, .2); }
.nudge-thumbs span:first-child { margin-inline-start: 0; }
.nudge-thumbs span > * { width: 100%; height: 100%; object-fit: cover; }
.nudge-thumbs .tile b, .nudge-thumbs .tile .i { display: none; }
.nudge-txt { display: grid; gap: 2px; min-width: 0; line-height: 1.5; font-size: 1rem; color: var(--muted); }
.nudge-txt b { font-size: 1.05rem; color: var(--deep, #4a1620); }
.nudge-perk { display: flex; align-items: center; gap: 6px; font-size: 1rem; color: #2f4214; }
.nudge-perk .i { width: 16px; height: 16px; flex: none; }
.nudge-act { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.nudge-act .btn { min-height: 48px; justify-content: center; }
/* the product page's floating buy bar (computer: 18px up, about 76px tall): sit above it */
body:has(.sticky-buy.show) .nudge { bottom: 106px; }

@media (max-width: 720px) {
  .nudge { inset-inline: 10px; bottom: calc(var(--tab-h, 62px) + var(--safe-b, 0px) + 10px); }
  /* above the product page's floating buy bar, never over it */
  body:has(.sticky-buy.show) .nudge { bottom: calc(var(--tab-h, 62px) + var(--safe-b, 0px) + 86px); }
}
@media (prefers-reduced-motion: reduce) {
  .nudge { transition: none; }
  .added-note, .line.just-in { animation: none; }
}

/* /css/cart.css */
/* The cart drawer: the summary rows, what was taken out, the empty cart with
   its suggestions, and the way back after a failed pricing. Linked after
   convert.css; classes are cart-owned (saved-row, coupon-hint, cart-empty,
   empty-sugg, cart-dropped). */

/* summary: free shipping and savings read as good news */
.totals .ship-row.ok span:last-child { color: #3b5214; font-weight: 700; }
.totals .grand small { font-size: .85rem; font-weight: 500; }
.totals .saved-row { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #eef4e1; color: #2f4214; font-size: 1rem; }
.totals .saved-row .i { width: 18px; height: 18px; flex: none; }
.coupon-hint { margin: -4px 0 10px; font-size: .95rem; color: var(--muted); }

/* the tapped line answers at once; a disabled + says the limit is reached */
.drawer .stepper button:disabled { opacity: .35; cursor: not-allowed; }
.drawer .line-total { font-variant-numeric: tabular-nums; }

/* an item the shop no longer sells */
.cart-dropped { display: flex; align-items: flex-start; gap: 8px; margin-top: 0; }
.cart-dropped .i, .drawer .notice.bad .i { width: 20px; height: 20px; flex: none; }
.drawer .notice.bad { display: flex; align-items: flex-start; gap: 8px; }
.drawer [data-retry], .drawer [data-empty] { margin-top: 10px; min-height: 48px; }

/* the empty cart: a message, one way in, and products to start with */
.cart-empty { padding: 28px 16px 20px; }
.cart-empty h3 { margin: 4px 0 6px; font-size: 1.25rem; color: var(--cocoa); }
.cart-empty p { margin: 0 auto 16px; max-width: 30ch; font-size: 1rem; line-height: 1.7; }
.cart-empty .btn { min-height: 48px; }
.empty-sugg { margin-top: 8px; }
.empty-sugg h3 { margin-bottom: 10px; }
.cross-item .btn.sm { min-height: 44px; }

/* /css/luxe.css */
/* Luxe: the finishing layer of a premium roastery. Deep espresso-burgundy
   surfaces, champagne gold hairlines and accents, a classic Naskh (Amiri) for
   headlines, and calm motion. Loaded LAST, so it only refines what the earlier
   sheets draw; classes it adds are lx- prefixed (lx-seal, lx-fresh, lx-band). */
:root {
  --noir: #1e0b10;
  --noir-2: #2c1118;
  --gold-hi: #ecd5a0;
  --gold-mid: #c9a25e;
  --gold-ink: #7a5520;           /* gold that reads as text on cream (AA) */
  --gold-line: rgba(184, 138, 66, .38);
  --gold-grad: linear-gradient(115deg, #9b7130 0%, #e7cb8e 34%, #b98a40 58%, #f3e0b1 82%, #a97c35 100%);
  --lux: "Amiri", "El Messiri", serif;
  --lx-ease: cubic-bezier(.22, .9, .25, 1);
}

/* ---------- headlines: a classic Naskh, a touch larger ---------- */
h1, .sec-head h2, .ph-title h1, .pdp h1, .drawer-head h2, .lx-title { font-family: var(--lux); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.sec-head h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
.sec-head h2::after { width: 72px; height: 2px; bottom: 2px; background: var(--gold-grad); }
.sec-head h2::before {
  content: ""; position: absolute; inset-inline-start: 78px; bottom: -1px; width: 7px; height: 7px;
  background: var(--gold-mid); transform: rotate(45deg); border-radius: 1px;
}
.sec-head .link { color: var(--gold-ink); border: 1px solid var(--gold-line); background: rgba(255, 252, 245, .7); }
.sec-head .link:hover { background: var(--noir); color: var(--gold-hi); border-color: var(--noir); }
.band.deep .sec-head h2::before { background: var(--gold-hi); }

/* ---------- top bar and header: noir with a gold hairline ---------- */
.topbar { background: linear-gradient(90deg, var(--noir), var(--noir-2) 50%, var(--noir)); color: #f1e2cc; position: relative; }
.topbar::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--gold-grad); opacity: .8; }
.topbar b { color: var(--gold-hi); }
.header { box-shadow: 0 1px 0 var(--gold-line), 0 10px 30px -24px rgba(30, 11, 16, .5); }
.nav-row { border-top: 1px solid rgba(184, 138, 66, .18); }
.nav a { transition: color .2s, background .2s; }
.nav a.on, .nav a:hover { color: var(--noir); }
.nav a::after { background: var(--gold-grad) !important; height: 2px; }
#cart-open { background: var(--noir); border-color: var(--noir); color: #fbf1df; box-shadow: inset 0 0 0 1px rgba(231, 203, 142, .45), 0 6px 16px -8px rgba(30, 11, 16, .6); }
#cart-open:hover { box-shadow: inset 0 0 0 1px var(--gold-hi), 0 10px 22px -10px rgba(30, 11, 16, .7); }
#cart-open .i { color: var(--gold-hi); }

/* ---------- buttons: deep lacquer with a gold rim; the press is felt ---------- */
.btn.amber {
  background: linear-gradient(180deg, #6a1f2e 0%, #4a1520 55%, #35101a 100%); color: #fbf1df;
  box-shadow: inset 0 0 0 1px rgba(231, 203, 142, .42), inset 0 1px 0 rgba(255, 236, 200, .18), 0 10px 22px -10px rgba(30, 11, 16, .65);
}
.btn.amber:hover { background: linear-gradient(180deg, #74233a 0%, #521826 55%, #3a111c 100%); box-shadow: inset 0 0 0 1px var(--gold-hi), inset 0 1px 0 rgba(255, 236, 200, .25), 0 14px 28px -12px rgba(30, 11, 16, .7); }
.btn.amber .i { color: var(--gold-hi); }
.btn::after { background: linear-gradient(110deg, transparent 32%, rgba(243, 224, 177, .38) 50%, transparent 68%); }
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: .08s; }
/* on dark surfaces (hero, journey, film cards) the main button is gold */
.hero-film .hero-cta .btn.amber, .jr-cta .btn.amber, .band.deep .btn.amber {
  background: var(--gold-grad); background-size: 160% 100%; color: var(--noir); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, .6), 0 12px 28px -10px rgba(0, 0, 0, .55);
  transition: background-position .6s var(--lx-ease), transform .25s var(--lx-ease), box-shadow .25s;
}
.hero-film .hero-cta .btn.amber:hover, .jr-cta .btn.amber:hover, .band.deep .btn.amber:hover { background: var(--gold-grad); background-size: 160% 100%; background-position: 100% 0; transform: translateY(-2px); }
.hero-film .hero-cta .btn.amber .i, .jr-cta .btn.amber .i { color: var(--noir); }
.hero-film .hero-cta .btn.ghost { border-color: rgba(236, 213, 160, .6); color: #fbf1df; }
.hero-film .hero-cta .btn.ghost:hover { border-color: var(--gold-hi); background: rgba(236, 213, 160, .12); }

/* ---------- hero: a gallery frame and the fresh-roast seal ---------- */
.hero-film .film { box-shadow: 0 30px 60px -30px rgba(30, 11, 16, .7), 0 0 0 1px rgba(184, 138, 66, .35); }
.hero-film .film::before {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(236, 213, 160, .32); border-radius: 14px;
}
.hero-film .eyebrow { border-color: rgba(236, 213, 160, .55); color: var(--gold-hi); background: rgba(30, 11, 16, .35); }
.hero-film .eyebrow .i { color: var(--gold-hi); }
.hero-film h1 .h1-rule { background: var(--gold-grad); }
.hero-film .coupon-pill { border-color: rgba(236, 213, 160, .55); }
.hero-film .coupon-pill b, .hero-film .coupon-pill .i { color: var(--gold-hi); }
.hero-film .proof b { color: var(--gold-hi); font-family: var(--lux); font-size: 1.35rem; }
.lx-seal { position: absolute; z-index: 3; inset-inline-end: 7%; top: 13%; width: 132px; height: 132px; pointer-events: none; color: var(--gold-hi); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.lx-seal svg { width: 100%; height: 100%; overflow: visible; }
.lx-seal .ring { transform-origin: 50% 50%; animation: lx-turn 40s linear infinite; }
.lx-seal text { font-family: var(--body); font-size: 10.5px; font-weight: 600; letter-spacing: .5px; fill: currentColor; }
.lx-seal .core { fill: rgba(30, 11, 16, .62); stroke: rgba(236, 213, 160, .7); stroke-width: 1; }
.lx-seal .mid { font-family: var(--lux); font-size: 15px; font-weight: 700; }
.lx-seal .sub { font-size: 9px; letter-spacing: 0; }
@keyframes lx-turn { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .lx-seal { display: none; } }

/* ---------- marquee: gold diamonds on a warm band ---------- */
.marquee { border-block: 1px solid var(--gold-line); }
.marquee-track span { font-family: var(--lux); font-weight: 700; }

/* ---------- product cards: a gold hairline, a slow zoom, the fresh mark ---------- */
.card { border: 1px solid rgba(184, 138, 66, .22); transition: transform .45s var(--lx-ease), box-shadow .45s var(--lx-ease), border-color .45s; }
.card .media img { transition: transform 1.1s var(--lx-ease); }
.card .name { font-family: var(--display); }
@media (hover: hover) {
  .card:hover { border-color: rgba(184, 138, 66, .6); box-shadow: 0 2px 6px rgba(30, 11, 16, .06), 0 26px 44px -22px rgba(30, 11, 16, .45); }
  .card:hover .media img { transform: scale(1.05); }
}
.lx-fresh {
  position: absolute; z-index: 2; inset-block-end: 10px; inset-inline-start: 10px;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 9px; border-radius: 999px;
  background: rgba(30, 11, 16, .72); color: var(--gold-hi); font-size: .8rem; font-weight: 600; line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(236, 213, 160, .45); backdrop-filter: blur(4px);
}
.lx-fresh .i { width: 14px; height: 14px; color: var(--gold-hi); }
.cat { box-shadow: 0 0 0 1px rgba(184, 138, 66, .3), 0 18px 34px -22px rgba(30, 11, 16, .6); }
.cat h3 { font-family: var(--lux); font-size: 1.45rem; }
.cat img { transition: transform 1.1s var(--lx-ease); }
@media (hover: hover) { .cat:hover img { transform: scale(1.05); } }

/* ---------- promises strip: gold medallions ---------- */
.trust > div { border-color: rgba(184, 138, 66, .28); }
.trust > div::before { background: var(--gold-grad) !important; height: 2px !important; }
.tr-ic { background: radial-gradient(circle at 35% 30%, #fff8e8, #f1dfb8) !important; box-shadow: inset 0 0 0 1px rgba(184, 138, 66, .55); color: var(--gold-ink) !important; }

/* ---------- listing pages: a classic title and the fresh-roast line ---------- */
.ph-title h1 { color: var(--noir); }
.count-pill { background: var(--noir); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(236, 213, 160, .35); }
.lx-band {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(30, 11, 16, .94), rgba(74, 21, 32, .92)); color: #f6e9d2;
  box-shadow: inset 0 0 0 1px rgba(236, 213, 160, .35); font-size: 1rem; line-height: 1.6;
}
.lx-band .i { width: 20px; height: 20px; flex: none; color: var(--gold-hi); }
.lx-band b { color: var(--gold-hi); font-weight: 700; }
.chip.on, .chips .on { background: var(--noir); color: #fbf1df; box-shadow: inset 0 0 0 1px rgba(236, 213, 160, .5); }

/* ---------- product page ---------- */
.pdp h1 { color: var(--noir); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.pdp .media, .pdp .gallery { border-color: rgba(184, 138, 66, .4); }
.pdp-price-row { border-bottom: 1px solid var(--gold-line); padding-bottom: 8px; }

/* ---------- cart drawer and checkout: the same gold hairline ---------- */
.drawer-head { border-bottom: 1px solid var(--gold-line); }
.drawer-head h2 { color: var(--noir); font-size: 1.6rem; }
.drawer-head .count-pill { font-family: var(--body); font-size: .85rem; }
.totals .grand { border-top: 1px solid var(--gold-line) !important; }
.totals .grand span:last-child { color: var(--noir); }

/* ---------- footer: noir with gold headings ---------- */
.footer { background-color: var(--noir); }
.footer::before { height: 2px; background: var(--gold-grad); }
.footer .foot-h { color: var(--gold-hi); font-family: var(--lux); font-size: 1.3rem; }
.footer a:hover { color: var(--gold-hi); }

/* ---------- calm motion while scrolling: cards and section heads rise into place.
   Driven by the scroll itself (no script): browsers without it show everything
   at once, and nothing is ever hidden once it is on screen. ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .card, .sec-head, .cat, .trust > div, .jr-step, .reel figure {
      animation: lx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes lx-rise { from { opacity: .35; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lx-seal .ring { animation: none; } }

/* /css/concierge.css */
/* Tara's assistant: the chat window and the boxes that work inside it (cart,
   checkout, sign-in, orders, payment). Loaded after luxe.css; its classes are
   chat-, msg, quick and cw- only. */
/* the window: a floating panel on a computer, the whole screen on a phone */
.chat { width: min(410px, calc(100% - 32px)); height: min(700px, calc(100vh - 100px)); border-radius: 24px; background: #fffdf9; box-shadow: 0 30px 70px -20px rgba(30, 11, 16, .55), 0 0 0 1px var(--gold-line); transform-origin: bottom left; }
.chat:not([hidden]) { animation: chat-open .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes chat-open { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* header: avatar with the online dot, name and live status, menu, close */
.chat-head { position: relative; background: linear-gradient(160deg, var(--noir-2) 0%, var(--noir) 100%); border-bottom: 1px solid var(--gold-line); padding: 12px 12px 12px 10px; gap: 10px; }
.chat-id { flex: 1; min-width: 0; }
.chat-head b { font-family: var(--lux); font-size: 1.18rem; color: var(--gold-hi); line-height: 1.2; }
.chat-head small { display: block; font-size: .78rem; color: #e9dccb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-seal { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(236, 213, 160, .12); box-shadow: inset 0 0 0 1px rgba(236, 213, 160, .5); color: var(--gold-hi); }
.chat-seal .i { width: 19px; height: 19px; }
.chat-on { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 11px; height: 11px; border-radius: 50%; background: #4cc274; box-shadow: 0 0 0 2px var(--noir); }
.chat-hbtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: #f1e2cc; cursor: pointer; transition: background .2s; }
.chat-hbtn:hover, .chat-hbtn:focus-visible, .chat-hbtn[aria-expanded="true"] { background: rgba(236, 213, 160, .14); }
.chat-hbtn .i { width: 20px; height: 20px; }
.chat-menu { position: absolute; top: calc(100% - 4px); inset-inline-end: 52px; z-index: 3; min-width: 196px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px -14px rgba(30, 11, 16, .45), 0 0 0 1px var(--gold-line); display: grid; animation: chat-open .18s ease-out; }
.chat-menu[hidden] { display: none; }
.chat-menu button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: .9rem; color: var(--noir-2); text-align: start; cursor: pointer; }
.chat-menu button:hover, .chat-menu button:focus-visible { background: #f8eedf; }
.chat-menu .i { width: 18px; height: 18px; color: var(--gold-ink); }

/* the conversation */
.chat-body { position: relative; flex: 1; min-height: 0; display: flex; }
.chat-log { flex: 1; background: radial-gradient(circle at 1px 1px, rgba(184, 138, 66, .13) 1px, transparent 0) 0 0 / 18px 18px, linear-gradient(180deg, #fbf4ea 0%, #fffaf3 100%); padding: 10px 12px 14px; gap: 2px; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-intro { align-self: center; text-align: center; max-width: 300px; margin: 6px auto 8px; display: grid; justify-items: center; gap: 4px; }
.chat-intro-seal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--noir); color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(201, 162, 94, .2); }
.chat-intro-seal .i { width: 26px; height: 26px; }
.chat-intro b { font-family: var(--lux); font-size: 1.15rem; color: var(--noir-2); }
.chat-intro p { margin: 0; font-size: .84rem; line-height: 1.7; color: #5b4743; }
.chat-intro small { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 4px 10px; border-radius: 8px; background: #fbf0d9; color: #6b4f1c; font-size: .72rem; line-height: 1.5; }
.chat-intro small .i { width: 13px; height: 13px; flex: none; }
.chat-day { align-self: center; margin: 10px 0 4px; }
.chat-day span { display: inline-block; padding: 3px 12px; border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(30, 11, 16, .12); font-size: .74rem; color: #6b5550; }

/* bubbles: grouped by speaker, the tail and avatar on the last of a group */
.msg-row { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; }
.msg-row.user { align-self: flex-start; }
.msg-row.assistant { align-self: flex-end; }
.msg-row.msg-head { margin-top: 8px; }
.msg-row .msg { max-width: 100%; align-self: auto; padding: 7px 12px 5px; border-radius: 18px; line-height: 1.7; font-size: .95rem; min-width: 74px; }
.msg-row.user .msg { background: linear-gradient(160deg, #3a1720 0%, var(--noir-2) 100%); color: #fbf1df; border-start-start-radius: 18px; border-end-start-radius: 6px; }
.msg-row.user:not(.msg-head) .msg { border-start-start-radius: 6px; }
.msg-row.user.msg-tail .msg { border-end-start-radius: 4px; }
.msg-row.assistant .msg { background: #fff; color: #2a1a1c; border: 1px solid rgba(184, 138, 66, .22); box-shadow: 0 2px 8px -6px rgba(30, 11, 16, .35); border-end-end-radius: 6px; }
.msg-row.assistant:not(.msg-head) .msg { border-start-end-radius: 6px; }
.msg-row.assistant.msg-tail .msg { border-end-end-radius: 4px; }
.msg-text { white-space: pre-line; overflow-wrap: anywhere; }
.msg-text b { font-weight: 700; }
.msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 1px; font-size: .68rem; line-height: 1.4; opacity: .62; }
.msg-row.user .msg-meta { opacity: .78; }
.msg-tick { display: inline-flex; }
.msg-tick .i { width: 15px; height: 15px; }
.msg-row[data-state="sent"] .msg-tick { color: var(--gold-hi); }
.msg-row[data-state="failed"] .msg-tick { color: #ff9b8f; }
.msg-row[data-state="failed"] .msg { opacity: .8; }
.msg-ava { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--noir); color: var(--gold-hi); visibility: hidden; }
.msg-ava .i { width: 14px; height: 14px; }
.msg-row.msg-tail .msg-ava { visibility: visible; }
.msg .cw-link { display: inline-block; margin-top: 6px; color: var(--gold-ink); font-weight: 700; }
.msg-new { animation: msg-in .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg-w { animation: msg-w .34s ease-out both; animation-delay: calc(var(--d) * var(--step, 20ms)); }
@keyframes msg-w { from { opacity: 0; filter: blur(3px); } }
.chat-dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-mid); animation: chat-dot 1.1s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: .16s; }
.chat-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-fail { align-self: flex-start; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 3px 0 4px; font-size: .78rem; color: #9b2a20; }
.chat-fail span { display: inline-flex; align-items: center; gap: 4px; }
.chat-fail .i { width: 14px; height: 14px; }
.chat-fail button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #e3b4ad; background: #fff; color: #9b2a20; font: inherit; font-weight: 700; cursor: pointer; }
.chat-down { position: absolute; bottom: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--noir-2); box-shadow: 0 6px 18px -6px rgba(30, 11, 16, .45), 0 0 0 1px var(--gold-line); display: grid; place-items: center; cursor: pointer; animation: chat-open .2s ease-out; }
.chat-down[hidden] { display: none; }
.chat-down .i { width: 20px; height: 20px; }
.chat-down b { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold-mid); color: var(--noir); font-size: .72rem; display: grid; place-items: center; }
.chat-down b[hidden] { display: none; }

/* suggestions: one row that scrolls sideways */
.quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 12px 2px; gap: 6px; background: #fffdf9; border-top: 1px solid rgba(184, 138, 66, .18); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.quick::-webkit-scrollbar { display: none; }
.quick:empty { display: none; }
.quick button { flex: none; white-space: nowrap; min-height: 36px; padding: 0 14px; color: var(--noir-2); border-color: var(--gold-line); font-weight: 600; transition: background .2s, color .2s, transform .15s; }
.quick button:hover, .quick button:focus-visible { background: var(--noir); color: var(--gold-hi); border-color: var(--noir); }
.quick button:active { transform: scale(.96); }

/* the writing box */
.chat-form { align-items: flex-end; gap: 6px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fffdf9; }
.chat-field { position: relative; flex: 1; min-width: 0; display: flex; background: #fff; border: 1px solid #e2d2bd; border-radius: 22px; transition: border-color .2s, box-shadow .2s; }
.chat-field:focus-within { border-color: var(--gold-mid); box-shadow: 0 0 0 3px rgba(201, 162, 94, .18); }
.chat-field textarea { flex: 1; min-width: 0; height: 44px; min-height: 44px; max-height: 132px; resize: none; border: 0; outline: 0; background: transparent; padding: 10px 14px; font: inherit; font-size: 1rem; line-height: 1.5; color: #2a1a1c; }
.chat-field textarea::placeholder { color: #8a7570; }
.chat-count { position: absolute; bottom: 4px; left: 10px; font-size: .68rem; color: #9b2a20; }
.chat-count[hidden] { display: none; }
.chat-send, .chat-mic { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s, opacity .2s; }
.chat-send { background: var(--noir); color: var(--gold-hi); }
.chat-send .i { width: 20px; height: 20px; transform: scaleX(-1); }
.chat-send:not(:disabled):hover { transform: scale(1.05); }
.chat-send:disabled { opacity: .4; cursor: default; }
.chat-send[aria-busy] { opacity: .55; }
.chat-mic { background: #f6ead7; color: var(--noir-2); }
.chat-mic[hidden], .chat-form.chat-has .chat-mic { display: none; }
.chat-mic .i { width: 20px; height: 20px; }
.chat-mic.chat-rec { background: #b3261e; color: #fff; animation: chat-rec 1.2s infinite; }
@keyframes chat-rec { 50% { box-shadow: 0 0 0 7px rgba(179, 38, 30, .18); } }

/* the unread count on the buttons that open the chat */
[data-chat-open] { position: relative; }
.chat-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #b3261e; color: #fff; font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fffdf9; animation: chat-open .2s ease-out; }

/* product cards inside a bubble */
.cw-prod { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; background: #fff8ee; border: 1px solid rgba(184, 138, 66, .2); border-radius: 12px; padding: 5px; }
.msg .prods .cw-prod a { background: transparent; padding: 0; }
.cw-prod b { display: block; font-size: .86rem; line-height: 1.4; }
.cw-prod small { color: var(--gold-ink); font-size: .78rem; }
.cw-add { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--noir); color: var(--gold-hi); font: inherit; font-size: .75rem; cursor: pointer; transition: transform .2s, background .2s; }
.cw-add small { color: inherit; }
.cw-add .i { width: 15px; height: 15px; }
.cw-add:hover { transform: translateY(-1px); }
.cw-add.done { background: #2f6b45; color: #fff; }
.cw-out { padding: 0 8px; color: #8a7270; }

/* the boxes */
.cw { align-self: stretch; background: #fff; border: 1px solid var(--gold-line); border-radius: 16px; padding: 12px 13px; box-shadow: 0 10px 24px -18px rgba(30, 11, 16, .6); display: grid; gap: 8px; font-size: .9rem; }
.cw-title { display: flex; align-items: center; gap: 7px; font-family: var(--lux); font-size: 1.08rem; font-weight: 700; color: var(--noir-2); }
.cw-title .i { width: 18px; height: 18px; color: var(--gold-mid); }
.cw ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cw li { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; }
.cw-img { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; background: #f3e6d4; }
.cw-img img { width: 100%; height: 100%; object-fit: cover; }
.cw-name { line-height: 1.4; }
.cw-name small { display: block; color: #7d6560; font-size: .78rem; }
.cw-sum { display: flex; justify-content: space-between; color: #5b4743; }
.cw-sum.off b { color: #2f6b45; }
.cw-sum.total { border-top: 1px dashed var(--gold-line); padding-top: 7px; color: var(--noir); font-weight: 700; font-size: 1rem; }
.cw-note { margin: 0; font-size: .8rem; color: #7d6560; line-height: 1.6; }
.cw-f { display: grid; gap: 3px; }
.cw-f span { font-size: .8rem; font-weight: 600; color: #5b4743; }
.cw-f input { width: 100%; min-height: 42px; border: 1px solid #e2d2bd; border-radius: 11px; padding: 8px 11px; font: inherit; background: #fffdf9; }
.cw-f input:focus { outline: 2px solid var(--gold-mid); outline-offset: 0; border-color: transparent; }
.cw-err { font-style: normal; font-size: .78rem; color: #b3261e; min-height: 0; }
.cw-err:empty { display: none; }
.cw-form-err { margin: 0; }
.cw-pay { border: 1px solid #eadcc8; border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; margin: 0; }
.cw-pay legend { font-size: .8rem; font-weight: 600; padding: 0 4px; }
.cw-pay label { display: flex; gap: 8px; align-items: center; min-height: 32px; cursor: pointer; }
.cw-go { width: 100%; justify-content: center; text-align: center; }
.cw-step { display: grid; gap: 8px; }
.cw-step[hidden] { display: none; }
.cw-ok { margin: 0; color: #2f6b45; font-weight: 700; }
.cw-order { border: 1px solid #efe2d0; border-radius: 12px; padding: 9px 10px; display: grid; gap: 4px; }
.cw-order > div:first-child { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cw-order small { color: #6f5852; line-height: 1.5; }
.cw-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cw-row .link { margin-inline-start: auto; color: var(--gold-ink); font-weight: 700; }
.cw-st { font-size: .74rem; padding: 2px 9px; border-radius: 999px; background: #f3e6d4; color: var(--noir-2); white-space: nowrap; }
.cw-st.st-paid, .cw-st.st-ready_to_ship, .cw-st.st-shipped { background: #e4f1e7; color: #245236; }
.cw-st.st-delivered { background: #e7ecf5; color: #27406b; }
.cw-st.st-pending_payment, .cw-st.st-payment_failed { background: #fbeee0; color: #7a4a12; }
.cw-pay-box { background: linear-gradient(160deg, #fffaf1 0%, #fff 100%); }

@media (max-width: 640px) {
  .chat { inset: 0 0 auto 0; top: 0; bottom: auto; width: 100%; height: 100dvh; border-radius: 0; z-index: 58; box-shadow: none; }
  .chat:not([hidden]) { animation-name: chat-sheet; }
  .chat-head { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .msg-row { max-width: 90%; }
  body.chat-lock { overflow: hidden; }
}
@keyframes chat-sheet { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chat-log { scroll-behavior: auto; }
  .cw-add, .quick button, .chat-send, .chat-field { transition: none; }
  .chat:not([hidden]), .msg-new, .msg-w, .chat-menu, .chat-down, .chat-badge { animation: none; }
  .chat-dots i, .chat-mic.chat-rec { animation-duration: 2.4s; }
}
.cw-exact { margin-inline-start: auto; font-family: var(--body, inherit); font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e7f2ea; color: #2f6b45; }
