a{text-decoration:none!important}
del,s,strike{text-decoration:none!important}

.em-product-page{max-width:1280px;margin:42px auto;padding:0 18px}
.em-product-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:34px;align-items:start}
.em-gallery-card,.em-product-card{background:#fff;border:1px solid #ead1c7;border-radius:28px;padding:22px;box-shadow:0 22px 55px rgba(80,30,30,.08)}
.em-zoom-box{position:relative;overflow:hidden;border-radius:24px;background:#fff4ef;min-height:560px;display:flex;align-items:center;justify-content:center}
.em-zoom-box img{max-width:100%;max-height:760px;object-fit:contain;display:block}
.em-zoom-badge{position:absolute;right:18px;bottom:18px;background:#6e3033;color:#fff;border-radius:999px;padding:8px 13px;font-weight:800;font-size:13px}
.em-lens{position:absolute;width:150px;height:150px;border-radius:50%;border:2px solid #a70c2c;box-shadow:0 16px 36px rgba(0,0,0,.2);background-repeat:no-repeat;display:none;pointer-events:none;z-index:5}
.em-thumbs{display:flex;gap:10px;margin-top:14px;overflow-x:auto;padding-bottom:8px}
.em-thumb{border:1px solid #ead1c7;background:#fff;border-radius:14px;padding:4px;cursor:pointer}
.em-thumb img{width:76px;height:92px;object-fit:cover;border-radius:10px}
.em-breadcrumb{display:flex;gap:8px;color:#8a7474;font-size:13px;margin-bottom:10px;align-items:center}
.em-breadcrumb a{color:#a70c2c;font-weight:800;background:rgba(167,12,44,.07);border-radius:999px;padding:5px 10px}
.em-product-card h1{font-family:Georgia,serif;color:#a70c2c;font-size:clamp(34px,4vw,62px);line-height:1.02;margin:0 0 16px}
.em-price{font-size:30px;font-weight:900;color:#211719;margin:12px 0 18px}
.em-desc{color:#736162;line-height:1.65;font-size:16px;max-height:260px;overflow:auto;padding-right:8px}
.em-variant-section{margin:18px 0}
.em-section-title{font-weight:900;font-size:16px;color:#261c1f;margin-bottom:10px}
.em-options{display:flex;flex-wrap:wrap;gap:10px}
.em-color-option,.em-size-option{border:1px solid #ead1c7;background:#fff;color:#2b2224;border-radius:999px;padding:10px 15px;font-weight:800;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:.18s;text-decoration:none!important}
.em-color-option:hover,.em-size-option:hover{border-color:#a70c2c;transform:translateY(-1px)}
.em-color-option.active,.em-size-option.active{background:#a70c2c;color:#fff;border-color:#a70c2c}
.em-color-dot{width:20px;height:20px;border-radius:50%;border:1px solid rgba(0,0,0,.22)}
.em-stock{background:#effaf2;border:1px solid #ccead3;color:#1f7a34;border-radius:16px;padding:14px 16px;font-weight:900;margin:18px 0}
.em-stock.em-out{background:#fff1f1;border-color:#ffd0d0;color:#a70c2c}
.em-muted{color:#8a7474;font-weight:700}
.em-qty{display:flex;align-items:center;gap:8px;margin:18px 0;font-weight:700}
.em-qty-btn{width:42px;height:42px;border:0;background:#fff1ec;font-size:22px;font-weight:900;cursor:pointer}
.em-qty input{width:70px;height:42px;border:1px solid #ead1c7;text-align:center;font-weight:900}
.em-actions{display:flex;gap:14px;flex-wrap:wrap}
.em-primary,.em-secondary,.em-whatsapp{border-radius:18px;min-height:52px;padding:0 24px;font-size:16px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;border:0}
.em-primary{background:#a70c2c;color:#fff}
.em-primary:disabled{opacity:.45;cursor:not-allowed}
.em-secondary{background:#fff;color:#a70c2c;border:1px solid #ead1c7}
.em-whatsapp{background:#17b957;color:#fff}
.em-primary.small{min-height:38px;padding:0 16px;font-size:14px}

.em-input{width:100%;margin:8px 0;padding:14px;border:1px solid #ead1c7;border-radius:14px}
.em-disabled{background:#f8f8f8}
.em-textarea{min-height:120px}
.em-order-card{border:1px solid #ead1c7;border-radius:18px;padding:16px;margin:14px 0}
.em-order-top{display:flex;justify-content:space-between;gap:12px;align-items:center}
.em-order-status{background:#a70c2c;color:#fff;border-radius:999px;padding:7px 11px;font-weight:800;font-size:13px}
.em-steps{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.em-steps span{border:1px solid #ead1c7;border-radius:999px;padding:7px 11px;font-weight:800;font-size:13px}
.em-steps span.done{background:#a70c2c;color:#fff;border-color:#a70c2c}
.em-receipt-form{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.product-card .size-chip,.product-card .sizes span,.size-chip,.sizes span{text-decoration:none!important}
.product-card .size-chip.disabled,.product-card .sizes span.disabled{opacity:.45!important;text-decoration:none!important}

.sidebar a,.admin-sidebar a,.panel-menu a{font-size:14px!important;line-height:1.15!important;padding:10px 14px!important}
.admin-content,.panel-content,main{overflow-x:hidden!important}
.table-responsive,.orders-table-wrap,.variant-table-wrap{width:100%!important;overflow-x:auto!important}
.panel-table a,.admin-table a,.order-no-link{color:#a70c2c!important;font-weight:900!important;text-decoration:none!important;background:rgba(167,12,44,.07)!important;border-radius:999px!important;padding:6px 10px!important}
.admin-table .btn,.panel-table .btn,button,.button{font-weight:800}
.btn,.button,.admin-btn{border-radius:12px!important}
.btn-edit,.edit-btn,a[href*="edit"]{background:#fff!important;color:#a70c2c!important;border:1px solid #ead1c7!important}
.btn-danger,.delete-btn{background:#a70c2c!important;color:#fff!important;border:0!important}

@media(max-width:900px){
  .em-product-grid{grid-template-columns:1fr}
  .em-zoom-box{min-height:360px}
  .em-product-card h1{font-size:36px}
}
/* 20260501 critical repair */
.em-alert{background:#fff3cd;border:1px solid #ffe08a;color:#6b4e00;border-radius:14px;padding:12px 14px;margin:12px 0;font-weight:800}
input[type="file"]{background:#fff!important;padding:10px!important;border:1px solid #ead1c7!important;border-radius:12px!important;max-width:100%}
.em-product-card input,.em-product-card textarea{box-sizing:border-box}


/* 20260501 mobile gallery + readable product detail fix */
.em-thumbs{
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.em-thumb{
  flex:0 0 auto;
  width:84px;
  height:104px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.em-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
@media(max-width:640px){
  .em-product-page{margin:18px auto;padding:0 10px}
  .em-product-grid{gap:18px}
  .em-gallery-card,.em-product-card{border-radius:22px;padding:12px;box-shadow:0 14px 34px rgba(80,30,30,.08)}
  .em-zoom-box{min-height:auto;border-radius:20px;max-height:72vh}
  .em-zoom-box img{width:100%;height:auto;max-height:72vh;object-fit:contain}
  .em-zoom-badge{right:12px;bottom:12px;font-size:12px;padding:7px 11px}
  .em-thumbs{gap:8px;margin-top:10px;padding:2px 2px 10px;overflow-x:auto;overflow-y:hidden;display:flex;flex-wrap:nowrap}
  .em-thumb{width:58px;height:74px;min-width:58px;border-radius:12px;padding:3px;background:#fff}
  .em-thumb img{border-radius:9px;object-fit:cover}
  .em-product-card h1{font-size:28px!important;line-height:1.08;margin-bottom:12px}
  .em-breadcrumb{font-size:12px;gap:6px;flex-wrap:wrap}
  .em-price{font-size:24px;margin:8px 0 12px}
  .em-desc{font-size:14px;line-height:1.55;max-height:none}
  .em-color-option,.em-size-option{font-size:13px;padding:8px 11px}
  .em-primary,.em-secondary,.em-whatsapp{min-height:46px;font-size:14px;border-radius:14px;padding:0 16px}
}
