/* GoldWorld Core Frontend - Structure Fix */

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #fbf7ef;
  color: #102b1f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.gw-core-wrap {
  width: min(1240px, calc(100% - 40px));
  max-width: 1240px;
  margin: 0 auto;
}

/* Header */
.gw-core-header {
  position: relative;
  z-index: 50;
  background: #fffaf2;
  border-bottom: 1px solid rgba(16,43,31,.12);
  box-shadow: 0 8px 24px rgba(16,43,31,.06);
}

.gw-core-topbar {
  background: #092518;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}

.gw-core-topbar .gw-core-wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gw-core-topbar a,
.gw-core-topbar button,
.gw-core-topbar .btn-link {
  color: rgba(255,255,255,.86) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.gw-core-toplinks {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.gw-core-mainbar {
  background: #fffaf2;
}

.gw-core-main-grid {
  min-height: 92px;
  display: grid;
  grid-template-columns: 320px minmax(320px, 1fr) 210px;
  align-items: center;
  gap: 24px;
}

.gw-core-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #103625 !important;
  text-decoration: none !important;
}

.gw-core-logo-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #174833, #071f15 76%);
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(9,37,24,.24);
}

.gw-core-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.gw-core-logo-text strong {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.gw-core-logo-text em {
  margin-top: 4px;
  font-style: normal;
  color: #b8893d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gw-core-search {
  width: 100%;
  height: 54px;
  display: flex;
}

.gw-core-search input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 1px solid rgba(16,43,31,.16);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  background: #fff;
  color: #102b1f;
  padding: 0 18px;
  font-size: 16px;
  outline: none;
}

.gw-core-search button {
  width: 94px;
  height: 54px;
  border: 1px solid rgba(16,43,31,.16);
  border-radius: 0 18px 18px 0;
  background: #fff;
  color: #102b1f;
  font-weight: 900;
}

.gw-core-cart {
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #16231d;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(9,37,24,.18);
}

.gw-core-nav {
  background: #174833;
}

.gw-core-nav .gw-core-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gw-core-nav .gw-core-wrap::-webkit-scrollbar {
  display: none;
}

.gw-core-nav a {
  flex: 0 0 auto;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 900;
  padding: 15px 17px;
  border-radius: 14px;
}

.gw-core-nav a:hover {
  background: rgba(255,255,255,.12);
}

/* Main */
.gw-core-main {
  display: block;
  width: 100%;
  min-height: 60vh;
}

#common-home.gw-dog-home,
.gw-dog-home {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Hero */
.gw-core-hero {
  position: relative;
  width: 100%;
  height: clamp(560px, 74svh, 820px);
  margin: 0;
  overflow: hidden;
  background: #071b13;
  isolation: isolate;
}

.gw-core-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #071b13;
}

.gw-core-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,20,14,.82) 0%, rgba(4,20,14,.50) 45%, rgba(4,20,14,.15) 100%),
    linear-gradient(180deg, rgba(4,20,14,.12) 0%, rgba(4,20,14,.16) 48%, rgba(4,20,14,.72) 100%);
}

.gw-core-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.gw-core-hero-copy {
  max-width: 760px;
  color: #fff;
}

.gw-core-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.gw-core-eyebrow::before {
  content: "●";
  color: #d5a34f;
  font-size: 10px;
}

.gw-core-hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 950;
  text-shadow: 0 22px 54px rgba(0,0,0,.58);
}

.gw-core-hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.90);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.62;
  text-shadow: 0 12px 32px rgba(0,0,0,.54);
}

.gw-core-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.gw-core-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none !important;
}

.gw-core-primary {
  background: #fff;
  color: #143525 !important;
}

.gw-core-secondary {
  background: rgba(255,255,255,.14);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: blur(10px);
}

/* All homepage content after hero */
.gw-dog-home > *:not(.gw-core-hero) {
  width: min(1240px, calc(100% - 36px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.gw-section-head {
  margin-top: 56px !important;
}

/* Footer */
.gw-core-footer {
  position: relative;
  z-index: 1;
  display: block;
  clear: both;
  width: 100%;
  margin-top: 64px;
  background: linear-gradient(135deg, #081c14, #174833);
  color: rgba(255,255,255,.82);
}

.gw-core-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.gw-core-footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.gw-core-footer-logo span {
  color: #d5a34f;
}

.gw-core-footer p {
  max-width: 420px;
  line-height: 1.7;
}

.gw-core-footer-contact {
  color: #fff;
  font-weight: 900;
}

.gw-core-footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gw-core-footer-col h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  margin: 0 0 8px;
}

.gw-core-footer-col a {
  color: rgba(255,255,255,.78) !important;
  text-decoration: none !important;
  font-weight: 700;
}

.gw-core-footer-col a:hover {
  color: #fff !important;
}

.gw-core-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 992px) {
  .gw-core-main-grid {
    grid-template-columns: 260px 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .gw-core-cart {
    grid-column: 1 / -1;
    width: 100%;
  }

  .gw-core-hero {
    height: clamp(520px, 70svh, 720px);
  }

  .gw-core-hero-inner {
    width: calc(100% - 40px);
  }

  .gw-core-hero h1 {
    font-size: clamp(36px, 6.5vw, 58px);
  }

  .gw-core-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .gw-core-wrap {
    width: calc(100% - 24px);
  }

  .gw-core-topbar .gw-core-wrap {
    min-height: auto;
    display: block;
    padding: 8px 0;
  }

  .gw-core-toplinks {
    margin-top: 6px;
    gap: 10px;
    overflow-x: auto;
    font-size: 12px;
  }

  .gw-core-main-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 12px;
    padding: 14px 0;
  }

  .gw-core-logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 14px;
    font-size: 20px;
  }

  .gw-core-logo-text strong {
    font-size: 20px;
  }

  .gw-core-logo-text em {
    font-size: 11px;
  }

  .gw-core-search,
  .gw-core-search input,
  .gw-core-search button,
  .gw-core-cart {
    height: 46px;
  }

  .gw-core-nav .gw-core-wrap {
    min-height: 50px;
  }

  .gw-core-nav a {
    font-size: 14px;
    padding: 13px 12px;
  }

  .gw-core-hero {
    height: clamp(500px, 72svh, 640px);
  }

  .gw-core-hero-inner {
    width: calc(100% - 28px);
    align-items: flex-end;
    padding-bottom: 34px;
  }

  .gw-core-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 10vw, 42px);
    line-height: .96;
    margin: 12px 0 10px;
  }

  .gw-core-hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  .gw-core-eyebrow {
    font-size: 10px;
    padding: 6px 10px;
  }

  .gw-core-actions {
    margin-top: 16px;
    gap: 8px;
  }

  .gw-core-actions a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .gw-dog-home > *:not(.gw-core-hero) {
    width: calc(100% - 24px) !important;
  }

  .gw-core-footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }
}

/* GoldWorld search form fix */
.gw-core-search {
  width: 100% !important;
  height: 54px !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
}

.gw-core-search input[type="text"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 54px !important;
  border: 1px solid rgba(16,43,31,.16) !important;
  border-right: 0 !important;
  border-radius: 18px 0 0 18px !important;
  background: #fff !important;
  color: #102b1f !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  outline: none !important;
  box-shadow: none !important;
}

.gw-core-search button {
  flex: 0 0 94px !important;
  width: 94px !important;
  height: 54px !important;
  border: 1px solid rgba(16,43,31,.16) !important;
  border-radius: 0 18px 18px 0 !important;
  background: #fff !important;
  color: #102b1f !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

@media (max-width: 560px) {
  .gw-core-search,
  .gw-core-search input[type="text"],
  .gw-core-search button {
    height: 46px !important;
  }

  .gw-core-search button {
    flex-basis: 78px !important;
    width: 78px !important;
    font-size: 13px !important;
  }
}

/* GoldWorld language switcher fix */
.gw-language-form {
  display: inline-block !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 9999 !important;
}

.gw-language-details {
  position: relative !important;
  display: inline-block !important;
}

.gw-language-summary {
  list-style: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: inherit !important;
  font-weight: 800 !important;
  user-select: none !important;
}

.gw-language-summary::-webkit-details-marker {
  display: none !important;
}

.gw-language-summary::after {
  content: "▾";
  font-size: 12px;
  opacity: .8;
}

.gw-language-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 168px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16,43,31,.14) !important;
  box-shadow: 0 18px 38px rgba(16,43,31,.18) !important;
  z-index: 10000 !important;
}

.gw-language-option {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #102b1f !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  text-align: left !important;
  cursor: pointer !important;
}

.gw-language-option:hover,
.gw-language-option.active {
  background: #e8efe6 !important;
  color: #174833 !important;
}

@media (max-width: 560px) {
  .gw-language-menu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 46px !important;
    min-width: auto !important;
  }
}


/* GoldWorld language direct-link fix */
.gw-language-form {
  display: inline-block !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 9999 !important;
}

.gw-language-details {
  position: relative !important;
  display: inline-block !important;
}

.gw-language-summary {
  list-style: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: inherit !important;
  font-weight: 800 !important;
  user-select: none !important;
}

.gw-language-summary::-webkit-details-marker {
  display: none !important;
}

.gw-language-summary::after {
  content: "▾";
  font-size: 12px;
  opacity: .8;
}

.gw-language-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 168px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16,43,31,.14) !important;
  box-shadow: 0 18px 38px rgba(16,43,31,.18) !important;
  z-index: 10000 !important;
}

.gw-language-option {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #102b1f !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.gw-language-option:hover,
.gw-language-option.active {
  background: #e8efe6 !important;
  color: #174833 !important;
}

@media (max-width: 560px) {
  .gw-language-menu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 46px !important;
    min-width: auto !important;
  }
}


/* ===== GoldWorld video hero restore ===== */
.gw-core-hero {
  position: relative !important;
  width: 100% !important;
  height: clamp(560px, 74svh, 820px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #071b13 !important;
  isolation: isolate !important;
  display: block !important;
}

.gw-core-hero-video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #071b13 !important;
}

.gw-core-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(4,20,14,.82) 0%, rgba(4,20,14,.50) 45%, rgba(4,20,14,.15) 100%),
    linear-gradient(180deg, rgba(4,20,14,.12) 0%, rgba(4,20,14,.16) 48%, rgba(4,20,14,.72) 100%) !important;
}

.gw-core-hero-inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1240px, calc(100% - 48px)) !important;
  height: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

.gw-core-hero-copy {
  max-width: 760px !important;
  color: #fff !important;
}

.gw-core-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.38) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(12px) !important;
}

.gw-core-hero h1 {
  max-width: 760px !important;
  margin: 18px 0 16px !important;
  color: #fff !important;
  font-size: clamp(42px, 5.2vw, 76px) !important;
  line-height: .94 !important;
  letter-spacing: -.065em !important;
  font-weight: 950 !important;
  text-shadow: 0 22px 54px rgba(0,0,0,.58) !important;
}

.gw-core-hero p {
  max-width: 640px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.90) !important;
  font-size: clamp(16px, 1.45vw, 20px) !important;
  line-height: 1.62 !important;
  text-shadow: 0 12px 32px rgba(0,0,0,.54) !important;
}

.gw-core-actions {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 26px !important;
}

.gw-core-actions a {
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

.gw-core-primary {
  background: #fff !important;
  color: #143525 !important;
}

.gw-core-secondary {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  backdrop-filter: blur(10px) !important;
}

@media (max-width: 560px) {
  .gw-core-hero {
    height: clamp(500px, 72svh, 640px) !important;
  }

  .gw-core-hero-inner {
    width: calc(100% - 28px) !important;
    align-items: flex-end !important;
    padding-bottom: 34px !important;
  }

  .gw-core-hero h1 {
    max-width: 100% !important;
    font-size: clamp(30px, 10vw, 42px) !important;
    line-height: .96 !important;
    margin: 12px 0 10px !important;
  }

  .gw-core-hero p {
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .gw-core-eyebrow {
    font-size: 10px !important;
    padding: 6px 10px !important;
  }

  .gw-core-actions {
    margin-top: 16px !important;
    gap: 8px !important;
  }

  .gw-core-actions a {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }
}
