/* ==========================================================================
   MODERN CSS RESET — Spices of Kerala
   Based on Andy Bell's modern reset with ecommerce-specific additions
   ========================================================================== */

/* 1. Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin and padding on all elements. */
* {
  margin: 0;
  padding: 0;
}

/* 3. Allow percentage-based heights in the application. */
html,
body {
  height: 100%;
}

/* 4. Improve text rendering. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
  hanging-punctuation: first last;
  scroll-behavior: smooth;
}

/* 5. Typographic tweaks – add accessible line-height and improve text rendering. */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults. */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Remove built-in form typography styles. */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 8. Avoid text overflows. */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Create a root stacking context. */
#root,
#__next {
  isolation: isolate;
}

/* 10. Remove list styles on ul, ol elements with a list role. */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* 11. Consistent heading sizes across browsers. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* 12. Inherit anchor text decoration. */
a {
  color: inherit;
  text-decoration: none;
}

/* 13. Button cursor pointer. */
button,
[role='button'],
label[for],
summary {
  cursor: pointer;
}

/* 14. Disabled state. */
:disabled,
[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* 15. Remove animation if user prefers reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 16. Table reset. */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 17. Fieldset / legend reset. */
fieldset {
  border: none;
}

legend {
  display: table;
  padding: 0;
}

/* 18. HR reset. */
hr {
  border: none;
  border-top: 1px solid currentColor;
  color: inherit;
  height: 0;
  overflow: visible;
}

/* 19. Pre / code reset. */
pre,
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* 20. Abbr title. */
abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}

/* 21. Sub / sup. */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* 22. Remove default button styles. */
button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
}

/* 23. Input type search webkit overrides. */
input[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* 24. Correct the cursor style of increment / decrement buttons in Safari. */
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/* 25. Address inconsistent appearance across platforms. */
input[type='checkbox'],
input[type='radio'] {
  padding: 0;
}

/* 26. Remove default select arrow in IE. */
select::-ms-expand {
  display: none;
}

/* 27. Textarea resize vertical only. */
textarea {
  resize: vertical;
}

/* 28. Remove default details/summary marker in Safari. */
details > summary::-webkit-details-marker {
  display: none;
}

/* 29. Focus-visible ring (browser default enhancement). */
:focus-visible {
  outline: 2px solid var(--color-border-focus, #E8A317);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* 30. Tap highlight color on mobile. */
a,
button,
[role='button'] {
  -webkit-tap-highlight-color: transparent;
}

/* 31. Hidden attribute should work properly. */
[hidden] {
  display: none !important;
}

/* 32. Dialog reset. */
dialog {
  background: transparent;
  border: none;
  padding: 0;
}

/* 33. Mark. */
mark {
  background-color: transparent;
  color: inherit;
}

/* 34. Blockquote / q. */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
}
