/* =====================================================================
 * style.css — all site CSS (store + admin). Media queries live in
 * responsive.css, which is loaded right after this file.
 * Tailwind (public/vendor/tailwind) handles utilities; this file holds the rest.
 * ===================================================================== */

/* ---------- Fonts (self-hosted in public/fonts — Baloo 2, Nunito, Noto Sans Devanagari for the store; Poppins for admin) ---------- */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/baloo-2-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/baloo-2-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: 'Baloo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/baloo-2-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/baloo-2-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: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-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: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-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: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/baloo-2-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/baloo-2-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: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/baloo-2-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/baloo-2-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: 'Noto Sans Devanagari'; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap; src: url("../fonts/noto-sans-devanagari-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap; src: url("../fonts/noto-sans-devanagari-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap; src: url("../fonts/noto-sans-devanagari-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: 'Noto Sans Devanagari'; font-style: normal; font-weight: 700; font-stretch: 100%; font-display: swap; src: url("../fonts/noto-sans-devanagari-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 700; font-stretch: 100%; font-display: swap; src: url("../fonts/noto-sans-devanagari-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 700; font-stretch: 100%; font-display: swap; src: url("../fonts/noto-sans-devanagari-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: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-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: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300-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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-devanagari.woff2") format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-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; }

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
.font-hindi { font-family: 'Noto Sans Devanagari', sans-serif; }

/* One page width for every section (header, content, footer) so edges line up.
   max(…, safe-area) keeps content clear of the notch on phones in landscape. */
.container-site { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right)); }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }

/* Bottom tab bar (phones & tablets). Pages with their own bottom action bar hide it. */
.app-tabbar-space { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
.app-tab { position: relative; }
.app-tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 2rem; height: 3px; margin-left: -1rem; border-radius: 0 0 4px 4px; background: #FF6B4A; }
.app-tab:active .app-tab-icon { transform: scale(.88); }
.app-tab-icon { transition: transform .12s ease; }
/* Toast & back-to-top float just above whichever bottom bar the page shows (height in --bottom-bar). */
.above-bottom-bar { bottom: calc(var(--bottom-bar, 4rem) + .75rem + env(safe-area-inset-bottom)); }

.dotted-bg { background-image: radial-gradient(#1F2A4414 1.5px, transparent 1.5px); background-size: 22px 22px; }
.btn-pop { transition: transform .12s ease, box-shadow .12s ease; }
.btn-pop:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 0 #1F2A44; }

/* ---------- Forms ---------- */
.field { width: 100%; border-radius: .75rem; border: 2px solid #1F2A4433; background: #fff; padding: .6rem .75rem; font-weight: 600; }
.field:focus { outline: none; border-color: #FF6B4A; box-shadow: 0 0 0 4px #FF6B4A33; }
.field-error { border-color: #E8542F !important; background: #FFF4F1; }

/* ---------- Rich text from the admin editor (CKEditor), e.g. product descriptions ---------- */
.rich-text > * + * { margin-top: .9em; }
.rich-text h2, .rich-text h3, .rich-text h4 { font-family: "Baloo 2", cursive; font-weight: 800; color: #1F2A44; line-height: 1.3; margin-top: 1.3em; }
.rich-text h2 { font-size: 1.4rem; } .rich-text h3 { font-size: 1.2rem; } .rich-text h4 { font-size: 1.05rem; }
.rich-text strong { color: #1F2A44; font-weight: 800; }
.rich-text a { color: #E8542F; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rich-text ul { list-style: disc; padding-left: 1.4em; } .rich-text ol { list-style: decimal; padding-left: 1.4em; }
.rich-text li + li { margin-top: .3em; } .rich-text li::marker { color: #FF6B4A; }
.rich-text blockquote { border-left: 5px solid #FFC93C; background: #FFF4D6; padding: .8em 1.1em; border-radius: 0 1rem 1rem 0; color: #1F2A44; }
.rich-text img { border-radius: 1rem; border: 2px solid #1F2A44; max-width: 100%; height: auto; }
.rich-text figure.image { text-align: center; } .rich-text figure.image img { margin-inline: auto; }
.rich-text figcaption { margin-top: .4em; font-size: .9rem; text-align: center; }
.rich-text figure.table { overflow-x: auto; }
.rich-text table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rich-text th, .rich-text td { border: 2px solid #1F2A4426; padding: .5em .75em; text-align: left; vertical-align: top; }
.rich-text th { background: #FFF8EC; color: #1F2A44; }

.price-bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.06)} 100%{transform:scale(1)} }

/* ---------- Offer ticker (layouts/shop) ---------- */
@keyframes offer-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.offer-ticker-track { animation: offer-ticker 35s linear infinite; }
.offer-ticker:hover .offer-ticker-track, .offer-ticker:focus-within .offer-ticker-track { animation-play-state: paused; }

/* ---------- Home: worksheets section (partials/home-worksheets) ---------- */
/* Scroll reveal: only hides cards once JS has marked the section (.ws-js). */
.ws-js .ws-reveal { opacity: 0; transform: translateY(48px) scale(.9); }
.ws-js .ws-reveal.ws-in { opacity: 1; transform: none; transition: opacity .6s ease var(--d), transform .8s cubic-bezier(.34,1.56,.64,1) var(--d); }
.ws-js .ws-head { opacity: 0; transform: translateY(20px); }
.ws-js .ws-head.ws-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* Card tilt + hover lift; the paper stack behind fans out. */
.ws-tilt { transform: rotate(var(--tilt)); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.ws-card:hover .ws-tilt, .ws-card:focus-within .ws-tilt { transform: rotate(0) translateY(-10px) scale(1.03); }
.ws-stack { transform: rotate(calc(var(--tilt) * -2)) translate(6px, 6px); transition: transform .35s ease; }
.ws-card:hover .ws-stack { transform: rotate(calc(var(--tilt) * -4)) translate(10px, 4px); }

/* Mini-worksheet animations (start after the card is revealed, loop). Default
   state is the finished worksheet, so reduced-motion users still see it. */
.ws-in .ws-draw { stroke-dasharray: 100; animation: ws-draw 5s ease-in-out calc(var(--d) + .7s + var(--s, 0s)) infinite both; }
.ws-in .ws-pop  { animation: ws-pop 5s ease-in-out calc(var(--d) + .7s + var(--s, 0s)) infinite both; }
.ws-in .ws-mark { animation: ws-mark 5s ease-in-out calc(var(--d) + .7s + var(--s, 0s)) infinite both; }
.ws-in .ws-bob  { animation: ws-bob 2.4s ease-in-out var(--s, 0s) infinite; display: inline-block; }
.ws-mark { background: #FFC93C; }
@keyframes ws-draw { 0%, 10% { stroke-dashoffset: 100; opacity: 1; } 40%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ws-pop  { 0%, 15% { transform: scale(0); opacity: 0; } 25% { transform: scale(1.25); opacity: 1; } 32%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ws-mark { 0%, 15% { background: #fff; transform: scale(1); } 25% { background: #FFC93C; transform: scale(1.25); } 32%, 85% { background: #FFC93C; transform: scale(1.1); } 100% { background: #fff; transform: scale(1); } }
@keyframes ws-bob  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* "And many more" banner shimmer */
.ws-shimmer { position: relative; overflow: hidden; }
.ws-shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffffb3 50%, transparent 65%); transform: translateX(-100%); animation: ws-shine 3.5s ease-in-out 1s infinite; pointer-events: none; }
@keyframes ws-shine { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }

.ws-tilt { container-type: inline-size; }
.ws-paper { font-family: Nunito, system-ui, sans-serif; font-size: 12px; font-size: 6cqi; line-height: 1.25; }
.ws-paper .t { font-size: .85em; }

/* ---------- Home: digital book section (partials/home-digital-book) ---------- */
.dbk-draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: dbk-draw 3s ease-in-out infinite; }
@keyframes dbk-draw { 0%, 15% { stroke-dashoffset: 100; } 55%, 100% { stroke-dashoffset: 0; } }
.dbk-curl { transform-origin: bottom right; animation: dbk-curl 3s ease-in-out infinite; }
@keyframes dbk-curl { 0%, 60%, 100% { transform: scale(1); } 80% { transform: scale(1.6); } }

/* ---------- Blog article (blog/show) ---------- */
/* Readable article typography for CKEditor content. */
.blog-content { font-size: 1.075rem; line-height: 1.8; color: #1F2A44; }
.blog-content > * + * { margin-top: 1.1em; }
.blog-content h2 + *, .blog-content h3 + * { margin-top: .6em; }
.blog-content h2 { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 2rem; line-height: 1.2; margin-top: 1.8em; scroll-margin-top: 150px; }
.blog-content > h2:first-child { margin-top: 0; }
.blog-content h3 { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 1.4rem; line-height: 1.3; margin-top: 1.5em; scroll-margin-top: 150px; }
.blog-content h4 { font-weight: 800; font-size: 1.1rem; margin-top: 1.3em; }
.blog-content a { color: #E8542F; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.blog-content strong { font-weight: 800; }
.blog-content ul { list-style: disc; padding-left: 1.4em; }
.blog-content ol { list-style: decimal; padding-left: 1.4em; }
.blog-content li + li { margin-top: .35em; }
.blog-content li::marker { color: #FF6B4A; font-weight: 800; }
.blog-content blockquote { border-left: 5px solid #FFC93C; background: #FFF4D6; padding: .9em 1.2em; border-radius: 0 1rem 1rem 0; font-weight: 700; }
.blog-content figure { margin-top: 1.5em; margin-bottom: 1.5em; }
.blog-content img { border-radius: 1rem; border: 2px solid #1F2A44; max-width: 100%; height: auto; }
.blog-content figure.image { text-align: center; }
.blog-content figure.image img { margin-inline: auto; }
.blog-content figure.image-style-side { float: right; max-width: 45%; margin: .3em 0 1em 1.5em; }
.blog-content figcaption { margin-top: .5em; font-size: .9rem; color: #4A5573; font-weight: 600; text-align: center; }
.blog-content figure.table { overflow-x: auto; }
.blog-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.blog-content th, .blog-content td { border: 2px solid #1F2A4426; padding: .55em .8em; text-align: left; vertical-align: top; }
.blog-content th, .blog-content thead td { background: #FFF8EC; font-weight: 800; }
.blog-content::after { content: ""; display: block; clear: both; }
.toc-link.is-active { color: #E8542F; font-weight: 800; }

/* ---------- Account: write a review (account/review) ---------- */
/* Star picker: inputs are in 5 → 1 order and shown reversed, so "~" lights up every star up to the chosen one. */
.rate { display: inline-flex; flex-direction: row-reverse; gap: .35rem; }
.rate label { cursor: pointer; font-size: 2.4rem; line-height: 1; color: #D6DAE3; transition: transform .1s, color .1s; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #FFC93C; }
.rate label:hover { transform: scale(1.12); }
.rate input:focus-visible + label { outline: 3px solid rgb(255 107 74 / .5); border-radius: .5rem; }

/* ---------- Book preview (shop/preview) ---------- */
/* Read-only viewer: no text selection, no image dragging, nothing to print. */
#viewer, #viewer * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#viewer canvas { pointer-events: none; display: block; width: 100%; height: auto; }
.watermark { background-image: repeating-linear-gradient(-35deg, transparent 0 140px, rgba(31,42,68,.06) 140px 142px); }

/* ---------- Flipbook reader (shop/flipbook) ---------- */
html.page-flipbook, html.page-flipbook body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.reader { height: 100vh; height: 100dvh; }
/* Read-only viewer: no text selection, no image dragging, nothing to print. */
.reader, .reader *, #studio, #studio * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#book-wrap { margin: auto; }
.fb-page { background: #fff; overflow: hidden; }
.fb-page canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.fb-page canvas.fb-ink { position: absolute; inset: 0; }
.fb-wait { position: absolute; inset: 0; display: grid; place-items: center; }
.fb-mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.fb-mark span { font-family: "Baloo 2", cursive; font-weight: 800; font-size: clamp(2rem, 9vw, 4.5rem); color: #1F2A4412; transform: rotate(-30deg); }
.fb-ribbon { position: absolute; top: 0; right: 14px; width: 18px; height: 34px; background: #E8542F; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); pointer-events: none; }
.fb-spin { width: 28px; height: 28px; border: 3px solid #1F2A4422; border-top-color: #FF6B4A; border-radius: 50%; animation: fbspin .8s linear infinite; }
@keyframes fbspin { to { transform: rotate(360deg); } }
.icon-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: rgb(255 255 255 / .1); color: #fff; flex-shrink: 0; }
.icon-btn:hover { background: rgb(255 255 255 / .2); }
.icon-btn:disabled { opacity: .3; }
.icon-btn[aria-pressed="true"] { background: #FFC93C; color: #1F2A44; }
/* Kid lock: nothing that leaves the book. */
.kid-locked #btn-back, .kid-locked #btn-settings { display: none; }
/* Contents drawer */
#panel { transform: translateX(-100%); transition: transform .25s ease; }
#panel.open { transform: none; }
.thumb { aspect-ratio: var(--ratio-inv, .707); }
.thumb canvas { width: 100%; height: 100%; display: block; }
/* Write & zoom studio */
#studio-scroll { touch-action: none; }
#studio-sheet { margin: auto; flex-shrink: 0; position: relative; background: #fff; box-shadow: 0 10px 40px rgb(0 0 0 / .4); }
#studio-sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#studio[data-tool="hand"] #studio-scroll { cursor: grab; }
#studio[data-tool="pen"] #studio-scroll, #studio[data-tool="marker"] #studio-scroll { cursor: crosshair; }
#studio[data-tool="eraser"] #studio-scroll { cursor: cell; }
.swatch { width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 3px solid transparent; flex-shrink: 0; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35); }
.swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #FFC93C; }
.size-dot { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; }
.size-dot[aria-pressed="true"] { background: rgb(255 255 255 / .2); }
.size-dot span { background: #fff; border-radius: 999px; }

/* =====================================================================
 * Admin panel (loaded after the Skote theme's app.min.css)
 * ===================================================================== */
/* Sidebar dropdown arrow: the theme draws it with an MDI glyph; use the Bootstrap Icons chevron instead. */
#sidebar-menu .has-arrow:after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .8rem; }
.brand-badge { display: inline-flex; align-items: center; background: #fff; border-radius: 5px; padding: 10px 30px; line-height: 1; }
/* Vertically centre the logo in the 70px top bar. The theme's line-height trick doesn't work with
   the badge, and its `body[data-sidebar=dark] .logo-light {display:block}` rule must be out-ranked. */
body[data-sidebar] .navbar-brand-box .logo.logo-light { display: flex; align-items: center; justify-content: center; height: 70px; line-height: normal; }
body[data-sidebar] .navbar-brand-box .logo img { display: block; }
/* Square off the theme's pill-shaped search boxes and buttons to match the other inputs. */
.search-box .form-control, .btn-rounded { border-radius: .25rem; }
.book-thumb { display: inline-grid; place-items: center; width: 40px; height: 52px; border-radius: 6px; overflow: hidden; flex-shrink: 0; font-size: 20px; }
.book-thumb img { width: 100%; height: 100%; object-fit: cover; }
.book-thumb-lg { width: 150px; height: 200px; font-size: 64px; border-radius: 10px; }

/* Google-style SERP preview + SEO checklist (admin product & blog forms) */
.serp { font-family: arial, sans-serif; max-width: 600px; }
.serp-url { color: #202124; font-size: 13px; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { color: #4d5156; font-size: 13.5px; line-height: 1.58; }
.seo-check li { display: flex; gap: .5rem; align-items: flex-start; padding: .25rem 0; font-size: 13px; }
.seo-check i { font-size: 16px; line-height: 1.2; }
.counter { font-size: 12px; }
