/*! SOUFRA — built 2026-08-30T13:00:29.348Z — do not edit, run: npm run build */

/* ==== 00-fonts.css ==== */
/**
 * SOUFRA — fonts, self-hosted.
 * GENERATED by tools/fetch-fonts.mjs — do not edit.
 *
 * Almarai · SIL Open Font License 1.1 · https://fonts.google.com/specimen/Almarai
 * IBM Plex Mono · SIL Open Font License 1.1 · https://github.com/IBM/plex
 * Archivo Black · SIL Open Font License 1.1
 * Rubik · SIL Open Font License 1.1
 *
 * The Latin faces are last on purpose: an Arabic reader never reaches them, and
 * unicode-range means the browser never downloads a face it has no glyphs for.
 */

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/almarai-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-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;
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/almarai-400-latin.woff2') 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;
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/almarai-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-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;
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/almarai-700-latin.woff2') 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;
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/almarai-800-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-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;
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/almarai-800-latin.woff2') 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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') 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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') 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;
}

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-400-latin-ext.woff2') 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-400-latin.woff2') 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;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-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;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400-latin-ext.woff2') 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400-latin.woff2') 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;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-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;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500-latin-ext.woff2') 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500-latin.woff2') 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;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-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;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700-latin-ext.woff2') 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700-latin.woff2') 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;
}

/* ==== 00-reset.css ==== */
/**
 * A fallback that occupies exactly the space Almarai will.
 *
 * With `display=swap`, the page paints in a system face and reflows when Almarai
 * arrives ~1.6s later. Measured, that reflow was the single largest layout shift
 * on the site — it moved the hero, the category strip and the whole product
 * panel at once.
 *
 * The numbers below are measured, not guessed: Almarai renders a 58-character
 * Arabic sample at 2803.3px per 100px em with an ascent of 90% and a descent of
 * 21%. Each local face is scaled to match that advance width, so the swap is
 * invisible.
 *
 *   Geeza Pro (macOS)          2522.2  →  111.1%
 *   Noto Sans Arabic (Android) 2454.1  →  114.2%
 *   Segoe UI (Windows)         2533.1  →  110.7%
 */
@font-face {
  font-family: 'Almarai fallback';
  src: local('Geeza Pro');
  size-adjust: 111.1%;
  ascent-override: 90%;
  descent-override: 21%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Almarai fallback';
  src: local('Noto Sans Arabic');
  size-adjust: 114.2%;
  ascent-override: 90%;
  descent-override: 21%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Almarai fallback';
  src: local('Segoe UI');
  size-adjust: 110.7%;
  ascent-override: 90%;
  descent-override: 21%;
  line-gap-override: 0%;
}

@layer reset, tokens, base, layout, components, pages, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }

  :where(html) {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scrollbar-gutter: stable;
    interpolate-size: allow-keywords;
  }

  :where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol, fieldset, legend) {
    margin: 0;
    padding: 0;
  }

  :where(ul[role="list"], ol[role="list"], .site-footer__list, .mainnav__list, .navdrawer__list) {
    list-style: none;
  }

  :where(h1, h2, h3, h4, h5, h6) {
    font-size: inherit;
    font-weight: inherit;
    text-wrap: balance;
  }

  :where(p, li, figcaption) { text-wrap: pretty; }

  :where(img, picture, video, canvas, svg) {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
  }

  :where(input, button, textarea, select) {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
  }

  :where(button) { background: none; border: 0; cursor: pointer; }
  :where(a) { color: inherit; text-decoration: none; }
  :where(table) { border-collapse: collapse; border-spacing: 0; }
  :where(fieldset) { border: 0; }
  :where(dialog) { padding: 0; border: 0; background: none; color: inherit; max-inline-size: 100%; max-block-size: 100%; }
  :where(dialog)::backdrop { background: none; }
  :where(:target) { scroll-margin-block-start: calc(var(--header-h) + 2rem); }
  :where(p, h1, h2, h3, h4, li) { overflow-wrap: break-word; }

  [hidden] { display: none !important; }
  [popover] { margin: 0; border: 0; padding: 0; background: none; color: inherit; overflow: visible; }

  @media (prefers-reduced-motion: no-preference) {
    :where(html) { scroll-behavior: smooth; }
  }

  ::selection {
    background: var(--accent);
    color: var(--accent-ink);
  }

  :where(:focus-visible) {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: var(--r-4);
  }

  /* Scrollbars — themed, thin, unobtrusive. */
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  *::-webkit-scrollbar { inline-size: 10px; block-size: 10px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: var(--r-999);
    border: 3px solid var(--bg);
  }
  *::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

  @view-transition { navigation: auto; }
}

/* ==== 01-tokens.css ==== */
@layer tokens {
  /* Registered properties so gradients and meters can animate. */
  @property --grad-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
  @property --reveal { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
  @property --heat { syntax: '<number>'; inherits: false; initial-value: 0; }

  :root {
    /* ══ PRIMITIVES ═══════════════════════════════════════════════════
       SOUFRA is authored dark-first: a night-market palette of charred
       green-black, saffron, mint and harissa. The light theme is a
       pistachio-paper adaptation of the same identity.
       ═════════════════════════════════════════════════════════════════ */

    /* Green-ink neutral ramp */
    --ink-0:    oklch(1     0     0);
    --ink-25:   oklch(0.977 0.012 128);
    --ink-50:   oklch(0.958 0.016 130);
    --ink-100:  oklch(0.930 0.018 132);
    --ink-200:  oklch(0.878 0.020 138);
    --ink-300:  oklch(0.805 0.022 145);
    --ink-400:  oklch(0.690 0.024 152);
    --ink-500:  oklch(0.575 0.026 158);
    --ink-600:  oklch(0.462 0.028 160);
    --ink-700:  oklch(0.362 0.028 162);
    --ink-800:  oklch(0.276 0.026 164);
    --ink-900:  oklch(0.205 0.026 165);
    --ink-950:  oklch(0.158 0.020 166);
    --ink-1000: oklch(0.112 0.016 167);

    /* Saffron — the primary appetite colour */
    --saffron-100: oklch(0.966 0.038 88);
    --saffron-200: oklch(0.930 0.076 86);
    --saffron-300: oklch(0.888 0.118 84);
    --saffron-400: oklch(0.845 0.152 80);
    --saffron-500: oklch(0.800 0.165 76);
    --saffron-600: oklch(0.740 0.160 72);
    --saffron-700: oklch(0.650 0.140 68);
    --saffron-800: oklch(0.540 0.115 64);
    /* Solved against --ink-25: the lightest step that still clears 4.5:1, so the
       light theme buys its contrast without losing the palette's hue. */
    --harissa-600: oklch(0.570 0.150 29);
    --sky-700:     oklch(0.545 0.100 235);
    --ink-550:     oklch(0.545 0.026 158);

    /* Mint — freshness, vegetarian, in-stock */
    --mint-300: oklch(0.870 0.115 158);
    --mint-500: oklch(0.780 0.150 155);
    --mint-700: oklch(0.560 0.125 155);

    /* Harissa — heat, sale, urgency */
    --harissa-400: oklch(0.720 0.190 32);
    --harissa-500: oklch(0.640 0.205 29);
    --harissa-600: oklch(0.560 0.195 27);

    /* Support */
    --olive-600: oklch(0.520 0.080 132);
    --clay-400:  oklch(0.700 0.095 48);
    --plum-500:  oklch(0.540 0.140 330);
    --sky-500:   oklch(0.680 0.115 235);

    /* ══ RADII — deliberately sharp: this is a market stall, not a boutique */
    --r-2: 1px;  --r-4: 2px;  --r-6: 3px;  --r-10: 4px;
    --r-14: 6px; --r-20: 8px; --r-28: 10px; --r-999: 999px;

    /* ══ SPACE */
    --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
    --sp-5: 1.25rem;  --sp-6: 1.5rem;   --sp-7: 1.75rem;  --sp-8: 2rem;
    --sp-9: 2.25rem;  --sp-10: 2.5rem;  --sp-11: 3rem;    --sp-12: 3.5rem;
    --sp-14: clamp(3rem, 5vw, 4.5rem);
    --sp-16: clamp(3.5rem, 6vw, 6rem);
    --sp-20: clamp(4.5rem, 8vw, 8rem);
    --sp-24: clamp(6rem, 11vw, 11rem);
    --gutter: clamp(1rem, 3.2vw, 2.75rem);
    --section: clamp(3.25rem, 7vw, 7rem);

    /* ══ TYPE */
    --ff-ar: 'Almarai', 'Almarai fallback', 'Noto Sans Arabic', 'Geeza Pro', system-ui, sans-serif;
    --ff-lat: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ff-display: 'Archivo Black', 'Rubik', system-ui, sans-serif;
    /* Almarai sits in the middle on purpose: IBM Plex Mono has no Arabic, so
       "129 د.م." rendered its digits in Plex and its letters in Courier New —
       a system font, mid-line, in a shop that never asked for it. */
    --ff-mono: 'IBM Plex Mono', 'Almarai', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* 11px floor. Glanceable numerals only — a cart badge, a size count. */
    --fs-3xs:  clamp(0.6875rem, 0.67rem + 0.08vw, 0.72rem);
    /* 12px floor. Anything a person actually reads starts here. */
    --fs-2xs:  clamp(0.75rem, 0.72rem + 0.12vw, 0.80rem);
    --fs-xs:   clamp(0.775rem, 0.75rem + 0.14vw, 0.845rem);
    --fs-sm:   clamp(0.855rem, 0.82rem + 0.18vw, 0.94rem);
    --fs-base: clamp(0.95rem,  0.91rem + 0.22vw, 1.05rem);
    --fs-md:   clamp(1.06rem,  1.00rem + 0.30vw, 1.21rem);
    --fs-lg:   clamp(1.20rem,  1.10rem + 0.46vw, 1.46rem);
    --fs-xl:   clamp(1.40rem,  1.24rem + 0.75vw, 1.84rem);
    --fs-2xl:  clamp(1.70rem,  1.44rem + 1.20vw, 2.44rem);
    --fs-3xl:  clamp(2.05rem,  1.62rem + 1.95vw, 3.25rem);
    --fs-4xl:  clamp(2.50rem,  1.82rem + 3.10vw, 4.40rem);
    --fs-5xl:  clamp(3.05rem,  2.00rem + 4.80vw, 6.00rem);
    --fs-6xl:  clamp(3.60rem,  1.95rem + 7.60vw, 8.20rem);
    --fs-display: clamp(3.2rem, 0.9rem + 11.5vw, 11rem);

    --lh-tight: 0.92;
    --lh-snug: 1.1;
    --lh-normal: 1.6;
    --lh-loose: 1.85;
    --tracking-tight: -0.035em;
    --tracking-snug: -0.018em;
    --tracking-wide: 0.16em;

    /* ══ LAYOUT */
    --page: 1520px;
    --page-narrow: 820px;
    --header-h: 64px;
    --strip-h: 46px;
    --announce-h: 34px;
    --z-header: 100;
    --z-drawer: 200;
    --z-modal: 300;
    --z-toast: 400;

    /* ══ MOTION */
    --dur-1: 110ms;
    --dur-2: 200ms;
    --dur-3: 340ms;
    --dur-4: 560ms;
    --ease:        cubic-bezier(0.33, 0, 0.15, 1);
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
    --ease-spring: cubic-bezier(0.3, 1.5, 0.55, 1);
    --ease-smooth: cubic-bezier(0.65, 0.05, 0.36, 1);
  }

  /* ══════════════════ LIGHT — pistachio paper ══════════════════ */
  :root {
    color-scheme: light;

    --bg: var(--ink-25);
    --bg-sunken: var(--ink-100);
    --bg-elev: var(--ink-0);
    --surface: var(--ink-0);
    --surface-2: var(--ink-50);
    --surface-3: var(--ink-100);
    --glass: color-mix(in oklab, var(--ink-0) 78%, transparent);

    --text: var(--ink-900);
    --text-2: var(--ink-600);
    --text-3: var(--ink-550);
    --text-inv: var(--ink-25);

    --line: var(--ink-200);
    --line-2: var(--ink-100);
    --line-strong: var(--ink-400);

    --accent: var(--saffron-600);
    --accent-2: var(--mint-700);
    --accent-3: var(--harissa-500);
    --accent-ink: var(--ink-1000);
    /* Saffron-600 on the light ground is 2.23:1 — a focus ring no keyboard
       user can see. Saffron-800 keeps the hue at 4.90:1. */
    --accent-strong: var(--saffron-800);
    --focus-ring: var(--saffron-800);
    --sale-strong: var(--harissa-600);
    --info-strong: var(--sky-700);
    --accent-soft: var(--saffron-100);
    --accent-line: var(--saffron-300);

    --ok: var(--mint-700);
    --warn: var(--saffron-700);
    --danger: var(--harissa-600);
    --info: var(--sky-500);
    --sale: var(--harissa-500);
    --heat-color: var(--harissa-500);

    --shadow-color: 165 18% 18%;
    --sh-1: 0 1px 0 hsl(var(--shadow-color) / 0.08);
    --sh-2: 0 1px 0 hsl(var(--shadow-color) / 0.07), 0 4px 12px hsl(var(--shadow-color) / 0.07);
    --sh-3: 0 2px 0 hsl(var(--shadow-color) / 0.08), 0 12px 28px hsl(var(--shadow-color) / 0.10);
    --sh-4: 0 3px 0 hsl(var(--shadow-color) / 0.10), 0 26px 56px hsl(var(--shadow-color) / 0.16);
    --sh-inset: inset 0 1px 0 hsl(0 0% 100% / 0.7);
    --sh-focus: 0 0 0 3px color-mix(in oklab, var(--accent) 45%, transparent);
    --noise-opacity: 0.045;
    --noise-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --grid-line: color-mix(in oklab, var(--ink-900) 9%, transparent);
  }

  /* ══════════════════ DARK — night market (system) ══════════════════ */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;

      --bg: oklch(0.145 0.018 166);
      --bg-sunken: oklch(0.112 0.016 167);
      --bg-elev: oklch(0.186 0.021 166);
      --surface: oklch(0.186 0.021 166);
      --surface-2: oklch(0.226 0.023 167);
      --surface-3: oklch(0.272 0.025 168);
      --glass: color-mix(in oklab, oklch(0.145 0.018 166) 76%, transparent);

      --text: oklch(0.962 0.014 96);
      --text-2: oklch(0.782 0.016 104);
      --text-3: oklch(0.618 0.018 110);
      --text-inv: oklch(0.135 0.018 166);

      --line: oklch(0.302 0.024 168);
      --line-2: oklch(0.238 0.021 167);
      --line-strong: oklch(0.442 0.028 168);

      --accent: var(--saffron-400);
      --accent-2: var(--mint-500);
      --accent-3: var(--harissa-400);
      --accent-ink: oklch(0.150 0.030 82);
    --accent-strong: var(--accent);
    --focus-ring: var(--accent);
    --sale-strong: var(--sale);
    --info-strong: var(--info);
      --accent-soft: oklch(0.300 0.060 78);
      --accent-line: oklch(0.430 0.090 76);

      --ok: var(--mint-500);
      --warn: var(--saffron-400);
      --danger: var(--harissa-400);
      --info: oklch(0.760 0.110 235);
      --sale: var(--harissa-400);
      --heat-color: var(--harissa-400);

      --shadow-color: 167 45% 3%;
      --sh-1: 0 1px 0 hsl(var(--shadow-color) / 0.6);
      --sh-2: 0 1px 0 hsl(var(--shadow-color) / 0.55), 0 6px 16px hsl(var(--shadow-color) / 0.5);
      --sh-3: 0 2px 0 hsl(var(--shadow-color) / 0.6), 0 16px 34px hsl(var(--shadow-color) / 0.55);
      --sh-4: 0 3px 0 hsl(var(--shadow-color) / 0.65), 0 34px 70px hsl(var(--shadow-color) / 0.65);
      --sh-inset: inset 0 1px 0 hsl(80 60% 90% / 0.06);
      --sh-focus: 0 0 0 3px color-mix(in oklab, var(--accent) 50%, transparent);
      --noise-opacity: 0.065;
      --noise-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      --grid-line: color-mix(in oklab, oklch(0.962 0.014 96) 11%, transparent);
    }
  }

  /* ══════════════════ DARK — explicit ══════════════════ */
  :root[data-theme="dark"] {
    color-scheme: dark;

    --bg: oklch(0.145 0.018 166);
    --bg-sunken: oklch(0.112 0.016 167);
    --bg-elev: oklch(0.186 0.021 166);
    --surface: oklch(0.186 0.021 166);
    --surface-2: oklch(0.226 0.023 167);
    --surface-3: oklch(0.272 0.025 168);
    --glass: color-mix(in oklab, oklch(0.145 0.018 166) 76%, transparent);

    --text: oklch(0.962 0.014 96);
    --text-2: oklch(0.782 0.016 104);
    --text-3: oklch(0.618 0.018 110);
    --text-inv: oklch(0.135 0.018 166);

    --line: oklch(0.302 0.024 168);
    --line-2: oklch(0.238 0.021 167);
    --line-strong: oklch(0.442 0.028 168);

    --accent: var(--saffron-400);
    --accent-2: var(--mint-500);
    --accent-3: var(--harissa-400);
    --accent-ink: oklch(0.150 0.030 82);
    --accent-strong: var(--accent);
    --focus-ring: var(--accent);
    --sale-strong: var(--sale);
    --info-strong: var(--info);
    --accent-soft: oklch(0.300 0.060 78);
    --accent-line: oklch(0.430 0.090 76);

    --ok: var(--mint-500);
    --warn: var(--saffron-400);
    --danger: var(--harissa-400);
    --info: oklch(0.760 0.110 235);
    --sale: var(--harissa-400);
    --heat-color: var(--harissa-400);

    --shadow-color: 167 45% 3%;
    --sh-1: 0 1px 0 hsl(var(--shadow-color) / 0.6);
    --sh-2: 0 1px 0 hsl(var(--shadow-color) / 0.55), 0 6px 16px hsl(var(--shadow-color) / 0.5);
    --sh-3: 0 2px 0 hsl(var(--shadow-color) / 0.6), 0 16px 34px hsl(var(--shadow-color) / 0.55);
    --sh-4: 0 3px 0 hsl(var(--shadow-color) / 0.65), 0 34px 70px hsl(var(--shadow-color) / 0.65);
    --sh-inset: inset 0 1px 0 hsl(80 60% 90% / 0.06);
    --sh-focus: 0 0 0 3px color-mix(in oklab, var(--accent) 50%, transparent);
    --noise-opacity: 0.065;
    --noise-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --grid-line: color-mix(in oklab, oklch(0.962 0.014 96) 11%, transparent);
  }

  /* ══════════════════ LIGHT — explicit (beats the media query) ══════════════════ */
  :root[data-theme="light"] {
    color-scheme: light;

    --bg: var(--ink-25);
    --bg-sunken: var(--ink-100);
    --bg-elev: var(--ink-0);
    --surface: var(--ink-0);
    --surface-2: var(--ink-50);
    --surface-3: var(--ink-100);
    --glass: color-mix(in oklab, var(--ink-0) 78%, transparent);

    --text: var(--ink-900);
    --text-2: var(--ink-600);
    --text-3: var(--ink-550);
    --text-inv: var(--ink-25);

    --line: var(--ink-200);
    --line-2: var(--ink-100);
    --line-strong: var(--ink-400);

    --accent: var(--saffron-600);
    --accent-2: var(--mint-700);
    --accent-3: var(--harissa-500);
    --accent-ink: var(--ink-1000);
    /* Saffron-600 on the light ground is 2.23:1 — a focus ring no keyboard
       user can see. Saffron-800 keeps the hue at 4.90:1. */
    --accent-strong: var(--saffron-800);
    --focus-ring: var(--saffron-800);
    --sale-strong: var(--harissa-600);
    --info-strong: var(--sky-700);
    --accent-soft: var(--saffron-100);
    --accent-line: var(--saffron-300);

    --ok: var(--mint-700);
    --warn: var(--saffron-700);
    --danger: var(--harissa-600);
    --info: var(--sky-500);
    --sale: var(--harissa-500);
    --heat-color: var(--harissa-500);

    --shadow-color: 165 18% 18%;
    --sh-1: 0 1px 0 hsl(var(--shadow-color) / 0.08);
    --sh-2: 0 1px 0 hsl(var(--shadow-color) / 0.07), 0 4px 12px hsl(var(--shadow-color) / 0.07);
    --sh-3: 0 2px 0 hsl(var(--shadow-color) / 0.08), 0 12px 28px hsl(var(--shadow-color) / 0.10);
    --sh-4: 0 3px 0 hsl(var(--shadow-color) / 0.10), 0 26px 56px hsl(var(--shadow-color) / 0.16);
    --sh-inset: inset 0 1px 0 hsl(0 0% 100% / 0.7);
    --sh-focus: 0 0 0 3px color-mix(in oklab, var(--accent) 45%, transparent);
    --noise-opacity: 0.045;
    --noise-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --grid-line: color-mix(in oklab, var(--ink-900) 9%, transparent);
  }

  @media (min-width: 900px) { :root { --header-h: 72px; } }
  @media (prefers-contrast: more) {
    :root { --line: var(--ink-400); --text-2: var(--ink-800); --text-3: var(--ink-700); }
  }
}

/* ==== 02-base.css ==== */
@layer base {
  html {
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    min-block-size: 100svb;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-lat);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    font-synthesis-weight: none;
    overflow-x: clip;
    transition: background-color var(--dur-3) var(--ease), color var(--dur-3) var(--ease);
  }

  /* Arabic gets its own family and a touch more line-height for legibility. */
  :root:lang(ar) body {
    font-family: var(--ff-ar);
    line-height: 1.7;
    letter-spacing: 0;
  }
  /* One family for the whole Arabic page.
     Rubik and Archivo Black both ship Arabic subsets, so any Arabic text that
     reached them pulled 77 KB of a second family to draw glyphs Almarai had
     already drawn. Almarai carries the Latin runs too — brand names, prices,
     "2026" — and the page reads as one voice instead of two. */
  :root:lang(ar) {
    --ff-lat: 'Almarai', 'Almarai fallback', system-ui, sans-serif;
    --ff-display: 'Almarai', 'Almarai fallback', system-ui, sans-serif;
    --tracking-tight: 0;
    --tracking-snug: 0;
    --lh-tight: 1.12;
    --lh-snug: 1.3;
  }

  /* Display type: Latin uses the variable display face; Arabic keeps Tajawal heavy. */
  h1, h2, h3, .display {
    font-family: var(--ff-display);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: var(--lh-snug);
  }
  :root:lang(ar) h1,
  :root:lang(ar) h2,
  :root:lang(ar) h3,
  :root:lang(ar) .display { font-family: var(--ff-ar); font-weight: 800; }

  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-xl); }
  h4 { font-size: var(--fs-lg); font-weight: 600; }
  h5, h6 { font-size: var(--fs-md); font-weight: 600; }

  a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color var(--dur-1) var(--ease);
  }
  a:hover { color: var(--accent); }

  strong, b { font-weight: 700; }
  small { font-size: var(--fs-xs); }

  hr {
    border: 0;
    block-size: 1px;
    background: var(--line);
    margin-block: var(--sp-8);
  }

  code, kbd, samp, pre, .tabular, .mono {
    font-family: var(--ff-mono);
    font-size: 0.92em;
  }

  kbd {
    display: inline-flex;
    align-items: center;
    padding-inline: 0.45em;
    padding-block: 0.15em;
    border: 1px solid var(--line);
    border-block-end-width: 2px;
    border-radius: var(--r-6);
    background: var(--surface-2);
    font-size: var(--fs-2xs);
    color: var(--text-3);
  }

  ::marker { color: var(--accent); }

  /* ── Icons ─────────────────────────────────────────────────────────── */
  .icon {
    inline-size: 1.25em;
    block-size: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    vertical-align: middle;
    pointer-events: none;
  }
  .icon--sm { inline-size: 1em; block-size: 1em; }
  .icon--lg { inline-size: 1.6em; block-size: 1.6em; }
  /* Directional glyphs point "forward" — mirror them under RTL.
     Matching both the <svg> and its <use> flipped the same arrow twice and
     cancelled out, which is why every "عرض الكل ←" pointed the wrong way.
     :has() selects the wrapper once, and `scale` leaves `translate` — used by
     .link-arrow:hover — untouched. */
  :root:dir(rtl) .icon:has(use[href$="i-arrow-inline"]),
  :root:dir(rtl) .icon:has(use[href$="i-chevron-start"]),
  :root:dir(rtl) .icon:has(use[href$="i-chevron-end"]) { scale: -1 1; }

  /* ── Accessibility helpers ─────────────────────────────────────────── */
  .sr-only, .visually-hidden {
    position: absolute;
    /* Pinned, not left at its static position: an unpinned 1px box in an RTL flex
       row lands past the right edge and gives the whole page a horizontal scroll. */
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 1px; block-size: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .skip-link {
    position: fixed;
    inset-block-start: var(--sp-2);
    inset-inline-start: var(--sp-2);
    z-index: calc(var(--z-toast) + 10);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-10);
    background: var(--text);
    color: var(--text-inv);
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform var(--dur-2) var(--ease-out);
  }
  .skip-link:focus-visible { transform: translateY(0); }

  /* Hold back only what is about to change wording. Blanking the whole body
     hid the layout and the art as well, so an FR/EN visitor stared at nothing
     until the dictionary resolved — the art and the grid are language-neutral
     and can paint immediately. */
  html.i18n-pending :is([data-i18n], [data-i18n-attr]) { visibility: hidden; }

  /* ── Film grain ────────────────────────────────────────────────────── */
  /*
    This layer used to carry `mix-blend-mode`, and that one declaration was the
    entire scroll cost of the site: a fixed, full-viewport blended layer makes
    the compositor read the backdrop back and re-blend the whole viewport on
    every frame the page moves. Measured with tools/scroll-bench.mjs on
    shop.html at 390px, CPU x4 — 10 janky frames and a 183ms worst frame with
    it, 0 and 17ms with `mix-blend-mode: normal` forced on. Deleting the layer
    outright scored exactly the same as neutralising the blend, so the grain
    was never the problem; the blending was.

    So the blend is baked into the texture instead. The tile is now alpha-only
    speckles — black where the theme wanted `multiply`, white where it wanted
    `screen` — which composites as a plain quad and reproduces the same grain.
  */
  .noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: var(--noise-opacity);
    background-image: var(--noise-img);
    background-size: 220px 220px;
  }

  /* ── Tables ────────────────────────────────────────────────────────── */
  table { inline-size: 100%; font-size: var(--fs-sm); }
  th, td { padding: var(--sp-3) var(--sp-4); text-align: start; }
  thead th {
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-3);
    font-weight: 600;
    border-block-end: 1px solid var(--line);
  }
  tbody tr + tr { border-block-start: 1px solid var(--line-2); }

  /* ── Media placeholders driven by data-art ─────────────────────────── */
  /* Declarative art boxes: the SVG always fills the box it was given, and the box
     keeps its size before hydration so nothing shifts when the art lands. */
  [data-art] { display: block; }
  [data-art] > svg { inline-size: 100%; block-size: 100%; display: block; }
  [data-art]:not(.is-art-ready) { background: transparent; }
  [data-art]:not(.is-art-ready)::after {
    content: '';
    display: block;
    block-size: 100%;
    border-radius: inherit;
    background: color-mix(in oklab, var(--text) 4%, transparent);
  }
  [data-art].is-art-ready::after { content: none; }

  /* ── Reduced motion ────────────────────────────────────────────────── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* ==== 03-layout.css ==== */
@layer layout {
  /* ── Shell ─────────────────────────────────────────────────────────── */
  .container {
    inline-size: min(100% - var(--gutter) * 2, var(--page));
    margin-inline: auto;
  }
  .container--narrow { inline-size: min(100% - var(--gutter) * 2, var(--page-narrow)); }

  .main { min-block-size: 60svb; }

  .section { padding-block: var(--section); }
  .section--tight { padding-block: clamp(2.25rem, 4.5vw, 4rem); }
  .section--defer { content-visibility: auto; contain-intrinsic-size: auto 720px; }
  /* A short deferred block must reserve its own height: the ~130px brand marquee
     reserving 720px makes the page jerk upward ~590px as it is scrolled into. */
  .marquee.section--defer { contain-intrinsic-size: auto 140px; }
  .section--sunken { background: var(--bg-sunken); }

  /* The menu-board rule: a hairline that runs the full width above a section head. */
  .section--ruled { border-block-start: 1px solid var(--line); }

  .section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--sp-4) var(--sp-8);
    margin-block-end: var(--sp-8);
    padding-block-end: var(--sp-4);
    border-block-end: 2px solid var(--text);
  }
  .section__titlewrap { max-inline-size: 46ch; }
  .section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--accent-strong);
    font-weight: 600;
    margin-block-end: var(--sp-2);
  }
  .section__eyebrow::before {
    content: '';
    inline-size: 1.4rem;
    block-size: 2px;
    background: currentColor;
  }
  .section__title {
    font-size: var(--fs-3xl);
    line-height: var(--lh-snug);
    letter-spacing: var(--tracking-tight);
  }
  .section__sub { color: var(--text-2); margin-block-start: var(--sp-2); max-inline-size: 56ch; }
  .section__actions { display: flex; align-items: center; gap: var(--sp-3); }

  /* ── Primitives ────────────────────────────────────────────────────── */
  .grid { display: grid; gap: var(--sp-6); }
  .grid--products {
    /* Two per row on a phone. auto-fill with a 250px floor gives ONE column at
       390px, which is a card and a half per screen — a bad way to browse a
       catalogue and not what anyone expects from a shop on a phone. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(var(--sp-4), 2vw, var(--sp-7)) clamp(var(--sp-3), 1.4vw, var(--sp-5));
  }
  @media (min-width: 600px) {
    .grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
  }
  .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

  .stack { display: flex; flex-direction: column; gap: var(--sp-4); }
  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
  .split { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
  .full-bleed {
    inline-size: 100vw;
    margin-inline-start: 50%;
    transform: translateX(-50%);
  }
  :root:dir(rtl) .full-bleed { transform: translateX(50%); }

  /* ── Announcement bar ──────────────────────────────────────────────── */
  .announce {
    position: relative;
    z-index: calc(var(--z-header) + 1);
    display: flex;
    align-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    block-size: var(--announce-h);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .announce__viewport { flex: 1; overflow: hidden; min-inline-size: 0; }
  .announce__close {
    flex: none;
    margin-inline-end: var(--sp-2);
    color: inherit;
    opacity: 0.65;
  }
  .announce__close:hover { opacity: 1; background: color-mix(in oklab, var(--accent-ink) 12%, transparent); }
  .announce[hidden] { display: none; }

  /* ── Header: two decks, hard rules, no glass gimmicks ──────────────── */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--z-header);
    background: var(--bg);
    border-block-end: 1px solid var(--line);
    transition: box-shadow var(--dur-2) var(--ease);
  }
  .site-header.is-scrolled { box-shadow: var(--sh-2); }

  .site-header__bar {
    block-size: var(--header-h);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: clamp(0.1rem, 0.5vw, var(--sp-1));
    margin-inline-start: auto;
  }

  /* Inline search field — a grocery pattern, not a hidden overlay-only trigger. */
  .header-search {
    flex: 1;
    max-inline-size: 460px;
    margin-inline: clamp(var(--sp-3), 3vw, var(--sp-10));
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.6em var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    background: var(--surface-2);
    color: var(--text-3);
    font-size: var(--fs-sm);
    text-align: start;
    transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
  }
  .header-search:hover { border-color: var(--line-strong); background: var(--surface); }
  .header-search span { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-search kbd { flex: none; }

  .cart-button {
    padding-inline: var(--sp-4);
    margin-inline-start: var(--sp-2);
    position: relative;
  }
  /* No room for a running total beside the icon on a phone. */
  .cart-button__total { display: none; font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
  @media (min-width: 600px) { .cart-button__total { display: inline; } }

  /* ── Category strip: the second deck ───────────────────────────────── */
  /* Fixed height, always. Anything that changes the header's height while you
     scroll moves every pixel below it — which reads as flicker no matter how
     smoothly it is animated. The only scroll state left is a shadow, and a
     shadow costs no layout. */
  .catstrip {
    border-block-start: 1px solid var(--line-2);
    background: var(--bg);
    block-size: var(--strip-h);
    overflow: hidden;
  }
  .catstrip__inner {
    block-size: var(--strip-h);
    display: flex;
    align-items: stretch;
    gap: var(--sp-1);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .catstrip__inner::-webkit-scrollbar { display: none; }
  .catstrip__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding-inline: var(--sp-4);
    white-space: nowrap;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-2);
    border-block-end: 2px solid transparent;
    transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  }
  .catstrip__link:first-child { padding-inline-start: 0; }
  .catstrip__link:hover { color: var(--text); }
  .catstrip__link.is-active { color: var(--text); border-block-end-color: var(--accent); font-weight: 600; }
  .catstrip__link--sale { color: var(--accent-3); font-weight: 600; }
  .catstrip__count {
    font-family: var(--ff-mono);
    font-size: var(--fs-3xs);
    color: var(--text-3);
    padding-inline: 4px;
    border: 1px solid var(--line);
    border-radius: var(--r-4);
  }
  .catstrip__spacer { flex: 1; min-inline-size: var(--sp-4); }
  /* The delivery-slot note is a desktop affordance: the category strip is a
     swipeable rail on a phone and every millimetre of it is a category. */
  .catstrip__slot {
    display: none;
    align-items: center;
    gap: var(--sp-2);
    padding-inline: var(--sp-4);
    white-space: nowrap;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--accent-2);
    border-inline-start: 1px solid var(--line-2);
  }
  @media (min-width: 900px) { .catstrip__slot { display: inline-flex; } }

  /* ── Brand ─────────────────────────────────────────────────────────── */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    font-family: var(--ff-display);
    color: var(--text);
    flex: none;
  }
  .brand:hover { color: var(--text); }
  .brand__mark {
    inline-size: 30px;
    block-size: 30px;
    color: var(--text);
    flex: none;
    transition: transform var(--dur-3) var(--ease-spring);
  }
  .brand:hover .brand__mark { transform: rotate(-6deg) scale(1.08); }
  .brand__word { display: inline-flex; font-size: var(--fs-lg); line-height: 1; letter-spacing: var(--tracking-snug); }
  .brand__ar { display: none; }
  :root:lang(ar) .brand__ar { display: inline; font-family: var(--ff-ar); font-weight: 800; }
  :root:lang(ar) .brand__lat { display: none; }
  .brand--lg .brand__mark { inline-size: 42px; block-size: 42px; }
  .brand--lg .brand__word { font-size: var(--fs-xl); }

  /* ── Popover (language / currency / theme) ─────────────────────────── */
  .popover-host { position: relative; display: inline-flex; }
  .lang-btn { position: relative; }
  .lang-btn__code {
    position: absolute;
    /* Anchored to the button's centre, not its edge: the button is 40px beside a
       mouse and 44px under a thumb, and an edge-anchored badge drifts away from
       the globe when it grows. */
    inset-block-end: calc(50% - 17px);
    inset-inline-end: calc(50% - 18px);
    font-family: var(--ff-mono);
    font-size: var(--fs-3xs);
    font-weight: 600;
    line-height: 1;
    padding: 1px 2px;
    border-radius: var(--r-2);
    background: var(--accent);
    color: var(--accent-ink);
  }

  .popover {
    position: absolute;
    inset: auto;
    inset-block-start: calc(var(--header-h) - 10px);
    inset-inline-end: var(--gutter);
    inline-size: min(260px, calc(100vw - 2rem));
    padding: var(--sp-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-14);
    background: var(--bg-elev);
    box-shadow: var(--sh-4);
    opacity: 0;
    translate: 0 -6px;
    transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out),
                overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete;
  }
  .popover:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .popover:popover-open { opacity: 0; translate: 0 -6px; } }
  .popover::backdrop { background: transparent; }

  .popover__group + .popover__group {
    margin-block-start: var(--sp-4);
    padding-block-start: var(--sp-4);
    border-block-start: 1px dashed var(--line);
  }
  .popover__label {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-3);
    margin-block-end: var(--sp-2);
  }
  .popover__options { display: grid; gap: 2px; }
  .popover__options--row { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--sp-1); }
  .popover__opt {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--sp-2);
    inline-size: 100%;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-6);
    font-size: var(--fs-sm);
    color: var(--text-2);
    text-align: start;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  }
  .popover__opt:hover { background: var(--surface-2); color: var(--text); }
  .popover__opt.is-active { color: var(--accent-ink); font-weight: 600; background: var(--accent); }
  .popover__options--row .popover__opt {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-size: var(--fs-2xs);
    padding-block: var(--sp-2);
  }
  .popover__flag { inline-size: 20px; block-size: 14px; border-radius: 2px; overflow: hidden; flex: none; }
  .popover__check { margin-inline-start: auto; opacity: 0; }
  .popover__opt.is-active .popover__check { opacity: 1; }

  /* ── Footer: a receipt ─────────────────────────────────────────────── */
  .site-footer {
    margin-block-start: var(--section);
    background: var(--bg-sunken);
    border-block-start: 1px solid var(--line);
  }
  .site-footer__band {
    background: var(--text);
    color: var(--text-inv);
  }
  .site-footer__bandinner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: var(--sp-8);
  }
  .site-footer__bandtext {
    font-family: var(--ff-display);
    font-size: var(--fs-2xl);
    letter-spacing: var(--tracking-tight);
  }
  :root:lang(ar) .site-footer__bandtext { font-family: var(--ff-ar); font-weight: 800; }

  .site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10) var(--sp-8);
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
  }
  @media (min-width: 768px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.7fr; } }

  .site-footer__tagline { color: var(--text-2); font-size: var(--fs-sm); max-inline-size: 36ch; margin-block: var(--sp-4) var(--sp-6); }
  .site-footer__socials { display: flex; gap: var(--sp-2); }
  .site-footer__title {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-3);
    font-weight: 600;
    padding-block-end: var(--sp-3);
    margin-block-end: var(--sp-4);
    border-block-end: 1px dashed var(--line-strong);
  }
  .site-footer__list { display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
  .site-footer__list a, .site-footer__list .linkish { color: var(--text-2); }
  .site-footer__list a:hover, .site-footer__list .linkish:hover { color: var(--accent); }
  .site-footer__newstext { color: var(--text-2); font-size: var(--fs-sm); margin-block-end: var(--sp-4); }
  .site-footer__contact {
    list-style: none;
    display: grid;
    gap: var(--sp-2);
    margin-block-start: var(--sp-6);
    font-size: var(--fs-sm);
    color: var(--text-2);
  }
  .site-footer__contact li { display: flex; align-items: center; gap: var(--sp-2); }

  .site-footer__bottom { border-block-start: 1px dashed var(--line-strong); }
  .site-footer__bottominner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: var(--sp-6);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--text-3);
  }
  .site-footer__legal { display: flex; gap: var(--sp-4); list-style: none; }
  .site-footer__legal a:hover { color: var(--accent); }
  .payments { display: flex; gap: var(--sp-2); list-style: none; }
  .payments__item { inline-size: 38px; block-size: 24px; color: var(--text-3); opacity: 0.85; }

  /* ── Mobile bottom nav ─────────────────────────────────────────────── */
  .bottomnav {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: calc(var(--z-header) - 1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--bg-elev);
    border-block-start: 1px solid var(--line-strong);
    padding-block-end: env(safe-area-inset-bottom, 0);
  }
  .bottomnav__item {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding-block: var(--sp-2);
    /* Primary navigation on a phone — it has to be readable, not glanceable. */
    font-size: var(--fs-2xs);
    color: var(--text-3);
    transition: color var(--dur-1) var(--ease);
  }
  .bottomnav__item:hover, .bottomnav__item.is-active { color: var(--accent-strong); }
  .bottomnav__item .badge { inset-block-start: 2px; inset-inline-end: calc(50% - 20px); }
  /* The bottom bar floats over the page on phones, so the page reserves room for
     it — and gives that room back once the bar is gone. */
  body { padding-block-end: calc(58px + env(safe-area-inset-bottom, 0px)); }
  @media (min-width: 900px) { body { padding-block-end: 0; } }

  /* ── Back to top ───────────────────────────────────────────────────── */
  .to-top {
    position: fixed;
    inset-block-end: calc(var(--sp-6) + 58px);
    inset-inline-end: var(--sp-5);
    z-index: calc(var(--z-header) - 2);
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: var(--r-10);
    background: var(--text);
    color: var(--text-inv);
    box-shadow: var(--sh-3);
    opacity: 0;
    scale: 0.8;
    pointer-events: none;
    /* Without this the hidden button still holds a tab stop at the top of every
       page, and focus appears to vanish into nothing. */
    visibility: hidden;
    transition: opacity var(--dur-2) var(--ease), scale var(--dur-2) var(--ease-spring), visibility var(--dur-2);
  }
  .to-top.is-visible { opacity: 1; scale: 1; pointer-events: auto; visibility: visible; }
  .to-top:hover { background: var(--accent); color: var(--accent-ink); }
  @media (min-width: 900px) { .to-top { inset-block-end: var(--sp-8); } }

  /* ── Compare dock ──────────────────────────────────────────────────── */
  .compare-bar {
    position: fixed;
    /* Sits above the bottom bar on a phone, on the floor once it is gone. */
    inset-block-end: calc(58px + env(safe-area-inset-bottom, 0px));
    inset-inline: 0;
    z-index: calc(var(--z-header) - 1);
    background: var(--bg-elev);
    border-block-start: 2px solid var(--accent);
    box-shadow: var(--sh-4);
    translate: 0 100%;
    transition: translate var(--dur-3) var(--ease-out), display var(--dur-3) allow-discrete;
  }
  @media (min-width: 900px) { .compare-bar { inset-block-end: 0; } }
  .compare-bar:not([hidden]) { translate: 0 0; }
  @starting-style { .compare-bar:not([hidden]) { translate: 0 100%; } }

  .compare-bar__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding-block: var(--sp-3);
    flex-wrap: wrap;
  }
  .compare-bar__label { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; }
  .compare-bar__items { display: flex; gap: var(--sp-2); flex: 1; min-inline-size: 0; overflow-x: auto; }
  .compare-bar__actions { display: flex; gap: var(--sp-2); margin-inline-start: auto; }
}

/* ==== 04-components.css ==== */
@layer components {
  /* ══ Buttons ═══════════════════════════════════════════════════════ */
  .btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-bd: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding-inline: var(--sp-6);
    padding-block: 0.72em;
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-999);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    isolation: isolate;
    transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
                border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease),
                box-shadow var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);

    &:active { transform: translateY(1px) scale(0.99); }
    &:disabled, &.is-disabled { opacity: 0.45; pointer-events: none; }
  }

  .btn--primary {
    --btn-bg: var(--text);
    --btn-fg: var(--text-inv);
    box-shadow: var(--sh-2), var(--sh-inset);
    &:hover { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: var(--sh-3); }
  }
  .btn--accent {
    --btn-bg: var(--accent);
    --btn-fg: var(--accent-ink);
    box-shadow: var(--sh-2);
    &:hover { --btn-bg: color-mix(in oklab, var(--accent) 84%, var(--text)); }
  }
  .btn--outline {
    --btn-bd: var(--line-strong);
    --btn-fg: var(--text);
    &:hover { --btn-bd: var(--text); background: var(--surface-2); }
  }
  .btn--ghost {
    --btn-fg: var(--text-2);
    &:hover { --btn-fg: var(--text); background: var(--surface-2); }
  }
  .btn--soft {
    --btn-bg: color-mix(in oklab, var(--accent) 14%, transparent);
    --btn-fg: color-mix(in oklab, var(--accent) 78%, var(--text));
    &:hover { --btn-bg: color-mix(in oklab, var(--accent) 24%, transparent); }
  }
  .btn--danger {
    --btn-bg: color-mix(in oklab, var(--danger) 12%, transparent);
    --btn-fg: var(--danger);
    &:hover { --btn-bg: var(--danger); --btn-fg: var(--text-inv); }
  }
  .btn--sm { padding-inline: var(--sp-4); padding-block: 0.5em; font-size: var(--fs-xs); }
  .btn--lg { padding-inline: var(--sp-8); padding-block: 0.95em; font-size: var(--fs-base); }
  .btn--block { inline-size: 100%; }
  .btn--icon { padding-inline: 0.72em; }

  .btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    &::after {
      content: '';
      position: absolute;
      inline-size: 1.05em; block-size: 1.05em;
      border: 2px solid color-mix(in oklab, var(--btn-fg) 35%, transparent);
      border-block-start-color: var(--btn-fg);
      border-radius: var(--r-999);
      animation: spin 0.7s linear infinite;
    }
  }

  .icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    inline-size: 40px;
    block-size: 40px;
    border-radius: var(--r-999);
    color: var(--text-2);
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
    &:hover { background: var(--surface-2); color: var(--text); }
    &:active { transform: scale(0.94); }
    &.is-active { color: var(--accent); }
  }
  .icon-btn--tiny { inline-size: 28px; block-size: 28px; font-size: var(--fs-sm); }
  .icon-btn--lg { inline-size: 48px; block-size: 48px; }
  .icon-btn--soft { background: var(--surface-2); &:hover { background: var(--accent); color: var(--accent-ink); } }
  .icon-btn--solid { background: var(--surface); box-shadow: var(--sh-2); }

  .burger {
    display: grid;
    gap: 4px;
    inline-size: 18px;
    i { display: block; block-size: 1.6px; background: currentColor; border-radius: 2px; transition: transform var(--dur-2) var(--ease), opacity var(--dur-1); }
  }

  .linkish {
    color: var(--text-2);
    text-align: start;
    cursor: pointer;
    &:hover { color: var(--accent); }
  }
  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    .icon { transition: translate var(--dur-2) var(--ease-out); }
    &:hover { color: var(--accent); }
    &:hover .icon { translate: 4px 0; }
  }
  :root:dir(rtl) .link-arrow:hover .icon { translate: -4px 0; }

  /* ══ Badges, tags, chips ═══════════════════════════════════════════ */
  .badge {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: 4px;
    min-inline-size: 17px;
    block-size: 17px;
    padding-inline: 4px;
    display: grid;
    place-items: center;
    border-radius: var(--r-999);
    background: var(--text);
    color: var(--text-inv);
    font-size: var(--fs-3xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    animation: pop-in var(--dur-3) var(--ease-spring);
  }
  .badge--accent { background: var(--accent); color: var(--accent-ink); }

  .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px var(--sp-2);
    border-radius: var(--r-4);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--surface-3);
    color: var(--text-2);
    backdrop-filter: blur(6px);
  }
  .tag--new { background: var(--text); color: var(--text-inv); }
  /* White on harissa is 3.70:1 in light and 2.77:1 in dark at 11px. */
  .tag--sale { background: var(--sale); color: var(--accent-ink); }
  .tag--best { background: var(--accent); color: var(--accent-ink); }
  .tag--soon { background: color-mix(in oklab, var(--info) 20%, var(--surface)); color: var(--info-strong); }

  .chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.42em var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--r-999);
    background: var(--surface);
    color: var(--text-2);
    font-size: var(--fs-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-1) var(--ease);
    &:hover { border-color: var(--text); color: var(--text); }
    .icon { inline-size: 0.9em; block-size: 0.9em; opacity: 0.6; }
  }
  .chip--active, .chip.is-active {
    background: var(--text);
    border-color: var(--text);
    color: var(--text-inv);
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px var(--sp-2);
    border-radius: var(--r-4);
    background: color-mix(in oklab, var(--sale) 14%, transparent);
    color: var(--sale-strong);
    font-size: var(--fs-2xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  /* ══ Rating ════════════════════════════════════════════════════════ */
  .rating { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-3); }
  .rating__stars { display: inline-flex; gap: 1px; color: var(--accent); }
  .rating__stars .icon { inline-size: 0.95em; block-size: 0.95em; }
  .rating__stars .icon[data-filled] { fill: currentColor; }
  .rating__value { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

  /* ══ Price ═════════════════════════════════════════════════════════ */
  .price {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-2);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
  }
  .price--old {
    font-weight: 500;
    font-size: 0.85em;
    color: var(--text-3);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
  }
  .price--sale { color: var(--sale); }

  /* ══ Swatches & sizes ══════════════════════════════════════════════ */
  .swatch {
    position: relative;
    inline-size: 22px;
    block-size: 22px;
    border-radius: var(--r-999);
    border: 1px solid color-mix(in oklab, var(--text) 22%, transparent);
    background: var(--sw, var(--surface-3));
    cursor: pointer;
    transition: transform var(--dur-1) var(--ease-spring), box-shadow var(--dur-1) var(--ease);
    &:hover { transform: scale(1.14); }
    &.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text); }
  }
  .swatch--lg { inline-size: 34px; block-size: 34px; }

  .size-btn {
    position: relative;
    min-inline-size: 3.1rem;
    padding: 0.55em var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    background: var(--surface);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all var(--dur-1) var(--ease);
    &:hover:not(:disabled) { border-color: var(--text); color: var(--text); }
    &.is-active { background: var(--text); border-color: var(--text); color: var(--text-inv); }
    &:disabled, &.is-disabled {
      color: var(--text-3);
      cursor: not-allowed;
      background: var(--surface-2);
      overflow: hidden;
      &::after {
        content: '';
        position: absolute;
        inset-block-start: 50%;
        inset-inline: -10%;
        block-size: 1px;
        background: var(--line-strong);
        rotate: -18deg;
      }
    }
  }

  /* ══ Product card ══════════════════════════════════════════════════ */
  .product-card {
    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    isolation: isolate;
  }
  .product-card__link { display: contents; color: inherit; }
  .product-card__media {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--r-20);
    overflow: hidden;
    background:
      radial-gradient(120% 100% at 70% 15%, color-mix(in oklab, var(--card-tint, var(--accent)) 22%, transparent), transparent 62%),
      var(--surface-2);
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    transition: box-shadow var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease), transform var(--dur-3) var(--ease-out);
  }
  .product-card__art {
    inline-size: 92%;
    aspect-ratio: 640 / 400;
    transform-origin: center bottom;
    filter: drop-shadow(0 10px 16px hsl(var(--shadow-color) / 0.16));
    transition: scale var(--dur-4) var(--ease-spring), translate var(--dur-4) var(--ease-spring);
  }
  /*
    A photograph fills its box; a drawing floats inside it. The drawn dish gets
    92% of the width and a drop-shadow so it reads as an object standing on a
    surface — a photograph already carries its own ground and its own light, so
    insetting it just puts a frame around a frame.
  */
  .product-photo {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    grid-area: 1 / 1;
    border-radius: inherit;
    /* Composited: the tinted ground behind the box is what shows while the file
       is still in flight, so nothing flashes white and nothing reflows. */
    transition: scale var(--dur-4) var(--ease-spring);
  }
  .product-card:hover .product-photo { scale: 1.04; }

  .product-card:hover .product-card__media { box-shadow: var(--sh-3); border-color: var(--accent-line); }
  .product-card:hover .product-card__art { scale: 1.05; translate: 0 -2%; }

  .product-card__tags {
    position: absolute;
    inset-block-start: var(--sp-3);
    inset-inline-start: var(--sp-3);
    display: grid;
    gap: 4px;
    justify-items: start;
    z-index: 2;
  }
  .product-card__tools {
    position: absolute;
    inset-block-start: var(--sp-2);
    inset-inline-end: var(--sp-2);
    display: grid;
    gap: 4px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    translate: 6px 0;
    transition: opacity var(--dur-2) var(--ease), translate var(--dur-2) var(--ease-out);
  }
  .product-card:hover .product-card__tools,
  .product-card:focus-within .product-card__tools { opacity: 1; pointer-events: auto; translate: 0 0; }
  @media (hover: none) { .product-card__tools { opacity: 1; pointer-events: auto; translate: 0 0; } }
  .product-card__tools .icon-btn {
    inline-size: 34px; block-size: 34px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    box-shadow: var(--sh-1);
    &.is-active { color: var(--sale); }
    &.is-active .icon { fill: currentColor; }
  }

  .product-card__quick {
    position: absolute;
    inset-inline: var(--sp-3);
    inset-block-end: var(--sp-3);
    z-index: 2;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    translate: 0 8px;
    transition: opacity var(--dur-2) var(--ease), translate var(--dur-2) var(--ease-out);
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
  }
  .product-card:hover .product-card__quick,
  .product-card:focus-within .product-card__quick { opacity: 1; pointer-events: auto; translate: 0 0; }
  /* Quick view is a hover affordance. There is no hover on a phone, and a
     permanent version of it would cover a third of every card. The tile itself
     opens the product; the tools above still add to the list. */
  @media (hover: none) { .product-card__quick { display: none; } }
  @container (max-width: 220px) { .product-card__quick { display: none; } }

  .product-card__body { display: grid; gap: var(--sp-1); }
  .product-card__brand {
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-3);
  }
  .product-card__title {
    font-family: var(--ff-lat);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: var(--tracking-snug);
  }
  :root:lang(ar) .product-card__title { font-family: var(--ff-ar); font-weight: 700; }
  .product-card__price { display: flex; align-items: baseline; gap: var(--sp-2); margin-block-start: 2px; font-size: var(--fs-base); }
  .product-card__swatches { display: flex; gap: 5px; margin-block-start: var(--sp-2); }
  .product-card__swatches .swatch { inline-size: 15px; block-size: 15px; }
  .product-card__oos {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: color-mix(in oklab, var(--bg) 62%, transparent);
    backdrop-filter: blur(2px) grayscale(0.6);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-2);
  }

  /* List view */
  .product-card--list {
    flex-direction: row;
    gap: var(--sp-5);
    padding: var(--sp-4);
    border: 1px solid var(--line-2);
    border-radius: var(--r-20);
    background: var(--surface);
    .product-card__media { inline-size: clamp(120px, 26%, 230px); aspect-ratio: 1; flex: none; }
    .product-card__body { flex: 1; gap: var(--sp-2); align-content: start; }
    .product-card__quick { position: static; opacity: 1; translate: 0; inline-size: fit-content; }
  }
  .product-card--list .product-card__desc {
    font-size: var(--fs-sm);
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Skeleton card */
  .product-card.is-skeleton {
    .product-card__media { background: var(--surface-2); }
    .sk { border-radius: var(--r-6); background: var(--surface-2); }
  }

  /* ══ Forms ═════════════════════════════════════════════════════════ */
  .field { display: grid; gap: var(--sp-2); }
  .field__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }
  .field__label .req { color: var(--danger); }
  .field__hint { font-size: var(--fs-2xs); color: var(--text-3); }
  .field__error {
    font-size: var(--fs-2xs);
    color: var(--danger);
    display: none;
    align-items: center;
    gap: 4px;
  }
  .field.has-error .field__error { display: flex; }

  .input, .select, .textarea {
    inline-size: 100%;
    padding: 0.78em var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-sm);
    transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
    &::placeholder { color: var(--text-3); }
    &:hover { border-color: var(--line-strong); }
    &:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--sh-focus); }
  }
  .textarea { min-block-size: 8rem; resize: vertical; field-sizing: content; max-block-size: 20rem; }
  .select {
    appearance: none;
    padding-inline-end: var(--sp-10);
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: right 1.15rem top 55%, right 0.85rem top 55%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
  }
  :root:dir(rtl) .select { background-position: left 1.15rem top 55%, left 0.85rem top 55%; }
  .field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
  .input:user-invalid:not(:placeholder-shown) { border-color: var(--danger); }

  .checkbox, .radio {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--text-2);
    input {
      appearance: none;
      inline-size: 18px; block-size: 18px;
      flex: none;
      border: 1.5px solid var(--line-strong);
      background: var(--surface);
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: all var(--dur-1) var(--ease);
      &::after { content: ''; opacity: 0; transition: opacity var(--dur-1) var(--ease); }
      &:checked { background: var(--text); border-color: var(--text); }
      &:checked::after { opacity: 1; }
      &:focus-visible { box-shadow: var(--sh-focus); outline: none; }
    }
    &:hover { color: var(--text); }
  }
  .checkbox input { border-radius: var(--r-4); }
  .checkbox input::after {
    inline-size: 10px; block-size: 6px;
    border: 2px solid var(--text-inv);
    border-block-start: 0; border-inline-end: 0;
    rotate: -45deg;
    translate: 0 -1px;
  }
  .radio input { border-radius: var(--r-999); }
  .radio input::after { inline-size: 7px; block-size: 7px; border-radius: var(--r-999); background: var(--text-inv); }

  .switch {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--text-2);
    input {
      appearance: none;
      inline-size: 38px; block-size: 22px;
      flex: none;
      border-radius: var(--r-999);
      background: var(--line-strong);
      position: relative;
      cursor: pointer;
      transition: background-color var(--dur-2) var(--ease);
      &::after {
        content: '';
        position: absolute;
        inset-block-start: 3px;
        inset-inline-start: 3px;
        inline-size: 16px; block-size: 16px;
        border-radius: var(--r-999);
        background: #fff;
        transition: translate var(--dur-2) var(--ease-spring);
        box-shadow: var(--sh-1);
      }
      &:checked { background: var(--accent); }
      &:checked::after { translate: 16px 0; }
      &:focus-visible { box-shadow: var(--sh-focus); outline: none; }
    }
  }
  :root:dir(rtl) .switch input:checked::after { translate: -16px 0; }

  .qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-999);
    background: var(--surface);
    overflow: hidden;
  }
  .qty__btn {
    inline-size: 34px; block-size: 34px;
    display: grid; place-items: center;
    color: var(--text-2);
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1);
    &:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
    &:disabled { opacity: 0.35; cursor: not-allowed; }
  }
  .qty__input {
    inline-size: 2.6rem;
    text-align: center;
    border: 0;
    background: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    &:focus-visible { outline: none; }
    &::-webkit-inner-spin-button { appearance: none; }
    appearance: textfield;
  }

  .form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  .form-row { display: grid; gap: var(--sp-4); }
  @media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

  /* ══ Breadcrumb / pagination ═══════════════════════════════════════ */
  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--text-3);
    list-style: none;
    li { display: flex; align-items: center; gap: var(--sp-2); }
    li + li::before { content: '/'; color: var(--line-strong); }
    a:hover { color: var(--accent); }
    [aria-current] { color: var(--text); font-weight: 600; }
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    margin-block-start: var(--sp-12);
  }
  .pagination__btn {
    min-inline-size: 40px;
    block-size: 40px;
    padding-inline: var(--sp-3);
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    font-size: var(--fs-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-2);
    transition: all var(--dur-1) var(--ease);
    &:hover:not(:disabled) { border-color: var(--text); color: var(--text); }
    &.is-active { background: var(--text); border-color: var(--text); color: var(--text-inv); }
    &:disabled { opacity: 0.35; pointer-events: none; }
  }
  .pagination__gap { color: var(--text-3); padding-inline: var(--sp-1); }

  /* ══ Accordion / tabs / stepper ════════════════════════════════════ */
  .accordion { border-block-start: 1px solid var(--line); }
  .accordion__item { border-block-end: 1px solid var(--line); }
  .accordion__trigger {
    inline-size: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: var(--sp-5);
    text-align: start;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text);
    .icon { flex: none; color: var(--text-3); transition: rotate var(--dur-2) var(--ease); }
    &[aria-expanded="true"] .icon { rotate: 180deg; color: var(--accent); }
    &:hover { color: var(--accent); }
  }
  .accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--dur-3) var(--ease-out), visibility var(--dur-3);
    > div { overflow: hidden; }
    &.is-open { grid-template-rows: 1fr; visibility: visible; }
  }
  .accordion__body { padding-block-end: var(--sp-5); color: var(--text-2); font-size: var(--fs-sm); max-inline-size: 72ch; }

  .tabs__list {
    display: flex;
    gap: var(--sp-1);
    overflow-x: auto;
    border-block-end: 1px solid var(--line);
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
  }
  .tabs__tab {
    position: relative;
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
    transition: color var(--dur-1) var(--ease);
    &::after {
      content: '';
      position: absolute;
      inset-block-end: -1px;
      inset-inline: var(--sp-4);
      block-size: 2px;
      background: var(--text);
      scale: 0 1;
      transition: scale var(--dur-2) var(--ease-out);
    }
    &:hover { color: var(--text-2); }
    &.is-active { color: var(--text); }
    &.is-active::after { scale: 1 1; }
  }
  .tabs__panel { padding-block-start: var(--sp-6); }
  .tabs__panel[hidden] { display: none; }

  .stepper { display: flex; align-items: center; gap: var(--sp-2); list-style: none; }
  .stepper__item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--text-3);
    flex: 1;
    min-inline-size: 0;
    &::after {
      content: '';
      flex: 1;
      block-size: 1px;
      background: var(--line);
    }
    &:last-child::after { display: none; }
  }
  .stepper__num {
    inline-size: 26px; block-size: 26px;
    display: grid; place-items: center;
    border-radius: var(--r-999);
    border: 1px solid var(--line-strong);
    font-size: var(--fs-2xs);
    font-weight: 700;
    flex: none;
    transition: all var(--dur-2) var(--ease);
  }
  /* Step names do not fit beside the numbers on a narrow phone. */
  .stepper__label { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stepper__item.is-active { color: var(--text); font-weight: 600; }
  .stepper__item.is-active .stepper__num { background: var(--text); border-color: var(--text); color: var(--text-inv); }
  .stepper__item.is-done { color: var(--accent); }
  .stepper__item.is-done .stepper__num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  @media (min-width: 600px) { .stepper__label { display: inline; } }

  /* ══ Misc ══════════════════════════════════════════════════════════ */
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-14); }
  .table--sizes tbody td { font-variant-numeric: tabular-nums; }
  .table tbody tr:hover { background: var(--surface-2); }

  .empty-state {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: var(--sp-4);
    padding-block: clamp(3rem, 8vw, 6rem);
    color: var(--text-2);
    [data-art] { inline-size: min(260px, 60vw); aspect-ratio: 4/3; color: var(--accent); }
    h2, h3 { color: var(--text); }
    p { max-inline-size: 42ch; }
  }

  .skeleton {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    border-radius: var(--r-6);
    &::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--text) 7%, transparent), transparent);
      animation: shimmer 1.4s infinite;
    }
  }

  .progress {
    block-size: 5px;
    border-radius: var(--r-999);
    background: var(--surface-3);
    overflow: hidden;
  }
  .progress__bar {
    block-size: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: inherit;
    transition: inline-size var(--dur-4) var(--ease-out);
  }

  .marquee { overflow: hidden; display: flex; }
  .marquee__track {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    flex: none;
    min-inline-size: 100%;
    animation: marquee-scroll var(--speed, 34s) linear infinite;
    will-change: transform;
  }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .marquee__item { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
  .marquee__sep { opacity: 0.4; }
  :root:dir(rtl) .marquee__track { animation-name: marquee-scroll-rtl; }

  /* ══ Overlays ══════════════════════════════════════════════════════ */
  .scrim {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-drawer) - 1);
    background: color-mix(in oklab, var(--ink-1000) 46%, transparent);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity var(--dur-3) var(--ease), display var(--dur-3) allow-discrete;
    &:not([hidden]) { opacity: 1; }
    @starting-style { &:not([hidden]) { opacity: 0; } }
  }

  .drawer {
    position: fixed;
    inset-block: 0;
    z-index: var(--z-drawer);
    inline-size: min(420px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    box-shadow: var(--sh-4);
    transition: translate var(--dur-3) var(--ease-out), display var(--dur-3) allow-discrete;
  }
  .drawer--cart, .drawer--filters { inset-inline-end: 0; translate: 101% 0; }
  .drawer--nav { inset-inline-start: 0; translate: -101% 0; }
  :root:dir(rtl) .drawer--cart, :root:dir(rtl) .drawer--filters { translate: -101% 0; }
  :root:dir(rtl) .drawer--nav { translate: 101% 0; }
  .drawer:not([hidden]) { translate: 0 0 !important; }
  @starting-style { .drawer--cart:not([hidden]), .drawer--filters:not([hidden]) { translate: 101% 0 !important; } }

  .drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-6);
    border-block-end: 1px solid var(--line);
    flex: none;
  }
  .drawer__title { font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--sp-2); }
  .drawer__count { font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; }
  .drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6); }
  .drawer__foot {
    flex: none;
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-6) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid var(--line);
    background: var(--surface);
  }
  .drawer__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); font-size: var(--fs-sm); }
  .drawer__row--muted { color: var(--text-3); }
  .drawer__row--total {
    padding-block-start: var(--sp-3);
    border-block-start: 1px solid var(--line-2);
    font-size: var(--fs-md);
    font-weight: 700;
  }
  .drawer__secure { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); font-size: var(--fs-2xs); color: var(--text-3); }
  .drawer__progress { flex: none; padding: var(--sp-4) var(--sp-6); border-block-end: 1px solid var(--line-2); background: var(--surface-2); }
  .drawer__progresstext { font-size: var(--fs-xs); color: var(--text-2); margin-block-end: var(--sp-2); }

  /* Search overlay */
  .overlay-search {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    align-items: start;
    justify-items: center;
    padding: clamp(var(--sp-4), 8vh, 8rem) var(--gutter) var(--sp-6);
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
    opacity: 0;
    transition: opacity var(--dur-2) var(--ease), display var(--dur-2) allow-discrete;
    &:not([hidden]) { opacity: 1; }
    @starting-style { &:not([hidden]) { opacity: 0; } }
  }
  .overlay-search__panel {
    inline-size: min(760px, 100%);
    max-block-size: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r-28);
    background: var(--bg-elev);
    box-shadow: var(--sh-4);
    overflow: hidden;
    translate: 0 -10px;
    transition: translate var(--dur-3) var(--ease-spring);
  }
  .overlay-search:not([hidden]) .overlay-search__panel { translate: 0 0; }
  .overlay-search__form {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-block-end: 1px solid var(--line);
    color: var(--text-3);
  }
  .overlay-search__input {
    flex: 1;
    min-inline-size: 0;
    border: 0;
    background: none;
    font-size: var(--fs-lg);
    color: var(--text);
    &::placeholder { color: var(--text-3); }
    &:focus-visible { outline: none; }
    &::-webkit-search-cancel-button { appearance: none; }
  }
  .overlay-search__kbd { flex: none; }
  .overlay-search__body { overflow-y: auto; padding: var(--sp-5); }
  .overlay-search__label {
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-3);
    margin-block-end: var(--sp-3);
  }
  .overlay-search__results { display: grid; gap: var(--sp-1); }
  .search-row {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-14);
    transition: background-color var(--dur-1) var(--ease);
    &:hover, &.is-active { background: var(--surface-2); }
    mark { background: color-mix(in oklab, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; }
  }
  .search-row__art {
    inline-size: 62px;
    aspect-ratio: 5/4;
    flex: none;
    border-radius: var(--r-10);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .search-row__meta { flex: 1; min-inline-size: 0; }
  .search-row__title { font-weight: 600; font-size: var(--fs-sm); }
  .search-row__sub { font-size: var(--fs-2xs); color: var(--text-3); }

  /* Modal */
  .modal {
    position: fixed;
    inset: 0;
    margin: auto;
    inline-size: min(920px, calc(100vw - 2rem));
    max-block-size: min(88svb, 900px);
    border-radius: var(--r-28);
    background: var(--bg-elev);
    box-shadow: var(--sh-4);
    border: 1px solid var(--line);
    overflow: hidden;
    opacity: 0;
    scale: 0.97;
    transition: opacity var(--dur-2) var(--ease), scale var(--dur-2) var(--ease-spring), overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete;
    &[open] { opacity: 1; scale: 1; }
    @starting-style { &[open] { opacity: 0; scale: 0.97; } }
    &::backdrop {
      background: color-mix(in oklab, var(--ink-1000) 50%, transparent);
      backdrop-filter: blur(4px);
      opacity: 0;
      transition: opacity var(--dur-2) var(--ease), overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete;
    }
    &[open]::backdrop { opacity: 1; }
    @starting-style { &[open]::backdrop { opacity: 0; } }
  }
  .modal__close {
    position: absolute;
    inset-block-start: var(--sp-4);
    inset-inline-end: var(--sp-4);
    z-index: 3;
    background: var(--glass);
    backdrop-filter: blur(8px);
  }
  .modal__body { overflow-y: auto; max-block-size: min(88svb, 900px); padding: clamp(var(--sp-6), 4vw, var(--sp-11)); }
  .modal__title { font-size: var(--fs-2xl); margin-block-end: var(--sp-3); }
  .modal__lead { color: var(--text-2); margin-block-end: var(--sp-6); max-inline-size: 60ch; }
  .modal__note { margin-block-start: var(--sp-5); font-size: var(--fs-sm); color: var(--text-3); }
  .modal--sizeguide { inline-size: min(620px, calc(100vw - 2rem)); }

  /* Toasts */
  .toast-stack {
    position: fixed;
    /* Clears the bottom bar on a phone; drops to the corner once it is gone. */
    inset-block-end: calc(70px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 50%;
    translate: -50% 0;
    z-index: var(--z-toast);
    display: grid;
    gap: var(--sp-2);
    justify-items: center;
    pointer-events: none;
    inline-size: min(420px, calc(100vw - 2rem));
  }
  @media (min-width: 900px) { .toast-stack { inset-block-end: var(--sp-6); } }

  .toast {
    pointer-events: auto;
    position: relative;
    inline-size: 100%;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--r-14);
    background: var(--bg-elev);
    box-shadow: var(--sh-4);
    font-size: var(--fs-sm);
    overflow: hidden;
    animation: toast-in var(--dur-3) var(--ease-spring);
    .icon { flex: none; }
    &.is-leaving { animation: toast-out var(--dur-2) var(--ease-in) forwards; }
  }
  .toast--success .icon { color: var(--ok); }
  .toast--error .icon { color: var(--danger); }
  .toast--info .icon { color: var(--info); }
  .toast__msg { flex: 1; min-inline-size: 0; }
  .toast__bar {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    block-size: 2px;
    background: var(--accent);
    animation: toast-bar var(--toast-dur, 3200ms) linear forwards;
  }
  .toast:hover .toast__bar { animation-play-state: paused; }

  /* Nav drawer specifics */
  .navdrawer__search {
    inline-size: 100%;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--r-999);
    color: var(--text-3);
    font-size: var(--fs-sm);
    margin-block-end: var(--sp-6);
    &:hover { border-color: var(--text); color: var(--text); }
  }
  .navdrawer__list {
    display: grid;
    gap: 2px;
    font-size: var(--fs-lg);
    font-weight: 600;
    a { display: block; padding-block: var(--sp-3); border-block-end: 1px solid var(--line-2); }
    a:hover { color: var(--accent); padding-inline-start: var(--sp-2); }
  }
  .navdrawer__label {
    margin-block: var(--sp-8) var(--sp-3);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-3);
  }
  .navdrawer__cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
    list-style: none;
    a {
      display: grid;
      gap: var(--sp-1);
      padding: var(--sp-3);
      border: 1px solid var(--line-2);
      border-radius: var(--r-14);
      font-size: var(--fs-xs);
      background: var(--surface-2);
      [data-art] { inline-size: 40px; aspect-ratio: 1; color: var(--accent); }
    }
  }
  .navdrawer__foot { display: grid; gap: var(--sp-2); margin-block-start: var(--sp-8); }
}

/* ==== 05-pages.css ==== */
@layer pages {
  /* ══════════════════════ HOME ══════════════════════════════════════ */
  /* ── Bento hero: a market board, not a magazine spread ─────────────── */
  .hero { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem); }

  .hero-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-14);
    overflow: hidden;
  }
  @media (min-width: 768px) { .hero-bento { grid-template-columns: repeat(6, 1fr); } }

  .bento {
    position: relative;
    background: var(--bg);
    padding: clamp(var(--sp-5), 2.4vw, var(--sp-9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-3);
    min-block-size: 120px;
  }
  .bento--main { grid-column: 1 / -1; justify-content: flex-end; gap: var(--sp-5); }
  .bento--art {
    grid-column: 1 / -1;
    background:
      radial-gradient(90% 80% at 68% 26%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 68%),
      var(--surface-2);
    padding: var(--sp-4);
    min-block-size: 260px;
  }
  /* The art arrives from JavaScript about a second after first paint. Reserving
     a minimum height is not enough — the drawing is 900x700, so once it lands the
     panel grows past the floor and everything under it jumps. Holding the panel
     at the drawing's own ratio means the box it paints into is the box that was
     already there. */
  /* Scoped to the homepage hero, and capped: given a ratio and a tall row to
     fill, the box computes its WIDTH from its height — on the about page that
     made it 411px wide inside a 358px column. */
  .hero-bento .bento--art { aspect-ratio: 900 / 700; min-block-size: 0; }
  .bento--art { max-inline-size: 100%; }
  .bento--art [data-art] { inline-size: 100%; block-size: 100%; color: var(--accent); }
  .bento--art [data-art] svg { inline-size: 100%; block-size: 100%; }
  @media (min-width: 768px) {
    .bento--main { grid-column: span 4; grid-row: span 2; }
    .bento--art { grid-column: span 2; grid-row: span 3; min-block-size: 0; }
    .hero-bento .bento--art { aspect-ratio: auto; }
    .bento--slot { grid-column: span 2; }
    .bento--stat { grid-column: span 1; }
    .bento--promo { grid-column: span 2; }
  }

  .bento--accent { background: var(--accent); color: var(--accent-ink); }
  .bento--ink { background: var(--text); color: var(--text-inv); }

  .hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
  }
  .hero__title {
    font-size: var(--fs-5xl);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
  }
  .hero__accent { color: var(--accent); }
  .hero__sub { font-size: var(--fs-md); color: var(--text-2); max-inline-size: 46ch; }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

  .bento__label {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    opacity: 0.72;
  }
  .bento__value {
    font-family: var(--ff-display);
    font-size: var(--fs-2xl);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  :root:lang(ar) .bento__value { font-family: var(--ff-ar); font-weight: 800; }
  .bento__note { font-size: var(--fs-xs); opacity: 0.78; }
  .bento__icon { position: absolute; inset-block-start: var(--sp-4); inset-inline-end: var(--sp-4); opacity: 0.25; }
  .bento--stat .bento__value { font-size: var(--fs-3xl); color: var(--accent); }
  .bento--ink .bento__value, .bento--accent .bento__value { color: inherit; }

  .hero__cue {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-block-start: var(--sp-6);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--text-3);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
  }
  .hero__cue .icon { animation: scroll-cue 2s var(--ease) infinite; }

  /* USP strip */
  .usp-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1px;
    background: var(--line-2);
    border-block: 1px solid var(--line-2);
  }
  .usp {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-5);
    background: var(--bg);
  }
  .usp .icon { color: var(--accent); flex: none; }
  .usp__t { font-weight: 600; font-size: var(--fs-sm); }
  .usp__d { font-size: var(--fs-2xs); color: var(--text-3); }

  /* Rails */
  .rail-wrap { position: relative; }
  .rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: var(--sp-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-block-end: var(--sp-4);
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  @media (min-width: 768px) { .rail { grid-auto-columns: minmax(280px, 1fr); } }
  .rail-nav { display: flex; gap: var(--sp-2); }

  .cat-card {
    position: relative;
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-6);
    border: 1px solid var(--line-2);
    border-radius: var(--r-20);
    background: var(--surface-2);
    overflow: hidden;
    transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2), background-color var(--dur-2);
  }
  .cat-card:hover { transform: translateY(-5px); border-color: var(--accent-line); background: var(--surface); color: var(--text); }
  .cat-card::after {
    content: '';
    position: absolute;
    inset-block-start: -30%;
    inset-inline-end: -20%;
    inline-size: 60%;
    aspect-ratio: 1;
    border-radius: var(--r-999);
    background: color-mix(in oklab, var(--accent) 9%, transparent);
  }
  .cat-card__art { inline-size: 84px; aspect-ratio: 1; color: var(--accent); position: relative; z-index: 1; }
  .cat-card__name { font-size: var(--fs-lg); font-weight: 700; position: relative; z-index: 1; }
  .cat-card__blurb { font-size: var(--fs-xs); color: var(--text-2); position: relative; z-index: 1; }
  .cat-card__count { font-size: var(--fs-2xs); color: var(--text-3); position: relative; z-index: 1; }

  /* Split feature */
  .split-feature {
    display: grid;
    gap: clamp(var(--sp-8), 5vw, var(--sp-16));
    align-items: center;
    grid-template-columns: 1fr;
  }
  @media (min-width: 900px) {
    .split-feature { grid-template-columns: 1fr 1fr; }
    .split-feature--rev .split-feature__media { order: 2; }
  }
  .split-feature__media {
    aspect-ratio: 5 / 4;
    border-radius: var(--r-28);
    background:
      radial-gradient(110% 90% at 30% 20%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 65%),
      var(--surface-2);
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    padding: var(--sp-8);
    overflow: hidden;
  }
  .split-feature__eyebrow { color: var(--accent); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: 600; }
  .split-feature__title { font-size: var(--fs-3xl); margin-block: var(--sp-3) var(--sp-5); }
  .split-feature__text { color: var(--text-2); max-inline-size: 52ch; margin-block-end: var(--sp-6); }
  .split-feature__list {
    display: grid;
    gap: var(--sp-3);
    margin-block-end: var(--sp-8);
    list-style: none;
  }
  .split-feature__list li { display: flex; gap: var(--sp-3); align-items: start; font-size: var(--fs-sm); color: var(--text-2); }
  .split-feature__list .icon { color: var(--accent); flex: none; margin-block-start: 0.2em; }

  /* Lookbook */
  .lookbook {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: 1fr;
  }
  @media (min-width: 768px) {
    .lookbook { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); }
    .lookbook__tile:nth-child(1) { grid-column: span 4; grid-row: span 2; }
    .lookbook__tile:nth-child(2) { grid-column: span 2; }
    .lookbook__tile:nth-child(3) { grid-column: span 2; }
  }
  .lookbook__tile {
    position: relative;
    display: grid;
    place-items: center;
    min-block-size: 220px;
    padding: var(--sp-6);
    border-radius: var(--r-28);
    border: 1px solid var(--line-2);
    background:
      radial-gradient(90% 80% at 70% 25%, color-mix(in oklab, var(--tile-tint, var(--accent)) 20%, transparent), transparent 70%),
      var(--surface-2);
    overflow: hidden;
    transition: transform var(--dur-3) var(--ease-out);
  }
  .lookbook__tile:hover { transform: translateY(-4px); color: var(--text); }
  .lookbook__tile [data-art] { inline-size: min(78%, 380px); }
  .lookbook__cap {
    position: absolute;
    inset-block-end: var(--sp-5);
    inset-inline-start: var(--sp-5);
    inset-inline-end: var(--sp-5);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--sp-3);
  }
  .lookbook__t { font-size: var(--fs-lg); font-weight: 700; }
  .lookbook__s { font-size: var(--fs-2xs); color: var(--text-3); }

  /* CTA band */
  .cta-band {
    position: relative;
    padding-block: clamp(3rem, 7vw, 6rem);
    background: var(--text);
    color: var(--text-inv);
    overflow: clip;
    isolation: isolate;
  }
  .cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(45% 120% at 15% 50%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%),
      radial-gradient(40% 110% at 85% 40%, color-mix(in oklab, var(--accent-2) 35%, transparent), transparent 70%);
    opacity: 0.55;
  }
  .cta-band__inner {
    display: grid;
    gap: var(--sp-8);
    align-items: center;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  @media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr auto; text-align: start; justify-items: stretch; } }
  .cta-band__title { font-size: var(--fs-4xl); line-height: var(--lh-snug); }
  .cta-band__sub { color: color-mix(in oklab, var(--text-inv) 78%, transparent); margin-block-start: var(--sp-4); max-inline-size: 46ch; }
  .cta-band .btn--primary { --btn-bg: var(--text-inv); --btn-fg: var(--text); }
  .cta-band .btn--primary:hover { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }

  .countdown { display: flex; gap: var(--sp-3); justify-content: center; margin-block-start: var(--sp-6); }
  .countdown__cell {
    min-inline-size: 66px;
    padding: var(--sp-3);
    border-radius: var(--r-14);
    background: color-mix(in oklab, var(--text-inv) 12%, transparent);
    border: 1px solid color-mix(in oklab, var(--text-inv) 18%, transparent);
    text-align: center;
  }
  .countdown__num { display: block; font-size: var(--fs-2xl); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
  .countdown__lab { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); opacity: 0.72; }

  /* Brand marquee */
  .marquee--brands {
    border-block: 1px solid var(--line);
    padding-block: var(--sp-6);
    --speed: 42s;
  }
  .marquee--brands .marquee__item {
    font-family: var(--ff-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--text-3);
    transition: color var(--dur-2) var(--ease);
  }
  .marquee--brands .marquee__item:hover { color: var(--accent); }
  .marquee--brands .marquee__track { gap: var(--sp-12); }

  /* Testimonials */
  .testimonial {
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-8);
    border: 1px solid var(--line-2);
    border-radius: var(--r-20);
    background: var(--surface);
    block-size: 100%;
    align-content: start;
  }
  .testimonial__quote { color: var(--text-2); font-size: var(--fs-sm); }
  .testimonial__who { display: flex; align-items: center; gap: var(--sp-3); margin-block-start: auto; }
  .testimonial__avatar { inline-size: 40px; block-size: 40px; border-radius: var(--r-999); overflow: hidden; flex: none; background: var(--surface-2); }
  .testimonial__name { font-weight: 600; font-size: var(--fs-sm); }
  .testimonial__meta { font-size: var(--fs-2xs); color: var(--text-3); display: flex; align-items: center; gap: var(--sp-2); }

  /* Journal */
  .journal-card {
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-6);
    border: 1px solid var(--line-2);
    border-radius: var(--r-20);
    background: var(--surface);
    transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2);
  }
  .journal-card:hover { transform: translateY(-4px); border-color: var(--accent-line); color: var(--text); }
  .journal-card__art { aspect-ratio: 16/10; border-radius: var(--r-14); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--accent); }
  .journal-card__tag { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--accent); }
  .journal-card__title { font-size: var(--fs-lg); font-weight: 700; }
  .journal-card__ex { font-size: var(--fs-sm); color: var(--text-2); }

  /* ══════════════════════ SHOP ══════════════════════════════════════ */
  .page-head { padding-block: var(--sp-8) var(--sp-6); }
  .page-head__title { font-size: var(--fs-3xl); margin-block: var(--sp-4) var(--sp-2); }
  .page-head__sub { color: var(--text-2); max-inline-size: 60ch; }

  .shop-layout { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; align-items: start; }
  @media (min-width: 1024px) { .shop-layout { grid-template-columns: 260px 1fr; gap: var(--sp-12); } }

  /* On a phone the filters live in a drawer, not a column — .drawer--filters
     below re-shows this same markup inside it. */
  .shop-sidebar {
    display: none;
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--sp-4));
    max-block-size: calc(100svb - var(--header-h) - var(--sp-8));
    overflow-y: auto;
    padding-inline-end: var(--sp-2);
  }
  @media (min-width: 1024px) { .shop-sidebar { display: block; } }
  .drawer--filters .shop-sidebar { display: block; position: static; max-block-size: none; }

  .filter-group { border-block-end: 1px solid var(--line-2); padding-block: var(--sp-4); }
  .filter-group__head {
    inline-size: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
  }
  .filter-group__head .icon { color: var(--text-3); transition: rotate var(--dur-2) var(--ease); }
  .filter-group__head[aria-expanded="false"] .icon { rotate: -90deg; }
  :root:dir(rtl) .filter-group__head[aria-expanded="false"] .icon { rotate: 90deg; }
  .filter-group__body { display: grid; gap: var(--sp-3); padding-block-start: var(--sp-4); }
  .filter-group__body[hidden] { display: none; }
  .filter-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    font-size: var(--fs-sm);
  }
  .filter-opt__count { font-size: var(--fs-2xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
  .filter-opt.is-empty { opacity: 0.4; pointer-events: none; }
  .filter-swatches { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  .filter-swatch {
    display: grid;
    justify-items: center;
    gap: 4px;
    font-size: var(--fs-3xs);
    color: var(--text-3);
    cursor: pointer;
  }
  .filter-swatch.is-active { color: var(--text); }
  .filter-sizes { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
  .filter-sizes .size-btn { min-inline-size: 2.6rem; padding: 0.35em var(--sp-2); font-size: var(--fs-xs); }

  .price-range { display: grid; gap: var(--sp-3); padding-block-start: var(--sp-2); }
  .price-range__track {
    position: relative;
    block-size: 26px;
    display: grid;
    align-items: center;
  }
  .price-range__rail {
    position: absolute;
    inset-inline: 0;
    block-size: 3px;
    border-radius: var(--r-999);
    background: var(--surface-3);
  }
  .price-range__fill {
    position: absolute;
    block-size: 3px;
    border-radius: var(--r-999);
    background: var(--accent);
  }
  .price-range input[type="range"] {
    position: absolute;
    inset-inline: 0;
    inline-size: 100%;
    margin: 0;
    background: none;
    appearance: none;
    pointer-events: none;
    block-size: 26px;
  }
  .price-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    inline-size: 18px; block-size: 18px;
    border-radius: var(--r-999);
    background: var(--bg-elev);
    border: 2px solid var(--accent);
    box-shadow: var(--sh-2);
    cursor: grab;
  }
  .price-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    inline-size: 18px; block-size: 18px;
    border-radius: var(--r-999);
    background: var(--bg-elev);
    border: 2px solid var(--accent);
    cursor: grab;
  }
  .price-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--sh-focus); }
  .price-range__vals { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }

  .shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    justify-content: space-between;
    padding-block-end: var(--sp-5);
    border-block-end: 1px solid var(--line-2);
    margin-block-end: var(--sp-6);
  }
  .shop-toolbar__count { font-size: var(--fs-sm); color: var(--text-2); }
  .shop-toolbar__count b { color: var(--text); }
  .shop-toolbar__right { display: flex; align-items: center; gap: var(--sp-2); margin-inline-start: auto; }
  .view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-10); overflow: hidden; }
  .view-toggle button {
    inline-size: 34px; block-size: 34px;
    display: grid; place-items: center;
    color: var(--text-3);
  }
  .view-toggle button.is-active { background: var(--text); color: var(--text-inv); }
  .active-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block-end: var(--sp-5); }
  .results-grid.is-list { grid-template-columns: 1fr; }
  .results-grid.is-busy { opacity: 0.45; pointer-events: none; transition: opacity var(--dur-2); }

  /* ══════════════════════ PRODUCT (PDP) ═════════════════════════════ */
  .pdp { display: grid; gap: clamp(var(--sp-6), 4vw, var(--sp-12)); grid-template-columns: 1fr; align-items: start; }
  @media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr 1fr; } }
  @media (min-width: 1200px) { .pdp { grid-template-columns: 1.3fr 1fr; } }

  /* Nothing to stick to on a phone: the gallery and the info panel are one column. */
  .gallery { display: grid; gap: var(--sp-4); }
  @media (min-width: 900px) { .gallery { position: sticky; inset-block-start: calc(var(--header-h) + var(--sp-4)); } }
  .gallery__stage {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--r-28);
    border: 1px solid var(--line-2);
    background:
      radial-gradient(110% 95% at 65% 20%, color-mix(in oklab, var(--pdp-tint, var(--accent)) 20%, transparent), transparent 65%),
      var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: zoom-in;
  }
  .gallery__stage svg { inline-size: 92%; transition: scale var(--dur-4) var(--ease-out); }
  .gallery__stage.is-zoomed svg { scale: 1.9; }
  /* A photograph fills the stage rather than floating in it, but zooms the same
     way — and `scale` is composited, so the zoom costs nothing to animate. */
  .gallery__stage .product-photo { transition: scale var(--dur-4) var(--ease-out); }
  .gallery__stage.is-zoomed .product-photo { scale: 1.9; }
  .gallery__thumbs { display: flex; gap: var(--sp-3); overflow-x: auto; scrollbar-width: none; }
  .gallery__thumbs::-webkit-scrollbar { display: none; }
  .gallery__thumb {
    inline-size: 78px;
    aspect-ratio: 1;
    flex: none;
    border-radius: var(--r-14);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: var(--sp-2);
    transition: border-color var(--dur-1) var(--ease);
  }
  .gallery__thumb:hover { border-color: var(--line-strong); }
  .gallery__thumb.is-active { border-color: var(--text); }

  .pdp-info { display: grid; gap: var(--sp-5); align-content: start; }
  .pdp-info__brand { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--accent); font-weight: 600; }
  .pdp-info__title { font-size: var(--fs-3xl); line-height: var(--lh-snug); }
  .pdp-info__tagline { color: var(--text-2); }
  .pdp-price { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-2xl); }
  .pdp-block { display: grid; gap: var(--sp-3); }
  .pdp-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
  .pdp-block__label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-3); }
  .pdp-block__value { font-size: var(--fs-sm); color: var(--text); font-weight: 600; }
  .pdp-swatches { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  .pdp-sizes { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
  .pdp-stockhint { font-size: var(--fs-xs); color: var(--warn); display: flex; align-items: center; gap: var(--sp-2); }
  .pdp-stockhint--ok { color: var(--ok); }
  .pdp-stockhint--out { color: var(--danger); }
  .pdp-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
  .pdp-actions .btn--primary { flex: 1; min-inline-size: 12rem; }
  .pdp-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--sp-4);
    padding-block: var(--sp-5);
    border-block: 1px solid var(--line-2);
    font-size: var(--fs-xs);
    color: var(--text-2);
  }
  .pdp-trust > div { display: flex; gap: var(--sp-2); align-items: center; }
  .pdp-trust .icon { color: var(--accent); flex: none; }
  .pdp-delivery {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r-14);
    background: var(--surface-2);
    font-size: var(--fs-sm);
  }
  .pdp-delivery .icon { color: var(--accent); flex: none; }
  .pdp-meta { font-size: var(--fs-2xs); color: var(--text-3); display: flex; flex-wrap: wrap; gap: var(--sp-4); }

  .pdp-sticky-bar {
    position: fixed;
    inset-block-end: calc(58px + env(safe-area-inset-bottom, 0px));
    inset-inline: 0;
    z-index: calc(var(--z-header) - 1);
    display: none;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-block-start: 1px solid var(--line);
    translate: 0 100%;
    transition: translate var(--dur-3) var(--ease-out);
  }
  .pdp-sticky-bar.is-visible { translate: 0 0; }
  /* The phone buy bar. Above the bottom nav, and gone entirely once the page is
     wide enough to keep the real Add button on screen. */
  [data-page="product"] .pdp-sticky-bar { display: flex; }
  @media (min-width: 900px) { [data-page="product"] .pdp-sticky-bar { display: none; } }

  .pdp-specs th { inline-size: 40%; color: var(--text-3); font-weight: 500; font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; border: 0; }
  .pdp-specs td { font-weight: 600; }

  /* Reviews */
  .reviews { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
  @media (min-width: 768px) { .reviews { grid-template-columns: 280px 1fr; gap: var(--sp-12); } }
  .reviews__summary { display: grid; gap: var(--sp-4); align-content: start; }
  .reviews__avg { font-family: var(--ff-display); font-size: var(--fs-5xl); line-height: 1; font-variant-numeric: tabular-nums; }
  .reviews__bars { display: grid; gap: var(--sp-2); }
  .reviews__bar { display: grid; grid-template-columns: 2.2rem 1fr 2rem; gap: var(--sp-3); align-items: center; font-size: var(--fs-xs); color: var(--text-3); }
  .reviews__fit { display: grid; gap: var(--sp-2); padding-block-start: var(--sp-4); border-block-start: 1px solid var(--line-2); }
  .reviews__fitbar { display: flex; block-size: 6px; border-radius: var(--r-999); overflow: hidden; background: var(--surface-3); }
  .reviews__fitbar span { display: block; }
  .review {
    display: grid;
    gap: var(--sp-3);
    padding-block: var(--sp-6);
    border-block-end: 1px solid var(--line-2);
  }
  .review__head { display: flex; align-items: center; gap: var(--sp-3); }
  .review__avatar { inline-size: 38px; block-size: 38px; border-radius: var(--r-999); overflow: hidden; flex: none; background: var(--surface-2); }
  .review__name { font-weight: 600; font-size: var(--fs-sm); }
  .review__meta { font-size: var(--fs-2xs); color: var(--text-3); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
  .review__verified { color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
  .review__title { font-weight: 700; }
  .review__body { color: var(--text-2); font-size: var(--fs-sm); }
  .review__foot { display: flex; gap: var(--sp-4); font-size: var(--fs-2xs); color: var(--text-3); }

  /* ══════════════════════ CART ══════════════════════════════════════ */
  .cart-layout { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; align-items: start; }
  @media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 340px; gap: var(--sp-12); } }
  .cart-line {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: var(--sp-4);
    padding-block: var(--sp-5);
    border-block-end: 1px solid var(--line-2);
  }
  @media (min-width: 600px) { .cart-line { grid-template-columns: 130px 1fr auto; align-items: center; } }
  .cart-line__art {
    aspect-ratio: 5/4;
    border-radius: var(--r-14);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .cart-line__title { font-weight: 600; }
  .cart-line__meta { font-size: var(--fs-xs); color: var(--text-3); display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-block-start: var(--sp-1); }
  .cart-line__actions { display: flex; align-items: center; gap: var(--sp-3); margin-block-start: var(--sp-3); flex-wrap: wrap; }
  .cart-line__total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

  .order-summary {
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--sp-4));
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-6);
    border: 1px solid var(--line);
    border-radius: var(--r-20);
    background: var(--surface);
  }
  .order-summary__row { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); }
  .order-summary__row--muted { color: var(--text-3); }
  .order-summary__row--discount { color: var(--ok); }
  .order-summary__total {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block-start: var(--sp-4);
    border-block-start: 1px solid var(--line);
    font-size: var(--fs-lg);
    font-weight: 700;
  }
  .coupon-form { display: flex; gap: var(--sp-2); }
  .coupon-form .input { flex: 1; }
  .pay-methods { display: grid; gap: var(--sp-3); }
  .pay-method {
    display: flex;
    align-items: start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--r-14);
    cursor: pointer;
    transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
  }
  .pay-method:hover { border-color: var(--line-strong); }
  .pay-method:has(input:checked) { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 7%, transparent); }
  .pay-method__t { font-weight: 600; font-size: var(--fs-sm); }
  .pay-method__d { font-size: var(--fs-2xs); color: var(--text-3); }
  .pay-method__art { inline-size: 42px; block-size: 26px; margin-inline-start: auto; color: var(--text-3); flex: none; }

  /* ══════════════════════ CHECKOUT ══════════════════════════════════ */
  .checkout-layout { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; align-items: start; }
  @media (min-width: 1024px) { .checkout-layout { grid-template-columns: 1fr 360px; gap: var(--sp-12); } }
  .checkout-step { display: grid; gap: var(--sp-5); }
  .checkout-step[hidden] { display: none; }
  .checkout-step__title { font-size: var(--fs-xl); }
  .checkout-nav { display: flex; gap: var(--sp-3); justify-content: space-between; margin-block-start: var(--sp-6); }
  .review-block {
    display: grid;
    gap: var(--sp-2);
    padding: var(--sp-5);
    border: 1px solid var(--line-2);
    border-radius: var(--r-14);
    background: var(--surface-2);
    font-size: var(--fs-sm);
  }
  .review-block__h { display: flex; justify-content: space-between; gap: var(--sp-3); font-weight: 600; }
  .order-success {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: var(--sp-5);
    padding-block: clamp(3rem, 8vw, 6rem);
  }
  .order-success__mark {
    inline-size: 72px; block-size: 72px;
    display: grid; place-items: center;
    border-radius: var(--r-999);
    background: color-mix(in oklab, var(--ok) 16%, transparent);
    color: var(--ok);
    animation: pop-in var(--dur-4) var(--ease-spring);
  }
  .order-success__mark .icon { inline-size: 34px; block-size: 34px; }
  .order-success__no {
    font-family: var(--ff-mono);
    font-size: var(--fs-xl);
    letter-spacing: 0.08em;
    padding: var(--sp-3) var(--sp-6);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-14);
  }

  /* ══════════════════════ WISHLIST / COMPARE ════════════════════════ */
  .compare-table {
    inline-size: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .compare-table th, .compare-table td { border-block-end: 1px solid var(--line-2); vertical-align: top; }
  .compare-table th:first-child {
    position: sticky;
    inset-inline-start: 0;
    background: var(--bg);
    z-index: 1;
    inline-size: 160px;
    font-size: var(--fs-xs);
    color: var(--text-3);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
  }
  .compare-table tr.is-diff td { background: color-mix(in oklab, var(--accent) 6%, transparent); }
  .compare-col { min-inline-size: 200px; }
  .compare-col__art { aspect-ratio: 5/4; background: var(--surface-2); border-radius: var(--r-14); display: grid; place-items: center; overflow: hidden; margin-block-end: var(--sp-3); }
  .compare-mini {
    position: relative;
    inline-size: 54px;
    aspect-ratio: 1;
    flex: none;
    border-radius: var(--r-10);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .compare-mini button { position: absolute; inset-block-start: 0; inset-inline-end: 0; }

  /* ══════════════════════ ACCOUNT ═══════════════════════════════════ */
  .account-layout { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; align-items: start; }
  @media (min-width: 900px) { .account-layout { grid-template-columns: 220px 1fr; gap: var(--sp-12); } }
  /* A swipeable row on a phone, a column once there is a sidebar to put it in. */
  .account-tabs { display: grid; gap: 2px; grid-auto-flow: column; overflow-x: auto; }
  @media (min-width: 900px) { .account-tabs { grid-auto-flow: row; overflow-x: visible; } }
  .account-tab {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-10);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    text-align: start;
  }
  .account-tab:hover { background: var(--surface-2); color: var(--text); }
  .account-tab.is-active { background: var(--text); color: var(--text-inv); }
  .order-card {
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border: 1px solid var(--line-2);
    border-radius: var(--r-14);
    background: var(--surface);
  }
  .order-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
  .order-card__no { font-family: var(--ff-mono); font-size: var(--fs-sm); }
  .status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px var(--sp-3);
    border-radius: var(--r-999);
    font-size: var(--fs-2xs);
    font-weight: 600;
  }
  .status--processing { background: color-mix(in oklab, var(--warn) 18%, transparent); color: color-mix(in oklab, var(--warn) 70%, var(--text)); }
  .status--shipped { background: color-mix(in oklab, var(--info) 18%, transparent); color: var(--info); }
  .status--delivered { background: color-mix(in oklab, var(--ok) 18%, transparent); color: var(--ok); }
  .track { display: grid; gap: var(--sp-4); padding-block-start: var(--sp-4); border-block-start: 1px solid var(--line-2); }
  .track__step {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--text-3);
  }
  .track__step.is-done { color: var(--text); }
  .track__dot {
    inline-size: 14px; block-size: 14px;
    border-radius: var(--r-999);
    border: 2px solid currentColor;
    margin-block-start: 4px;
  }
  .track__step.is-done .track__dot { background: var(--accent); border-color: var(--accent); }
  .prefs-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

  /* ══════════════════════ ABOUT ═════════════════════════════════════ */
  .about-hero { padding-block: clamp(3rem, 7vw, 6rem); }
  .about-hero__title { font-size: var(--fs-5xl); line-height: var(--lh-tight); }
  .about-hero__sub { color: var(--text-2); font-size: var(--fs-md); max-inline-size: 56ch; margin-block-start: var(--sp-6); }
  .values-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  .value {
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-6);
    border: 1px solid var(--line-2);
    border-radius: var(--r-20);
    background: var(--surface);
  }
  .value .icon { color: var(--accent); inline-size: 1.8em; block-size: 1.8em; }
  .value__t { font-size: var(--fs-lg); font-weight: 700; }
  .value__d { font-size: var(--fs-sm); color: var(--text-2); }

  .craft-steps { display: grid; gap: var(--sp-8); counter-reset: step; }
  .craft-step {
    position: relative;
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: 1fr;
    align-items: center;
    padding-inline-start: var(--sp-12);
    counter-increment: step;
  }
  .craft-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--accent);
    font-weight: 700;
  }
  .craft-step::after {
    content: '';
    position: absolute;
    inset-inline-start: 11px;
    inset-block: 1.8rem -2rem;
    inline-size: 1px;
    background: linear-gradient(var(--line-strong), transparent);
  }
  .craft-step:last-child::after { display: none; }
  @media (min-width: 768px) { .craft-step { grid-template-columns: 1fr 220px; } }
  .craft-step__t { font-size: var(--fs-xl); font-weight: 700; margin-block-end: var(--sp-2); }
  .craft-step__d { color: var(--text-2); font-size: var(--fs-sm); max-inline-size: 56ch; }
  .craft-step__art { aspect-ratio: 5/4; border-radius: var(--r-14); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--accent); }

  .numbers-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(50%, 160px), 1fr));
    gap: var(--sp-8);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    border-block: 1px solid var(--line);
    text-align: center;
  }
  .number__v {
    display: block;
    font-family: var(--ff-display);
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
  }
  .number__l { font-size: var(--fs-xs); color: var(--text-3); margin-block-start: var(--sp-2); }

  .team-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
  .team-card { display: grid; gap: var(--sp-3); text-align: center; justify-items: center; }
  .team-card__avatar { inline-size: 96px; block-size: 96px; border-radius: var(--r-999); overflow: hidden; background: var(--surface-2); }
  .team-card__n { font-weight: 600; }
  .team-card__r { font-size: var(--fs-2xs); color: var(--text-3); }

  /* ══════════════════════ CONTACT ═══════════════════════════════════ */
  .contact-layout { display: grid; gap: var(--sp-10); grid-template-columns: 1fr; align-items: start; }
  @media (min-width: 900px) { .contact-layout { grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-12); } }
  .contact-cards { display: grid; gap: var(--sp-4); }
  .contact-card {
    display: flex;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border: 1px solid var(--line-2);
    border-radius: var(--r-14);
    background: var(--surface);
  }
  .contact-card .icon { color: var(--accent); flex: none; }
  .contact-card__t { font-weight: 600; font-size: var(--fs-sm); }
  .contact-card__d { font-size: var(--fs-sm); color: var(--text-2); }
  .store-card {
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-6);
    border: 1px solid var(--line-2);
    border-radius: var(--r-20);
    background: var(--surface);
  }
  .store-card__city { font-size: var(--fs-lg); font-weight: 700; }
  .store-card__open { font-size: var(--fs-2xs); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
  .store-card__open.is-open { color: var(--ok); }
  .store-card__open.is-closed { color: var(--text-3); }
  .store-card__dot { inline-size: 7px; block-size: 7px; border-radius: var(--r-999); background: currentColor; }
  .map-panel {
    aspect-ratio: 16/10;
    border-radius: var(--r-20);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    overflow: hidden;
    color: var(--accent);
  }
  .map-panel svg { inline-size: 100%; block-size: 100%; }
  .char-count { font-size: var(--fs-2xs); color: var(--text-3); text-align: end; font-variant-numeric: tabular-nums; }

  /* ══════════════════════ FAQ ═══════════════════════════════════════ */
  .faq-layout { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; align-items: start; }
  @media (min-width: 900px) { .faq-layout { grid-template-columns: 220px 1fr; gap: var(--sp-12); } }
  .faq-nav { display: grid; gap: 2px; grid-auto-flow: column; overflow-x: auto; }
  @media (min-width: 900px) { .faq-nav { grid-auto-flow: row; overflow-x: visible; position: sticky; inset-block-start: calc(var(--header-h) + var(--sp-4)); } }
  .faq-search { position: relative; margin-block-end: var(--sp-8); }
  .faq-search .input { padding-inline-start: var(--sp-11); }
  .faq-search .icon { position: absolute; inset-inline-start: var(--sp-4); inset-block-start: 50%; translate: 0 -50%; color: var(--text-3); }
  .faq-group { margin-block-end: var(--sp-10); scroll-margin-block-start: calc(var(--header-h) + 2rem); }
  .faq-group__title { font-size: var(--fs-xl); margin-block-end: var(--sp-4); }
  .faq-group[hidden] { display: none; }
  .faq-help {
    display: grid;
    gap: var(--sp-4);
    justify-items: center;
    text-align: center;
    padding: var(--sp-10);
    border-radius: var(--r-28);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
  }

  /* ══════════════════════ ERROR / OFFLINE ═══════════════════════════ */
  .error-page {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: var(--sp-6);
    padding-block: clamp(3rem, 10vw, 8rem);
  }
  .error-page [data-art] { inline-size: min(320px, 70vw); aspect-ratio: 4/3; color: var(--accent); }
  .error-page__code {
    font-family: var(--ff-display);
    font-size: var(--fs-6xl);
    line-height: 1;
    letter-spacing: var(--tracking-tight);
  }
}

/* ==== 06-animations.css ==== */
/* ── Keyframes (not layer-scoped) ──────────────────────────────────── */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade-down { from { opacity: 0; translate: 0 -16px; } to { opacity: 1; translate: 0 0; } }
@keyframes scale-in { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
@keyframes pop-in { 0% { scale: 0.4; opacity: 0; } 60% { scale: 1.15; } 100% { scale: 1; opacity: 1; } }
@keyframes slide-start { from { opacity: 0; translate: -28px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes slide-end { from { opacity: 0; translate: 28px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* In RTL the track is right-aligned and its first copy occupies the RIGHT half,
   so the loop has to travel the other way. animation-direction: reverse only
   plays the same journey backwards — it still ends up off-screen. */
@keyframes marquee-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--sale) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
}
@keyframes shimmer { from { translate: -100% 0; } to { translate: 100% 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes draw-line { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes gradient-rotate { to { --grad-angle: 360deg; } }
@keyframes reveal-clip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes reveal-clip-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes word-rise { from { opacity: 0; translate: 0 0.72em; rotate: 2deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes bounce-soft { 0%, 100% { translate: 0 0; } 40% { translate: 0 -6px; } 70% { translate: 0 -2px; } }
@keyframes toast-in { from { opacity: 0; translate: 0 20px; scale: 0.96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes toast-out { to { opacity: 0; translate: 0 12px; scale: 0.97; } }
@keyframes toast-bar { from { inline-size: 100%; } to { inline-size: 0%; } }
@keyframes ring-out {
  from { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  to { box-shadow: 0 0 0 14px transparent; }
}
@keyframes count-blur { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes scroll-cue { 0% { translate: 0 0; opacity: 0; } 30% { opacity: 1; } 100% { translate: 0 12px; opacity: 0; } }

@layer utilities {
  /* ── Scroll reveal ───────────────────────────────────────────────────
     Driven by one mechanism only: the IntersectionObserver in core/dom.js.
     A scroll-driven `view()` timeline was tried here and had to go — inside a
     horizontally scrolling rail the timeline never reaches its range, so cards
     stayed at opacity 0 forever.
     The `.js` gate means a visitor without JavaScript sees the content, not a
     blank column. ────────────────────────────────────────────────────────── */
  .js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity var(--dur-4) var(--ease-out), translate var(--dur-4) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 55ms);
  }
  .js .reveal.is-visible { opacity: 1; translate: 0 0; }

  /* A horizontal rail scrolls sideways, so a card parked off to the side never
     intersects the viewport and would sit at opacity 0 until dragged into view.
     Rails opt out: their cards are simply there. */
  .js .rail .reveal,
  .js .compare-bar .reveal { opacity: 1; translate: none; transition: none; }

  .js .reveal--start { translate: -28px 0; }
  .js .reveal--end { translate: 28px 0; }
  .js .reveal--scale { translate: 0 0; scale: 0.95; transition-property: opacity, scale; }
  .js .reveal--scale.is-visible { scale: 1; }

  /* ── Native scroll-driven animation (progressive enhancement) ────── */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .scroll-progress {
        position: fixed;
        inset-block-start: 0;
        inset-inline: 0;
        z-index: calc(var(--z-header) + 5);
        block-size: 2px;
        transform-origin: inline-start;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        scale: 0 1;
        animation: grow-progress linear;
        animation-timeline: scroll(root block);
      }
      @keyframes grow-progress { to { scale: 1 1; } }

      .parallax-slow {
        animation: parallax-y linear both;
        animation-timeline: view();
        animation-range: cover;
      }
      @keyframes parallax-y { from { translate: 0 -4%; } to { translate: 0 4%; } }

    }
  }
  .scroll-progress { display: none; }
  @supports (animation-timeline: scroll()) { .scroll-progress { display: block; } }

  /* ── Hero word animation ─────────────────────────────────────────── */
  .hero__word {
    display: inline-block;
    /* Deliberately NOT opacity: 0 — the headline is the LCP element and must be
       readable in the first paint. The entrance rises into place instead of
       fading in from nothing. */
    animation: word-rise-soft 0.7s var(--ease-out) both;
    animation-delay: calc(60ms + var(--i, 0) * 45ms);
  }
  @media (prefers-reduced-motion: reduce) { .hero__word { animation: none; } }

  @keyframes word-rise-soft {
    from { translate: 0 0.42em; opacity: 0.35; }
    to   { translate: 0 0;      opacity: 1; }
  }

  /* ── Utility animations ──────────────────────────────────────────── */
  .anim-float { animation: float 6s var(--ease) infinite; }
  .anim-ring { animation: ring-out 0.9s var(--ease-out); }
  .anim-bounce { animation: bounce-soft 0.6s var(--ease); }
  .anim-fade-in { animation: fade-in var(--dur-3) var(--ease); }

  /* ── View transitions ────────────────────────────────────────────── */
  ::view-transition-old(root) { animation: fade-in var(--dur-2) var(--ease) reverse; }
  ::view-transition-new(root) { animation: fade-in var(--dur-3) var(--ease); }
  ::view-transition-group(*) { animation-duration: var(--dur-3); }

  @media (prefers-reduced-motion: reduce) {
    .js .reveal, .reveal, .hero__word { opacity: 1 !important; translate: none !important; scale: none !important; animation: none !important; }
    .marquee__track { animation: none !important; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  }
}

/* ==== 07-utilities.css ==== */
@layer utilities {
  .flow > * + * { margin-block-start: var(--flow, var(--sp-4)); }
  .flex { display: flex; }
  .grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-5); }
  .center-grid { display: grid; place-items: center; }

  .gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
  .gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); } .gap-6 { gap: var(--sp-6); }

  .mt-1 { margin-block-start: var(--sp-1); } .mt-2 { margin-block-start: var(--sp-2); }
  .mt-3 { margin-block-start: var(--sp-3); } .mt-4 { margin-block-start: var(--sp-4); }
  .mt-6 { margin-block-start: var(--sp-6); } .mt-8 { margin-block-start: var(--sp-8); }
  .mt-10 { margin-block-start: var(--sp-10); } .mt-12 { margin-block-start: var(--sp-12); }
  .mb-1 { margin-block-end: var(--sp-1); } .mb-2 { margin-block-end: var(--sp-2); }
  .mb-3 { margin-block-end: var(--sp-3); } .mb-4 { margin-block-end: var(--sp-4); }
  .mb-6 { margin-block-end: var(--sp-6); } .mb-8 { margin-block-end: var(--sp-8); }
  .mb-10 { margin-block-end: var(--sp-10); } .mb-12 { margin-block-end: var(--sp-12); }

  .text-2xs { font-size: var(--fs-2xs); } .text-xs { font-size: var(--fs-xs); }
  .text-sm { font-size: var(--fs-sm); } .text-md { font-size: var(--fs-md); }
  .text-lg { font-size: var(--fs-lg); } .text-xl { font-size: var(--fs-xl); }
  .text-2xl { font-size: var(--fs-2xl); } .text-3xl { font-size: var(--fs-3xl); }
  .text-center { text-align: center; }
  .text-end { text-align: end; }
  .text-muted { color: var(--text-2); }
  .text-faint { color: var(--text-3); }
  .text-accent { color: var(--accent); }
  .text-sale { color: var(--sale); }
  .uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wide); }
  .tabular { font-variant-numeric: tabular-nums; }
  .dir-ltr { direction: ltr; unicode-bidi: isolate; }
  .weight-600 { font-weight: 600; }
  .weight-700 { font-weight: 700; }

  .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .line-clamp-2 { -webkit-line-clamp: 2; }
  .line-clamp-3 { -webkit-line-clamp: 3; }

  .aspect-square { aspect-ratio: 1; }
  .aspect-video { aspect-ratio: 16 / 9; }
  .aspect-dish { aspect-ratio: 5 / 4; }

  .glass {
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
  }
  .hairline { border: 1px solid var(--line); }
  .rounded { border-radius: var(--r-14); }
  .rounded-lg { border-radius: var(--r-20); }
  .rounded-xl { border-radius: var(--r-28); }
  .elevate-1 { box-shadow: var(--sh-1); }
  .elevate-2 { box-shadow: var(--sh-2); }
  .elevate-3 { box-shadow: var(--sh-3); }
  .surface { background: var(--surface); }
  .surface-2 { background: var(--surface-2); }

  .is-hidden { display: none !important; }
  .no-scroll { overflow: hidden; }

  /* Visibility utilities, written the way the rest of the CSS is: hidden is the
     base state and a query reveals. `.hide-desktop` is the one honest exception —
     it names something that exists on a phone and stops existing on a desktop,
     which is a max-width idea however it is written. */
  .hide-mobile { display: none !important; }
  @media (min-width: 900px) { .hide-mobile { display: revert !important; } }

  .hide-xs { display: none !important; }
  @media (min-width: 600px) { .hide-xs { display: revert !important; } }

  @media (min-width: 900px) { .hide-desktop { display: none !important; } }
}

/* ==== 08-refinements.css ==== */
@layer components {
  /* ── Card plumbing ─────────────────────────────────────────────────── */
  .product-card__overlay { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  /* The whole-tile link must sit UNDER the wishlist and compare buttons, or a tap
     that lands slightly wide of the heart opens the product instead.
     z-index only — the tools are absolutely positioned in the corner, and
     restating `position` here would drop them back into the flow. */
  .product-card__tools { z-index: 3; }

  /* ── RESERVED SPACE FOR ART ───────────────────────────────────────────
     Every dish is drawn by JavaScript after the page paints. A box with no
     reserved height is flat until the drawing lands and then grows, pushing
     everything below it — measured, that single effect was most of the layout
     shift on the homepage and the product page.

     .product-card__art already reserved its ratio, and the shop page's CLS is
     0.008 as a result. This is the same rule, applied everywhere art lands.
     ──────────────────────────────────────────────────────────────────── */
  [data-art]:not(.is-art-ready) { aspect-ratio: 640 / 400; }
  .gallery__stage[data-art]:not(.is-art-ready),
  .gallery__stage:has([data-art]:not(.is-art-ready)) { aspect-ratio: 1; }
  /* These carry their own shape and must not be forced into a landscape box. */
  :is(.brand, .avatar, .popover__flag, .testimonial__avatar, .review__avatar,
      .payment-row, .empty-state)[data-art]:not(.is-art-ready),
  :is(.brand, .avatar, .popover__flag, .testimonial__avatar, .review__avatar) [data-art]:not(.is-art-ready) {
    aspect-ratio: auto;
  }

  /* A grid item's implied `min-width: auto` is its content's min-content width.
     At two columns on a 320px phone the track is 138px and the longest Arabic
     word in a product name is 194px — so the card refuses to shrink and pushes
     the whole page sideways. Letting it shrink, and letting the long word break,
     is what makes a two-column phone grid possible at all. */
  .product-card,
  .product-card__body,
  .product-card__body > * { min-inline-size: 0; }
  .product-card__title,
  .product-card__brand,
  .product-card__meta { overflow-wrap: anywhere; }
  /* A price row that cannot wrap sets the card's minimum width, and a sale card
     carries three things in it: the price, the struck-through was-price and the
     discount pill. On a 138px track they have to be allowed onto two lines. */
  .product-card__price,
  .product-card__meta,
  .product-card__diets { flex-wrap: wrap; }
  .product-card__art { position: relative; z-index: 0; }
  .product-card__title:hover { color: var(--accent); }
  .rating__count { color: var(--text-3); }

  .product-card__brand {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
  }
  .product-card__dot { opacity: 0.5; }
  .product-card__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-xs);
    color: var(--text-2);
  }
  .product-card__size {
    font-family: var(--ff-mono);
    padding: 1px var(--sp-2);
    border: 1px solid var(--line);
    border-radius: var(--r-4);
  }
  .product-card__diets { display: flex; flex-wrap: wrap; gap: 4px; margin-block-start: var(--sp-1); }

  /* ── Diet tags & chips ─────────────────────────────────────────────── */
  .diet-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px var(--sp-2);
    border-radius: var(--r-4);
    border: 1px solid color-mix(in oklab, var(--diet, var(--ok)) 45%, transparent);
    background: color-mix(in oklab, var(--diet, var(--ok)) 12%, transparent);
    color: color-mix(in oklab, var(--diet, var(--ok)) 72%, var(--text));
    font-size: var(--fs-2xs);
    font-weight: 500;
    white-space: nowrap;
  }
  .diet-grid { display: grid; gap: var(--sp-2); }
  .diet-chip {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    inline-size: 100%;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--r-6);
    background: var(--surface);
    color: var(--text-2);
    font-size: var(--fs-sm);
    text-align: start;
    cursor: pointer;
    transition: all var(--dur-1) var(--ease);
  }
  .diet-chip .icon { color: var(--diet, var(--ok)); flex: none; }
  .diet-chip span:nth-child(2) { flex: 1; min-inline-size: 0; }
  .diet-chip:hover:not(:disabled) { border-color: var(--diet, var(--line-strong)); color: var(--text); }
  .diet-chip.is-active {
    border-color: var(--diet, var(--ok));
    background: color-mix(in oklab, var(--diet, var(--ok)) 14%, transparent);
    color: var(--text);
    font-weight: 600;
  }
  .diet-chip:disabled { opacity: 0.32; cursor: not-allowed; }

  /* ── Heat meter ────────────────────────────────────────────────────── */
  .heat { display: inline-flex; align-items: center; gap: 3px; }
  .heat i {
    inline-size: 6px;
    block-size: 6px;
    border-radius: var(--r-999);
    border: 1px solid var(--heat-color);
    display: block;
  }
  .heat i.is-on { background: var(--heat-color); }
  .heat-filter { display: grid; gap: var(--sp-2); }
  .heat-filter .radio { justify-content: flex-start; inline-size: 100%; }
  .heat-filter .radio .filter-opt__count { margin-inline-start: auto; }

  /* ── Format buttons (sizes) ────────────────────────────────────────── */
  .size-btn--format {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-inline-size: 6.5rem;
    padding: var(--sp-2) var(--sp-3);
    text-align: start;
  }
  .size-btn__price {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    font-weight: 500;
    opacity: 0.75;
  }
  .size-btn__count {
    font-family: var(--ff-mono);
    font-size: var(--fs-3xs);
    opacity: 0.6;
    margin-inline-start: var(--sp-2);
  }
  .filter-sizes .size-btn { display: inline-flex; align-items: center; }

  .price__from {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .price { font-family: var(--ff-mono); }

  .tag--warn { background: color-mix(in oklab, var(--warn) 22%, transparent); color: color-mix(in oklab, var(--warn) 70%, var(--text)); }
  .allergens .cluster { margin-block-start: var(--sp-2); }

  /* ── Nutrition panel ───────────────────────────────────────────────── */
  .nutrition { max-inline-size: 46rem; }
  .nutrition__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1px;
    margin-block-start: var(--sp-3);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    overflow: hidden;
  }
  .nutrition__cell {
    display: grid;
    gap: 2px;
    padding: var(--sp-4);
    background: var(--surface);
    text-align: center;
  }
  .nutrition__v {
    font-family: var(--ff-mono);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
  }
  .nutrition__l { font-size: var(--fs-2xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

  /* ── SVG art always fills its box ──────────────────────────────────── */
  .cart-line__art svg,
  .search-row__art svg,
  .gallery__thumb svg,
  .compare-col__art svg,
  .compare-mini svg,
  .testimonial__avatar svg,
  .review__avatar svg,
  .team-card__avatar svg,
  .journal-card__art svg,
  .craft-step__art svg,
  .cat-card__art svg,
  .payments__item svg,
  .popover__flag svg,
  .brand__mark svg,
  .pay-method__art svg,
  .navdrawer__cats [data-art] svg { inline-size: 100%; block-size: 100%; display: block; }

  /* ── Theme toggle shows only the active mode ───────────────────────── */
  .theme-toggle .icon { display: none; }
  .theme-toggle[data-state="system"] .theme-toggle__sys,
  .theme-toggle[data-state="light"] .theme-toggle__sun,
  .theme-toggle[data-state="dark"] .theme-toggle__moon { display: block; }
  .theme-toggle:not([data-state]) .theme-toggle__sys { display: block; }

  /* ── Cart lines ────────────────────────────────────────────────────── */
  .cart-line--compact {
    grid-template-columns: 76px 1fr;
    gap: var(--sp-3);
    padding-block: var(--sp-4);
  }
  .cart-line--compact .cart-line__total { grid-column: 2; justify-self: end; }
  .cart-line__info { min-inline-size: 0; }

  /* ── Newsletter ────────────────────────────────────────────────────── */
  .newsletter__row { display: flex; gap: var(--sp-2); }
  .newsletter__input { flex: 1; min-inline-size: 0; }
  .newsletter__note { font-size: var(--fs-2xs); color: var(--text-3); margin-block-start: var(--sp-3); }
  .newsletter__msg { font-size: var(--fs-xs); margin-block-start: var(--sp-2); min-block-size: 1.2em; }
  .newsletter__msg[data-state="ok"] { color: var(--ok); }
  .newsletter__msg[data-state="err"] { color: var(--danger); }

  /* ── Filters ───────────────────────────────────────────────────────── */
  .filter-opt .checkbox { flex: 1; min-inline-size: 0; }
  .filter-opt .checkbox > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .overlay-search__suggest[hidden] { display: none; }
  .drawer--filters .drawer__body { padding-block-start: var(--sp-2); }
  .sk { display: block; }
}

@layer pages {
  .results-grid { min-block-size: 40svb; }
  .shop-main { min-inline-size: 0; }
  .hero__word { will-change: transform, opacity; }
  .journal-card__art svg, .craft-step__art svg { padding: var(--sp-3); }
  [data-page="checkout"] .site-footer { margin-block-start: var(--sp-12); }
  [data-page="checkout"] .catstrip { display: none; }
}

@layer components {
  /* ── Delivery slot picker ──────────────────────────────────────────── */
  .slotpicker { display: grid; gap: var(--sp-4); }
  .slotpicker__days { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; }
  .slotpicker__days::-webkit-scrollbar { display: none; }
  .slotpicker__day {
    flex: none;
    display: grid;
    gap: 2px;
    min-inline-size: 5.5rem;
    padding: var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    background: var(--surface);
    color: var(--text-2);
    text-align: center;
    cursor: pointer;
    transition: all var(--dur-1) var(--ease);
  }
  .slotpicker__day:hover { border-color: var(--line-strong); color: var(--text); }
  .slotpicker__day.is-active { background: var(--text); border-color: var(--text); color: var(--text-inv); }
  .slotpicker__dayname { font-size: var(--fs-xs); font-weight: 600; }
  .slotpicker__daydate { font-family: var(--ff-mono); font-size: var(--fs-2xs); opacity: 0.7; }
  .slotpicker__windows { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .slotpicker__window {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    background: var(--surface);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all var(--dur-1) var(--ease);
  }
  .slotpicker__window:hover:not(.is-disabled) { border-color: var(--accent); }
  .slotpicker__window.is-active { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); font-weight: 600; }
  .slotpicker__window.is-disabled { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; }
  .slotpicker__window .icon { color: var(--accent); flex: none; }
}

@layer pages {
  .producer__art { inline-size: 64px; aspect-ratio: 1; color: var(--accent); display: block; }
  .producer__art svg { inline-size: 100%; block-size: 100%; }
  .producer__since {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

}

@layer components {
  /* ═══════════════════ TOUCH ═══════════════════════════════════════════
     Apple and Google both ask for a 44px target; WCAG 2.2 AA requires 24.

     The tempting trick is an oversized ::after that grows the hit area without
     changing the drawing. It does not work here: an absolutely positioned box
     bigger than its container still counts toward scrollable overflow, and the
     result is a page that scrolls sideways for reasons three ancestors up.

     So the controls grow for real. Real size participates in layout, which is
     what lets flex and grid absorb it — and a thumb-sized control on a phone is
     the right drawing anyway.
     ──────────────────────────────────────────────────────────────────── */
  @media (pointer: coarse) {
    /* Square controls: an icon needs room in both directions. */
    :is(
      .icon-btn, .qty__btn, .gallery__thumb, .variant-dot,
      [data-toast-close]
    ) {
      min-inline-size: 44px;
      min-block-size: 44px;
    }

    /* Controls with a label: the width comes from the text, the height does not. */
    :is(
      .btn, .size-btn, .slotpicker__day, .slotpicker__window,
      .account-tab, .tabs__tab, .pagination__link, .bottomnav__item,
      .brand, [data-toast-action]
    ) {
      min-block-size: 44px;
    }

    /* A filter size chip is a 2.6rem box on a mouse — under a thumb it is not. */
    .filter-sizes .size-btn { min-inline-size: 44px; }

    /* Inline text controls stay inline: padding lifts the line box over the 24px
       WCAG minimum without turning a link into a button. */
    :is(.linkish, .chip, .breadcrumb a) {
      display: inline-flex;
      align-items: center;
      min-block-size: 24px;
    }

    /* The card overlay tools sit on the art, so they stay compact — but far
       enough apart that two of them do not share the same pixels. */
    .product-card__tools {
      gap: var(--sp-3);
      .icon-btn { min-inline-size: 40px; min-block-size: 40px; }
    }

    /* A 36px bar cannot give a 44px-tall target. 28px still clears the 24px
       minimum, and width is where a thumb actually varies. */
    .announce__close { inline-size: 44px; min-block-size: 0; }

    /* Fixed bars clip their own decoration rather than lengthening the page. */
    :is(.site-header, .bottomnav, .compare-bar, .pdp-sticky-bar, .toast-stack, .catstrip) {
      overflow-x: clip;
    }

    /* Where there is room, spacing beats slack: two 44px buttons side by side
       with a real gap never fight over the pixels between them. */
    .site-header__actions { gap: var(--sp-1); }
  }

  /* ── SHORT VIEWPORTS ──────────────────────────────────────────────────
     A phone held sideways is 390px tall. The announcement bar, the header,
     the category strip and the bottom bar together take about 200 of them —
     half the screen is chrome before a single product appears.

     Height, not width, is the thing to query here: an 844px-wide landscape
     phone is nowhere near a laptop, whatever its width says. The category
     strip is the first to go because the burger menu and the bottom bar both
     already carry the same destinations.
     ──────────────────────────────────────────────────────────────────── */
  @media (max-height: 460px) and (pointer: coarse) {
    .catstrip { display: none; }
    .announce { display: none; }
    .bottomnav__item { min-block-size: 40px; }
    .site-header__bar { block-size: 56px; }
  }
}
