/* Nomara mobile-first refinements for shared OpenCart and SoEntry screens. */

:root {
  --nomara-ink: #3a2e2b;
  --nomara-brand: var(--so-entry-primary, var(--bs-primary));
  --nomara-brand-dark: color-mix(in srgb, var(--nomara-brand) 82%, black);
  --nomara-surface: #ffffff;
  --nomara-soft: #fff7f6;
  --nomara-line: #eadfdd;
  --nomara-muted: #6f6664;
  --nomara-radius: 14px;
  --nomara-shadow: 0 10px 30px rgba(58, 46, 43, 0.08);
}

@media (max-width: 767.98px) {
  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    color: var(--nomara-ink);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 0;
  }

  img,
  iframe,
  video {
    max-width: 100%;
  }

  body > #wrapper,
  body > .content,
  #wrapper > .content {
    min-height: 100vh;
  }

  .container,
  .container-fluid,
  .page-category {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  #content {
    min-width: 0;
  }

  .product-filter .list-view #grid-view-1 {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }

  .products-category .product-layout.product-grid-1,
  .products-list .product-layout.product-grid-1 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .product-grid-1 .product-item-container {
    margin-bottom: 18px;
  }

  .product-grid-1 .product-image-container,
  .product-grid-1 .product-image-container .image,
  .product-grid-1 .product-image-container img {
    display: block;
    width: 100% !important;
  }

  .product-grid-1 .right-block h4 {
    font-size: 18px;
    line-height: 1.35;
  }

  h1,
  #content h1,
  .mam-auth-page h1,
  .mam-register-page h1 {
    color: var(--nomara-ink);
    font-size: clamp(1.5rem, 6vw, 1.85rem);
    line-height: 1.2;
    margin: 0 0 16px;
  }

  h2,
  #content h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 8px 0 18px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  body.product-search .breadcrumb {
    display: none;
  }

  /* Optional: hide the Product - Header card on mobile by adding display: none here. */
  body.product-search .catalog-index-hero {
    margin-bottom: clamp(16px, 4vw, 22px);
  }

  body.product-search .catalog-index-hero p:last-child {
    margin-bottom: 0;
  }

  .breadcrumb-item {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .form-label,
  .col-form-label,
  #product .control-label {
    color: var(--nomara-ink);
    display: inline-block;
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 7px;
    text-transform: none;
  }

  .form-control,
  .form-select,
  select.form-control,
  input.form-control,
  textarea.form-control {
    background-color: var(--nomara-surface);
    border: 1px solid #d8cfcd;
    border-radius: 12px;
    box-shadow: none;
    color: var(--nomara-ink);
    font-size: 16px;
    min-height: 50px;
    padding: 12px 14px;
  }

  textarea.form-control {
    min-height: 112px;
  }

  .form-control:focus,
  .form-select:focus {
    border-color: var(--nomara-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nomara-brand) 14%, transparent);
  }

  .form-check {
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .form-check-input {
    height: 22px;
    margin-top: 1px;
    width: 22px;
  }

  .form-check-label {
    line-height: 1.4;
    padding-left: 4px;
  }

  .btn,
  button[type="submit"],
  input[type="submit"],
  input[type="button"].btn,
  a.button,
  .buttonsn,
  .btnsn {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 48px;
    padding: 12px 18px;
    text-transform: none;
    touch-action: manipulation;
  }

  .btn-primary,
  input.btn-primary,
  .product-detail .box-info-product .cart .btn,
  .buttonsn {
    background: var(--nomara-brand);
    border-color: var(--nomara-brand);
    color: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--nomara-brand) 18%, transparent);
  }

  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary:active,
  .product-detail .box-info-product .cart .btn:hover,
  .product-detail .box-info-product .cart .btn:focus {
    background: var(--nomara-brand-dark);
    border-color: var(--nomara-brand-dark);
    color: #fff;
  }

  .btn-light,
  .btn-default,
  .btn-secondary {
    background: #fff;
    border: 1px solid var(--nomara-line);
    color: var(--nomara-ink);
  }

  .btn:focus-visible,
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nomara-brand) 28%, transparent);
    outline-offset: 2px;
  }

  /* 
  .alert {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--nomara-shadow);
    font-size: 14px;
    left: 12px;
    line-height: 1.45;
    max-width: calc(100vw - 24px);
    padding: 14px 44px 14px 16px;
    right: 12px;
  }

  .alert .btn-close,
  .alert button.close {
    min-height: 44px;
    min-width: 44px;
  }

  body #alert {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
  }

  body #alert > .alert {
    align-items: start;
    border-radius: 0;
    box-sizing: border-box;
    column-gap: 10px;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) 44px;
    left: 0;
    margin: 0;
    max-width: none;
    padding: 14px 8px 14px 16px;
    right: 0;
    width: 100%;
  }

  body > .alert {
    align-items: start;
    border-radius: 0;
    box-sizing: border-box;
    column-gap: 10px;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) 44px;
    left: 0 !important;
    margin: 0;
    max-width: none;
    padding: 14px 8px 14px 16px;
    right: 0 !important;
    width: 100%;
  }

  body #alert > .alert > i:first-child,
  body > .alert > i:first-child {
    align-self: start;
    float: none !important;
    grid-column: 1;
    height: 22px;
    line-height: 22px;
    margin: 1px 0 0 !important;
    min-width: 22px;
    position: static !important;
    text-align: center;
    width: 22px;
  }

  body #alert > .alert > .btn-close,
  body #alert > .alert > button.close,
  body > .alert > .btn-close,
  body > .alert > button.close {
    align-self: center;
    float: none !important;
    grid-column: 3;
    margin: -10px 0 -10px auto !important;
    opacity: 0.72;
    padding: 0 !important;
    position: static !important;
  } */

  /* =====================================================
     MOBILE ALERT CONTAINER
     ===================================================== */

  body #alert {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 99999;
  }


  /* =====================================================
     ALL MOBILE ALERT BANNERS
     Covers:
     #alert > .alert
     and alerts injected directly under body
     ===================================================== */

  body #alert > .alert,
  body > .alert {
    position: relative !important;

    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    /*
      60px left:
      48px icon area + 12px text gap

      56px right:
      enough room for 44px close button
    */
    padding: 14px 56px 14px 60px !important;

    box-sizing: border-box !important;

    border: 0;
    border-radius: 0 !important;

    box-shadow: var(--nomara-shadow);

    font-size: 14px;
    line-height: 1.45;

    /* DO NOT use grid */
    display: block !important;
  }


  /* =====================================================
     FULL-HEIGHT LEFT ICON AREA
     ===================================================== */

  body #alert > .alert > i:first-child,
  body > .alert > i:first-child {
    position: absolute !important;

    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 48px !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: none !important;

    font-size: 18px;
    line-height: 1;

    text-align: center;

    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }


  /* =====================================================
     CLOSE BUTTON
     ===================================================== */

  body #alert > .alert > .btn-close,
  body #alert > .alert > button.close,
  body > .alert > .btn-close,
  body > .alert > button.close {
    position: absolute !important;

    top: 50% !important;
    right: 6px !important;
    left: auto !important;

    transform: translateY(-50%) !important;

    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    opacity: 0.72;

    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Login and registration */
  .mam-auth-page,
  .mam-register-page,
  #account-login,
  #account-register {
    padding-top: 4px;
  }

  .mam-auth-page .mam-auth-wrap,
  .mam-register-page .mam-register-wrap {
    margin: 0 auto 24px;
  }

  .mam-auth-page .mam-auth-wrap > .border,
  .mam-register-page .mam-register-wrap > .border,
  #account-login #content .border {
    background: var(--nomara-surface);
    border: 1px solid var(--nomara-line) !important;
    border-radius: var(--nomara-radius) !important;
    box-shadow: var(--nomara-shadow);
    padding: 20px !important;
  }

  .mam-auth-page .btn-primary,
  .mam-register-page .btn-primary,
  #account-login .btn-primary,
  #account-register .btn-primary {
    width: 100%;
  }

  .mam-register-page fieldset,
  #account-register fieldset {
    border-bottom: 1px solid var(--nomara-line);
    margin: 0 0 22px;
    padding: 0 0 22px;
  }

  .mam-register-page fieldset:last-of-type,
  #account-register fieldset:last-of-type {
    border-bottom: 0;
  }

  .mam-register-page legend,
  #account-register legend {
    color: var(--nomara-ink);
    font-size: 17px;
    font-weight: 750;
    margin-bottom: 14px;
  }

  .mam-register-page .row.g-3 {
    --bs-gutter-y: 16px;
  }

  /* Cart and secure checkout entry */
  #checkout-cart.nomara-mobile-cart {
    padding-bottom: 28px;
  }

  #checkout-cart #shopping-cart > h1 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  #checkout-cart #output-cart.table-responsive {
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  #checkout-cart #output-cart .table,
  #checkout-cart #output-cart tbody,
  #checkout-cart #output-cart tfoot {
    background: transparent;
    border: 0;
    display: block;
    width: 100%;
  }

  #checkout-cart #output-cart thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  #checkout-cart #output-cart tbody > tr {
    background: var(--nomara-surface);
    border: 1px solid var(--nomara-line);
    border-radius: var(--nomara-radius);
    box-shadow: var(--nomara-shadow);
    display: grid;
    gap: 6px 12px;
    grid-template-columns: 76px minmax(0, 1fr) 48px;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 14px;
  }

  #checkout-cart #output-cart tbody > tr > td {
    border: 0;
    min-width: 0;
    padding: 0;
    text-align: left !important;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(1) {
    align-self: start;
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(1) .img-thumbnail {
    background: var(--nomara-soft);
    border: 1px solid var(--nomara-line);
    border-radius: 12px;
    height: 76px;
    object-fit: contain;
    padding: 5px;
    width: 76px;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(2) {
    font-size: 15px;
    font-weight: 700;
    grid-column: 2;
    grid-row: 1;
    line-height: 1.35;
    padding-right: 2px;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(2) a {
    color: var(--nomara-ink);
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(3),
  #checkout-cart #output-cart tbody > tr > td:nth-child(4),
  #checkout-cart #output-cart tbody > tr > td:nth-child(5) {
    align-items: center;
    display: flex;
    font-size: 14px;
    grid-column: 2 / -1;
    justify-content: space-between;
    line-height: 1.25;
    min-height: 25px;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(3) {
    grid-row: 2;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(4) {
    grid-row: 3;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(5) {
    color: var(--nomara-brand-dark);
    font-weight: 800;
    grid-row: 4;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(3)::before {
    color: var(--nomara-muted);
    content: "Quantity";
    font-weight: 600;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(4)::before {
    color: var(--nomara-muted);
    content: "Unit price";
    font-weight: 600;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(5)::before {
    color: var(--nomara-muted);
    content: "Item total";
    font-weight: 600;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(3) .input-group {
    display: block;
    width: auto;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(3) .form-control-plaintext {
    line-height: 1.25;
    margin: 0;
    min-height: 0;
    padding: 0;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(6) {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  #checkout-cart #output-cart tbody > tr > td:nth-child(6) .btn-danger {
    background: #fff3f3;
    border: 1px solid #f2cdcd;
    border-radius: 50%;
    box-shadow: none;
    color: #ae2e2e;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
  }

  #checkout-cart #checkout-total {
    background: var(--nomara-surface);
    border: 1px solid var(--nomara-line);
    border-radius: var(--nomara-radius);
    box-shadow: var(--nomara-shadow);
    margin: 4px 0 22px;
    overflow: hidden;
  }

  #checkout-cart #checkout-total > tr {
    align-items: center;
    border-bottom: 1px solid var(--nomara-line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 48px;
    padding: 0 14px;
  }

  #checkout-cart #checkout-total > tr:last-child {
    border-bottom: 0;
  }

  #checkout-cart #checkout-total > tr > td {
    border: 0;
    display: block;
    font-size: 14px;
    padding: 10px 0;
    text-align: right !important;
  }

  #checkout-cart #checkout-total > tr > td:first-child {
    padding-right: 18px;
  }

  #checkout-cart #checkout-total > tr:last-child > td {
    color: var(--nomara-ink);
    font-size: 17px;
    font-weight: 800;
  }

  #checkout-cart #shopping-cart > h2 {
    font-size: 21px;
    margin: 0 0 8px;
  }

  #checkout-cart #shopping-cart > h2 + p {
    color: var(--nomara-muted);
    font-size: 14px;
    margin-bottom: 14px;
  }

  #checkout-cart #accordion {
    margin-bottom: 18px;
  }

  #checkout-cart #accordion .accordion-item,
  #checkout-cart #accordion .accordion-button {
    border-color: var(--nomara-line);
    border-radius: 12px;
  }

  #checkout-cart #accordion .accordion-button {
    background: var(--nomara-surface);
    color: var(--nomara-ink);
    font-size: 14px;
    font-weight: 700;
    min-height: 50px;
    padding: 12px 14px;
  }

  #checkout-cart #shopping-cart > .row:last-child {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin: 0;
  }

  #checkout-cart #shopping-cart > .row:last-child > .col {
    padding: 0;
    text-align: left !important;
    width: 100%;
  }

  #checkout-cart #shopping-cart > .row:last-child .btn,
  #checkout-cart #cashfree-checkout-wrapper,
  #checkout-cart #button-cashfree-confirm {
    width: 100%;
  }

  #checkout-cart #shopping-cart > .text-end .btn-primary {
    width: 100%;
  }

  #checkout-cart #cashfree-checkout-wrapper.cashfree-checkout-active {
    display: block !important;
  }

  #cashfree-customer-overlay,
  #cashfree-loading-overlay {
    align-items: flex-end !important;
    padding: 12px !important;
  }

  #cashfree-customer-card,
  #cashfree-loading-card {
    border-radius: 18px !important;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #cashfree-customer-actions {
    gap: 10px !important;
    margin-top: 20px !important;
  }

  #cashfree-customer-actions .btn {
    font-size: 15px !important;
    min-height: 50px !important;
  }

  /* Shared checkout */
  #checkout-checkout.checkout-mobile-first {
    padding-bottom: 18px;
  }

  #checkout-checkout .checkout-layout {
    --bs-gutter-x: 0;
  }

  #checkout-checkout .checkout-details,
  #checkout-checkout .checkout-summary {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  #checkout-checkout .checkout-panel,
  #checkout-checkout fieldset {
    background: var(--nomara-surface);
    border: 1px solid var(--nomara-line);
    border-radius: var(--nomara-radius);
    box-shadow: var(--nomara-shadow);
    margin: 0 0 14px;
    padding: 18px;
  }

  #checkout-checkout .checkout-panel fieldset,
  #checkout-checkout fieldset fieldset {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  #checkout-checkout legend {
    color: var(--nomara-ink);
    float: none;
    font-size: 18px;
    font-weight: 750;
    margin: 0 0 16px;
    width: 100%;
  }

  #checkout-checkout .input-group {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 50px minmax(0, 1fr);
  }

  #checkout-checkout .input-group .input-group-text {
    align-items: center;
    border-radius: 12px;
    display: flex;
    justify-content: center;
  }

  #checkout-checkout .input-group .form-control {
    border-radius: 12px;
    min-width: 0;
  }

  #checkout-checkout .input-group .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  #checkout-checkout .text-end .btn-primary,
  #checkout-checkout #checkout-payment .btn-primary {
    width: 100%;
  }

  #checkout-checkout .modal-dialog {
    margin: 12px;
  }

  #checkout-checkout .modal-content {
    border: 0;
    border-radius: 16px;
  }

  #checkout-confirm .table td:first-child {
    min-width: 190px;
  }

  /* Product detail */
  .product-view.nomara-mobile-product,
  .product-view.product-detail {
    margin-left: 0;
    margin-right: 0;
  }

  .product-view .content-product-left,
  .product-view .content-product-right {
    padding-left: 0;
    padding-right: 0;
  }

  .product-detail .large-image {
    background: var(--nomara-soft);
    border: 1px solid var(--nomara-line);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
  }

  .product-detail .large-image img {
    display: block;
    height: auto;
    width: 100%;
  }

  .product-view .content-product-right .title-product h1,
  .product-product #content h1 {
    font-size: 23px;
    line-height: 1.25;
    margin: 10px 0 12px;
  }

  .product-detail .content-product-right .model {
    color: var(--nomara-muted);
    font-size: 13px;
    width: calc(100% - 86px);
  }

  .product_page_price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
  }

  .product_page_price .price-new {
    color: var(--nomara-ink);
    font-size: 28px;
  }

  .product_page_price .price-old {
    color: var(--nomara-muted);
    font-size: 17px;
  }

  .product_page_price .price-tax,
  .product_page_price .list-unstyled {
    flex-basis: 100%;
  }

  .product-view .content-product-right .product-box-desc {
    background: var(--nomara-soft);
    border-radius: 12px;
    font-size: 13px;
    margin: 14px 0 18px;
    padding: 14px 16px;
  }

  #product .form-group,
  #product .mb-3 {
    margin-bottom: 18px !important;
  }

  #product .radio-type-button .option-content-box {
    align-items: center;
    background: #fff;
    border: 1px solid var(--nomara-line);
    border-radius: 10px;
    color: var(--nomara-ink);
    display: inline-flex;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    min-width: 44px;
    padding: 9px 12px;
  }

  #product .radio-type-button .option-content-box.active {
    background: var(--nomara-brand);
    border-color: var(--nomara-brand);
  }

  .product-detail .box-info-product {
    margin: 4px 0 22px;
  }

  .product-detail .box-info-product .inner {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .product-detail .box-info-product .option.quantity {
    margin-bottom: 12px;
  }

  .product-detail .quantity .quantity-control {
    border: 1px solid var(--nomara-line);
    border-radius: 12px;
    display: inline-grid !important;
    grid-template-columns: 48px 58px 48px;
    max-width: 154px;
    overflow: hidden;
    table-layout: auto;
    width: 154px !important;
  }

  .product-detail .quantity .quantity-control span,
  .product-detail .quantity .quantity-control input.form-control {
    align-items: center;
    border: 0;
    border-radius: 0;
    display: flex;
    float: none;
    font-size: 16px;
    height: 48px;
    justify-content: center;
    line-height: 48px;
    margin: 0;
    min-height: 48px;
    padding: 0;
    text-align: center;
  }

  .product-detail .quantity .quantity-control span {
    flex: 0 0 48px !important;
    max-width: 48px;
    min-width: 48px;
    width: 48px !important;
  }

  .product-detail .quantity .quantity-control input.form-control {
    border-left: 1px solid var(--nomara-line);
    border-right: 1px solid var(--nomara-line);
    flex: 0 0 58px !important;
    max-width: 58px;
    min-width: 58px;
    width: 58px !important;
  }

  .product-detail .box-info-product .cart {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin: 0;
    width: 100%;
  }

  .product-detail .box-info-product .cart .btn,
  .product-detail .box-info-product .cart .btn.btn-checkout,
  .product-detail #button-cart,
  .product-detail .btn-checkout {
    align-items: center;
    background: var(--nomara-brand);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--nomara-brand) 18%, transparent);
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    margin: 0;
    min-height: 52px;
    padding: 14px 18px;
    text-transform: none;
    width: 100%;
  }

  .product-detail .box-info-product .cart .btn.btn-checkout,
  .product-detail .btn-checkout {
    background: var(--nomara-ink);
  }

  .product-detail .box-info-product .wish_comp {
    display: flex;
    gap: 10px;
  }

  .product-detail .box-info-product .wish_comp .btn-button {
    align-items: center;
    border: 1px solid var(--nomara-line);
    border-radius: 12px;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    min-width: 48px;
  }

  body.product-product .container.page-category > .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  body.product-product .container.page-category > .row > #content {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  body.product-product .content-product-midde {
    padding-left: 0;
    padding-right: 0;
  }

  #tab-tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  #tab-tags > a.btn,
  #tab-tags > a.btn-primary,
  #tab-tags > a.btn-sm {
    background: var(--nomara-surface);
    border: 1px solid var(--nomara-line);
    border-radius: 999px;
    box-shadow: none;
    color: var(--nomara-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    min-height: 32px;
    padding: 6px 11px;
  }

  #tab-tags > a.btn:active,
  #tab-tags > a.btn:focus-visible {
    background: color-mix(in srgb, var(--nomara-brand) 10%, white);
    border-color: var(--nomara-brand);
    color: var(--nomara-brand-dark);
  }

  .producttab,
  .producttab .tabsslider {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .producttab .tabsslider .nav-tabs {
    border: 0;
    display: grid !important;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px 0 10px;
    width: 100%;
  }

  .producttab .tabsslider .nav-tabs > li {
    display: block;
    margin: 0;
    min-width: 0;
    width: auto;
  }

  .producttab .tabsslider .nav-tabs > li > a {
    align-items: center;
    background: var(--nomara-surface) !important;
    border: 1px solid var(--nomara-line) !important;
    border-radius: 999px;
    box-sizing: border-box;
    color: var(--nomara-ink) !important;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700 !important;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
    min-height: 44px;
    padding: 9px 5px;
    text-align: center;
    white-space: nowrap;
    width: 100%;
  }

  .producttab .tabsslider .nav-tabs > li > a.active,
  .producttab .tabsslider .nav-tabs > li.active > a {
    background: var(--nomara-brand) !important;
    border-color: var(--nomara-brand) !important;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--nomara-brand) 18%, transparent);
    color: #fff !important;
  }

  .producttab .tabsslider .nav-tabs > li > a:active {
    background: var(--nomara-brand-dark) !important;
    border-color: var(--nomara-brand-dark) !important;
    color: #fff !important;
  }

  .producttab .tab-content {
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
  }

  .producttab .tab-content > .tab-pane {
    width: 100%;
  }

  .producttab #tab-dk-so-misc-11 .dk-so-custom-tab-body > div > div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .producttab #tab-dk-so-misc-11 .dk-so-custom-tab-body > div > div[style*="grid-template-columns:repeat(2"] > div {
    border-right: 0 !important;
  }

  /* Persistent mobile navigation */
  body .bar.bar-tab {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--nomara-line);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(58, 46, 43, 0.1);
    display: flex;
    height: calc(52px + env(safe-area-inset-bottom, 0px));
    left: 0;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    position: fixed;
    right: 0;
    max-width: 100vw;
    min-width: 0;
    width: 100vw;
    z-index: 1050;
  }

  body .bar-tab .tab-item {
    align-items: center;
    color: var(--nomara-muted);
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    font-size: 11px;
    gap: 1px;
    justify-content: center;
    min-height: 52px;
    min-width: 0;
    padding: 2px;
    position: relative;
    text-decoration: none;
    touch-action: manipulation;
  }

  body .bar-tab .mobile-tab-icon {
    color: currentColor;
    font-size: 18px;
    height: 20px;
    line-height: 20px;
    position: relative;
  }

  body .bar-tab .mobile-cart-badge {
    align-items: center;
    background: var(--nomara-brand);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    height: 19px;
    justify-content: center;
    left: calc(50% + 7px);
    line-height: 1;
    min-width: 19px;
    padding: 0 4px;
    position: absolute;
    top: -5px;
    transform: scale(1);
    transform-origin: center;
    transition: transform 160ms ease, background-color 160ms ease;
  }

  body .bar-tab .mobile-cart-badge.is-empty {
    background: #8d8583;
  }

  body .bar-tab .mobile-cart-badge.is-updating {
    transform: scale(1.24);
  }

  body .bar-tab .tab-label,
  body .bar-tab .mobile-tab-icon + .tab-label {
    color: currentColor;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
  }

  body .bar-tab .tab-item.active,
  body .bar-tab .tab-item:active,
  body .bar-tab .tab-item.is-active {
    color: var(--nomara-brand) !important;
  }

  body .bar-tab button.tab-item {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    margin: 0;
    width: auto;
  }

  /* Ratchet translates body-level siblings while its drawer runs. Hide fixed
     controls until the app shell is reset so neither is clipped or displaced. */
  body.mobile-drawer-transitioning #wrapper > .bar.bar-tab,
  body.mobile-drawer-transitioning [id^="JotformAgent-"],
  body.mobile-drawer-transitioning .embedded-agent-container.noupe-agent {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .mobile-more-backdrop {
    appearance: none;
    background: rgba(32, 24, 22, 0.52);
    border: 0;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    cursor: default;
    left: 0;
    margin: 0;
    opacity: 0;
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 220ms ease;
    width: 100%;
    z-index: 1045;
  }

  .mobile-more-backdrop.is-open {
    opacity: 1;
  }

  .mobile-more-sheet {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--nomara-line) 80%, transparent);
    border-radius: 24px;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -18px 48px rgba(45, 34, 31, 0.2);
    left: 12px;
    margin: 0 auto;
    max-height: calc(100vh - 96px);
    max-height: min(620px, calc(100dvh - 96px));
    max-width: 520px;
    opacity: 0;
    overflow: hidden;
    position: fixed;
    right: 12px;
    transform: translateY(calc(100% + 20px));
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
    z-index: 1060;
  }

  .mobile-more-sheet.is-open {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-more-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--nomara-line);
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    min-height: 66px;
    padding: 14px 14px 10px 20px;
    position: relative;
    touch-action: pan-y;
  }

  .mobile-more-handle {
    background: #d7cecb;
    border-radius: 999px;
    height: 4px;
    left: 50%;
    position: absolute;
    top: 7px;
    transform: translateX(-50%);
    width: 42px;
  }

  .mobile-more-header h2 {
    color: var(--nomara-text);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.2;
    margin: 5px 0 0;
  }

  .mobile-more-close {
    align-items: center;
    appearance: none;
    background: #f5f1f0;
    border: 0;
    border-radius: 50%;
    color: var(--nomara-text);
    display: inline-flex;
    font-size: 18px;
    height: 44px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 44px;
  }

  .mobile-more-body {
    max-height: calc(100vh - 162px);
    max-height: min(554px, calc(100dvh - 162px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .mobile-more-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-more-action {
    align-items: center;
    background: #faf8f7;
    border: 1px solid var(--nomara-line);
    border-radius: 16px;
    color: var(--nomara-text) !important;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 11px;
    min-height: 82px;
    padding: 12px;
    text-decoration: none !important;
  }

  .mobile-more-action-icon {
    align-items: center;
    background: color-mix(in srgb, var(--nomara-brand) 10%, #fff);
    border-radius: 12px;
    color: var(--nomara-brand);
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 17px;
    height: 40px;
    justify-content: center;
  }

  .mobile-more-action:active {
    background: color-mix(in srgb, var(--nomara-brand) 7%, #fff);
    border-color: color-mix(in srgb, var(--nomara-brand) 32%, var(--nomara-line));
  }

  .mobile-more-policies {
    border-top: 1px solid var(--nomara-line);
    margin-top: 16px;
    padding-top: 14px;
  }

  .mobile-more-policies h3 {
    color: var(--nomara-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 6px 6px;
    text-transform: uppercase;
  }

  .mobile-more-policies > a {
    align-items: center;
    border-bottom: 1px solid var(--nomara-line);
    color: var(--nomara-text) !important;
    display: flex;
    font-size: 14px;
    font-weight: 650;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 6px;
    text-decoration: none !important;
  }

  .mobile-more-policies > a:last-child {
    border-bottom: 0;
  }

  .mobile-more-policies > a span i {
    color: var(--nomara-brand);
    margin-right: 10px;
    text-align: center;
    width: 20px;
  }

  .mobile-more-policies > a > i {
    color: var(--nomara-muted);
    font-size: 11px;
  }

  .mobile-more-sheet a:focus-visible,
  .mobile-more-sheet button:focus-visible,
  body .bar-tab button.tab-item:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nomara-brand) 52%, transparent);
    outline-offset: 2px;
  }

  body.mobile-more-open #wrapper > .content {
    overflow: hidden !important;
  }

  body.has-mobile-bottom-nav #wrapper > .content {
    box-sizing: border-box;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-bottom-nav .footernav-bottom {
    padding-bottom: 20px;
  }

  @media (max-width: 339.98px) {
    .mobile-more-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-more-backdrop,
    .mobile-more-sheet {
      transition-duration: 1ms;
    }
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .btn,
  button[type="submit"],
  input[type="button"].btn,
  input[type="submit"] {
    min-height: 44px;
  }
}
