/*
 * Erbil Branda — Responsive Overhaul v1.0
 * Loaded after eb-f8-theme.css (priority 1010) to harmonize
 * containers, fix responsive issues, and improve cart/checkout UX.
 * Cascade order: eb-fonts → eb-tokens → eb-site → eb-components
 *   → wildpeak → wildpeak-ui → wildpeak-shop → eb-snippets-early
 *   → eb-snippets → eb-f8-theme → THIS FILE
 */

/* ══════════════════════════════════════════
   1. CONTAINER WIDTH HARMONIZATION
   ══════════════════════════════════════════ */

:root {
  --eb-maxw: 1400px;
  --wp-container: 1400px;
  --eb-content-pad: clamp(16px, 4vw, 32px);
}

.ast-container {
  max-width: var(--eb-maxw) !important;
}

.ast-woocommerce-container {
  max-width: var(--eb-maxw) !important;
  padding-left: var(--eb-content-pad) !important;
  padding-right: var(--eb-content-pad) !important;
}

body.blog .ast-container,
body.category .ast-container,
body.tag .ast-container,
body.search .ast-container,
body.author .ast-container {
  max-width: var(--eb-maxw) !important;
}

.woocommerce.archive .site-content article,
.single-product .site-content article {
  max-width: var(--eb-maxw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
  max-width: var(--eb-maxw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:not(.woocommerce-account):not(.woocommerce-cart):not(.woocommerce-checkout) .page:not(.home) .entry-content {
  max-width: 1280px !important;
}

.ebwh {
  max-width: var(--eb-maxw) !important;
  padding-left: var(--eb-content-pad) !important;
  padding-right: var(--eb-content-pad) !important;
}

.ebkat__inner {
  max-width: var(--eb-maxw);
}

.eb-header__inner,
.eb-nav__inner {
  max-width: var(--eb-maxw) !important;
}

.eb-footer__inner {
  max-width: var(--eb-maxw);
}

.eb-trust {
  max-width: var(--eb-maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--eb-content-pad);
  padding-right: var(--eb-content-pad);
}

.eb-cart-trust {
  max-width: var(--eb-maxw) !important;
}

/* ══════════════════════════════════════════
   2. CART PAGE — DESKTOP LAYOUT
   ══════════════════════════════════════════ */

@media (min-width: 992px) {
  .woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
    gap: 28px 32px !important;
    align-items: start;
  }

  .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
  .woocommerce-cart .woocommerce > .eb-cart-band,
  .woocommerce-cart .woocommerce > .eb-cart-trust,
  .woocommerce-cart .woocommerce > .eb-cart-suggestions,
  .woocommerce-cart .woocommerce > .cross-sells,
  .woocommerce-cart .woocommerce > .eb-rv {
    grid-column: 1 / -1;
  }

  .woocommerce-cart .woocommerce > .woocommerce-cart-form {
    grid-column: 1;
    min-width: 0;
  }

  .woocommerce-cart .cart-collaterals {
    grid-column: 2;
    position: sticky;
    top: 96px;
  }

  .woocommerce-cart .cart_totals {
    background: #fff;
    border: 1px solid var(--f8-line, var(--wp-border, #e4dfd6));
    border-radius: var(--f8-radius, 12px);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  }

  .woocommerce-cart .cart_totals > h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--f8-ink, var(--wp-navy, #1E3A6E));
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--f8-line, #e4dfd6);
  }

  .woocommerce-cart .cart_totals table th {
    width: auto;
    white-space: nowrap;
    padding: 12px 16px 12px 0 !important;
    font-weight: 600;
    color: var(--f8-muted, #655d51);
    font-size: 14px;
  }

  .woocommerce-cart .cart_totals table td {
    padding: 12px 0 !important;
    text-align: right;
    font-weight: 700;
    font-size: 15px;
  }

  .woocommerce-cart .cart_totals .order-total td {
    font-size: 20px;
    font-weight: 800;
    color: var(--f8-ink, var(--wp-navy, #1E3A6E));
  }

  .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 16px;
    padding: 0 24px;
    background: var(--f8-yellow, var(--wp-yellow, #F4C400)) !important;
    color: var(--f8-ink, var(--wp-navy, #1E3A6E)) !important;
    border: none !important;
    border-radius: var(--f8-radius, 12px) !important;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 6px 18px rgba(30, 58, 110, .22);
    transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  }

  .woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--f8-ink, var(--wp-navy, #1E3A6E)) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 58, 110, .32);
  }

  .woocommerce-cart table.shop_table.cart {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid var(--f8-line, #e4dfd6);
    border-radius: var(--f8-radius, 12px);
    overflow: hidden;
    table-layout: auto !important;
  }

  .woocommerce-cart table.shop_table.cart thead th {
    background: var(--f8-ink, var(--wp-navy, #1E3A6E)) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px 16px !important;
    white-space: nowrap;
    border: none !important;
  }

  .woocommerce-cart table.shop_table.cart td {
    padding: 16px !important;
    vertical-align: middle;
    border-top: 1px solid var(--f8-line, #e4dfd6) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }

  .woocommerce-cart table.shop_table.cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--f8-line, #e4dfd6);
  }

  .woocommerce-cart table.shop_table.cart .product-name a {
    color: var(--f8-ink, var(--wp-navy, #1E3A6E));
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }

  .woocommerce-cart table.shop_table.cart .product-name a:hover {
    color: var(--f8-yellow, var(--wp-yellow, #F4C400));
  }

  .woocommerce-cart .quantity .qty {
    width: 64px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--f8-line, #e4dfd6);
    border-radius: var(--f8-radius, 6px);
    font-weight: 700;
    font-size: 15px;
  }

  .woocommerce-cart table.shop_table.cart .product-remove a {
    color: var(--f8-muted, #655d51) !important;
    font-size: 18px;
    transition: color .2s;
  }

  .woocommerce-cart table.shop_table.cart .product-remove a:hover {
    color: var(--wp-sale, #D94F4F) !important;
  }

  .woocommerce-cart table.shop_table.cart .product-remove { width: 48px; }
  .woocommerce-cart table.shop_table.cart .product-thumbnail { width: 96px; }
}

/* ══════════════════════════════════════════
   3. CART PAGE — MOBILE CARD LAYOUT
   ══════════════════════════════════════════ */

@media (max-width: 991px) {
  .woocommerce-cart .woocommerce {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
  }

  .woocommerce-cart table.shop_table.cart {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .woocommerce-cart table.shop_table.cart thead {
    display: none !important;
  }

  .woocommerce-cart table.shop_table.cart tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .woocommerce-cart table.shop_table.cart tbody tr:not(.cart-actions-row) {
    display: grid !important;
    grid-template-columns: 76px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 14px !important;
    background: #fff;
    border: 1px solid var(--f8-line, #e4dfd6) !important;
    border-radius: var(--f8-radius, 10px) !important;
    margin: 0 !important;
    position: relative;
    overflow: visible;
  }

  .woocommerce-cart table.shop_table.cart td.product-thumbnail {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 0 !important;
    border: none !important;
  }

  .woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 76px !important;
    height: 76px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--f8-line, #e4dfd6);
  }

  .woocommerce-cart table.shop_table.cart td.product-name {
    grid-row: 1;
    grid-column: 2 / 4;
    padding: 0 24px 0 0 !important;
    border: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }

  .woocommerce-cart table.shop_table.cart td.product-name::before {
    display: none !important;
  }

  .woocommerce-cart table.shop_table.cart td.product-price {
    grid-row: 2;
    grid-column: 2;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--f8-ink, var(--wp-navy, #1E3A6E));
  }

  .woocommerce-cart table.shop_table.cart td.product-price::before {
    display: none !important;
  }

  .woocommerce-cart table.shop_table.cart td.product-quantity {
    grid-row: 2;
    grid-column: 3;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .woocommerce-cart table.shop_table.cart td.product-quantity::before {
    display: none !important;
  }

  .woocommerce-cart table.shop_table.cart td.product-quantity .qty {
    width: 52px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--f8-line, #e4dfd6);
    border-radius: var(--f8-radius, 6px);
    font-weight: 700;
    font-size: 14px;
  }

  .woocommerce-cart table.shop_table.cart td.product-subtotal {
    display: none !important;
  }

  .woocommerce-cart table.shop_table.cart td.product-remove {
    position: absolute !important;
    top: 8px;
    right: 8px;
    padding: 0 !important;
    border: none !important;
    width: auto;
    background: none;
  }

  .woocommerce-cart table.shop_table.cart td.product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--f8-paper, #f7f5f1);
    color: var(--f8-muted, #655d51) !important;
    font-size: 14px;
    transition: all .2s;
    text-decoration: none;
  }

  .woocommerce-cart table.shop_table.cart td.product-remove a:hover {
    background: var(--wp-sale, #D94F4F);
    color: #fff !important;
  }

  .woocommerce-cart table.shop_table.cart td.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 0 !important;
    border: none !important;
    border-top: 1px solid var(--f8-line, #e4dfd6) !important;
    background: transparent;
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: flex;
    flex: 1 1 100%;
    gap: 8px;
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border-radius: var(--f8-radius, 6px);
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon button {
    white-space: nowrap;
    height: 40px;
    padding: 0 16px;
  }

  .woocommerce-cart .cart-collaterals {
    position: static;
  }

  .woocommerce-cart .cart_totals {
    background: #fff;
    border: 1px solid var(--f8-line, var(--wp-border, #e4dfd6));
    border-radius: var(--f8-radius, 10px);
    padding: 20px;
  }

  .woocommerce-cart .cart_totals > h2 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--f8-line, #e4dfd6);
  }

  .woocommerce-cart .cart_totals .order-total td {
    font-size: 18px;
    font-weight: 800;
    color: var(--f8-ink, var(--wp-navy, #1E3A6E));
  }

  .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    background: var(--f8-yellow, var(--wp-yellow, #F4C400)) !important;
    color: var(--f8-ink, var(--wp-navy, #1E3A6E)) !important;
    border: none !important;
    border-radius: var(--f8-radius, 10px) !important;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 4px 12px rgba(30, 58, 110, .18);
  }

  .woocommerce-cart .eb-footer {
    padding-bottom: 100px;
  }
}

/* ══════════════════════════════════════════
   4. EMPTY CART STATE
   ══════════════════════════════════════════ */

.eb-cart-empty {
  max-width: 560px;
  margin: 40px auto;
  padding: 48px 24px;
  text-align: center;
}

.eb-cart-empty svg,
.eb-cart-empty .dashicons {
  font-size: 56px;
  width: 56px;
  height: 56px;
  color: var(--f8-line, #e4dfd6);
  margin-bottom: 20px;
}

.eb-cart-empty h2 {
  font-size: 24px !important;
  font-weight: 800;
  color: var(--f8-ink, var(--wp-navy, #1E3A6E));
  margin: 0 0 10px;
}

.eb-cart-empty p {
  font-size: 15px;
  color: var(--f8-muted, #655d51);
  margin: 0 0 28px;
  line-height: 1.6;
}

.eb-cart-empty .button,
.eb-cart-empty .eb-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  background: var(--f8-yellow, var(--wp-yellow, #F4C400)) !important;
  color: var(--f8-ink, var(--wp-navy, #1E3A6E)) !important;
  border: none !important;
  border-radius: var(--f8-radius, 10px) !important;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(30, 58, 110, .20);
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}

.eb-cart-empty .button:hover,
.eb-cart-empty .eb-btn:hover {
  background: var(--f8-ink, var(--wp-navy, #1E3A6E)) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 58, 110, .30);
}

.eb-cart-suggestions {
  max-width: var(--eb-maxw) !important;
  margin: 32px auto;
  padding: 0 var(--eb-content-pad);
}

.eb-cart-suggestions h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 20px;
}

.eb-cart-suggestions .products,
.eb-cart-suggestions ul {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 991px) {
  .eb-cart-suggestions .products,
  .eb-cart-suggestions ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ══════════════════════════════════════════
   5. PRODUCT GRID
   ══════════════════════════════════════════ */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 400px) {
  .woocommerce ul.products {
    gap: 10px !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce ul.products .eb-product-li {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  margin: 0 !important;
}

/* Cross-sells grid */
.woocommerce-cart .cross-sells {
  max-width: var(--eb-maxw);
}

.woocommerce-cart .cross-sells > h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 18px;
}

@media (min-width: 992px) {
  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 991px) {
  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* ══════════════════════════════════════════
   6. HEADER / NAV RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 991px) {
  .eb-burger {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
  }

  .eb-nav__list,
  .eb-search,
  .eb-btn-quote {
    display: none !important;
  }

  .eb-drawer {
    width: min(86vw, 360px);
  }

  .eb-drawer__nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .eb-header__inner {
    padding: 10px 12px !important;
    gap: 6px !important;
  }

  .eb-logo__text {
    display: none !important;
  }

  .eb-action {
    min-width: 40px;
    min-height: 40px;
  }
}

/* ══════════════════════════════════════════
   7. FOOTER RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 767px) {
  .eb-footer__top .eb-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .eb-footer__col.eb-acc {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .eb-footer__col.eb-acc summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 700;
  }

  .eb-footer__bottom .eb-footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .eb-footer__pay {
    justify-content: center;
    gap: 8px 12px;
  }
}

/* ══════════════════════════════════════════
   8. CHECKOUT PAGE
   ══════════════════════════════════════════ */

.woocommerce-checkout .entry-content {
  max-width: var(--eb-maxw) !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  min-height: 48px;
  border: 1.5px solid var(--f8-line, #e4dfd6) !important;
  border-radius: var(--f8-radius, 8px) !important;
  padding: 12px 14px !important;
  font-size: 15px;
  transition: border-color .2s;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: var(--f8-ink, var(--wp-navy, #1E3A6E)) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 110, .1);
}

@media (min-width: 992px) {
  .woocommerce-checkout #order_review {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 767px) {
  .woocommerce-checkout .entry-content {
    padding: 20px 16px !important;
  }

  .woocommerce-checkout .form-row {
    margin-bottom: 12px;
  }

  .woocommerce-checkout input[type="text"],
  .woocommerce-checkout input[type="email"],
  .woocommerce-checkout input[type="tel"],
  .woocommerce-checkout input[type="number"],
  .woocommerce-checkout select,
  .woocommerce-checkout textarea {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════
   9. ACCOUNT PAGES
   ══════════════════════════════════════════ */

.woocommerce-account .entry-content {
  max-width: var(--eb-maxw) !important;
}

@media (max-width: 767px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 20px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li {
    flex: 1 1 auto;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: var(--f8-radius, 6px);
    border: 1px solid var(--f8-line, #e4dfd6);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--f8-ink, var(--wp-navy, #1E3A6E));
    color: #fff !important;
    border-color: var(--f8-ink, var(--wp-navy, #1E3A6E));
  }
}

/* ══════════════════════════════════════════
   10. BLOG / ARCHIVE
   ══════════════════════════════════════════ */

.blog .ast-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .blog .ast-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .blog .ast-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.single-post .entry-content {
  max-width: 780px !important;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════
   11. PRODUCT DETAIL PAGE
   ══════════════════════════════════════════ */

@media (max-width: 767px) {
  .woocommerce div.product div.images {
    margin-bottom: 20px;
  }

  .woocommerce div.product .product_title {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 24px;
    font-weight: 800;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    border-bottom: 2px solid var(--f8-line, #e4dfd6);
    margin-bottom: 20px;
    padding: 0;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 10px 16px;
    font-size: 14px;
  }

  .woocommerce div.product .single_add_to_cart_button {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }
}

/* ══════════════════════════════════════════
   12. CATEGORY CARDS
   ══════════════════════════════════════════ */

@media (min-width: 992px) {
  .eb-cat-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px;
  }
}

@media (max-width: 991px) and (min-width: 600px) {
  .eb-cat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px;
  }
}

@media (max-width: 599px) {
  .eb-cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}

/* ══════════════════════════════════════════
   13. MOBILE STICKY CART BAR
   ══════════════════════════════════════════ */

@media (max-width: 991px) {
  .ebcart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--eb-bottomnav-h, 62px);
    z-index: 1150;
    background: #fff;
    border-top: 1px solid var(--f8-line, #e4dfd6);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .ebcart-bar__total {
    font-size: 18px;
    font-weight: 800;
    color: var(--f8-ink, var(--wp-navy, #1E3A6E));
  }

  .ebcart-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    background: var(--f8-yellow, var(--wp-yellow, #F4C400));
    color: var(--f8-ink, var(--wp-navy, #1E3A6E));
    border: none;
    border-radius: var(--f8-radius, 10px);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
  }
}

/* ══════════════════════════════════════════
   14. MOBILE OVERFLOW PREVENTION
   ══════════════════════════════════════════ */

html {
  overflow-x: clip;
}

.entry-content table:not(.shop_table) {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .elementor-section > .elementor-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .entry-content > [style*="padding-left"],
  .entry-content > [style*="padding-right"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .wpforms-field--medium {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ══════════════════════════════════════════
   15. REDUCED MOTION
   ══════════════════════════════════════════ */

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

/* ══════════════════════════════════════════
   16. PRINT
   ══════════════════════════════════════════ */

@media print {
  .eb-site-header,
  .eb-footer,
  .eb-drawer-overlay,
  .eb-drawer,
  #eb-bottom-nav,
  .eb-cart-fab,
  .eb-help,
  .ebcart-bar,
  .eb-kmp,
  .eb-push,
  #eb-cerez {
    display: none !important;
  }

  .entry-content {
    max-width: 100% !important;
  }
}
