.wci-catalog{
  --wci-navy:#123064;
  --wci-blue:#07316d;
  --wci-red:#e51f2b;
  --wci-border:#d4dce8;
  --wci-bg:#fbf8f4;
  font-family:inherit;
  position:relative;
  width:100%;
  box-sizing:border-box;
}
.wci-catalog *{box-sizing:border-box}

.wci-toolbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin:0 0 10px;
}
.wci-summary{font-size:13px;color:#1f2937;line-height:1.2}
.wci-summary span{margin:0 3px;color:#8993a2}

.wci-view-switch{display:flex;gap:3px}
.wci-view-btn{
  height:30px;padding:0 9px;border:1px solid #d6dfeb;background:#fff;
  color:#344054;border-radius:7px;cursor:pointer;font-size:12px;
  font-weight:600;line-height:28px;
}
.wci-view-btn.is-active{background:var(--wci-red);border-color:var(--wci-red);color:#fff}

.wci-search-wrap{position:relative;margin-bottom:12px}
.wci-search{
  width:100%;height:38px;border:1px solid var(--wci-border);
  border-radius:9px;padding:0 11px 0 34px;font-size:13px;
  outline:none;background:#fff;color:#27364a;
}
.wci-search:focus{border-color:#8299ba;box-shadow:0 0 0 2px rgba(18,48,100,.07)}
.wci-search-icon{
  position:absolute;
  left:12px;
  top:50%;
  width:14px;
  height:14px;
  margin:0;
  padding:0;
  border:2px solid #66758a;
  border-radius:50%;
  transform:translateY(-58%);
  z-index:2;
  pointer-events:none;
  line-height:0;
  font-size:0;
  box-sizing:border-box;
}
.wci-search-icon:after{
  content:"";
  position:absolute;
  width:6px;
  height:2px;
  background:#66758a;
  border-radius:2px;
  right:-5px;
  bottom:-2px;
  transform:rotate(45deg);
  transform-origin:left center;
}

.wci-category{
  margin-bottom:14px;border:1px solid var(--wci-border);
  border-radius:8px;overflow:hidden;background:#fff;
}
.wci-category-title{
  background:var(--wci-navy);color:#fff;text-align:center;
  font-weight:700;font-size:12px;padding:9px 8px;
  border-left:3px solid var(--wci-red);
  text-transform:uppercase;line-height:1.25;
}
.wci-products{background:var(--wci-bg)}

/* Table header mirrors the list-row columns. */
.wci-catalog[data-view="grid"] .wci-table-header{display:none}

.wci-table-header{
  display:grid;
  grid-template-columns:68px minmax(160px,1fr) 74px 74px 74px 52px 128px 74px;
  align-items:stretch;
  min-height:48px;
  border:1px solid var(--wci-border);
  border-bottom:0;
  border-radius:8px 8px 0 0;
  overflow:hidden;
  background:#f5e9d8;
  color:#102858;
  font-weight:700;
  font-size:13px;
}
.wci-th{
  display:flex;align-items:center;justify-content:center;
  padding:7px 6px;
  border-right:1px solid #102858;
  text-align:center;
}
.wci-th-name{text-align:left;justify-content:flex-start}
.wci-th:last-child{border-right:0}
.wci-product-mrp,.wci-product-price{
  padding:6px;text-align:center;border-right:1px solid var(--wci-border);
  font-size:12px;white-space:nowrap;overflow:hidden;
}
.wci-product-mrp{font-weight:700}
.wci-product-mrp .wci-regular-price{
  color:var(--wci-red);
  text-decoration:line-through;
}

.wci-product{
  display:grid;
  grid-template-columns:68px minmax(160px,1fr) 74px 74px 74px 52px 128px 74px;
  align-items:center;min-height:68px;border-top:1px solid var(--wci-border);
  position:relative;
}
.wci-product:first-child{border-top:0}
.wci-product-image{
  padding:5px 6px;border-right:1px solid var(--wci-border);
  height:100%;display:flex;align-items:center;justify-content:center;
}
.wci-product-image img{
  width:52px;height:52px;object-fit:contain;border-radius:4px;background:#fff;
}
.wci-product-name{
  padding:7px 10px;font-size:14px;font-weight:600;line-height:1.25;
  border-right:1px solid var(--wci-border);
}
.wci-product-type,.wci-product-price,.wci-product-video{
  padding:6px;text-align:center;border-right:1px solid var(--wci-border);font-size:12px;
}
.wci-product-type{color:#526174}
.wci-product-price{font-weight:700;font-size:13px}
.wci-dash{color:#718096}

.wci-qty{
  display:flex;align-items:center;justify-content:center;gap:3px;
  padding:5px;border-right:1px solid var(--wci-border);
}
.wci-qty-btn{
  flex:0 0 26px;width:26px;height:27px;border:0;border-radius:4px;
  cursor:pointer;background:#e8edf4;color:#1e293b;font-size:16px;
  line-height:27px;padding:0;text-align:center;
}
.wci-plus{background:var(--wci-blue);color:#fff}
.wci-qty input{
  flex:0 1 46px;min-width:28px;width:46px;height:27px;
  border:1px solid #d5deea;border-radius:5px;text-align:center;
  background:#fff;color:#344054;font-size:12px;padding:0;
  -moz-appearance:textfield;
}
.wci-qty input::-webkit-outer-spin-button,
.wci-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.wci-line-total{
  margin:0 6px;padding:5px 5px;text-align:center;
  border:1px solid #dce3ec;background:#f1f4f7;border-radius:4px;
  font-size:11px;white-space:nowrap;
}

.wci-cartbar{
  position:sticky;bottom:8px;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-top:8px;padding:8px 10px;border:1px solid #d5deea;border-radius:8px;
  background:rgba(255,255,255,.97);box-shadow:0 5px 18px rgba(15,23,42,.13);
  backdrop-filter:blur(7px);font-size:12px;
}
.wci-cartbar-total{margin-left:4px}
.wci-add-cart{
  border:0;background:var(--wci-red);color:#fff;border-radius:6px;
  padding:8px 13px;font-weight:700;font-size:13px;cursor:pointer;
}
.wci-add-cart:disabled{opacity:.55;cursor:wait}

.wci-chat{
  position:fixed;right:14px;bottom:72px;z-index:30;
  width:47px;height:47px;border:0;border-radius:50%;
  background:#20bd62;color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.18);
  cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.wci-chat span{font-size:20px;line-height:17px}.wci-chat b{font-size:8px}
.wci-toast{
  position:fixed;left:50%;bottom:18px;z-index:50;transform:translate(-50%,18px);
  background:#111827;color:#fff;padding:8px 11px;border-radius:6px;
  opacity:0;pointer-events:none;transition:.2s;font-size:12px;white-space:nowrap;
}
.wci-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.wci-empty-search{text-align:center;padding:25px;color:#66758a;font-size:13px}
.wci-product[hidden],.wci-category[hidden]{display:none!important}

/* Desktop grid */
.wci-catalog[data-view="grid"] .wci-products{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;
  padding:8px;background:#fff;
}
.wci-catalog[data-view="grid"] .wci-product{
  display:flex;flex-direction:column;align-items:stretch;
  min-height:0;border:1px solid var(--wci-border);border-radius:8px;
  background:#fff;overflow:hidden;
}
.wci-catalog[data-view="grid"] .wci-product-image{
  height:150px;border:0;padding:8px;background:#fff;
}
.wci-catalog[data-view="grid"] .wci-product-image img{
  width:100%;height:100%;max-width:100%;object-fit:contain;
}
.wci-catalog[data-view="grid"] .wci-product-name{
  border:0;padding:6px 7px 2px;font-size:12px;line-height:1.3;min-height:34px;
}
.wci-catalog[data-view="grid"] .wci-product-type,
.wci-catalog[data-view="grid"] .wci-product-mrp,
.wci-catalog[data-view="grid"] .wci-product-price{
  border:0;text-align:left;padding:2px 7px;font-size:11px;
}
.wci-catalog[data-view="grid"] .wci-product-video{display:none}
.wci-catalog[data-view="grid"] .wci-qty{
  border:0;padding:6px 7px 3px;justify-content:stretch;gap:3px;
}
.wci-catalog[data-view="grid"] .wci-qty input{flex:1;width:auto}
.wci-catalog[data-view="grid"] .wci-qty-btn{flex-basis:25px;width:25px;height:26px;line-height:26px}
.wci-catalog[data-view="grid"] .wci-line-total{margin:3px 7px 7px;padding:5px}

@media (max-width:1100px){
  .wci-table-header{
    grid-template-columns:60px minmax(150px,1fr) 68px 68px 116px 66px;
  }
  .wci-th-type,.wci-th-video{display:none}
  .wci-product{
    grid-template-columns:60px minmax(150px,1fr) 0 68px 68px 0 116px 66px;
  }
  .wci-product-type,.wci-product-video{display:none}
  .wci-catalog[data-view="grid"] .wci-products{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (max-width:760px){
  .wci-search-icon{left:11px;width:13px;height:13px;border-width:1.8px}
  .wci-toolbar{margin-bottom:8px}
  .wci-summary{font-size:11px}
  .wci-view-btn{height:27px;padding:0 7px;font-size:11px;line-height:25px}
  .wci-search{height:36px;font-size:12px}
  .wci-search-wrap{margin-bottom:9px}
  .wci-category{margin-bottom:10px;border-radius:7px}
  .wci-category-title{font-size:11px;padding:8px 5px}

  /* Mobile list: keep the system table structure and show row total after Qty. */
  .wci-table-header{
    grid-template-columns:47px minmax(0,1fr) 66px 77px 66px;
    min-height:38px;font-size:10px;border-radius:7px 7px 0 0;
  }
  .wci-th-type,.wci-th-mrp,.wci-th-video{display:none}
  .wci-th-sale{display:flex}
  .wci-th-sale:before{content:"Price"}
  .wci-th-sale{font-size:0}
  .wci-th-sale:before{font-size:10px}
  .wci-product{
    grid-template-columns:47px minmax(0,1fr) 66px 77px 66px;
    min-height:61px;
  }
  .wci-product-image{padding:4px;border-right:1px solid var(--wci-border)}
  .wci-product-image img{width:40px;height:40px}
  .wci-product-name{
    font-size:11px;line-height:1.3;padding:5px 6px;
    border-right:1px solid var(--wci-border);
    overflow-wrap:anywhere;
  }
  .wci-product-type,.wci-product-video,.wci-product-mrp,.wci-product-price{display:none}
  .wci-mobile-price{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1px;
    min-width:0;
    height:100%;
    padding:4px 2px;
    border-right:1px solid var(--wci-border);
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
  }
  .wci-mobile-regular-price{
    color:#e51f2b;
    font-size:9px;
    font-weight:700;
    line-height:1.05;
    text-decoration:line-through;
    text-decoration-thickness:1px;
    text-decoration-color:#e51f2b;
    display:block;
    max-width:100%;
  }
  .wci-mobile-sale-price{
    color:#111827;
    font-size:10px;
    font-weight:800;
    line-height:1.1;
    display:block;
    max-width:100%;
  }
  .wci-qty{
    padding:4px 3px;border-right:1px solid var(--wci-border);gap:2px;justify-content:center;
  }
  .wci-qty-btn{
    flex:0 0 22px;width:22px;height:24px;line-height:24px;
    font-size:14px;border-radius:4px;
  }
  .wci-qty input{
    flex:1 1 28px;min-width:22px;width:28px;height:24px;font-size:11px;
  }
  .wci-line-total{
    display:block;margin:0;padding:5px 3px;text-align:center;
    border:0;background:transparent;border-radius:0;font-size:10px;
    white-space:nowrap;overflow:hidden;
  }

  /* Mobile grid: balanced two-column cards */
  .wci-catalog[data-view="grid"] .wci-products{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;
  }
  .wci-catalog[data-view="grid"] .wci-product{min-width:0}
  .wci-catalog[data-view="grid"] .wci-product-image{height:108px;padding:6px}
  .wci-catalog[data-view="grid"] .wci-product-name{
    font-size:11px;line-height:1.3;padding:5px 6px 2px;min-height:34px;
  }
  .wci-catalog[data-view="grid"] .wci-product-price{
    font-size:10px;padding:2px 6px;
  }
  .wci-catalog[data-view="grid"] .wci-qty{padding:5px 6px 3px;gap:2px}
  .wci-catalog[data-view="grid"] .wci-qty-btn{
    flex-basis:22px;width:22px;height:23px;line-height:23px;font-size:14px;
  }
  .wci-catalog[data-view="grid"] .wci-qty input{height:23px;font-size:10px;min-width:25px}
  .wci-catalog[data-view="grid"] .wci-line-total{
    display:block;margin:3px 6px 6px;padding:4px;font-size:10px;
  }

  .wci-cartbar{
    bottom:5px;padding:7px 8px;border-radius:8px;font-size:11px;
  }
  .wci-add-cart{padding:7px 11px;font-size:12px}
  .wci-chat{right:10px;bottom:64px;width:44px;height:44px}
  .wci-chat span{font-size:18px}.wci-chat b{font-size:7px}
}

@media (max-width:360px){
  .wci-table-header{grid-template-columns:44px minmax(0,1fr) 62px 72px 62px}
  .wci-product{grid-template-columns:44px minmax(0,1fr) 62px 72px 62px}
  .wci-product-image img{width:37px;height:37px}
  .wci-product-name{font-size:10px}
  .wci-product-price{font-size:9px}
  .wci-mobile-regular-price{font-size:8px}
  .wci-mobile-sale-price{font-size:9px}
  .wci-qty-btn{flex-basis:20px;width:20px;font-size:13px}
  .wci-qty input{min-width:20px}
  .wci-line-total{font-size:9px}
  .wci-catalog[data-view="grid"] .wci-product-image{height:98px}
}

.wci-mobile-price{display:none;}

.wci-product-price .woocommerce-Price-amount{white-space:nowrap;display:inline-block;}
.wci-product-price .woocommerce-Price-currencySymbol{white-space:nowrap;}
.wci-product-price{white-space:nowrap;overflow:hidden;}

/* Price presentation: regular/MRP is red and struck through; sale price is black. */
.wci-product-price{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  line-height:1.15;
}
.wci-product-mrp .wci-regular-price{
  color:#e51f2b !important;
  text-decoration-line:line-through !important;
  text-decoration-style:solid !important;
  text-decoration-thickness:1px;
  text-decoration-color:#e51f2b !important;
  font-weight:700;
  font-size:.9em;
  display:inline-block;
}
.wci-product-mrp .wci-regular-price .woocommerce-Price-amount,
.wci-product-mrp .wci-regular-price .woocommerce-Price-currencySymbol{
  color:#e51f2b !important;
  text-decoration-line:inherit !important;
  text-decoration-color:inherit !important;
}
.wci-product-price .wci-sale-price{
  color:#111827;
  font-weight:800;
}
.wci-product-price .woocommerce-Price-amount{white-space:nowrap;display:inline-block}
.wci-product-price .woocommerce-Price-currencySymbol{white-space:nowrap}

/* Product image opens in a full-size lightbox. */
.wci-product-image.wci-lightbox-trigger{
  cursor:zoom-in;
  text-decoration:none;
}
.wci-product-image.wci-lightbox-trigger img{cursor:zoom-in}

.wci-lightbox[hidden]{display:none!important}
.wci-lightbox{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.82);
}
.wci-lightbox-content{
  position:relative;
  max-width:min(92vw,1100px);
  max-height:90vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.wci-lightbox-image{
  display:block;
  max-width:92vw;
  max-height:82vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:6px;
  box-shadow:0 10px 40px rgba(0,0,0,.4);
  background:#fff;
}
.wci-lightbox-caption{
  margin-top:9px;
  max-width:90vw;
  color:#fff;
  font-size:14px;
  font-weight:600;
  text-align:center;
  line-height:1.3;
}
.wci-lightbox-close{
  position:absolute;
  top:14px;
  right:16px;
  z-index:2;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#111827;
  font-size:31px;
  line-height:40px;
  padding:0;
  cursor:pointer;
  box-shadow:0 3px 15px rgba(0,0,0,.25);
}
.wci-lightbox-close:hover{background:#fff}
body.wci-lightbox-open{overflow:hidden}

@media (max-width:760px){
  .wci-product-price{align-items:center;gap:1px}
  .wci-product-mrp .wci-regular-price{font-size:9px}
  .wci-product-price .wci-sale-price{font-size:10px}
  .wci-lightbox{padding:14px}
  .wci-lightbox-image{max-width:96vw;max-height:78vh}
  .wci-lightbox-close{top:9px;right:9px;width:38px;height:38px;font-size:28px;line-height:36px}
  .wci-lightbox-caption{font-size:12px}
}

/* v1.3.1: mobile list price must remain visible after the desktop default rule. */
@media (max-width:760px){
  .wci-mobile-price{display:flex;}
}


/* v1.3.2: force mobile list cells into their exact columns so Row Total stays visible. */
@media (max-width:760px){
  .wci-catalog[data-view="list"] .wci-table-header{
    grid-template-columns:42px minmax(0,1fr) 62px 76px 60px;
    width:100%;
  }
  .wci-catalog[data-view="list"] .wci-product{
    grid-template-columns:42px minmax(0,1fr) 62px 76px 60px;
    width:100%;
    min-width:0;
  }
  .wci-catalog[data-view="list"] .wci-product-image{grid-column:1;grid-row:1;min-width:0;}
  .wci-catalog[data-view="list"] .wci-product-name{grid-column:2;grid-row:1;min-width:0;}
  .wci-catalog[data-view="list"] .wci-mobile-price{
    grid-column:3;grid-row:1;display:flex;min-width:0;
  }
  .wci-catalog[data-view="list"] .wci-qty{
    grid-column:4;grid-row:1;min-width:0;
  }
  .wci-catalog[data-view="list"] .wci-line-total{
    grid-column:5;grid-row:1;display:flex;align-items:center;justify-content:center;
    min-width:0;width:100%;margin:0;padding:4px 2px;
    border:0;background:transparent;border-radius:0;
    font-size:10px;white-space:nowrap;overflow:hidden;
  }
  .wci-catalog[data-view="list"] .wci-line-total .woocommerce-Price-amount{
    white-space:nowrap;display:inline-block;
  }
}

@media (max-width:360px){
  .wci-catalog[data-view="list"] .wci-table-header,
  .wci-catalog[data-view="list"] .wci-product{
    grid-template-columns:40px minmax(0,1fr) 58px 72px 58px;
  }
  .wci-catalog[data-view="list"] .wci-line-total{font-size:9px;}
}
