html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.stylo-dynamic-header-active .site-header,
.stylo-dynamic-header-active #masthead,
.stylo-dynamic-header-active .ast-mobile-header-wrap {
  display: none !important;
}

.stylo-dynamic-header-active {
  --sdh-ink: #111214;
  --sdh-muted: #5f6368;
  --sdh-line: #ececec;
  --sdh-bg: rgba(255, 255, 255, 0.96);
}

.sdh-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: var(--sdh-bg);
  border-bottom: 1px solid var(--sdh-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sdh-header__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  align-items: center;
  min-height: 82px;
  width: min(1260px, calc(100% - 56px));
  margin: 0 auto;
  gap: 20px;
}

.sdh-brand__link {
  display: inline-flex;
  align-items: center;
  color: var(--sdh-ink);
  text-decoration: none;
}

.sdh-brand__text {
  font-family: 'Outfit', sans-serif !important;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.sdh-brand__dot {
  color: #163f36 !important;
  font-weight: 900 !important;
}

.sdh-brand__image {
  display: block;
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
}

.sdh-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.sdh-menu,
.sdh-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sdh-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
}

.sdh-menu li {
  position: relative;
}

.sdh-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  color: var(--sdh-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.sdh-menu .current-menu-item > a::after,
.sdh-menu .current_page_item > a::after,
.sdh-menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--sdh-ink);
}

.sdh-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.sdh-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sdh-ink);
  text-decoration: none;
  cursor: pointer;
}

.sdh-icon-button:hover {
  background: #f6f6f6;
}

.sdh-icon-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sdh-cart-count {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sdh-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid #ffffff;
}

.sdh-cart-count--empty {
  display: none;
}

.sdh-cart-count.sdh-cart-count--pop,
.sdh-cart-link.sdh-cart--pop {
  animation: sdh-cart-pop 520ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.sdh-menu-toggle {
  display: none;
}

.sdh-drawer,
.sdh-search {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.sdh-drawer[aria-hidden="true"],
.sdh-search[aria-hidden="true"] {
  visibility: hidden;
}

.sdh-drawer__overlay,
.sdh-search__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 18, 20, 0.28);
  opacity: 0;
  transition: opacity 180ms ease;
}

.sdh-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(380px, 88vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 220ms ease;
  box-shadow: 24px 0 80px rgba(0, 0, 0, 0.14);
  padding: 28px;
}

.sdh-drawer[aria-hidden="false"],
.sdh-search[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.sdh-drawer[aria-hidden="false"] .sdh-drawer__overlay,
.sdh-search[aria-hidden="false"] .sdh-search__overlay {
  opacity: 1;
}

.sdh-drawer[aria-hidden="false"] .sdh-drawer__panel {
  transform: translateX(0);
}

.sdh-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.sdh-drawer-menu {
  display: grid;
  gap: 2px;
}

.sdh-drawer-menu a {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--sdh-line);
  color: var(--sdh-ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.sdh-search__form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: min(820px, calc(100% - 36px));
  margin: 110px auto 0;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.sdh-search__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--sdh-ink);
  stroke-width: 1.9;
}

.sdh-search__form input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  font-size: 20px;
  color: var(--sdh-ink);
}

.sdh-search__submit {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--sdh-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

body.sdh-lock-scroll {
  overflow: hidden;
}

@keyframes sdh-cart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@media (max-width: 1024px) {
  .sdh-header__inner {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 74px;
    width: min(100% - 32px, 1260px);
    position: relative !important;
  }

  .sdh-menu-toggle {
    display: inline-grid;
    justify-self: start;
    margin-left: 8px !important;
  }

  .sdh-brand {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
  }

  .sdh-brand__text {
    font-size: 18px !important;
    letter-spacing: -0.03em !important;
  }

  .sdh-nav {
    display: none;
  }

  .sdh-actions {
    gap: 12px;
    padding-right: 16px !important;
  }

  .sdh-actions .sdh-icon-button {
    width: 32px;
    height: 32px;
  }

  .sdh-actions .sdh-icon-button svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 520px) {
  .sdh-header__inner {
    width: calc(100% - 24px) !important;
  }

  .sdh-brand__text {
    font-size: 16px !important;
    letter-spacing: -0.03em !important;
  }

  .sdh-actions {
    gap: 8px;
    padding-right: 12px !important;
  }

  .sdh-search__form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 84px;
  }

  .sdh-search__submit {
    display: none;
  }
}

/* ==========================================
   Premium WooCommerce Cart & Checkout Enhancements
   ========================================== */

@media (max-width: 1024px) {
    .woocommerce-cart #primary,
    .woocommerce-checkout #primary {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    .woocommerce-cart .wp-block-woocommerce-cart,
    .woocommerce-checkout .wp-block-woocommerce-checkout {
        width: calc(100% + 40px) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        max-width: none !important;
    }
    .woocommerce-cart .entry-title,
    .woocommerce-checkout .entry-title {
        margin-left: -20px !important;
    }
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button,
.wp-element-button,
.woocommerce-button,
.woocommerce-Button,
.wc-block-components-product-add-to-cart-button,
.single_add_to_cart_button,
.wc-block-components-checkout-step__actions .wc-block-components-button {
    background-color: #111214 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 13px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button:hover,
.wp-element-button:hover,
.woocommerce-button:hover,
.woocommerce-Button:hover,
.wc-block-components-product-add-to-cart-button:hover,
.single_add_to_cart_button:hover {
    background-color: #163f36 !important;
    color: #ffffff !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.woocommerce-Input,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce select,
.wc-block-components-combobox input {
    border: 1px solid #e6e6e6 !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    background: #f7f7f8 !important;
    outline: none !important;
    font-size: 14px !important;
    color: #111214 !important;
    transition: border-color 0.2s, background-color 0.2s !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.woocommerce-Input:focus,
.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce select:focus,
.wc-block-components-combobox input:focus {
    border-color: #111214 !important;
    background: #ffffff !important;
}

.entry-title,
.wc-block-cart__title,
.wc-block-checkout__title {
    font-size: 32px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: #111214 !important;
    margin-bottom: 28px !important;
    text-transform: capitalize !important;
}

/* ==========================================
   Premium UI/UX Transitions & Animations (Shopify-Style)
   ========================================== */

/* Fade-In-Up Page Entry Animation */
@keyframes ag-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-content,
.entry-content,
.woocommerce-products-header,
.woocommerce-shop-page,
.wc-block-cart,
.wc-block-checkout,
.product_title,
.summary {
    animation: ag-fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Micro-Interaction Button Scale Feedback */
.wc-block-cart__submit-button:active,
.wc-block-components-checkout-place-order-button:active,
.wc-block-components-button:active,
.wp-element-button:active,
.woocommerce-button:active,
.woocommerce-Button:active,
.wc-block-components-product-add-to-cart-button:active,
.single_add_to_cart_button:active {
    transform: scale(0.97) !important;
}

/* Interactive WooCommerce Shop Cards */
.woocommerce ul.products li.product {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    padding: 10px !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(17, 18, 20, 0.05) !important;
    border-color: #d1d1d1 !important;
}

/* Card Image Gentle Zoom */
.woocommerce ul.products li.product img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.025) !important;
}

/* Add subtle micro-transitions on WooCommerce links and prices */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    transition: color 0.2s ease !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #163f36 !important;
}
