/* Mobile: keep the current natural image sizing */
[section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

[section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] > div.absolute.inset-0 {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
}

[section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] picture {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

[section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] picture img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

[section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] > .theme-container {
  display: none !important;
}

/* Desktop: responsive image sizing */
@media (min-width: 768px) {
  [section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  [section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] > div.absolute.inset-0 {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  [section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] picture {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  [section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] picture img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  [section-id="12571aa5-8d9b-40ec-b095-133e6767a90f"] > .theme-container {
    display: none !important;
  }
}

/*************************/

@media (max-width: 767px) {
  [section-id="e1fe4234-8243-4519-ac55-6cfc4a746b31"] [data-grid-root="true"] {
    grid-template-columns: 85% !important;
    justify-content: center;
    text-align: center;
  }

  [section-id="e1fe4234-8243-4519-ac55-6cfc4a746b31"] [data-product-card] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 12px !important;
  }

  [section-id="e1fe4234-8243-4519-ac55-6cfc4a746b31"] [data-product-card] > a {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }

  [section-id="e1fe4234-8243-4519-ac55-6cfc4a746b31"] [data-product-card] > a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  [section-id="e1fe4234-8243-4519-ac55-6cfc4a746b31"] [data-product-card] > div {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
  }

  [section-id="e1fe4234-8243-4519-ac55-6cfc4a746b31"] [data-product-card] > div button {
    width: 80% !important;
    justify-self: center;
  }
}
@media (max-width: 767px) {
  [section-id="e1fe4234-8243-4519-ac55-6cfc4a746b31"] h3.text-foreground.text-sm.font-medium {
    line-height: 2 !important;
  }
}

/***************************/
@media (max-width: 767px) {
  [data-product-card="0ef11235-2205-4d2b-9aaf-0c4092d6a85c"]
  button[data-open-quick-view="true"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    margin-top: 4px !important;

    background: #fec54b !important;
    color: #000000 !important;
    border: 1px solid #111827 !important;
    border-radius: 8px !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
  }

  [data-product-card="0ef11235-2205-4d2b-9aaf-0c4092d6a85c"]
  button[data-open-quick-view="true"]:active {
    transform: scale(0.98);
    background: #293244 !important;
  }
}
/****************************/
@media (max-width: 767px) {
  .flex.flex-wrap.items-center.gap-2 {
    align-self: center !important;
    margin-bottom: 10px !important;
    margin-top: 12px !important;
  }
}
/****************************/
@media (max-width: 767px) {
  #footer .space-y-4 > p:nth-of-type(2) {
    margin: -20px 0 !important;
    margin-bottom: 8px !important;
    margin-top: -45px !important;
  }
}
/******************************/
@media (max-width: 767px) {

  /* Full-screen mobile drawer */
  #mobile-drawer {
    position: fixed !important;
    inset: var(--header-h, 0px) 0 0 0 !important;
    width: 100vw !important;
    height: calc(100dvh - var(--header-h, 0px)) !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  #mobile-drawer > div,
  #mobile-drawer el-dialog-panel {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
  }

  #mobile-drawer .bg-background {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }

  #mobile-drawer .flex.h-full.flex-col.items-start {
    gap: 20px !important;
    padding: 24px 16px !important;
    overflow-y: auto !important;
  }

  /* Menu links and login buttons */
  #mobile-drawer a,
  #mobile-drawer #mobile-login-btn,
  #mobile-drawer #mobile-logged-in-links button {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    text-align: right !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
  }

  #mobile-drawer a:hover,
  #mobile-drawer button:hover {
    background-color: rgba(128, 128, 128, 0.10) !important;
  }

  /* Menu icons */
  #mobile-drawer a::before,
  #mobile-drawer #mobile-login-btn::before,
  #mobile-drawer #mobile-logged-in-links a::before,
  #mobile-drawer #mobile-logged-in-links button::before {
    content: "";
    display: inline-block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background-color: currentColor;
    opacity: 0.85;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  /* Package icon */
  #mobile-drawer a[href*="/products/"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='m3 8 9 5 9-5M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='m3 8 9 5 9-5M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
  }

  /* Warranty icon */
  #mobile-drawer a[href*="/pages/"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  }

  /* Login icon */
  #mobile-drawer #mobile-login-btn::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  }

  /* Account icon */
  #mobile-drawer #mobile-logged-in-links a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E");
  }

  /* Login/account section divider */
  #mobile-drawer .border-t {
    border-color: rgba(128, 128, 128, 0.2) !important;
    padding-top: 16px !important;
  }
}
/*****************/
@media (max-width: 767px) {
  #mobile-drawer a::before,
  #mobile-drawer #mobile-login-btn::before,
  #mobile-drawer #mobile-logged-in-links a::before,
  #mobile-drawer #mobile-logged-in-links button::before {
    background-color: #d4af37 !important;
    opacity: 1 !important;
  }
}
[data-product-sku-wrapper] {
  display: none !important;
}
@media (max-width: 767px) {
  .prose.prose-theme.prose-sm.max-w-none {
    margin: 18px 0 !important;
  }
}
@media (max-width: 767px) {
  .product-options__item.active {
    border-color: var(--primary) !important;
    background: #e5b847 !important;
    color: #000 !important;
  }
}
@media (max-width: 767px) {
  [data-quantity-wrapper] {
    width: 100% !important;
  }

  [data-quantity-wrapper] .qty-input {
    width: 100% !important;
    display: flex !important;
  }

  [data-quantity-wrapper] .qty-input-field {
    flex: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  [data-quantity-wrapper] .qty-input-btn {
    flex-shrink: 0 !important;
  }
}
@media (max-width: 767px) {
  [data-add-to-cart-form="product-form"] {
    background: #e5b847 !important;
    color: #111111 !important;
    border: 1px solid #d4a72c !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-height: 54px !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(229, 184, 71, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  /* Animated shopping cart icon */
  [data-add-to-cart-form="product-form"] svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    animation: cartAction 1.5s ease-in-out infinite;
  }

  /* Button interaction */
  [data-add-to-cart-form="product-form"]:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 6px rgba(229, 184, 71, 0.2) !important;
  }

  [data-add-to-cart-form="product-form"]:hover {
    background: #d9aa35 !important;
  }
}

@keyframes cartAction {
  0%, 100% {
    transform: translateX(0) rotate(0);
  }
  25% {
    transform: translateX(-3px) rotate(-5deg);
  }
  50% {
    transform: translateX(0) rotate(0);
  }
  75% {
    transform: translateX(3px) rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-add-to-cart-form="product-form"] svg {
    animation: none !important;
  }
}
@media (max-width: 767px) {
  [data-sticky-cta-add-to-cart] {
    background: #e5b847 !important;
    color: #111111 !important;
    border: 1px solid #d4a72c !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-height: 50px !important;
    box-shadow: 0 4px 12px rgba(229, 184, 71, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  /* Cart icon animation */
  [data-sticky-cta-add-to-cart] [data-sticky-cta-btn-default] svg {
    animation: stickyCartMove 1.5s ease-in-out infinite;
  }

  /* Press effect */
  [data-sticky-cta-add-to-cart]:active {
    transform: scale(0.97) !important;
    background: #d9aa35 !important;
  }

  /* Loading and success states */
  [data-sticky-cta-add-to-cart] [data-sticky-cta-btn-loading],
  [data-sticky-cta-add-to-cart] [data-sticky-cta-btn-success] {
    color: #111111 !important;
  }
}

@keyframes stickyCartMove {
  0%, 100% {
    transform: translateX(0) rotate(0);
  }
  25% {
    transform: translateX(-3px) rotate(-5deg);
  }
  50% {
    transform: translateX(0) rotate(0);
  }
  75% {
    transform: translateX(3px) rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-sticky-cta-add-to-cart] svg {
    animation: none !important;
  }
}
@media (max-width: 767px) {
  #main > section:nth-of-type(1) {
    margin-top: 10px;
  }
}
/* ===== Mobile Footer Only ===== */
@media (max-width: 767px) {
  #footer {
    padding: 32px 16px !important;
    text-align: center !important;
  }

  #footer > .theme-container {
    width: 100% !important;
    margin-inline: auto !important;
  }

  /* Stack all sections in one column */
  #footer > .theme-container > .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    justify-items: center !important;
    text-align: center !important;
  }

  /* Logo and social media */
  #footer .grid > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 14px !important;
  }

  #footer .grid > div:first-child > img {
    width: 112px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  #footer h3 {
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  #footer .grid > div:first-child > .flex {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
  }

  #footer .grid > div:first-child > .flex a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(128, 128, 128, 0.25) !important;
    border-radius: 50% !important;
  }

  #footer .grid > div:first-child > .flex svg {
    width: 19px !important;
    height: 19px !important;
  }

  /* Contact section */
  #footer .grid > div:nth-child(2) {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }

  #footer .grid > div:nth-child(2) > div {
    width: 100% !important;
  }

  #footer ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 16px !important;
    padding: 0 !important;
  }

  #footer ul li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  #footer ul li a {
    margin: 0 !important;
    font-size: 13px !important;
    overflow-wrap: anywhere !important;
  }

  /* Bottom footer */
  #footer .border-border-light {
    margin-top: 28px !important;
    padding-top: 22px !important;
  }

  #footer .border-border-light > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    text-align: center !important;
  }

  #footer .border-border-light > div > div {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #footer .border-border-light img {
    object-fit: contain !important;
  }

  #footer .border-border-light > div > div > span {
    width: 100% !important;
    text-align: center !important;
  }

  /* Zid attribution - last item on mobile */
  #footer .text-foreground.text-sm:has(a[href*="zid.sa"]) {
    order: 999 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 10px !important;
    text-align: center !important;
  }

  #footer .text-foreground.text-sm:has(a[href*="zid.sa"]) span {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  #footer .text-foreground.text-sm:has(a[href*="zid.sa"]) a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  #footer .text-foreground.text-sm:has(a[href*="zid.sa"]) p {
    margin: 0 !important;
    font-size: 13px !important;
  }

  #footer .text-foreground.text-sm:has(a[href*="zid.sa"]) img {
    width: auto !important;
    height: 20px !important;
    object-fit: contain !important;
  }
}
/*************************/
#product-badges > span:first-child > span {
  display: inline-block;
  transition: opacity 0.2s ease;
}

#product-badges > span:first-child {
  border-radius: 999px;
  padding: 6px 12px;
}
/* HardPro - Gold buttons on mobile only */
@media screen and (max-width: 767px) {
  .btn.btn-filled,
  button[data-add-to-cart-form],
  button[data-sticky-cta-add-to-cart] {
    background-color: #e5b847 !important;
    border-color: #e5b847 !important;
    color: #171717 !important;
    transition: background-color 0.25s ease,
                transform 0.2s ease,
                box-shadow 0.25s ease;
  }

  .btn.btn-filled:active,
  button[data-add-to-cart-form]:active,
  button[data-sticky-cta-add-to-cart]:active {
    background-color: #d4a735 !important;
    border-color: #d4a735 !important;
    transform: scale(0.98);
  }
}
/***************************/
@media (max-width: 767px) {
  a[href="/products/0ef11235-2205-4d2b-9aaf-0c4092d6a85c/"] {
    position: relative;
    display: block !important;
    text-align: start !important;
    padding-inline-end: 125px !important;
  }

  a[href="/products/0ef11235-2205-4d2b-9aaf-0c4092d6a85c/"]::after {
    content: "🔥 الأكثر طلباً";
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.5;
  }
}
/***********************/
@media (max-width: 767px) {
  a[href="/pages/122253"] {
    position: relative;
  }

  a[href="/pages/122253"]::after {
    content: "موثق";
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: inline-block;
        padding: 7px 12px 7px 32px;
        background-color: #fff;
        background-image: url(https://static.zid.store/9342afcb/images/business_center.png);
        background-repeat: no-repeat;
        background-size: 17px 17px;
        background-position: left 9px center;
        color: #000;
        font-size: 12px;
        line-height: 1;
        border-radius: 7px;
        white-space: nowrap;
  }
}