/*
Theme Name: MyiToolMax Theme
Theme URI: https://www.myitoolmax.com
Author: myitoolmax.com
Author URI: https://www.myitoolmax.com
Description: Custom Industrial Tool Theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: myitoolmax-theme
*/

:root {
  --green: #4d8e0a;
  --green-dark: #315907;
  --green-soft: #edf6e4;
  --ink: #171717;
  --muted: #666b60;
  --line: #e6e6df;
  --cream: #fbfbf6;
  --white: #fff;
  --sale: #e11d48;
  --gold: #f59e0b;
  --shadow: 0 18px 55px rgba(33, 42, 25, 0.12);
  --page: min(1400px, calc(100vw - 48px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

.announcement {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 48px;
  background: var(--green-dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
}

.announcement a {
  text-align: center;
}

.market-controls {
  position: absolute;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-controls button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.language-picker {
  position: relative;
}

.language-toggle::after {
  content: "⌄";
  margin-left: 7px;
  font-size: 12px;
}

.language-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: -34px;
  z-index: 60;
  min-width: 126px;
  padding: 16px 28px 22px;
  border-radius: 0 0 20px 20px;
  background: #4a9900;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.language-picker:hover .language-menu,
.language-picker:focus-within .language-menu,
.language-picker.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu a {
  display: block;
  padding: 6px 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.12;
}

.language-menu a[aria-current="true"] {
  color: rgba(255, 255, 255, 0.55);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100px;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 23, 23, 0.05);
  backdrop-filter: blur(10px);
}

.brand img {
  width: 125px;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  font-weight: 650;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.primary-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  border-color: var(--green);
}

.primary-nav a.is-active {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  min-height: 432px;
  padding: 28px 40px 32px;
  border-radius: 0 0 20px 20px;
  background: var(--white);
  box-shadow: 0 24px 45px rgba(17, 17, 17, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.mega-menu.is-open,
.site-header.has-mega .mega-menu,
.site-header:focus-within .mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-sidebar {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 360px;
  padding-top: 2px;
}

.mega-sidebar h2 {
  margin: 0 0 28px;
  color: #4b4b4b;
  font-size: 16px;
  line-height: 1.2;
}

.mega-sidebar a {
  color: #858585;
  font-size: 14px;
  font-weight: 750;
}

.mega-sidebar a.is-active {
  color: var(--ink);
}

.mega-small-link {
  align-self: end;
  display: flex;
  justify-content: space-between;
  margin-top: 250px;
  padding-top: 14px;
  border-top: 1px solid #666;
  color: var(--ink) !important;
  font-size: 18px !important;
}

.mega-products {
  min-width: 0;
}

.mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.mega-head p {
  margin: 0;
  color: #909090;
  font-size: 13px;
  text-transform: uppercase;
}

.mega-head a {
  font-size: 18px;
  font-weight: 850;
}

.mega-head span {
  color: #777;
  font-weight: 500;
}

.mega-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mega-product {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  background: #fafafa;
}

.mega-product img {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
  background: #fff;
}

.mega-product > span:not(.mega-badge):not(.mega-rating),
.mega-product small {
  display: block;
  padding-inline: 22px;
}

.mega-product > span:not(.mega-badge):not(.mega-rating) {
  min-height: 48px;
  padding-top: 20px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.mega-product small {
  padding-top: 7px;
  padding-bottom: 26px;
  color: #666;
  font-size: 14px;
}

.mega-badge,
.mega-rating {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
}

.mega-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: #e73f70;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.mega-rating {
  color: #f59e0b;
  font-size: 13px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.header-actions a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

.header-actions svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f6ef;
  border-radius: clamp(16px, 1.35vw, 24px);
}

.hero-track {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-slide {
  position: relative;
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 520;
  object-fit: cover;
}

.hero-link {
  position: absolute;
  inset: 0;
  overflow: hidden;
  text-indent: -999px;
}

.hero-control {
  position: absolute;
  bottom: 70px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 48px;
}

.hero-next {
  right: 48px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  border-radius: 20px;
  background: var(--white);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading.centered {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h1,
.section-heading h2,
.mission-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 354px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7eadf;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 354px;
  object-fit: cover;
  transition: transform 350ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.64));
}

.category-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  z-index: 1;
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.08;
}

.category-card:hover img {
  transform: scale(1.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
}

.product-card {
  min-width: 0;
}

.product-card > a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5ef;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 350ms ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card h3 {
  margin: 8px 0 0;
  min-height: 3.25em;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 650;
}

.rating {
  margin-top: 14px;
  color: var(--gold);
  font-size: 13px;
}

.rating span {
  color: var(--muted);
}

.price {
  margin: 10px 0 0;
  font-size: 18px;
}

.price span {
  color: var(--sale);
  font-weight: 800;
}

.price s {
  margin-left: 8px;
  color: #8a8a80;
}

.soft-band {
  width: 100%;
  padding-inline: max(24px, calc((100vw - 1400px) / 2));
  background: var(--green-soft);
}

.product-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.compact-product {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.compact-product img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
}

.compact-product h3,
.compact-product p {
  margin-inline: 18px;
}

.compact-product h3 {
  min-height: 48px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.25;
}

.compact-product p {
  margin-top: 8px;
  margin-bottom: 20px;
  color: var(--sale);
  font-weight: 800;
}

.launch-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

.feature-tile,
.launch-stack a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5ef;
}

.feature-tile img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.launch-stack {
  display: grid;
  gap: 18px;
}

.launch-stack img {
  width: 100%;
  height: 291px;
  object-fit: cover;
}

.feature-tile::after,
.launch-stack a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.68));
}

.feature-tile span,
.launch-stack span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}

.feed-section {
  padding: 78px 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.feed-section .section-heading {
  width: var(--page);
}

.feed-section p {
  color: rgba(255, 255, 255, 0.74);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
}

.button.secondary {
  margin-top: 22px;
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.feed-strip {
  width: max-content;
  display: flex;
  gap: 16px;
  animation: feedScroll 32s linear infinite;
}

.feed-strip img {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

@keyframes feedScroll {
  from {
    transform: translateX(48px);
  }
  to {
    transform: translateX(calc(-50% + 48px));
  }
}

.reviews-section {
  width: 100%;
  padding-inline: max(24px, calc((100vw - 1400px) / 2));
  background: var(--cream);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.review-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.review-card img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.review-card div {
  padding: 22px;
}

.score {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

.review-card h3 {
  margin: 10px 0;
  font-size: 20px;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.blog-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.04), rgba(23, 23, 23, 0.72)),
    url("assets/images/myitoolmax-outdoor-tools-collections-0aa8913e.jpg") center / cover;
  color: var(--white);
}

.blog-card h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
}

.blog-card p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.blog-card .button {
  align-self: flex-start;
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.faq-list h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 20px;
  font-weight: 750;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 400;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #f4f4ed;
}

.mission > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.mission-copy {
  padding: clamp(48px, 7vw, 96px);
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-weight: 850;
  text-transform: uppercase;
}

.mission-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 34px 0 0;
}

.stats div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-size: 28px;
  font-weight: 850;
}

.stats dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer {
  background: #111;
  color: var(--white);
}

.footer-promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #242424;
}

.footer-promises span {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 16px;
  background: #181818;
  text-align: center;
  font-weight: 750;
}

.newsletter {
  width: var(--page);
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.newsletter label {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 850;
  text-transform: uppercase;
}

.newsletter div {
  display: flex;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 20px;
  background: transparent;
  color: var(--white);
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter button {
  border: 0;
  padding: 15px 22px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.footer-grid {
  width: var(--page);
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 36px;
}

.footer-logo {
  width: 125px;
  margin-bottom: 20px;
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.footer-grid > div > a {
  display: block;
  margin: 8px 0;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.socials a {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
}

.copyright {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0 36px;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-tab {
  position: fixed;
  right: 0;
  top: 52%;
  z-index: 20;
  padding: 12px 8px;
  background: #4b8ddf;
  color: var(--white);
  border-radius: 8px 0 0 8px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 14px;
  font-weight: 800;
}

@media (min-width: 1536px) {
  .announcement {
    height: 56px;
    min-height: 56px;
    padding-block: 0;
  }

  .site-header {
    height: 68px;
  }

  .brand img {
    width: 125px;
  }

  .primary-nav {
    gap: 28px;
  }
}

@media (max-width: 1100px) {
  :root {
    --page: min(100% - 32px, 900px);
  }

  .market-controls {
    display: none;
  }

  .site-header {
    grid-template-columns: 130px 1fr 120px;
    height: 100px;
    padding-inline: 24px;
  }

  .primary-nav {
    gap: 18px;
    font-size: 14px;
  }

  .category-grid,
  .product-grid,
  .product-row,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-faq,
  .mission,
  .launch-layout,
  .footer-grid,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter,
  .footer-grid {
    display: grid;
  }

  .footer-promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .announcement {
    padding-inline: 16px;
    font-size: 13px;
  }

  .site-header {
    grid-template-columns: 110px 1fr auto;
    gap: 12px;
    height: 56px;
    display: flex;
    padding: 0 16px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand img {
    width: 112px;
  }

  .menu-toggle {
    display: grid;
    gap: 6px;
    order: 3;
    justify-self: end;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: auto;
    background: var(--ink);
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .mega-menu {
    display: none;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
    justify-content: flex-end;
    gap: 14px;
  }

  .header-actions a {
    width: 22px;
    height: 22px;
  }

  .hero-slide img {
    height: clamp(430px, 118.5vw, 492px);
    aspect-ratio: auto;
    object-position: center top;
  }

  .hero-control {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-prev {
    left: 16px;
  }

  .hero-next {
    right: 16px;
  }

  .hero-control {
    bottom: 58px;
  }

  .hero-dots {
    bottom: 22px;
  }

  .section,
  .feed-section,
  .reviews-section {
    padding-block: 52px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h1,
  .section-heading h2,
  .mission-copy h2 {
    font-size: 36px;
  }

  .category-grid,
  .product-grid,
  .product-row,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card img {
    min-height: 260px;
  }

  .feature-tile img {
    min-height: 360px;
  }

  .launch-stack img {
    height: 250px;
  }

  .blog-card {
    min-height: 340px;
    padding: 24px;
  }

  .mission > img {
    min-height: 320px;
  }

  .mission-copy {
    padding: 40px 24px;
  }

  .stats,
  .footer-promises {
    grid-template-columns: 1fr;
  }

  .newsletter div {
    display: grid;
    border-radius: 8px;
  }

  .newsletter input {
    min-height: 52px;
  }

  .newsletter button {
    min-height: 52px;
  }

  .contact-tab {
    display: none;
  }
}
