/* Sungrano Foods — rebuilt to match the original Shopify theme.
   Colors are the original theme's. Change one here and it changes everywhere. */
:root {
  --red: #f05a22;
  --yellow: #ffbb21;
  --green: #a4c783;
  --lilac: #d1adc5;
  --black: #000;
  --white: #fff;

  --font-head: "Vina Sans", "Bebas Neue", Impact, sans-serif;   /* big headlines */
  --font-body: "Figtree", system-ui, sans-serif;                 /* paragraphs (bold italic) */
  --font-alt: "Figtree", system-ui, sans-serif;                  /* menus, buttons, prices */
  --gutter: 5%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { font-family: var(--font-body); font-weight: 700; font-style: italic; font-size: 15px; line-height: 1.5; margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: .9; margin: 0; letter-spacing: 0; }
.alt { font-family: var(--font-alt); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-style: normal; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #000; color: #fff; padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--black); }
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); }
.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { font-family: var(--font-alt); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo { display: block; width: 460px; max-width: 100%; padding: 15px 0; }
.logo img { width: 100%; }
.right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.cart-btn { position: relative; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--black); display: inline-flex; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -4px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--yellow); color: var(--black); font: 700 12px/20px var(--font-alt); text-align: center; padding: 0 5px;
}
.cart-count[data-count="0"] { display: none; }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }
.mobile-menu { display: none; }

@media (max-width: 1000px) {
  .site-header .bar { grid-template-columns: 44px 1fr 44px; padding: 0 16px; }
  .site-header .left .menu, .right .menu { display: none; }
  .burger { display: inline-flex; }
  .logo { width: 100%; max-width: 300px; margin: 0 auto; padding: 14px 0; }
  .right { gap: 0; }
  .mobile-menu { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; }
  .mobile-menu .panel {
    position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: var(--white);
    border-right: 3px solid var(--black); padding: 72px 28px 28px; transform: translateX(-100%); transition: transform .25s ease;
  }
  .mobile-menu .shade { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
  .mobile-menu.open { pointer-events: auto; }
  .mobile-menu.open .panel { transform: none; }
  .mobile-menu.open .shade { opacity: 1; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li a { display: block; padding: 16px 0; border-bottom: 2px solid var(--black); font: 700 18px/1 var(--font-alt); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
  .mobile-menu .close { position: absolute; top: 16px; right: 16px; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; }
}

/* ---------- Buttons ---------- */
/* The "tag" shaped button used on the home page (white tag, pointed right end) */
.tag-btn {
  display: inline-block; background: var(--white); color: var(--black); text-decoration: none;
  font-family: var(--font-head); font-size: 35px; line-height: 1; text-transform: uppercase;
  padding: 13px 64px 7px 20px;
  clip-path: polygon(calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 0 0);
  transition: color .15s;
}
.tag-btn:hover { color: var(--red); }
.green-box .tag-btn:hover { color: var(--green); }
.lilac-box .tag-btn:hover { color: var(--lilac); }
@media (max-width: 600px) { .tag-btn { font-size: 28px; padding: 11px 54px 5px 14px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--black); color: var(--white); border: 2px solid var(--black);
  font: 700 1.2em/1.5 var(--font-alt); letter-spacing: .05em; text-transform: uppercase;
  padding: 10px 24px 12px; text-decoration: none; cursor: pointer; width: 100%;
}
.btn:hover { background: #222; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Home: hero ---------- */
.hero { background: var(--red); padding: 50px var(--gutter) 5%; }
.hero picture img { width: 100%; }
@media (max-width: 800px) { .hero { padding: 40px 16px 48px; } .hero picture img { max-width: 75%; } }

/* ---------- Home: text + photo blocks ---------- */
.text-img { position: relative; padding: 5% var(--gutter) 100px; }
.text-img .inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; }
.text-img h2 { font-size: 110px; line-height: .9; margin-bottom: 18px; position: relative; z-index: 3; }
.text-img .copy { position: relative; z-index: 3; }
.text-img .copy p { max-width: 430px; position: relative; z-index: 3; }
.text-img .photo { position: relative; z-index: 2; }
.text-img .photo img { width: 100%; }
.text-img .box { position: absolute; z-index: 1; }

/* Intro: text left, photo right, green box behind */
.intro .inner { padding-left: 5%; }
.intro .photo { margin-left: -120px; }
.intro .box.green-box { left: 0; bottom: 20px; height: 47%; width: calc(100% - 250px); background: var(--green); }
.intro .copy .tag-wrap { margin-top: 22px; }

/* We think: photo left, text right, lilac box behind */
.we-think .inner { grid-template-columns: 1fr 1fr; }
.we-think .copy { padding-left: 40px; }
.we-think .box.lilac-box { right: 80px; bottom: 20px; height: 60%; width: calc(100% - 250px); background: var(--lilac); }
.we-think .copy .tag-wrap { margin-top: 22px; }


@media (max-width: 1000px) { .text-img h2 { font-size: 70px; } }
@media (max-width: 750px) {
  .text-img { padding: 12% 16px 80px; }
  .text-img .inner { grid-template-columns: 1fr; }
  .text-img h2 { font-size: 65px; }
  .intro .inner { padding-left: 0; display: flex; flex-direction: column-reverse; }
  .intro .photo { margin: 0 0 24px auto; max-width: 65%; }
  .intro .copy, .we-think .copy { padding: 0 0 0 10%; max-width: 90%; }
  .text-img .box { display: none; }
  .intro .copy, .we-think .copy { max-width: none; padding: 28px 22px 30px; margin-right: 8%; }
  .intro .copy { background: var(--green); }
  .we-think .copy { background: var(--lilac); }
  .text-img .copy h2 { margin-top: -64px; }
  .we-think .photo { max-width: 65%; margin: 0 auto 24px 0; }
}

/* ---------- Home: yellow checkerboard ---------- */
.checker { background: var(--yellow); }
.checker .grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.checker .cell { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.checker .cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.checker .txt { text-align: center; padding: 40px 5%; align-items: center; }
.checker h3 { font-size: 90px; line-height: .9; margin-bottom: 16px; }
.checker .icon { width: 64px; height: 60px; margin: 0 auto 24px; }
.checker .txt p { max-width: 300px; }
@media (max-width: 1000px) { .checker h3 { font-size: 70px; } }
@media (max-width: 750px) {
  /* phone: photo|text, wide photo, wide text, text|photo — as the original did */
  .checker .grid { grid-template-columns: 1fr 1fr; }
  .checker .cell { padding: 0; }
  .checker .txt { padding: 12% 12px; }
  .checker .cell:nth-child(3), .checker .cell:nth-child(4) { grid-column: 1 / -1; }
  .checker .cell:nth-child(3) { padding: 10% 10% 2%; }
  .checker .cell:nth-child(3) img { aspect-ratio: 4 / 3; }
  .checker .cell:nth-child(4) { padding: 4% 20px 10%; }
  .checker .cell:nth-child(5) { order: 6; }
  .checker .cell:nth-child(6) { order: 5; }
  .checker h3 { font-size: 46px; }
  .checker .cell:nth-child(4) h3 { font-size: 70px; }
}

/* ---------- Home: "Don't burn your mouth off" ---------- */
.burn { background: var(--red); padding: 3rem var(--gutter) 6rem; position: relative; }
.burn .art img { width: 100%; }
.burn .note { max-width: 400px; margin: -22% 0 0 auto; position: relative; z-index: 2; padding-right: 8%; }
@media (max-width: 1001px) { .burn .note { margin: 32px auto 0; padding-right: 0; } }
@media (max-width: 800px) { .burn { padding: 10% 16px 12%; } .burn .art img { max-width: 75%; } }

/* ---------- Home: testimonials ---------- */
.reviews { padding: 10% var(--gutter); background: var(--white); position: relative; }
.reviews .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; z-index: 1; }
.review { position: relative; padding: 48px 36px 38px 26px; display: flex; flex-direction: column; justify-content: center; }
.review:nth-child(1) { background: var(--lilac); color: var(--lilac); }
.review:nth-child(2) { background: var(--green); color: var(--green); }
.review:nth-child(3) { background: var(--red); color: var(--red); }
.review:nth-child(2)::before { /* wavy top on the green card */
  content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 20px;
  background: radial-gradient(circle at 50% 0, transparent 9px, currentColor 10px) 0 0 / 24px 20px repeat-x;
}
.review > * { color: var(--black); }
.review .stars { display: flex; gap: 2px; margin-bottom: 14px; }
.review .stars svg { width: 30px; height: 30px; fill: var(--white); }
.review h3 { font-size: 6vw; line-height: .9; margin-bottom: 18px; }
@media (max-width: 767px) {
  .reviews { padding: 48px 16px; }
  .reviews .grid { grid-template-columns: 1fr; gap: 48px; }
  .review h3 { font-size: 13vw; }
}

/* ---------- Home: mosaic ---------- */
.mosaic img { width: 100%; }

/* ---------- Footer ---------- */
.site-footer .logo-row { background: var(--yellow); padding: 4% 2% 2%; }
.site-footer .logo-row img { width: 100%; }
.site-footer .meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px var(--gutter); background: var(--yellow); }
.site-footer .social { display: flex; gap: 12px; }
.site-footer .social a { display: inline-flex; padding: 6px; border-radius: 50%; }
.site-footer .social a:hover { background: rgba(255,255,255,.5); }
.site-footer .social svg { width: 30px; height: 30px; }
.site-footer .copy { font: 700 18px/1 var(--font-alt); letter-spacing: .05em; text-transform: uppercase; }
.site-footer .credit { background: var(--black); color: var(--yellow); text-align: center; padding: 16px; font: 700 13px/1.4 var(--font-alt); letter-spacing: .05em; text-transform: uppercase; }
.site-footer .credit a { text-decoration: none; }
.page-product .site-footer .meta, .page-cart .site-footer .meta { background: var(--white); }
@media (max-width: 1000px) {
  .site-footer .meta { flex-direction: column; text-align: center; }
  .site-footer .copy { font-size: 15px; }
}

/* ---------- Product page ---------- */
body.page-product { background: var(--yellow); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; padding: 50px var(--gutter) 40px; max-width: 1400px; margin: 0 auto; align-items: start; }
.product .media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product .thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product .thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 80px; }
.product .thumbs button[aria-current="true"] { border-color: var(--black); }
.product .thumbs img { aspect-ratio: 1; object-fit: cover; }
.product-title { font-size: 5vw; line-height: .9; margin-bottom: 20px; }
.price { font: 700 35px/1 var(--font-alt); letter-spacing: .05em; margin-bottom: 18px; }
.opt-label { font: 700 18px/1 var(--font-alt); letter-spacing: .05em; margin: 0 0 12px; font-style: normal; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 22px; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label span {
  display: inline-block; border: 2px solid var(--white); padding: 10px 20px 12px; cursor: pointer;
  font: 700 18px/1 var(--font-alt); letter-spacing: .05em;
}
.opts input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.opts input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.buy-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: stretch; }
.qty { display: flex; border: 2px solid var(--black); min-height: 55px; background: var(--white); }
.qty button { width: 44px; background: none; border: 0; font-size: 20px; cursor: pointer; }
.qty input { width: 100%; text-align: center; border: 0; font: 700 16px var(--font-alt); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.added { font-family: var(--font-alt); font-weight: 700; margin-top: 12px; min-height: 1.5em; }

.tabs { max-width: 800px; margin: 0 auto; padding: 0 16px 80px; }
.tab-list { display: flex; flex-wrap: wrap; }
.tab-list button {
  border: 0; cursor: pointer; padding: 12px 20px; font: 700 18px/1.1 var(--font-alt); letter-spacing: .05em; text-transform: uppercase;
}
.tab-list button:nth-child(1) { background: var(--lilac); }
.tab-list button:nth-child(2) { background: var(--white); }
.tab-list button[aria-selected="false"] { opacity: .85; }
.tab-panel { padding: 50px; }
.tab-panel#tab-desc { background: var(--lilac); }
.tab-panel#tab-ship { background: var(--white); }
.tab-panel p:last-child { margin-bottom: 0; }
.tab-panel h4 { font: 700 16px/1.2 var(--font-alt); text-transform: uppercase; letter-spacing: .05em; margin: 1.4em 0 .5em; }
@media (max-width: 767px) {
  .product { grid-template-columns: 1fr; padding: 32px 16px; gap: 28px; }
  .product-title { font-size: 13vw; }
  .tab-panel { padding: 28px 22px; }
  .tab-list button { font-size: 15px; }
}

/* ---------- Cart drawer + cart page ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 440px); background: var(--white);
  border-left: 3px solid var(--black); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer.open { pointer-events: auto; }
.drawer.open .shade { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 3px solid var(--black); }
.drawer header h3 { font-size: 30px; text-transform: uppercase; }
.drawer .close { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; }
.drawer .items { flex: 1; overflow-y: auto; padding: 0 24px; }
.drawer footer { padding: 20px 24px 24px; border-top: 3px solid var(--black); }

.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 3px solid var(--black); align-items: start; }
.line img { width: 80px; aspect-ratio: 1; object-fit: cover; }
.line .name { font-family: var(--font-head); font-size: 26px; line-height: 1.05; text-decoration: none; display: block; }
.line .variant { font: 700 14px/1.4 var(--font-alt); letter-spacing: .05em; margin: 4px 0 10px; }
.line .qty { min-height: 40px; width: 120px; }
.line .qty button { width: 36px; }
.line .amt { font: 700 20px/1 var(--font-alt); letter-spacing: .05em; text-align: right; }
.line .remove { display: block; margin-top: 12px; background: none; border: 0; padding: 0; cursor: pointer; font: 700 12px/1 var(--font-alt); letter-spacing: .05em; text-transform: uppercase; text-decoration: underline; }
.subtotal { display: flex; justify-content: space-between; font: 700 18px/1 var(--font-alt); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.ship-note { font-size: 13px; margin-bottom: 14px; }
.view-cart { display: block; text-align: center; margin-top: 12px; font: 700 14px/1 var(--font-alt); letter-spacing: .05em; text-transform: uppercase; }
.empty { padding: 40px 0; text-align: center; }
.empty p { font-size: 18px; }
.checkout-msg { font-size: 13px; margin-top: 10px; }

.cart-page { max-width: 900px; margin: 0 auto; padding: 50px 16px 80px; }
.cart-page h1 { font-size: clamp(56px, 8vw, 110px); margin-bottom: 24px; }
.cart-page .head { display: grid; grid-template-columns: 1fr auto; padding-bottom: 12px; border-bottom: 3px solid var(--black); font: 700 15px/1 var(--font-alt); letter-spacing: .05em; text-transform: uppercase; }
.cart-page .line { grid-template-columns: 110px 1fr auto; }
.cart-page .line img { width: 110px; }
.cart-page .totals { margin: 28px 0 0 auto; max-width: 380px; }

/* ---------- 404 ---------- */
.lost { background: var(--red); padding: 80px var(--gutter) 100px; text-align: center; }
.lost h1 { font-size: clamp(70px, 12vw, 180px); color: var(--yellow); margin-bottom: 20px; }
.lost p { font-size: 18px; }
.lost .tag-btn { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
