/* Header, mega menu, cart drawer, footer — layout from the v03 comps. */

body.grc-shell-on { padding-top: 76px; }

.grc-head {
  height: 76px;
  display: flex;
  align-items: center;
  background: #07080b;
  border-bottom: 1px solid rgba(245, 246, 247, 0.08);
}
.grc-head__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: min(1440px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.grc-head__burger { display: none; }
.grc-head__logo img { display: block; height: 32px; width: auto; }
.grc-head__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  height: auto;
  padding: 0;
  border: 0;
}
.grc-head__nav > a,
.grc-shop-toggle {
  position: relative;
  padding: 0.35rem 0;
  color: #f5f6f7;
  background: transparent;
  border: 0;
  font: 600 0.95rem/1 Barlow, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.grc-shop-toggle::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
.grc-shop-toggle.is-open {
  color: #ff6a1a;
}
.grc-shop-toggle.is-open::after { transform: translateY(1px) rotate(225deg); }
.grc-head__nav > a:hover,
.grc-shop-toggle:hover { color: #ff6a1a; }

.grc-head__tools {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.grc-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.grc-icon-btn .grc-cart-count {
  position: absolute;
  top: 5px;
  right: 1px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #ff6a1a;
  font-family: Barlow, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1;
}
.grc-icon-btn .grc-cart-count[hidden] { display: none !important; }
.grc-mega {
  position: absolute;
  left: 50%;
  top: 100%;
  display: grid;
  grid-template-columns: 230px 1fr;
  width: min(1080px, calc(100vw - 3rem));
  padding: 1.25rem;
  background: #1a1d22;
  border: 1px solid rgba(245, 246, 247, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(.2, .7, .2, 1), visibility 0.34s;
  pointer-events: none;
}
.grc-mega.is-open,
.grc-mega-wrap:hover .grc-mega,
.grc-mega-wrap:focus-within .grc-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.grc-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.grc-mega__label {
  margin: 0.85rem 0 0.4rem;
  color: #f5f6f7;
  font-weight: 700;
}
.grc-mega__cats { display: flex; flex-direction: column; gap: 0.15rem; }
.grc-mega__cat,
.grc-mega__side > a {
  display: block;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f5f6f7;
  text-align: left;
  text-decoration: none;
  font: 500 0.95rem/1.3 Barlow, sans-serif;
  cursor: pointer;
}
.grc-mega__cat.is-active { background: #ff6a1a; color: #111317; font-weight: 700; }
.grc-mega__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.grc-mega__head h2 {
  margin: 0;
  color: #f5f6f7;
  font-family: Barlow, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.grc-mega__head p { margin: 0.25rem 0 0; color: #9aa0ab; }
.grc-mega__all { color: #ff6a1a; font-weight: 700; text-decoration: none; white-space: nowrap; }
.grc-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.grc-mega__card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.7rem;
  align-items: center;
  min-height: 92px;
  padding: 0.7rem;
  border-radius: 12px;
  background: #121418;
  color: #f5f6f7;
  text-decoration: none;
}
.grc-mega__thumb {
  display: grid;
  place-items: center;
  height: 72px;
  border-radius: 8px;
  background: #fff;
}
.grc-mega__thumb img { width: 42px; height: auto; }
.grc-mega__card strong { display: block; font-weight: 700; }
.grc-mega__card em { display: block; margin-top: 0.2rem; color: #9aa0ab; font-style: normal; font-size: 0.82rem; font-weight: 400; }
.grc-mega__panel { display: none; }
.grc-mega__panel.is-active { display: block; animation: grc-fade 0.32s ease; }
@keyframes grc-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.store-cart-drawer__panel {
  width: min(420px, 100vw);
  background: #16181d;
  color: #f5f6f7;
}
.store-cart-drawer__head { border-bottom-color: rgba(245, 246, 247, 0.1); }
.store-cart-drawer__title { display: flex; gap: 0.75rem; align-items: center; }
.store-cart-drawer__mark { display: block; height: 2.45rem; width: auto; }
.store-cart-drawer__title h2 { margin: 0; color: #fff; font-size: 1.25rem; line-height: 1.1; letter-spacing: 0.01em; }
.store-cart-drawer__count { margin: 0.12rem 0 0; color: #9aa0ab; font-size: 0.82rem; line-height: 1.1; }
.store-cart-drawer__close { color: #fff; }
.store-cart-drawer__body { display: flex; flex-direction: column; }
.store-cart-drawer__body .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 100%; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item {
  display: grid !important;
  grid-template-columns: 74px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(245, 246, 247, 0.1);
}
.grc-line__media img, .woocommerce-mini-cart-item img {
  width: 74px; height: 74px; object-fit: contain; background: #fff; border-radius: 8px;
}
.store-cart-drawer__body .woocommerce-mini-cart-item,
.store-cart-drawer__body .woocommerce-mini-cart-item a:not(.remove),
.store-cart-drawer__body .grc-line__name,
.store-cart-drawer__body .grc-qty,
.store-cart-drawer__body .grc-qty span { color: #fff; }
.grc-line__name { color: #fff; font-weight: 700; text-decoration: none; }
.grc-line__prices { display: block; margin: 0.25rem 0; color: #ff6a1a; font-weight: 800; }
.grc-line__prices .amount,
.store-cart-drawer__body .grc-line__prices .woocommerce-Price-amount { color: #ff6a1a; }
.grc-line__prices del,
.grc-line__prices del .amount { margin-left: 0.35rem; color: #8b919c; font-weight: 500; }
.grc-qty { display: inline-flex; align-items: center; border: 1px solid rgba(245, 246, 247, 0.2); border-radius: 8px; }
.grc-qty button { width: 28px; height: 28px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.store-cart-drawer__body .woocommerce-mini-cart-item.is-removing .remove {
  pointer-events: none;
  opacity: 0.4;
}
.grc-line__status,
.grc-order-note__status {
  display: block;
  margin: 0.35rem 0 0;
  color: #f5f6f7;
  font-size: 0.875rem;
  line-height: 1.4;
}
.grc-line__status button,
.grc-order-note__status button {
  margin-left: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff6a1a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.grc-qty button:disabled { opacity: 0.45; cursor: wait; }
.store-cart-drawer__body .woocommerce-mini-cart-item .remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: #ff6a1a;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}
.grc-trash { display: block; }
.grc-cart-foot { margin-top: auto; padding: 1.35rem 0 0.35rem; border-top: 1px solid rgba(245, 246, 247, 0.1); }
.store-cart-drawer__body .woocommerce-mini-cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0;
  color: #fff !important;
  text-transform: none !important;
}
.grc-cart-foot__label {
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 1;
}
.grc-cart-foot__sum,
.store-cart-drawer__body .grc-cart-foot__sum .amount {
  color: #fff !important;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.grc-cart-foot__code {
  margin-left: 0.2rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.store-cart-drawer__body .woocommerce-mini-cart__note {
  margin: 0.9rem 0 0;
  color: #d5dae2;
  font-size: 1rem;
  line-height: 1.45;
}
.store-cart-drawer__body .woocommerce-mini-cart__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.store-cart-drawer__body .woocommerce-mini-cart__note a:hover { color: #fff; }
.store-cart-drawer__body .grc-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1rem;
  text-align: center;
}
.store-cart-drawer__body .grc-drawer-empty .grc-act { width: auto; }
.grc-order-note__toggle {
  display: inline-block;
  margin: 0.7rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #d5dae2;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.grc-order-note__toggle:hover { color: #fff; }
.grc-order-note { margin-top: 0.85rem; }
.grc-order-note__field {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 148px !important;
  min-height: 148px !important;
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(245, 246, 247, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
}
.grc-order-note__field:focus {
  outline: none;
  border-color: #ff6a1a;
}
.grc-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 1.25rem 0 0;
}
.store-cart-drawer__body a.grc-cart-action {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 54px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.store-cart-drawer__body a.grc-cart-action.grc-view-cart {
  background: #fff;
  color: #111317;
}
.store-cart-drawer__body a.grc-cart-action.grc-checkout {
  background: #ff6a1a;
  color: #fff;
}

.grc-foot {
  display: block !important;
  flex-wrap: nowrap;
  padding: 0 !important;
  background: #07080b;
  color: #f5f6f7;
}
.grc-foot__main {
  display: grid;
  grid-template-columns: minmax(280px, 1.65fr) repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  align-items: start;
  width: min(1440px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
}
.grc-foot__main > nav {
  display: block;
  text-align: right;
}
.grc-foot__main ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.grc-foot__brand img {
  display: block;
  height: 52px;
  width: auto;
  margin-left: calc(52px * -157 / 873);
}
.grc-foot .grc-foot__tag {
  max-width: 22rem;
  margin: 0.95rem 0 0;
  color: #c9ccd4;
  font-size: 0.95rem;
  line-height: 1.45;
}
.grc-foot .grc-foot__biz {
  max-width: 22rem;
  margin: 0.7rem 0 0;
  color: #bfc3cb;
  font-size: 0.78rem;
  line-height: 1.5;
}
.grc-foot__main h2 {
  margin: 0 0 0.28rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.grc-foot .grc-subscribe h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}
.grc-foot ul { list-style: none; margin: 0; padding: 0; }
.grc-foot__main li { margin: 0; }
.grc-foot__main > nav ul { align-items: flex-end; }
.grc-foot__main a { font-size: 0.78rem; line-height: 1.25; }
.grc-foot__main > nav a { color: #bfc3cb; }
.grc-foot__main > nav a:hover,
.grc-foot__main > nav a:focus-visible { color: #ff6a1a; }
.grc-foot a { color: #c9ccd4; text-decoration: none; }
.grc-foot a:hover { color: #ff6a1a; }
.grc-foot__bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  width: min(1440px, calc(100% - 4rem)); margin: 0 auto; padding: 1rem 0 1.4rem;
  border-top: 1px solid rgba(245, 246, 247, 0.1);
}
.grc-foot__bar p { margin: 0; color: #9aa0ab; }
.grc-foot__bar nav { display: flex; gap: 1.2rem; }

@media (max-width: 980px) {
  .grc-head__burger { display: inline-flex; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-weight: 700; }
  .grc-head__bar { grid-template-columns: auto 1fr auto; width: calc(100% - 1rem); }
  .grc-head__nav {
    display: none;
    position: fixed;
    z-index: 85;
    inset: 76px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    overflow: auto;
    padding: 1rem;
    background: #07080b;
  }
  .grc-head__nav.is-open { display: flex; }
  .grc-mega, .grc-mega.is-open {
    position: static; width: auto; transform: none; opacity: 1; visibility: visible;
    display: block; box-shadow: none; padding: 0.5rem 0 0;
  }
  .grc-mega__grid { grid-template-columns: 1fr; }
  .grc-foot__main { grid-template-columns: 1fr 1fr; width: calc(100% - 2rem); }
}

.grc-head,
.grc-foot {
  background-color: #07080b;
  isolation: isolate;
}
.grc-foot { position: relative; }
.grc-head::before,
.grc-head::after,
.grc-foot::before,
.grc-foot::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
}
.grc-head::before,
.grc-head::after {
  width: min(24vw, 320px);
  background-image: url("backgrounds/grc-header-bg-v02.webp");
  background-size: auto 360px;
  opacity: 0.38;
}
.grc-foot::before,
.grc-foot::after {
  width: min(32vw, 520px);
  background-image: url("backgrounds/grc-footer-bg-v02.webp");
  background-size: auto 640px;
  opacity: 0.48;
}
.grc-head::before,
.grc-foot::before {
  left: 0;
  right: auto;
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, #000 70%, transparent 100%);
}
.grc-head::after,
.grc-foot::after {
  right: 0;
  left: auto;
  background-position: right center;
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 100%);
  mask-image: linear-gradient(to left, #000 70%, transparent 100%);
}
@media (max-width: 600px) {
  .grc-head::before,
  .grc-head::after {
    width: 42%;
    opacity: 0.38;
  }
  .grc-foot::before,
  .grc-foot::after {
    width: 50%;
    background-size: auto 340px;
    opacity: 0.48;
  }
  .grc-foot::before { background-position: left bottom; }
  .grc-foot::after { background-position: right bottom; }
}
