/* PAINTZ shared layout — fonts: edit css/fonts.css */
@import url('fonts.css');

/* כותרות מוצר — כמו עיצוב אישי | שש בש */
.record-title {
  font-family: 'Amatica SC', cursive;
  font-size: 60px;
  font-weight: 700;
  color: #8B6B47;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 2px;
  width: 100%;
  line-height: 1.1;
}

    /* Root font size — fixed; browser zoom handles accessibility */
    html {
      font-size: 16px;
    }
    
    body {
      background: #F9F1DC;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      height: 100% !important;
      width: 100% !important;
      max-width: 100vw !important;
      margin: 0;
      padding: 0;
    }
    
    *, *::before, *::after {
      box-sizing: border-box;
    }
    .body-center {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
    }
    
    @media (max-width: 1024px) and (min-width: 768px) {
      /* iPad specific */
      .body-center {
        min-height: 90vh;
        justify-content: space-between;
      }
      
        
      }
    
    @media (max-width: 767px) and (min-width: 400px) {
      /* Mobile desktop view 400-700px */
      .body-center {
        min-height: auto;
        justify-content: flex-start;
      }
      
      main {
        margin-bottom: 0;
      }
      
      footer {
        margin-top: 0;
      }
      
    }
    
    main {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      padding: 24px 16px 48px;
      box-sizing: border-box;
    }

    .body-center > main,
    .body-center > section[id="main-content"],
    .body-center > .policy-bg-box[id="main-content"],
    .body-center > .contact-section {
      flex: 1;
      width: 100%;
    }

    .body-center > section {
      width: 100%;
      box-sizing: border-box;
    }

    .body-center > nav + section,
    .body-center > .shop-popup + section {
      margin-top: 12px;
    }
  
    header {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 8px 10px;
      position: relative;
      width: 100%;
      max-width: 100vw;
      height: 90px;
      background: transparent;
      isolation: isolate;
      box-sizing: border-box;
    }
    .logo {
      width: 180px;
      height: 80px;
      background: url('../logo.jpg') no-repeat center/cover;
      transform: rotate(0.67deg);
      z-index: 0;
    }
    .cart {
      position: absolute;
      width: 32px;
      height: 32px;
      right: 10px;
      top: 10px;
      z-index: 1;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cart-icon {
      width: 32px;
      height: 32px;
      background: url('../shop.svg') no-repeat center center;
      background-size: contain;
      background-color: transparent;
      position: relative;
    }
    .cart-badge {
      position: absolute;
      left: 50%;
      bottom: 3px;
      top: auto;
      transform: translateX(-50%);
      color: #111;
      font-size: 18px;
      font-family: 'Rubik', sans-serif;
      font-weight: bold;
      background: none;
      border: none;
      width: auto;
      height: auto;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      pointer-events: none;
    }
    nav {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 0 5vw;
      gap: 30px;
      width: 100%;
      max-width: 100vw;
      height: 44px;
      background: #8B6B47;
      box-sizing: border-box;
      margin-bottom: 16px;
    }

    @media (min-width: 701px) {
      nav {
        gap: 56px;
        padding-left: 8vw;
        padding-right: 8vw;
      }
    }
    nav .nav-link,
    nav h4.nav-link,
    nav .shop-popup-btn {
      width: auto;
      min-width: 0;
      height: 48px;
      font-family: var(--font-nav);
      font-weight: 700;
      font-size: 32px;
      line-height: 48px;
      display: flex;
      align-items: center;
      text-align: center;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #fff;
      margin: 0;
      padding: 0;
      transform: rotate(0.52deg);
      background: transparent;
      cursor: pointer;
      text-decoration: none;
      justify-content: center;
      flex: 0 0 auto;
    }

    nav h4.nav-link {
      margin: 0;
      padding: 0;
    }
    /* Footer Section */
    footer {
      width: 100%;
      max-width: 100vw;
      display: flex;
      flex-direction: row-reverse;
      justify-content: space-between;
      align-items: flex-start;
      background: #5C4638;
      padding: 10px 16px;
      box-sizing: border-box;
      height: 120px;
      direction: rtl;
      position: relative;
    }
    .footer-content {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }
    .footer-nav {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-right: auto;
      margin-left: auto;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      right: auto;
      top: 10px;
    }
    .footer-link {
      font-family: var(--font-nav);
      font-weight: 700;
      font-size: 22px;
      color: white;
      text-decoration: none;
    }
    .footer-sep {
      font-size: 20px;
      color: white;
    }
    .footer-contact {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      position: absolute;
      bottom: 10px;
      left: 16px;
    }
    .footer-contact-item {
      display: flex;
      flex-direction: row-reverse;
      align-items: center;
      gap: 10px;
    }
    .footer-icon {
      width: 18px;
      height: 18px;
    }
    .footer-contact-text {
      font-family: var(--font-nav);
      font-weight: 700;
      font-size: 18px;
      color: white;
    }
    .footer-logo {
      width: 90px;
      height: 90px;
      background: url('../logo.jpg') no-repeat center/contain;
      border-radius: 12px;
    }
    .copyright-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0;
      gap: 0;
      width: 100%;
      max-width: 100vw;
      height: auto;
      min-height: 0;
      background: transparent;
      margin-top: 2px;
      box-sizing: border-box;
    }
    .copyright-text {
      width: auto;
      height: auto;
      font-family: var(--font-nav);
      font-weight: 700;
      font-size: 18px;
      white-space: nowrap;
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .copyright-text a {
      color: #000;
      text-decoration: none;
    }

    .copyright-text a:hover,
    .copyright-text a:focus-visible {
      opacity: 0.75;
      text-decoration: none;
    }
    
    /* Force font for all elements in copyright section */
    .copyright-text * {
      font-family: var(--font-nav) !important;
      font-weight: 700 !important;
    }
    
    /* Responsive design for mobile */
    @media screen and (max-width: 768px) {
      .copyright-section {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0 8px;
        gap: 0;
        min-height: 0;
      }

      .copyright-text {
        font-family: var(--font-nav) !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        white-space: normal;
        text-align: center;
        line-height: 1;
        flex-wrap: wrap;
        row-gap: 0;
        padding: 2px 0;
        margin: 0;
      }
    }
    
    @media screen and (max-width: 480px) {
      .copyright-section {
        padding: 0 6px;
      }

      .copyright-text {
        font-family: var(--font-nav) !important;
        font-weight: 700 !important;
        font-size: 12px !important;
        white-space: normal;
        text-align: center;
        line-height: 1.1;
      }
    }
    
    @media screen and (max-width: 360px) {
      .copyright-text {
        font-family: var(--font-nav) !important;
        font-weight: 700 !important;
        font-size: 10px !important;
        white-space: normal;
        text-align: center;
        line-height: 1;
      }

    }

    /* Credit bar — צמוד לשורת מדיניות/תנאים */
    #paintz-credit-bar.paintz-credit,
    .paintz-credit {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding-top: 0 !important;
    }

    @media screen and (max-width: 768px) {
      #paintz-credit-bar.paintz-credit,
      .paintz-credit {
        line-height: 1 !important;
      }

      .paintz-credit__inner {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
      }
    }

    /* --- Shop Popup refined styles --- */
    .shop-popup {
      display: none;
      position: fixed;
      top: 100%;
      right: 0;
      left: auto;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.12);
      z-index: 1000;
      min-width: 140px;
      padding: 4px 0;
      font-family: var(--font-nav);
      font-size: 18px;
      color: #5C4638;
      direction: rtl;
    }

    /* גשר hover במחשב — מעבר מ«חנות» לתפריט בלי שנסגר */
    @media (min-width: 701px) {
      .shop-popup.is-open,
      .shop-popup[style*="display: block"] {
        position: fixed;
      }

      .shop-popup.is-open::before,
      .shop-popup[style*="display: block"]::before {
        content: '';
        position: absolute;
        top: -14px;
        left: -12px;
        right: -12px;
        height: 14px;
      }
    }
    .shop-popup ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .shop-popup > ul > li {
      padding: 0 10px;
      margin-bottom: 1px;
      position: relative;
    }
    .shop-popup a, .shop-popup .popup-main-btn {
      color: #4E342E;
      text-decoration: none;
      background: none;
      border: none;
      font: inherit;
      cursor: pointer;
      padding: 2px 0;
      width: 100%;
      text-align: right;
      display: block;
      border-radius: 6px;
      transition: background 0.2s;
      line-height: 1.2;
      font-size: 18px;
    }
    .shop-popup a:hover, .shop-popup .popup-main-btn:hover {
      background: #f9f1dc;
    }
    .popup-sub {
      display: none;
      position: absolute;
      right: 100%;
      top: 0;
      background: #f6eee0;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      padding: 2px 0;
      min-width: 110px;
      z-index: 101;
    }
    
    .popup-sub.show {
      display: block !important;
    }
    .popup-sub li {
      margin-bottom: 0;
      padding: 0 6px;
    }
    .popup-sub a {
      font-size: 15px;
      line-height: 1.2;
      padding: 2px 0;
      color: #4C8467;
      text-decoration: underline;
    }
    .popup-sub.show {
      display: block;
    }

    .shop-popup.is-open {
      display: block !important;
    }
    .shop-popup-btn {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      background: transparent;
      font-family: var(--font-nav) !important;
      font-weight: 700 !important;
      font-size: 32px !important;
      line-height: 48px !important;
      color: #fff !important;
      cursor: pointer !important;
      padding: 0 !important;
      margin: 0 !important;
      transform: rotate(0.52deg) !important;
      text-transform: uppercase !important;
      letter-spacing: 0.04em !important;
    }
    
    .popup-main-btn {
      cursor: pointer;
      outline: none;
      border: none;
      background: transparent;
      font-family: inherit;
      font-size: inherit;
      color: inherit;
      padding: 4px 8px;
      margin: 2px 0;
      border-radius: 4px;
      transition: background-color 0.2s;
    }
    
    .popup-main-btn:hover,
    .popup-main-btn:focus {
      background-color: #f0f0f0;
    }
    
    .popup-main-btn:focus-visible {
      outline: 2px solid #4C8467 !important;
      outline-offset: 2px !important;
    }
    /* --- פופאפ חנות בפוטר --- */
    .footer-link-shop-popup {
      position: relative;
    }
    .footer-shop-popup {
      display: none;
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.12);
      z-index: 200;
      min-width: 140px;
      padding: 4px 0;
      font-family: var(--font-nav);
      font-size: 18px;
      color: #5C4638;
      direction: rtl;
    }
    
    /* Side Cart Styles */
    .cart-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.25);
      z-index: 10050;
      transition: opacity 0.3s;
    }
    .cart-overlay.active {
      display: block;
      opacity: 1;
    }
    .side-cart {
      position: fixed;
      top: 0;
      right: -100%;
      width: 370px;
      max-width: 90vw;
      height: 100vh;
      background: #fff;
      box-shadow: -2px 0 16px rgba(0,0,0,0.12);
      z-index: 10051;
      transform: translateX(100%);
      transition: all 0.35s cubic-bezier(.7,.2,.2,1);
      display: flex;
      flex-direction: column;
      padding: 0;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
    }
    .side-cart.active {
      right: 0;
      transform: translateX(0);
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
    }
    .side-cart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 20px 10px 20px;
      border-bottom: 1px solid #e0e0e0;
      background: #8B6B47; /* שינוי לחום כהה שעומד בתנאי הנגישות */
    }
    .side-cart-title {
      font-family: 'Amatica SC', cursive;
      font-size: 32px;
      font-weight: 700;
      color: #fff;
    }
    .side-cart-close {
      background: none;
      border: none;
      font-size: 32px;
      color: #fff;
      cursor: pointer;
      font-family: inherit;
      line-height: 1;
    }
    .side-cart-list {
      flex: 1;
      overflow-y: auto;
      padding: 10px 0 0 0;
      background: #fff;
    }
    .side-cart-item {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: flex-start;
      justify-content: flex-start;
      background: #F9F1DC;
      border-radius: 8px;
      margin: 0 16px 12px 16px;
      padding: 10px 10px 10px 6px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
      position: relative;
      min-height: 60px;
      user-select: none;
      overflow: hidden;
      transition: background 0.3s ease, border 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .side-cart-item.just-added {
      background: linear-gradient(135deg, #f0f8f0, #e8f5e8) !important;
      border: 2px solid #4C8467 !important;
      transform: scale(1.02);
      box-shadow: 0 0 14px rgba(76, 132, 103, 0.35);
      z-index: 1;
    }

    .side-cart-item-qty {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 400;
      color: #8B4513;
      width: 32px;
      height: 22px;
      background: #f6eee0;
      border-radius: 8px;
      text-align: center;
      margin: 0;
      font-family: 'Amatica SC', cursive;
    }

    .side-cart-item-price-display {
      font-size: 14px;
      color: #000;
      margin-top: 4px;
      font-family: 'Amatica SC', cursive;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .side-cart-item-trash-btn,
    .side-cart-item-add-btn {
      background: none;
      border: none;
      padding: 0;
      margin: 0;
      cursor: pointer;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.7;
      transition: opacity 0.2s;
    }

    .side-cart-item-trash-btn:hover,
    .side-cart-item-add-btn:hover {
      opacity: 1;
    }

    .side-cart-item-details {
      margin: 6px 0 0 0;
      padding: 0;
      width: 100%;
      flex: 1;
      min-width: 0;
    }
    .side-cart-item-details-list {
      list-style: none;
      margin: 0;
      padding: 0;
      text-align: right;
      max-width: 100%;
      overflow: hidden;
    }
    .side-cart-item-details-list li {
      font-size: 15px;
      color: #4E342E; /* שינוי מ-#5C4638 ל-#4E342E לניגודיות טובה יותר */
      background: none;
      border-radius: 0;
      margin-bottom: 0;
      padding: 0;
      font-family: 'Amatica SC', cursive;
      font-weight: 700;
      direction: rtl;
      line-height: 1.5;
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .side-cart-item-details-label {
      color: #2E7D32; /* שינוי מ-#5EA189 ל-#2E7D32 לניגודיות טובה יותר */
      font-weight: bold;
      flex-shrink: 0;
      text-align: right;
    }
    .side-cart-item-details-value {
      flex: 1;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .side-cart-item-color-box {
      display: inline-block;
      width: 11px;
      height: 11px;
      border-radius: 2px;
      border: 1px solid #ccc;
      margin-left: 4px;
      vertical-align: middle;
      align-self: center;
    }
    .side-cart-item-actions {
      position: absolute;
      left: 8px;
      bottom: 6px;
      display: flex;
      flex-direction: row;
      gap: 6px;
      z-index: 2;
    }
    .side-cart-item-trash-icon {
      width: 20px;
      height: 20px;
      background: url('../trash.svg') no-repeat center/contain;
      display: inline-block;
    }
    .side-cart-item-plus-icon {
      font-size: 20px;
      font-weight: bold;
      color: #2E7D32; /* שינוי מ-#5EA189 ל-#2E7D32 לניגודיות טובה יותר */
      display: inline-block;
      line-height: 1;
    }
    /* דיאלוג מחיקה */
    .cart-delete-dialog {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.18);
      z-index: 10052;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cart-delete-dialog-content {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 16px #0003;
      padding: 32px 28px 18px 28px;
      min-width: 260px;
      text-align: center;
    }
    .cart-delete-dialog-title {
      font-family: 'Amatica SC', cursive;
      font-size: 22px;
      color: #5D4037; /* שינוי מ-#775A47 ל-#5D4037 לניגודיות טובה יותר */
      margin-bottom: 18px;
    }
    .cart-delete-dialog-actions {
      display: flex;
      justify-content: center;
      gap: 18px;
    }
    .cart-delete-btn-yes {
      background: #e74c3c;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 18px;
      font-family: 'Amatica SC', cursive;
      padding: 6px 22px;
      cursor: pointer;
    }
    .cart-delete-btn-no {
      background: #e0e0e0;
      color: #5D4037; /* שינוי מ-#775A47 ל-#5D4037 לניגודיות טובה יותר */
      border: none;
      border-radius: 8px;
      font-size: 18px;
      font-family: 'Amatica SC', cursive;
      padding: 6px 22px;
      cursor: pointer;
    }

.side-cart-view-btn {
  width: 90%;
  margin: 16px auto 18px auto;
  height: 48px;
  background: #4C8467;
  color: #fff;
  font-family: 'Amatica SC', cursive;
  font-size: 24px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
}
.side-cart-view-btn:hover {
  background: #3D6B4A;
}

@media (max-width: 700px) {
  .record-title {
    font-size: 36px;
    line-height: 1.1;
    margin-top: 8px;
  }

  /* Shared mobile header + nav — same on every page */
  header {
    height: 70px !important;
    padding: 6px 8px !important;
  }

  .logo {
    width: 140px !important;
    height: 60px !important;
  }

  .cart {
    width: 28px !important;
    height: 28px !important;
    right: 8px !important;
    top: 8px !important;
  }

  .cart-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .cart-badge {
    font-size: 14px !important;
    bottom: 2px !important;
  }

  nav {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    height: 40px !important;
    padding: 0 8px !important;
    gap: 0 !important;
    justify-content: space-evenly !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link,
  nav .nav-link,
  nav h4.nav-link,
  nav .shop-popup-btn {
    font-size: 24px !important;
    line-height: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex: 0 1 auto !important;
    justify-content: center !important;
  }

  nav h4.nav-link {
    margin: 0 !important;
    padding: 0 !important;
  }

  .shop-popup-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  nav .nav-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .shop-popup.is-open,
  .shop-popup[style*="display: block"] {
    display: block !important;
    z-index: 10001 !important;
    padding: 8px 0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18) !important;
  }

  .shop-popup > ul > li {
    position: relative;
  }

  /* תת-תפריטים במובייל — נפתחים מתחת, לא בצד */
  .popup-sub {
    position: static !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    min-width: 0 !important;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
    border-radius: 6px;
  }

  .popup-sub.show {
    display: block !important;
  }

  .popup-sub a {
    font-size: 16px;
    padding: 4px 0;
  }

  .body-center > header,
  .body-center > nav {
    width: 100%;
    max-width: 100vw;
  }

  .side-cart {
    width: 98vw;
    max-width: 98vw;
  }
  .side-cart-view-btn {
    position: sticky;
    bottom: 0;
    width: calc(100% - 32px);
    margin: 16px 16px 25px 16px;
    display: block !important;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  }
  .side-cart-list {
    padding: 10px 0 100px 0;
  }

  footer {
    height: auto;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    margin-top: 0;
  }

  .footer-nav {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin: 10px 0;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-link {
    font-size: 18px;
  }

  .footer-contact {
    position: static;
    align-items: center;
    margin: 10px 0;
  }

  .footer-contact-text {
    font-size: 14px;
  }

  .footer-logo {
    width: 70px;
    height: 70px;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .side-cart-view-btn {
    font-size: 18px;
    height: 44px;
    margin: 12px 12px 16px 12px;
    width: calc(100% - 24px);
  }

  nav .nav-link,
  nav h4.nav-link,
  nav .shop-popup-btn {
    font-size: 20px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .side-cart-view-btn {
    position: sticky;
    bottom: 0;
    width: calc(100% - 32px);
    margin: 16px 16px 25px 16px;
    display: block !important;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  }
  .side-cart-list {
    padding: 10px 0 100px 0;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
  .side-cart-view-btn {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    -webkit-transform: none !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .side-cart-list {
    padding: 10px 0 120px 0;
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .side-cart-view-btn {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@supports (-webkit-touch-callout: none) {
  .side-cart-view-btn {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* נגישות - Focus States */
    *:focus-visible {
      outline: 2px solid #4C8467;
      outline-offset: 2px;
    }
    
    button:focus-visible, a:focus-visible {
      outline: 2px solid #4C8467;
      outline-offset: 2px;
    }
    
    /* הסרת outline מclick */
    *:focus:not(:focus-visible) {
      outline: none !important;
      box-shadow: none !important;
    }
    
    /* הסרת outline לחלוטין אם לא משתמשים בTab */
    *:focus:not(:focus-visible) {
      outline: none !important;
      box-shadow: none !important;
    }
    
    /* הסרת outline מclick על כל האלמנטים */
    button:focus:not(:focus-visible),
    a:focus:not(:focus-visible),
    input:focus:not(:focus-visible),
    select:focus:not(:focus-visible),
    textarea:focus:not(:focus-visible),
    [tabindex]:focus:not(:focus-visible) {
      outline: none !important;
      box-shadow: none !important;
    }
    
    /* וידוא שהפוקוס נראה עם Tab */
    *:focus-visible {
      outline: 2px solid #4C8467 !important;
      outline-offset: 2px !important;
    }
    
    /* נגישות - Hover States */
    button:hover:not(.add-to-cart-btn):not(.best-seller-btn):not(.side-cart-item-add-btn):not(.side-cart-item-minus-btn),
    a:hover:not(.best-seller-btn) {
      opacity: 0.8;
    }
    
    /* נגישות - פוקוס על כפתור החנות */
    .shop-popup-btn:focus-visible {
      background: transparent !important;
      box-shadow: none !important;
    }
    
    .cart:focus-visible {
      background: transparent !important;
      box-shadow: none !important;
    }
    
    .shop-popup a:focus-visible,
    .shop-popup .popup-main-btn:focus-visible {
      outline: 2px solid #4C8467;
      outline-offset: 2px;
      background: #f0f0f0;
      border-radius: 6px;
    }
    

    
    /* נגישות - Screen Reader Only */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

/* Global mobile — all pages using site.css */
@media (max-width: 768px) {
  .body-center {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  nav {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    gap: 0 !important;
    justify-content: space-evenly !important;
    box-sizing: border-box !important;
  }

  nav .nav-link,
  nav h4.nav-link,
  nav .shop-popup-btn {
    margin: 0 !important;
    min-width: 0 !important;
  }

  main,
  section {
    max-width: 100vw;
    box-sizing: border-box;
  }

  main.record-main {
    padding: 8px 12px 28px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }

  .record-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  .record-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* דפי שש בש / מטקה — «אז מה אתם מחפשים» — תוכן ממורכז */
main.backgammon-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 32px 16px 48px !important;
  box-sizing: border-box !important;
}

.backgammon-main .backgammon-title {
  width: 100%;
  max-width: 960px;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.backgammon-main .backgammon-options {
  width: 100%;
  max-width: 960px;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  align-items: center !important;
  align-content: center;
  flex-wrap: wrap;
  gap: clamp(32px, 8vw, 120px);
  padding: 0 12px;
  box-sizing: border-box;
}

.backgammon-main .backgammon-circle {
  text-align: center;
}

.backgammon-main .circle-title,
.backgammon-main .circle-subtitle {
  text-align: center;
  width: 100%;
}

@media (max-width: 900px) {
  main.backgammon-main {
    padding: 24px 12px 40px !important;
  }

  .backgammon-main .backgammon-options {
    flex-direction: column !important;
    gap: 40px;
    padding: 0 16px;
  }
}

/* שורת מדיניות/תנאים — אחיד בכל העמודים; בלי height קבוע שחותך טקסט */
.copyright-section {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* סל קניות מלא / פרטי הזמנה — בלי אייקון סל קטן בכותרת */
body.page-shopping-cart header .cart,
body.page-order header .cart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.page-shopping-cart #sideCart,
body.page-order #sideCart,
body.page-shopping-cart #cartOverlay,
body.page-order #cartOverlay,
body.page-shopping-cart #cartDeleteDialog,
body.page-order #cartDeleteDialog {
  display: none !important;
}