/* SHIK OPAL — self-hosted four-product editorial showcase */
@font-face{font-family:"SOR-IRANSansX";font-style:normal;font-weight:400;font-display:swap;src:url('/wp-content/uploads/2026/10/IRANSansXFaNum-Regular.woff') format('woff')}
@font-face{font-family:"SOR-IRANSansX";font-style:normal;font-weight:500;font-display:swap;src:url('/wp-content/uploads/2026/10/IRANSansXFaNum-Medium.woff') format('woff')}
@font-face{font-family:"SOR-IRANSansX";font-style:normal;font-weight:700;font-display:swap;src:url('/wp-content/uploads/2026/10/IRANSansXFaNum-Bold.woff') format('woff')}

.sor-showcase,.sor-showcase *{box-sizing:border-box}
.sor-showcase{--sor-paper:#F8F3EC;--sor-card:#FFFCF8;--sor-surface:#EFE8DD;--sor-ink:#2F2B28;--sor-accent:#A68A70;--sor-line:#E8DED2;--sor-muted:#928477;position:relative;direction:rtl;overflow:hidden;background:var(--sor-paper);color:var(--sor-ink);font-family:"SOR-IRANSansX",Tahoma,sans-serif;padding:54px 18px 60px}
.sor-showcase__inner{position:relative;max-width:1160px;margin:0 auto}
.sor-showcase__header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}
.sor-showcase__intro{min-width:0}
.sor-showcase__eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--sor-accent);font-size:11px;font-weight:500;line-height:1.8}
.sor-showcase__line{width:25px;height:1px;background:var(--sor-accent);opacity:.8}
.sor-showcase__heading{margin:9px 0 0;font-size:26px;line-height:1.6;font-weight:700;letter-spacing:-.4px;color:var(--sor-ink)}
.sor-showcase__subtitle{font-size:12px;line-height:2;margin:4px 0 0;color:var(--sor-muted)}
.sor-showcase__refresh{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:42px;border:1px solid #D8C7B4!important;border-radius:50px!important;background:transparent!important;color:#6F5846!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1.6!important;padding:8px 15px!important;cursor:pointer;transition:background .2s,border-color .2s}
.sor-showcase__refresh:hover{background:#EEE3D7!important;border-color:#B99D83!important}
.sor-showcase__refresh svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;flex:none}
.sor-showcase__refresh[disabled]{opacity:.55;cursor:wait}
.sor-showcase__refresh[disabled] svg{animation:sor-rotate 1.25s linear infinite}
@keyframes sor-rotate{to{transform:rotate(360deg)}}
.sor-showcase__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 19px;transition:opacity .2s}
.sor-showcase__grid.is-loading{opacity:.58}
.sor-card{min-width:0;min-height:193px;position:relative;display:grid;grid-template-columns:184px minmax(0,1fr);direction:rtl;overflow:hidden;border:1px solid var(--sor-line);border-radius:15px;background:var(--sor-card);box-shadow:0 7px 23px -23px rgba(63,44,24,.26);transition:border-color .25s,box-shadow .25s,transform .25s}
.sor-card:hover{border-color:#CCB39B;box-shadow:0 15px 32px -26px rgba(63,44,24,.35);transform:translateY(-2px)}
.sor-card__media{position:relative;display:block;align-self:center;overflow:hidden;min-width:0;min-height:0;width:calc(100% - 12px);height:auto;aspect-ratio:1/1;margin-inline:6px;border-radius:11px;background:var(--sor-surface);text-decoration:none!important}
.sor-card__media::after{content:"";position:absolute;inset:8px;border:1px solid rgba(255,255,255,.52);border-radius:10px;pointer-events:none}
.sor-card__image{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;min-width:0!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transition:transform .55s ease}
.sor-card:hover .sor-card__image{transform:scale(1.035)}
.sor-card__no-image{display:grid;place-items:center;width:100%;height:100%;color:#C7B6A5}
.sor-card__no-image svg{width:52px;height:52px;stroke:currentColor;stroke-width:1.2}
.sor-card__sale{position:absolute;top:14px;right:14px;z-index:1;display:inline-block;border-radius:99px;padding:3px 8px;color:#5A4335;background:rgba(255,252,248,.9);font-size:10px;font-weight:500}
.sor-card__detail{min-width:0;display:flex;flex-direction:column;padding:18px 20px 16px}
.sor-card__top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
.sor-card__category{font-size:10px;line-height:1.6;color:var(--sor-accent);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.sor-card__position{font-size:12px;line-height:1;letter-spacing:1px;color:#CBBEAE}
.sor-showcase .sor-card__title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-decoration:none!important;font-family:inherit!important;font-size:15px!important;line-height:1.8!important;color:var(--sor-ink)!important;font-weight:700!important;min-height:50px;margin:0!important}
.sor-card__title:hover{color:#987253!important}
.sor-card__trait{font-size:10px;line-height:1.6;color:#9B8C7A;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:2px}
.sor-card__bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;border-top:1px solid var(--sor-line);padding-top:12px;margin-top:auto}
.sor-card__price-wrap{display:flex;flex-direction:column;gap:6px;min-width:0}
.sor-showcase .sor-card__price{display:block;color:var(--sor-ink);font-weight:700;font-size:13px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.sor-showcase .sor-card__price :is(bdi,span,ins,del){font-family:inherit}
.sor-showcase .sor-card__price del{display:inline-block;color:#A79C91;opacity:.85;font-weight:400;font-size:11px;margin-left:4px;text-decoration:line-through}
.sor-showcase .sor-card__price ins{color:#9D765A;text-decoration:none;background:none}
.sor-showcase .sor-card__price .woocommerce-Price-currencySymbol{font-size:.83em;font-weight:400}
.sor-showcase .sor-card__price--request{color:#8D7661;font-size:12px;font-weight:500}
.sor-card__stock{display:inline-flex;align-items:center;gap:5px;color:#718568;font-size:10px;line-height:1.4}
.sor-card__stock.is-unavailable{color:#AC857D}
.sor-card__stock-dot{width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.sor-card__view{display:grid!important;place-items:center;flex:none;width:39px;height:39px;border:1px solid #DFCEBC;border-radius:50%;color:#7D5F48!important;background:#FBF4EC;text-decoration:none!important;transition:background .2s,color .2s,border-color .2s}
.sor-card__view svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65;transition:transform .2s}
.sor-card__view:hover{color:#fff!important;background:#A88A70;border-color:#A88A70}
.sor-card__view:hover svg{transform:translateX(-2px)}
.sor-showcase :is(a,button):focus-visible{outline:2px solid #9D8066;outline-offset:3px}
.sor-showcase__status{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sor-showcase__status.is-error{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;color:#A35545;font-size:12px;line-height:2;margin-top:8px}
.sor-empty{grid-column:1/-1;margin:0;padding:30px;text-align:center;color:#8A7B6E;font-size:13px}
@media(max-width:960px){
  .sor-card{grid-template-columns:146px minmax(0,1fr);min-height:174px}
  .sor-card__detail{padding:14px 14px 12px}
  .sor-showcase .sor-card__title{font-size:13px!important;min-height:47px}
  .sor-showcase .sor-card__price{font-size:12px}
  .sor-card__view{width:35px;height:35px}
}
@media(max-width:699px){
  .sor-showcase{padding:42px 15px 48px}
  .sor-showcase__header{align-items:flex-start;margin-bottom:19px;gap:10px}
  .sor-showcase__heading{font-size:21px}
  .sor-showcase__subtitle{font-size:11px}
  .sor-showcase__refresh{min-width:41px;width:41px;height:41px;padding:0!important}
  .sor-showcase__refresh span{display:none}
  .sor-showcase__grid{
    display:grid;
    grid-template-columns:none;
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-flow:column;
    grid-auto-columns:calc(100% - 28px);
    column-gap:10px;
    row-gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:1px 2px 5px;
    margin-inline:-2px;
    align-items:stretch;
  }
  .sor-showcase__grid::-webkit-scrollbar{display:none}
  .sor-showcase__grid>.sor-card:nth-child(odd){scroll-snap-align:start;scroll-snap-stop:always}
  .sor-showcase__grid>.sor-empty{grid-row:1/-1;grid-column:1}
  .sor-showcase__mobile-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px}
  .sor-showcase__mobile-hint{font-size:10px;line-height:1.9;color:var(--sor-muted)}
  .sor-showcase__mobile-nav{display:flex;align-items:center;gap:9px;flex:none}
  .sor-showcase__pagination{font-size:11px;direction:ltr;color:#8F7A68;min-width:36px;text-align:center;white-space:nowrap}
  .sor-showcase__page-btn{display:grid!important;place-items:center;width:31px;height:31px;min-width:31px;padding:0!important;margin:0!important;border:1px solid #D8C7B4!important;background:#FFFCF8!important;border-radius:50%!important;color:#765D48!important;cursor:pointer}
  .sor-showcase__page-btn:disabled{opacity:.35;cursor:default}
  .sor-showcase__page-btn svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}

  .sor-card{grid-template-columns:133px minmax(0,1fr);min-height:153px;border-radius:13px}
  .sor-card__detail{padding:13px 13px 11px}
  .sor-card__top{margin-bottom:3px}
  .sor-card__category{font-size:10px}
  .sor-showcase .sor-card__title{font-size:13px!important;line-height:1.65!important;min-height:43px}
  .sor-card__trait{font-size:9px}
  .sor-card__bottom{padding-top:8px}
  .sor-card__view{width:32px;height:32px}
  .sor-card__view svg{width:16px;height:16px}
  .sor-card__media::after{inset:6px}
}
@media(max-width:359px){
  .sor-showcase{padding-left:12px;padding-right:12px}
  .sor-card{grid-template-columns:118px minmax(0,1fr)}
  .sor-card__detail{padding:10px}
  .sor-card__position{display:none}
  .sor-showcase .sor-card__price{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.sor-showcase *{transition:none!important;animation:none!important}}

/* Reveal navigation only for horizontal two-row mobile carousel. */
.sor-showcase__mobile-controls[hidden]{display:none!important}
@media(min-width:700px){.sor-showcase__mobile-controls{display:none!important}}
@media(max-width:359px){.sor-showcase__mobile-hint{font-size:9px}.sor-showcase__mobile-nav{gap:5px}}
