/* Noor Naksha 1.11.32 — consolidated focused UAT corrections + 3 shopping additions.
   All rules scope to theme-owned components. Cart/checkout and mobile drawer
   controllers are intentionally not modified. */

/* ISSUE 01: Titles keep desktop's existing two-line presentation, but the
   line box can breathe. No clipping of the bottom of line two or collision
   with the WooCommerce price (including opt-in v1.11.31 gold tag). */
.nn-product-card .nn-product-info,
.nn-shop-product-card-v18 .nn-shop-product-info-v18,
.nn-empty-product-card-v1112 .nn-empty-product-info-v1112{
  display:flex!important;flex-direction:column!important;min-width:0!important;
  height:auto!important;overflow:visible!important;
}
.nn-product-card .nn-product-info h3,
.nn-shop-product-card-v18 .nn-shop-product-info-v18 h2.woocommerce-loop-product__title,
.nn-empty-product-info-v1112 h3{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  height:auto!important;min-height:2.92em!important;max-height:none!important;
  overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;
  line-height:1.43!important;margin:0 0 8px!important;padding:0 0 .06em!important;
  box-sizing:content-box!important;flex:0 0 auto!important;
}
.nn-product-card .nn-product-info h3 a,
.nn-shop-product-card-v18 .nn-shop-product-info-v18 h2 a{
  color:inherit;line-height:inherit!important;position:static!important;
}
.nn-product-card .nn-price,
.nn-shop-product-card-v18 .nn-shop-product-price-v18,
.nn-empty-product-price-v1112{
  position:static!important;inset:auto!important;clear:both!important;
  margin:4px 0 9px!important;min-height:28px!important;
  padding:0 0 2px!important;flex:0 0 auto!important;
}
.nn-shop-product-card-v18 .nn-shop-product-price-v18 .price,
.nn-shop-product-card-v18 .nn-shop-product-price-v18 .amount,
.nn-product-card .nn-price .amount{line-height:1.25!important}
.nn-product-card .nn-purchase-buttons-v1117,
.nn-shop-product-action-v18 .nn-purchase-buttons-v1117{margin-top:auto!important}
.nn-shop-product-card-v18 .nn-shop-product-action-v18{margin-top:auto!important;flex:0 0 auto!important}
/* Respect shop list view's larger text layout; don't reserve a forced height. */
.nn-shop-products-v18.is-list-view-v18 .nn-shop-product-info-v18 h2{min-height:0!important}
@media(max-width:720px){
  .nn-product-card .nn-product-info h3,
  .nn-shop-product-card-v18 .nn-shop-product-info-v18 h2.woocommerce-loop-product__title,
  .nn-empty-product-info-v1112 h3{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;line-clamp:2!important;
    min-height:2.92em!important;max-height:none!important;height:auto!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:12px!important;line-height:1.43!important;
    padding:0 0 .06em!important;margin:0 0 6px!important;
  }
  .nn-product-card .nn-price,
  .nn-shop-product-card-v18 .nn-shop-product-price-v18,
  .nn-empty-product-price-v1112{margin:3px 0 8px!important;min-height:25px!important}
}

/* ISSUE 02: Seamless premium desktop dropdown, hinge-unfold with subtle
   gravity settling. Pure CSS; hover + keyboard focus, reduced-motion support.
   Menu hrefs, auto-fit measurement, and mobile accordion behavior stay native. */
@media(min-width:993px){
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children{position:relative!important}
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>a{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    column-gap:8px!important;white-space:nowrap!important;
  }
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>a:after{
    margin-left:0!important;vertical-align:middle!important;font-size:12px!important;
    line-height:1!important;transform:translateY(-1px)!important;
    transition:transform .2s ease!important;
  }
  /* Automatic Categories already has its own accessible-looking chevron. */
  .nn-primary-nav .nn-nav-list>li.nn-auto-categories>a:after{display:none!important}
  .nn-primary-nav .nn-nav-list>li.nn-auto-categories>a .nn-category-chevron-v1111{
    margin:0!important;flex:0 0 auto!important;align-self:center!important;
  }
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children:hover>a:after,
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children:focus-within>a:after{
    transform:rotate(180deg) translateY(1px)!important;
  }
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>.sub-menu{
    top:100%!important;left:0!important;margin-top:0!important;
    transform-origin:top center!important;transform:perspective(850px) rotateX(-32deg) translateY(-3px)!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    border:1px solid #e6d7be!important;border-top:2px solid #c99545!important;
    border-radius:0 0 12px 12px!important;background:#fffdf8!important;
    box-shadow:0 14px 35px rgba(13,50,39,.13)!important;
    padding:7px!important;z-index:350!important;
    transition:opacity .22s ease,transform .26s ease,visibility 0s linear .27s!important;
    will-change:transform,opacity;
  }
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children:not(.nn-v111-mini-mega)>.sub-menu{
    width:max-content!important;min-width:200px!important;max-width:min(280px,calc(100vw - 26px))!important;
  }
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children:hover>.sub-menu,
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children:focus-within>.sub-menu{
    visibility:visible!important;opacity:1!important;pointer-events:auto!important;
    transform:perspective(850px) rotateX(0) translateY(0)!important;
    animation:nn-v1132-hinge .46s cubic-bezier(.22,.82,.24,1) both;
    transition:opacity .23s ease,visibility 0s,transform .34s ease!important;
  }
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>.sub-menu li{min-width:0!important}
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>.sub-menu>li>a{
    display:flex!important;align-items:center!important;min-height:38px!important;
    padding:9px 12px!important;border-radius:8px!important;
    color:#123b2e!important;background:transparent!important;
    line-height:1.35!important;white-space:normal!important;
  }
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>.sub-menu>li>a:hover,
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>.sub-menu>li>a:focus-visible{
    color:#0d392e!important;background:#f5ead3!important;outline:1px solid #d5b071!important;
  }
  .nn-primary-nav .nn-nav-list>li.nn-v111-mini-mega>.sub-menu.nn-v111-mega-grid{
    max-height:min(70vh,590px)!important;overflow-y:auto!important;
  }
}
@keyframes nn-v1132-hinge{
  0%{opacity:0;transform:perspective(850px) rotateX(-48deg) translateY(-5px)}
  65%{opacity:1;transform:perspective(850px) rotateX(3deg) translateY(0)}
  84%{transform:perspective(850px) rotateX(-1.4deg)}
  100%{opacity:1;transform:perspective(850px) rotateX(0deg) translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  .nn-primary-nav .nn-nav-list>li.menu-item-has-children>.sub-menu{
    animation:none!important;transition:none!important;transform:none!important;will-change:auto!important;
  }
}

/* ISSUE 03: Category rail — iconless centered All Products tile, compact
   name+count block and full uncropped art. The category IDs/links and rail
   controls are not replaced. */
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18{
  display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:center!important;align-content:center!important;
  gap:10px!important;min-height:74px!important;height:74px!important;
  padding:8px 10px!important;text-align:left!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 .nn-shop-category-art-v18{
  grid-column:1!important;grid-row:1!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
  width:54px!important;height:54px!important;min-width:0!important;
  align-self:center!important;overflow:hidden!important;
  background-position:center!important;background-repeat:no-repeat!important;
  background-size:contain!important;
}
.nn-shop-category-card-v18 .nn-shop-category-art-v18 img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 .nn-v1132-category-copy{
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-items:flex-start!important;gap:4px!important;line-height:1.25!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 .nn-v1132-category-copy strong{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  grid-row:auto!important;grid-column:auto!important;align-self:auto!important;
  text-align:left!important;line-height:1.25!important;overflow:hidden!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 .nn-v1132-category-copy small{
  display:block!important;grid-row:auto!important;grid-column:auto!important;
  min-height:0!important;margin:0!important;align-self:auto!important;
  text-align:left!important;line-height:1.25!important;
}
.nn-shop-categories-v18 .nn-shop-category-card-v18.is-all{
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:8px 12px!important;text-align:center!important;
}
.nn-shop-categories-v18 .nn-shop-category-card-v18.is-all strong{
  display:block!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;grid-row:auto!important;grid-column:auto!important;
  align-self:center!important;text-align:center!important;line-height:1.3!important;
}
.nn-shop-categories-v18 .nn-shop-category-card-v18.is-all::after{content:none!important;display:none!important}
.nn-shop-categories-v18 .nn-shop-category-card-v18.is-active{
  border-color:#c99545!important;box-shadow:inset 0 0 0 1px rgba(201,149,69,.22)!important;
}
@media(max-width:720px){
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18{
    grid-template-columns:46px minmax(0,1fr)!important;
    gap:8px!important;min-height:70px!important;height:70px!important;padding:7px!important;
  }
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 .nn-shop-category-art-v18{
    width:46px!important;height:46px!important;
  }
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 .nn-v1132-category-copy small{
    display:block!important;font-size:10px!important;
  }
}

/* SHOP FEATURES: restrained Noor Naksha green/gold/cream UI. */
.nn-v1132-size-entry{margin:14px 0 8px!important}
.nn-v1132-size-open{border:1px solid #c99545;background:#fffaf0;color:#0d4234;border-radius:9px;padding:12px 16px;min-height:44px;font-size:13px;font-weight:750;cursor:pointer}
.nn-v1132-size-open:hover,.nn-v1132-size-open:focus-visible{background:#f3e7d1;outline:2px solid #c99545;outline-offset:2px}
.nn-v1132-size-dialog{width:min(94vw,880px);max-width:880px;max-height:88vh;overflow-y:auto;box-sizing:border-box;border:1px solid #d8bf90;border-radius:16px;padding:0;background:#fffdf8;box-shadow:0 20px 75px rgba(0,23,16,.3);color:#173e32}
.nn-v1132-size-dialog::backdrop{background:rgba(9,30,24,.68)}
.nn-v1132-size-top{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #ebdfcd}
.nn-v1132-eyebrow,.nn-v1132-feature-heading>span{font-size:10px;font-weight:800;letter-spacing:.17em;color:#b18137}
.nn-v1132-size-top h2,.nn-v1132-feature-heading h2{font-family:var(--nn-serif,serif);font-size:clamp(24px,3vw,31px);color:#0d3b2f;line-height:1.2;margin:6px 0 0}
.nn-v1132-size-top button{border:1px solid #dfd4bf;border-radius:50%;width:38px;height:38px;flex:0 0 38px;background:#fff;color:#133d31;font-size:24px;cursor:pointer}
.nn-v1132-size-content{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;padding:24px}
.nn-v1132-scene{position:relative;min-height:360px;display:flex;align-items:flex-start;justify-content:center;overflow:hidden;border:1px solid #e7decd;border-radius:12px;background:linear-gradient(90deg,#f7f0e5,#fffaf0 52%,#f4e9d8)}
.nn-v1132-scene:after{content:"";position:absolute;top:65%;left:0;right:0;height:1px;background:rgba(172,152,111,.25)}
.nn-v1132-scene-art{position:absolute;top:30px;left:50%;transform:translateX(-50%);width:42%;height:56%;display:grid;place-items:center;background:#fff;box-shadow:0 7px 15px rgba(56,38,18,.16);border:4px solid #c99545;box-sizing:border-box;transition:width .27s ease,height .27s ease}
.nn-v1132-scene-art img{width:100%;height:100%;object-fit:contain;object-position:center;background:#fff}
.nn-v1132-scene-furniture{position:absolute;bottom:25px;left:14%;right:14%;height:88px}
.nn-v1132-sofa{position:absolute;inset:10px 0 12px;border:2px solid #b7a28a;background:#d6c5af;border-radius:27px 27px 9px 9px}
.nn-v1132-sofa-seat{position:absolute;bottom:0;left:4%;right:4%;height:38px;background:#c3ac91;border:1px solid #b4a083;border-radius:12px}
.nn-v1132-size-controls h3{font:750 18px/1.4 var(--nn-sans,Arial,sans-serif);color:#103e31;margin:0 0 22px}
.nn-v1132-size-controls label{display:block;font-weight:700;font-size:13px;margin-bottom:8px}
.nn-v1132-size-controls select{width:100%;min-height:44px;padding:8px 10px;border:1px solid #ccb78f;border-radius:8px;background:#fff;color:#153b2f}
.nn-v1132-selected{display:flex;align-items:baseline;gap:12px;margin:18px 0 10px}
.nn-v1132-selected strong{font-size:22px;color:#0b4234}.nn-v1132-selected span{font-size:11px;color:#746c60}
.nn-v1132-size-note{font-size:12px;line-height:1.6;color:#6a645c;margin:12px 0 20px}
.nn-v1132-size-done,.nn-v1132-fbt-footer button{min-height:44px;padding:10px 20px;background:#0c4033;border:0;color:#fff;border-radius:8px;font-weight:800;cursor:pointer}
.nn-v1132-size-done:hover,.nn-v1132-fbt-footer button:hover{background:#145843}
.nn-v1132-fbt,.nn-v1132-recent{margin-block:32px 40px;padding-block:18px}
.nn-v1132-feature-heading{margin-bottom:18px}
.nn-v1132-fbt-form{padding:22px;border:1px solid #e7d9c3;border-radius:14px;background:#fffdf8}
.nn-v1132-fbt-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nn-v1132-fbt-item{display:grid;grid-template-columns:20px 64px minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #e8dbca;border-radius:10px;background:#fff;cursor:pointer}
.nn-v1132-fbt-item input[type=checkbox]{accent-color:#0c4033;width:16px;height:16px}
.nn-v1132-fbt-item>img{width:64px;height:68px;object-fit:contain;background:#fff}
.nn-v1132-fbt-name{min-width:0;font-size:12px;line-height:1.38;font-weight:750;color:#143e32;overflow-wrap:anywhere}
.nn-v1132-fbt-name small{display:block;color:#aa7c33;font-size:10px;margin-top:4px}
.nn-v1132-fbt-price{grid-column:3;justify-self:start;color:#0b3e31;font-size:12px;font-weight:800}
.nn-v1132-fbt-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:17px;border-top:1px solid #ebdfcc}
.nn-v1132-fbt-footer p{margin:0;color:#58615c;font-size:14px}.nn-v1132-fbt-footer strong{display:inline-block;color:#0c4033;font-size:21px;margin-left:9px}
.nn-v1132-fbt-note{margin:10px 0 0;color:#736f65;font-size:11px}
.nn-v1132-recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.nn-v1132-recent-card{min-width:0;overflow:hidden;border:1px solid #e5d8c3;background:#fff;border-radius:12px;display:flex;flex-direction:column}
.nn-v1132-recent-art{display:block;height:180px;background:#fff}
.nn-v1132-recent-art img{display:block;width:100%;height:100%;object-fit:contain}
.nn-v1132-recent-info{display:flex;flex:1;flex-direction:column;padding:12px;min-width:0}
.nn-v1132-recent-info h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:750 13px/1.4 var(--nn-sans,Arial,sans-serif);min-height:2.9em;margin:0 0 10px;overflow-wrap:anywhere}
.nn-v1132-recent-info h3 a{color:#103e32;text-decoration:none}
.nn-v1132-recent-price{color:#0b4234;font-size:15px;font-weight:800;margin:0 0 12px}.nn-v1132-recent-price del{opacity:.5;font-size:.82em}.nn-v1132-recent-price ins{text-decoration:none}
.nn-v1132-recent-view{display:grid;place-items:center;min-height:38px;background:#0c4033;border-radius:7px;color:#fff!important;text-decoration:none!important;font-weight:750;font-size:12px;margin-top:auto}
@media(max-width:900px){.nn-v1132-fbt-items{grid-template-columns:repeat(2,minmax(0,1fr))}.nn-v1132-recent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .nn-v1132-size-content{grid-template-columns:1fr;padding:16px;gap:18px}
  .nn-v1132-size-dialog{max-height:90vh;width:min(95vw,520px)}
  .nn-v1132-size-top{padding:15px 16px}.nn-v1132-size-top h2{font-size:23px}
  .nn-v1132-scene{min-height:260px}.nn-v1132-scene-art{top:22px}
  .nn-v1132-scene-furniture{height:58px;bottom:14px}
  .nn-v1132-fbt-items{grid-template-columns:1fr}.nn-v1132-fbt-form{padding:12px}
  .nn-v1132-fbt-item{grid-template-columns:20px 68px minmax(0,1fr)}
  .nn-v1132-fbt-footer{align-items:stretch}.nn-v1132-fbt-footer button{width:100%}
  .nn-v1132-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .nn-v1132-recent-art{height:145px}.nn-v1132-recent-info{padding:9px}
}
