/*
Theme Name: Norbulingka
Theme URI: https://norbulingka.org/
Author: Norbulingka Institute
Description: A faithful WordPress recreation of the Norbulingka Institute storefront and cultural archive.
Version: 1.0.0
Text Domain: norbulingka
*/

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --norling-red: #af3714;
  --norling-paper: #efefef;
  --norling-ink: #1c1c1c;
  --norling-olive: #595a50;
  --norling-turquoise: #67b5b8;
  --norling-gold: #ceab3b;
  --norling-white: #fffcff;
  --norling-rule: #cfcfcf;
  --norling-page: min(1180px, calc(100vw - 64px));
  --header-height: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--norling-ink);
  background: var(--norling-paper);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 10px;
  padding: 10px 14px;
  z-index: 9999;
  color: #fff;
  background: #111;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-height);
  color: #fff;
  transition: background-color .25s ease;
}

.site-header--solid { position: relative; background: #a0a0a0; }

.header-inner {
  width: var(--norling-page);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 44px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand-mark { justify-self: center; width: 42px; }
.brand-mark img { width: 42px; filter: brightness(0) invert(1); }

.primary-nav ul,
.header-tools,
.footer-links,
.social-links,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav ul { display: flex; align-items: center; gap: 38px; }
.primary-nav--right ul { justify-content: flex-end; }
.primary-nav a {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
.primary-nav a:hover { opacity: .7; }

.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 15px; }
.header-tools a { width: 21px; height: 21px; display: grid; place-items: center; }
.icon-line { display: block; position: relative; width: 18px; height: 18px; }
.icon-search { border: 1.6px solid currentColor; border-radius: 50%; width: 13px; height: 13px; }
.icon-search::after { content: ""; position: absolute; width: 7px; border-top: 1.6px solid; transform: rotate(45deg); top: 12px; left: 10px; }
.icon-user { border: 1.5px solid currentColor; border-radius: 50%; width: 8px; height: 8px; left: 5px; }
.icon-user::after { content: ""; position: absolute; width: 15px; height: 8px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 12px 12px 0 0; top: 10px; left: -5px; }
.icon-bag { border: 1.5px solid currentColor; width: 15px; height: 14px; top: 4px; }
.icon-bag::before { content: ""; position: absolute; width: 7px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; left: 2.5px; top: -6px; }
.cart-count { position: absolute; transform: translate(10px, -8px); font-size: 9px; }

.menu-toggle { display: none; color: inherit; background: transparent; border: 0; padding: 8px; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 19px; border-top: 1.5px solid currentColor; margin: 4px 0; }

.mobile-drawer {
  position: fixed;
  z-index: 70;
  inset: 0;
  padding: 96px 28px 40px;
  color: #fff;
  background: var(--norling-red);
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.menu-open .mobile-drawer { transform: translateX(0); }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.25); }
.mobile-nav a { display: block; padding: 14px 0; font-family: "Jost", sans-serif; text-transform: uppercase; }

.hero-slider { position: relative; min-height: 100svh; color: #fff; background: #33251e; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2) 48%, rgba(0,0,0,.45)); z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-content { position: absolute; z-index: 2; left: 50%; bottom: 72px; transform: translateX(-50%); text-align: center; width: min(560px, calc(100vw - 40px)); }
.eyebrow { font-family: "Jost", sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.display-title, .section-script, .product-title {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}
.display-title { margin: 12px 0 18px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }

.outline-button,
.button,
button.button,
input.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}
.outline-button:hover, .button:hover { color: #fff; background: var(--norling-ink); }

.slider-dots { position: absolute; z-index: 4; right: 38px; bottom: 40px; display: flex; gap: 12px; }
.slider-dot { width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; padding: 0; background: transparent; }
.slider-dot.is-active { background: #fff; }

.mission-band { min-height: 390px; padding: 72px 24px; color: #fff; background: var(--norling-red); display: grid; place-items: center; text-align: center; }
.mission-inner { width: min(720px, 100%); }
.section-script { margin: 0 0 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; }
.mission-inner p { margin: 0 auto 30px; max-width: 680px; font-size: 14px; font-weight: 600; line-height: 1.7; }

.experience { padding: 70px 0 84px; }
.section-title { margin: 0 0 42px; font-family: "Jost", sans-serif; font-size: 25px; font-weight: 400; text-align: center; text-transform: uppercase; letter-spacing: 4px; }
.experience-grid { width: var(--norling-page); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.experience-card { text-align: center; }
.experience-card img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.experience-card h3 { margin: 24px 0 14px; font-family: "Jost", sans-serif; font-size: 18px; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; }
.experience-card p { margin: 0; line-height: 1.7; }

.journal-band { min-height: 620px; padding: 70px 0; color: #fff; background: var(--norling-red); }
.journal-inner { width: var(--norling-page); margin: 0 auto; text-align: center; }
.journal-grid { margin: 42px 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.journal-card { color: #fff; }
.journal-card img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.journal-card h3 { margin: 18px 0 7px; font-family: Georgia, serif; font-style: italic; font-size: 22px; font-weight: 400; }
.journal-card p { margin: 0; opacity: .86; }

.site-footer { padding: 62px 0 34px; color: #fff; background: var(--norling-red); }
.footer-inner { width: min(850px, calc(100vw - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 60px; align-items: start; }
.footer-block { font-size: 13px; line-height: 1.65; }
.footer-block h3 { margin: 0; font-family: "Jost", sans-serif; font-size: 11px; text-transform: uppercase; }
.footer-brand { text-align: center; }
.footer-brand img { width: 185px; margin: 0 auto 14px; }
.footer-links { text-align: right; }
.footer-links a { display: block; }
.social-links { margin-top: 16px; display: flex; justify-content: center; gap: 18px; font-family: "Jost", sans-serif; font-size: 12px; }
.copyright { margin: 22px 0 0; font-family: "Jost", sans-serif; font-size: 9px; text-align: center; text-transform: uppercase; }

.collection-banner { position: relative; min-height: 138px; display: grid; place-items: end center; padding: 26px; color: #fff; background: linear-gradient(rgba(64,148,151,.77), rgba(64,148,151,.77)), url("assets/images/green-tara.png") center 38%/cover; }
.collection-banner h1 { margin: 0; font-family: "Jost", sans-serif; font-size: 21px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.shop-toolbar { width: var(--norling-page); margin: 28px auto; display: flex; justify-content: flex-end; }
.shop-toolbar select { padding: 10px 32px 10px 12px; border: 0; background: transparent; font-family: "Jost", sans-serif; font-size: 10px; text-transform: uppercase; }
.products-grid { width: var(--norling-page); margin: 0 auto 90px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 26px; }
.product-card { position: relative; text-align: center; min-width: 0; }
.product-card-image { position: relative; display: block; margin-bottom: 16px; background: #e7e7e7; overflow: hidden; }
.product-card-image img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.025); }
.sale-badge { position: absolute; z-index: 2; left: 0; top: 0; padding: 5px 8px; color: #fff; background: #e32c2b; font-family: "Jost", sans-serif; font-size: 8px; text-transform: uppercase; }
.product-card h2 { min-height: 2.8em; margin: 0 0 6px; font-family: "Jost", sans-serif; font-size: 11px; font-weight: 400; line-height: 1.4; text-transform: uppercase; }
.product-price { font-family: "Jost", sans-serif; font-size: 11px; color: #df4b38; }
.product-price del { color: #8d8d8d; margin-left: 6px; }

.product-layout { width: var(--norling-page); margin: 48px auto 78px; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr); gap: 72px; }
.product-gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: start; }
.product-thumbs { display: grid; gap: 16px; }
.product-thumb { padding: 0; border: 1px solid transparent; background: transparent; cursor: pointer; }
.product-thumb.is-active { border-color: #111; }
.product-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-main-image { width: 100%; max-height: 780px; object-fit: contain; }
.product-summary .eyebrow { color: #747474; }
.product-title { margin: 8px 0 6px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.single-price { margin: 0 0 30px; font-family: "Jost", sans-serif; font-size: 21px; color: #777; }
.product-description { padding: 26px 0 8px; border-top: 1px solid var(--norling-rule); }
.product-description p { margin: 0 0 18px; }
.product-meta-line, .craftsmanship { padding: 20px 0; border-top: 1px solid var(--norling-rule); border-bottom: 1px solid var(--norling-rule); }
.cart-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; margin-top: 22px; }
.quantity { display: flex; border: 1px solid var(--norling-rule); }
.quantity input { min-width: 0; width: 100%; border: 0; text-align: center; background: transparent; }
.single_add_to_cart_button { width: 100%; }
.craftsmanship { margin-top: 40px; display: flex; justify-content: space-between; font-family: "Jost", sans-serif; font-size: 11px; text-transform: uppercase; }
.related-band { min-height: 560px; padding: 72px 0; color: #fff; background: var(--norling-olive); }
.related-band .products-grid { margin-bottom: 0; }

.page-hero { min-height: 510px; background: #3b3b36 center/cover no-repeat; }
.norling-page { width: min(980px, calc(100vw - 64px)); margin: 0 auto; padding: 62px 0 84px; }
.norling-page > h1 { margin: 0 0 28px; font-family: "Jost", sans-serif; font-size: 31px; font-weight: 400; text-align: center; text-transform: uppercase; letter-spacing: 9px; }
.norling-page-content { font-size: 14px; letter-spacing: .6px; line-height: 1.7; }
.norling-page-content p { margin: 0 0 20px; }
.norling-page-content img { margin: 34px auto; max-width: 100%; }
.norling-page-content iframe { max-width: 100%; }
.norling-page-content [class*="gf_row"], .norling-page-content [class*="gl_row"] { display: flex; flex-wrap: wrap; gap: 24px; }

.blog-index { width: var(--norling-page); margin: 0 auto; padding: 60px 0 90px; }
.blog-index h1 { font-family: Georgia, serif; font-style: italic; font-size: 40px; text-align: center; font-weight: 400; }
.pagination { width: var(--norling-page); margin: -40px auto 80px; text-align: center; }
.pagination ul { list-style: none; display: flex; justify-content: center; gap: 18px; margin: 0; padding: 0; }
.pagination a, .pagination span { font-family: "Jost", sans-serif; font-size: 12px; }

.vision-page { width: min(980px, calc(100vw - 64px)); margin: 0 auto; padding: 62px 0 84px; }
.vision-page h1 { margin: 0 0 28px; font-family: "Jost", sans-serif; font-size: 31px; font-weight: 400; text-align: center; text-transform: uppercase; letter-spacing: 9px; }
.vision-page p { margin: 0 0 20px; font-size: 14px; letter-spacing: .6px; text-align: justify; }
.vision-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 44px 0 34px; }
.vision-photo-grid img { width: 100%; aspect-ratio: .73; object-fit: cover; }
.vision-wide-photo { width: 100%; margin-top: 34px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error { width: var(--norling-page); margin: 30px auto; padding: 16px 20px; border: 1px solid var(--norling-rule); background: #fff; }
.woocommerce-cart-form, .cart-collaterals, .woocommerce-checkout, .woocommerce-account .woocommerce { width: var(--norling-page); margin: 50px auto; }
.woocommerce table { width: 100%; border-collapse: collapse; }
.woocommerce th, .woocommerce td { padding: 14px; border-bottom: 1px solid var(--norling-rule); }
.wc-block-components-product-metadata__description { display: none; }

@media (max-width: 1040px) {
  :root { --norling-page: min(920px, calc(100vw - 40px)); }
  .primary-nav ul { gap: 20px; }
  .primary-nav a { font-size: 9px; }
  .product-layout { gap: 38px; }
}

@media (max-width: 760px) {
  :root { --norling-page: calc(100vw - 28px); --header-height: 58px; }
  body { font-size: 13px; }
  .site-header { position: absolute; background: rgba(89,90,80,.56); }
  .site-header--solid { position: relative; background: #a0a0a0; }
  .header-inner { width: calc(100vw - 20px); grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .primary-nav { display: none; }
  .menu-toggle { display: block; justify-self: start; }
  .brand-mark, .brand-mark img { width: 34px; }
  .header-tools .account-link { display: none; }
  .header-tools { gap: 12px; }
  .header-tools { justify-self: end; }
  .hero-slider { min-height: 66svh; }
  .hero-slide img { object-position: center; }
  .hero-slide-content { bottom: 44px; }
  .display-title { font-size: 25px; }
  .slider-dots { right: 24px; bottom: 22px; }
  .mission-band { min-height: 500px; padding: 48px 18px; }
  .section-script { font-size: 30px; }
  .mission-inner p { font-size: 12px; }
  .experience { padding: 38px 0 48px; overflow: hidden; }
  .section-title { margin-bottom: 28px; font-size: 17px; letter-spacing: 2px; }
  .experience-grid { width: auto; margin-left: 14px; display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .experience-card { flex: 0 0 70vw; scroll-snap-align: start; }
  .experience-card h3 { font-size: 15px; }
  .journal-band { min-height: 640px; padding: 48px 0; }
  .journal-grid { display: flex; overflow-x: auto; gap: 16px; }
  .journal-card { flex: 0 0 76vw; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .footer-links { text-align: center; }
  .footer-inner > .footer-block:first-child { order: 1; }
  .footer-brand { order: 2; }
  .footer-links { order: 3; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .collection-banner { min-height: 108px; padding: 18px; }
  .collection-banner h1 { font-size: 15px; }
  .shop-toolbar { margin: 14px auto; }
  .product-card h2 { font-size: 9px; }
  .product-price { font-size: 9px; }
  .product-layout { width: 100%; margin: 0 auto 0; display: block; }
  .product-gallery { display: flex; flex-direction: column-reverse; gap: 16px; }
  .product-main-image { width: 100%; max-height: none; aspect-ratio: 1 / 1.22; object-fit: cover; }
  .product-thumbs { grid-template-columns: repeat(4, 48px); padding: 0 14px; }
  .product-summary { padding: 0 14px 38px; }
  .product-title { font-size: 24px; }
  .cart-row { grid-template-columns: 86px 1fr; }
  .related-band { min-height: 580px; padding: 44px 0; }
  .related-band .products-grid { display: none; }
  .page-hero { min-height: 42svh; }
  .norling-page { width: calc(100vw - 40px); padding: 38px 0 60px; }
  .norling-page > h1 { font-size: 18px; letter-spacing: 7px; }
  .norling-page-content { font-size: 11px; text-align: justify; }
  .norling-page-content [class*="gf_row"], .norling-page-content [class*="gl_row"] { display: block; }
  .vision-page { width: calc(100vw - 40px); padding: 38px 0 60px; }
  .vision-page h1 { font-size: 18px; letter-spacing: 7px; }
  .vision-page p { font-size: 11px; }
  .vision-photo-grid { grid-template-columns: 1fr; gap: 22px; margin: 28px 0; }
  .vision-photo-grid img { height: auto; aspect-ratio: auto; }
  .woocommerce-cart-form, .cart-collaterals, .woocommerce-checkout, .woocommerce-account .woocommerce { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
