/* =========================================================
   NORDIC ESSENCE – SHOP PAGE V1
========================================================= */

.ne-page-header{
  width:min(1600px,calc(100% - 40px));
  margin:0 auto;
  padding:60px 0 30px;
  border-bottom:1px solid #e7e7e7;
}
.ne-page-header h1{
  margin:0 0 12px;
  font-family:Garamond,"EB Garamond","Times New Roman",serif;
  font-size:46px;
  line-height:1.05;
  font-weight:400;
  color:#111;
}
.ne-page-header p{
  margin:0;
  max-width:680px;
  color:#444;
  font-size:14px;
  line-height:1.65;
}

.ne-shop-toolbar{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
  width:min(1600px,calc(100% - 40px));
  margin:0 auto 32px;
  padding:18px 0;
  border-bottom:1px solid #e7e7e7;
  background:#fff;
}
.ne-product-count{
  color:#333; font-size:11px; letter-spacing:.05em; white-space:nowrap;
}
.ne-toolbar-filters{
  display:flex; align-items:center; justify-content:center;
  gap:6px; flex-wrap:wrap;
}
.ne-filter-choice{
  min-height:38px; padding:0 14px;
  border:1px solid #d8d4cf; background:#fff; color:#1a1a1a;
  font-family:Arial,Helvetica,sans-serif;
  font-size:10px; font-weight:500; letter-spacing:.07em;
  text-transform:uppercase; cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.ne-filter-choice:hover{ border-color:#1b1b1b; }
.ne-filter-choice.active{
  border-color:#1b1b1b; background:#1b1b1b; color:#fff;
}
.ne-toolbar-right{
  display:flex; align-items:center; gap:12px;
}
.ne-search-input{
  width:220px; height:42px; padding:0 14px;
  border:1px solid #d8d4cf; background:#faf9f7;
  font-family:Arial,Helvetica,sans-serif; font-size:12px;
  outline:0;
}
#neSortSelect{
  min-width:160px; height:42px; padding:0 34px 0 14px;
  border:1px solid #d8d4cf; background:#faf9f7;
  font-size:12px; cursor:pointer; outline:0;
}
#neShopProducts{
  width:min(1600px,calc(100% - 40px));
  margin:0 auto;
  padding-bottom:80px;
}
.ne-shop-empty{
  width:min(1600px,calc(100% - 40px));
  margin:0 auto;
  padding:70px 20px;
  color:#555; font-size:14px; text-align:center;
}

/* MODAL */
.ne-modal{
  position:fixed; inset:0; z-index:999999;
  display:none; align-items:center; justify-content:center;
  padding:24px;
}
.ne-modal.open{ display:flex; }
.ne-modal-backdrop{
  position:absolute; inset:0; background:rgba(0,0,0,.58);
}
.ne-modal-window{
  position:relative; z-index:2;
  width:min(1120px,100%); max-height:92vh;
  overflow:auto; background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.18);
}
.ne-modal-close{
  position:absolute; top:10px; right:12px; z-index:10;
  width:42px; height:42px; border:0; background:#fff;
  color:#161616; font-size:30px; cursor:pointer;
}
.ne-modal-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);
  min-height:610px;
}
.ne-modal-gallery{ padding:30px; background:#f7f6f4; }
.ne-modal-main-image{
  display:flex; align-items:center; justify-content:center;
  width:100%; height:520px; overflow:hidden; background:#f7f6f4;
}
.ne-modal-main-image img{
  width:100%; height:100%; padding:22px; object-fit:contain;
}
.ne-modal-thumbs{ display:flex; gap:10px; margin-top:14px; }
.ne-modal-thumb{
  width:78px; height:86px; padding:0;
  border:1px solid #d7d3cd; background:#fff; cursor:pointer;
}
.ne-modal-thumb.active{ border-color:#1b1b1b; }
.ne-modal-thumb img{ width:100%; height:100%; object-fit:cover; }
.ne-modal-info{ padding:54px 42px 40px; }
.ne-modal-category{
  margin-bottom:9px; color:#555;
  font-size:10px; font-weight:600; letter-spacing:.14em;
}
.ne-modal-name{
  margin:0 0 10px; color:#171717;
  font-family:Garamond,"EB Garamond","Times New Roman",serif;
  font-size:42px; line-height:1.03; font-weight:400;
}
.ne-modal-type{
  margin-bottom:10px; color:#4d4d4d;
  font-size:13px; line-height:1.55;
}
.ne-modal-price{
  display:flex; align-items:baseline; flex-wrap:wrap;
  gap:9px; margin:22px 0 14px;
}
.ne-modal-current-price{
  color:#171717;
  font-family:Garamond,"EB Garamond","Times New Roman",serif;
  font-size:28px; font-weight:400;
}
.ne-modal-member-price{
  width:100%; color:#171717; font-size:14px; line-height:1.4;
}
.ne-modal-member-price strong{ font-size:14px; }
.ne-member-ordinary-price{
  width:100%; display:block; margin-top:3px;
  color:#666; font-size:11px;
}
.ne-modal-sizes{
  display:flex; flex-wrap:wrap; gap:7px; margin-bottom:12px;
}
.ne-modal-size{
  min-width:82px; min-height:42px; padding:0 13px;
  border:1px solid #d7d3cd; background:#fff; color:#171717;
  font-size:10px; font-weight:600; cursor:pointer;
}
.ne-modal-size.active{
  border-color:#1b1b1b; background:#1b1b1b; color:#fff;
}
.ne-modal-buy{
  width:100%; min-height:52px; margin-bottom:30px;
  border:1px solid #1b1b1b; background:#1b1b1b; color:#fff;
  font-size:11px; font-weight:600; letter-spacing:.07em; cursor:pointer;
}
.ne-detail-section{
  padding:17px 0; border-top:1px solid #e1ded8;
}
.ne-detail-title{
  margin-bottom:6px; color:#171717;
  font-size:10px; font-weight:700; letter-spacing:.08em;
}
.ne-detail-text, .ne-note-line{
  color:#3e3e3e; font-size:14px; line-height:1.65;
}

@media(max-width:900px){
  .ne-page-header h1{ font-size:36px; }
  .ne-shop-toolbar{ grid-template-columns:1fr auto; gap:14px; }
  .ne-product-count{ grid-column:1/-1; grid-row:1; }
  .ne-toolbar-filters{
    grid-column:1/-1; grid-row:2;
    justify-content:flex-start; overflow-x:auto;
  }
  .ne-toolbar-right{ grid-column:2; grid-row:1; }
  .ne-modal{ padding:10px; }
  .ne-modal-grid{ grid-template-columns:1fr; }
  .ne-modal-main-image{ height:420px; }
  .ne-modal-info{ padding:32px 24px; }
}
@media(max-width:540px){
  .ne-page-header{ padding:40px 0 20px; }
  .ne-page-header h1{ font-size:30px; }
  .ne-shop-toolbar{ padding:14px 0; }
  .ne-search-input{ width:140px; }
  .ne-modal-name{ font-size:34px; }
  .ne-modal-main-image{ height:350px; }
}
