/* Wanted Frontend theme. Mobile matches the design files. Desktop expands the same components. */
:root {
  --wf-orange: orange;
  --wf-red: #ff4d4d;
  --wf-bg: #f5f5f5;
  --wf-muted: #777;
  --wf-nav-h: 58px;
}

html, body.wf-theme {
  margin: 0 !important;
  padding: 0 !important;
}
body.wf-theme {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--wf-bg);
  padding-bottom: calc(var(--wf-nav-h) + 8px) !important;
}
body.wf-theme #content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.wf-theme .mobile-menu {
  display: none;
}

/* ===== Header ===== */
.wf-header {
  background: linear-gradient(90deg, #ff9a1f, #ff7a00);
  padding: 8px 12px;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.25);
}
.wf-top {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.wf-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.wf-search-wrap form {
  display: block;
  margin: 0;
}
.wf-search-wrap input[type="text"] {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background: #fff;
  height: 40px;
  box-shadow: none;
}
.wf-src-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  background: transparent;
  border: none;
  padding: 0;
}
.wf-src-icon.uploading { opacity: 0.45; pointer-events: none; }
.wf-src-icon .image-search-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #333;
  border-radius: 50%;
  animation: wfSpin 0.7s linear infinite;
}
.wf-src-icon .image-search-icon {
  animation: wfCamPulse 1.4s ease-in-out infinite;
  transform-origin: center;
}
.wf-src-icon.uploading .image-search-icon { display: none; animation: none; }
.wf-src-icon.uploading .image-search-spinner { display: inline-block; }
@keyframes wfCamPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.75; }
}
@keyframes wfSpin { to { transform: rotate(360deg); } }
.wf-icon-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
}
.wf-icon-btn i,
.wf-icon-btn svg { color: #fff; stroke: #fff; display: block; }
.wf-cart-qty {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff4d4d;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.wf-search-wrap .search_result {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 80;
  max-height: 360px;
  overflow: auto;
}

/* ===== Bottom nav ===== */
.wf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 6px rgba(0,0,0,0.08);
  z-index: 90;
}
.wf-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #777;
  text-decoration: none;
  flex: 1;
  line-height: 1.2;
}
.wf-bottom-nav a .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  margin-bottom: 2px;
}
.wf-bottom-nav a .ico svg { width: 22px; height: 22px; stroke: currentColor; }
.wf-bottom-nav a.active { color: #ff7a1a; }

body.wf-checkout .wf-header,
body.wf-checkout .wf-bottom-nav,
body.wf-checkout .footer-v2,
body.wf-checkout #gcc-toggle,
body.wf-checkout .news-ticker-bar { display: none !important; }
body.wf-checkout { padding-bottom: 0 !important; background: #f5f5f5; }
body.wf-checkout #content { padding-top: 0 !important; }

body.wf-register .wf-header,
body.wf-register .wf-bottom-nav,
body.wf-register .footer-v2,
body.wf-register #gcc-toggle { display: none !important; }
body.wf-register { padding-bottom: 0 !important; background: #f5f5f5; }

/* Footer stays for desktop. Mobile design has no footer. */
body.wf-theme .footer-v2,
body.wf-theme .float,
body.wf-theme .mobile_bottom_nav,
body.wf-theme #gcc-toggle {
  display: none !important;
}

/* ===== Home banners ===== */
.wf-home { background: #f5f5f5; margin: 0; }
.wf-banner-section { padding: 8px 10px 0; max-width: 1200px; margin: 0 auto; }
.wf-banner-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  height: 150px;
}
.wf-banner-slider {
  flex: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #ff7a1a;
}
.wf-banner-slider .slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-decoration: none;
  background-size: cover;
  background-position: center;
}
.wf-banner-slider .slide.active { opacity: 1; }
.wf-banner-slider .slide h2 { font-size: 18px; margin: 0; }
.wf-banner-slider .slide p { font-size: 11px; margin: 4px 0 8px; }
.wf-banner-slider .slide span.shop-now {
  background: #fff;
  color: #ff4d4d;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: bold;
  align-self: flex-start;
}
.wf-banner-slider .dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
}
.wf-banner-slider .dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5);
}
.wf-banner-slider .dots span.active { background: #fff; }
.wf-promo-stack { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.wf-promo-card {
  flex: 1;
  border-radius: 10px;
  padding: 0;
  display: block;
  overflow: hidden;
  min-height: 0;
  text-decoration: none;
  background: #ff7a1a;
}
.wf-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wf-sub-banners { display: flex; gap: 8px; margin-bottom: 10px; }
.wf-sub-banners a {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  min-height: 64px;
  background: #ff7a1a;
  text-decoration: none;
}
.wf-sub-banners a img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}
.wf-mega-strip {
  background: #ffe0b3;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  gap: 8px;
}
.wf-flash { padding: 0 10px 10px; max-width: 1200px; margin: 0 auto; }
.wf-flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
}
.wf-flash-title {
  display: inline-block;
  animation: wfSalePop 1.5s ease-in-out infinite;
}
@keyframes wfSalePop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.06); }
  55% { transform: scale(0.98); }
  70% { transform: scale(1.03); }
}
.wf-flash-header .timer { font-size: 12px; color: #ff4d4d; font-weight: normal; margin-left: 8px; animation: none; }
.wf-flash-header a { font-size: 12px; color: #666; text-decoration: none; font-weight: normal; }
.wf-flash-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.wf-flash-scroll::-webkit-scrollbar { display: none; }
.wf-flash-card {
  background: #fff;
  border-radius: 10px;
  width: 132px;
  min-width: 132px;
  height: auto;
  padding: 8px;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  gap: 4px;
}
.wf-flash-card img { width: 100%; height: 78px; object-fit: contain; display: block; }
.wf-flash-card .name {
  font-size: 12px;
  color: #333;
  line-height: 1.3;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-decoration: none;
}
.wf-flash-card .discount,
.wf-product-card .discount {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  background: #ff4d4d !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 2px 6px !important;
  border-radius: 8px !important;
  z-index: 2;
  white-space: nowrap;
}
.wf-flash-card .price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  margin-top: 4px;
}
.wf-flash-card .price { font-size: 13px; font-weight: 700; line-height: 1.2; color: #222; }
.wf-flash-card .old-price {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
  line-height: 1.2;
  min-height: 0;
}
.wf-flash-card button, .wf-flash-card .add-btn {
  width: 100%; margin-top: 2px; background: #ff4d4d; color: #fff; border: none;
  padding: 5px; border-radius: 4px; font-size: 11px; cursor: pointer; text-align: center;
}

.wf-product-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
  padding: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.wf-product-card {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 300px;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  float: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.wf-loading {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #999;
}
.wf-product-card .img-wrap {
  position: relative;
  flex: 0 0 80%;
  height: 80%;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
}
.wf-product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.wf-product-card .discount {
  position: absolute; top: 6px; left: 6px; right: auto; width: auto; height: auto;
}
.wf-product-card .cart-fab {
  position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px;
  border-radius: 50%; background: orange; color: #fff; border: none;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.25); z-index: 2;
}
.wf-product-card .info {
  flex: 0 0 20%;
  height: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 3px 4px 0;
  gap: 2px;
}
.wf-product-card .name {
  font-size: 12px; color: #333; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; line-height: 1.3; text-decoration: none;
}
.wf-product-card .price-line { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; overflow: hidden; }
.wf-product-card .price { font-size: 13px; font-weight: bold; color: #222; }
.wf-product-card .old-price {
  font-size: 10px;
  color: #999;
  text-decoration: line-through;
  min-width: 0;
}
.wf-product-card .rating { font-size: 10px; color: #f5a623; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-section-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px 0; max-width: 1200px; margin: 0 auto; font-weight: bold; font-size: 14px;
}
.wf-section-title a { font-size: 12px; color: #666; font-weight: normal; text-decoration: none; }

/* Listing pages: turn existing product rows into the same cards */
body.wf-theme .main_product_inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
body.wf-theme .main_product_inner .product_item {
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  box-shadow: none;
}
body.wf-theme .main_product_inner .pro_img { height: 160px; overflow: hidden; border-radius: 6px; background: #fafafa; }
body.wf-theme .main_product_inner .pro_img img { width: 100%; height: 160px; object-fit: cover; }
body.wf-theme .main_product_inner .pro_name a { font-size: 12px; color: #333; }
body.wf-theme .main_product_inner .pro_price { font-size: 13px; font-weight: bold; }
body.wf-theme .main_product_inner .order-btn,
body.wf-theme .main_product_inner .order-btn-link {
  background: orange !important;
  border: none !important;
  color: #fff !important;
  border-radius: 4px !important;
}
body.wf-theme .sale-badge { background: #ff4d4d !important; }

/* Product details */
body.wf-theme .main-details-page { background: #f5f5f5; }
body.wf-theme .details-price,
body.wf-theme .details-price span { color: #ff4d4d !important; font-weight: bold; }
body.wf-theme .details-price del,
body.wf-theme .details-price del span,
body.wf-theme .details-price del .wf-taka,
body.wf-theme .old-price,
body.wf-theme .old-price .wf-taka {
  color: #999 !important;
  font-weight: 500 !important;
}
body.wf-theme .variant-bulk-add-btn {
  background: #fff3e0 !important;
  color: orange !important;
  border: 1px solid orange !important;
  border-radius: 8px !important;
}
body.wf-theme .variant-bulk-order-btn {
  background: orange !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
}
body.wf-theme .main-details-page .details_slider .dimage_item {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
body.wf-theme .main-details-page .details_slider img,
body.wf-theme .main-details-page .block__pic {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: 300px;
  margin: 0 auto !important;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}
@media (max-width: 767px) {
  body.wf-theme .main-details-page .variant-bulk-btn-row {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 10px 14px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 95;
    margin: 0 !important;
    gap: 10px;
  }
  body.wf-theme .main-details-page { padding-bottom: 80px; }
}

/* Checkout */
body.wf-theme .checkout-section { background: #f5f5f5; }
body.wf-theme .checkout-card,
body.wf-theme .checkout-header { border-radius: 10px; }
body.wf-theme .checkout-section .btn,
body.wf-theme .checkout-section button[type="submit"],
body.wf-theme #order_place,
body.wf-theme .placeorder_btn {
  background: orange !important;
  border-color: orange !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.wf-theme input[type="radio"] { accent-color: orange; }

/* Auth */
body.wf-theme .modern-login-section { background: #f5f5f5; padding: 0 !important; min-height: auto !important; }
body.wf-theme .login-container { max-width: 480px; border-radius: 0; box-shadow: none; }
body.wf-theme .login-image-area { display: none !important; }
body.wf-theme .login-form-area { width: 100% !important; padding: 20px !important; }
body.wf-theme .btn-modern-submit,
body.wf-theme .register-link { background: orange !important; color: #fff; }
body.wf-theme .custom-input:focus { border-color: orange !important; box-shadow: none !important; }
body.wf-theme .modern-login-section::before {
  content: "Log In";
  display: block;
  background: orange;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 16px;
}

/* Order success hero sits above the invoice */
.wf-success-hero {
  background: #fff;
  text-align: center;
  padding: 36px 20px 20px;
  max-width: 420px;
  margin: 0 auto;
}
.wf-success-hero .check-circle {
  width: 80px; height: 80px; border-radius: 50%; background: #e3f9e5; color: #1e8f4e;
  font-size: 40px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.wf-success-hero h2 { font-size: 18px; margin-bottom: 8px; }
.wf-success-hero p { font-size: 13px; color: #777; }
.wf-success-hero .order-id { color: orange; font-weight: bold; margin: 10px 0 16px; }
.wf-success-hero .btn-group { display: flex; flex-direction: column; gap: 10px; }
.wf-success-hero .btn-primary { background: orange; color: #fff; border: none; border-radius: 8px; padding: 12px; font-weight: bold; text-decoration: none; }
.wf-success-hero .btn-outline { background: #fff; border: 1px solid #ddd; color: #333; border-radius: 8px; padding: 12px; font-weight: bold; text-decoration: none; }

/* Customer profile pages that are standalone */
.wf-profile-page { background: #f5f5f5; font-family: 'Segoe UI', Arial, sans-serif; padding-bottom: 70px; }
.wf-profile-header {
  background: linear-gradient(135deg, orange, #ff7a1a);
  padding: 24px 16px 40px;
  color: #fff;
  text-align: center;
  position: relative;
}
.wf-profile-header .avatar {
  width: 80px; height: 80px; border-radius: 50%; background: #fff; color: orange;
  font-size: 32px; font-weight: bold; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; border: 3px solid #fff; overflow: hidden;
}
.wf-profile-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.wf-profile-header h2 { font-size: 18px; margin: 0; }
.wf-profile-header p { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.wf-profile-header .edit-btn {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.25);
  border: none; color: #fff; padding: 6px 12px; border-radius: 16px; font-size: 12px; text-decoration: none;
}
.wf-stats {
  display: flex; background: #fff; margin: -24px 16px 16px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; position: relative; z-index: 2;
}
.wf-stats div { flex: 1; text-align: center; padding: 12px 4px; border-right: 1px solid #eee; }
.wf-stats div:last-child { border-right: none; }
.wf-stats .num { font-size: 16px; font-weight: bold; color: #222; }
.wf-stats .label { font-size: 11px; color: #888; }
.wf-menu {
  background: #fff; margin: 0 16px 16px; border-radius: 10px; overflow: hidden;
}
.wf-menu .section-title { font-size: 12px; color: #999; padding: 10px 14px 4px; text-transform: uppercase; }
.wf-menu a, .wf-menu button.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-bottom: 1px solid #f2f2f2; font-size: 14px; color: #333; text-decoration: none;
  background: #fff; width: 100%; border-left: none; border-right: none; border-top: none; text-align: left; cursor: pointer;
}
.wf-menu a:last-child { border-bottom: none; }
.wf-menu .arrow { margin-left: auto; color: #ccc; }
.wf-logout {
  display: block; width: calc(100% - 32px); margin: 8px 16px 16px; padding: 12px;
  background: #fff; color: #ff4d4d; border: 1px solid #ffd6d6; border-radius: 10px;
  font-size: 14px; font-weight: bold; text-align: center; cursor: pointer;
}
.wf-shell { max-width: 420px; margin: 0 auto; min-height: 100vh; background: #f5f5f5; }
.wf-topbar {
  display: flex; align-items: center; gap: 12px; background: orange; color: #fff;
  padding: 14px; position: sticky; top: 0; z-index: 50;
}
.wf-topbar a { color: #fff; text-decoration: none; font-size: 20px; }
.wf-topbar h2 { font-size: 16px; margin: 0; }
.wf-tabs { display: flex; background: #fff; overflow-x: auto; }
.wf-tabs a, .wf-tabs button {
  flex-shrink: 0; padding: 12px 16px; border: none; background: transparent;
  font-size: 13px; color: #777; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.wf-tabs .active { color: orange; border-bottom-color: orange; font-weight: bold; }
.wf-order-card { background: #fff; border-radius: 10px; margin: 10px; padding: 12px; }
.wf-order-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #888; border-bottom: 1px solid #f2f2f2; padding-bottom: 8px; margin-bottom: 8px; gap: 8px; }
.wf-pill { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: bold; }
.wf-order-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f2f2f2; padding-top: 8px; margin-top: 8px; gap: 8px; }
.wf-order-foot .total b { color: #ff4d4d; }
.wf-btn-outline { background: #fff; border: 1px solid orange; color: orange; border-radius: 16px; padding: 6px 12px; font-size: 12px; text-decoration: none; }
.wf-btn-solid { background: orange; border: none; color: #fff; border-radius: 16px; padding: 6px 12px; font-size: 12px; text-decoration: none; }

/* Desktop: same visual language, wider layout */
@media (min-width: 768px) {
  body.wf-theme { padding-bottom: 0 !important; background: #f4f5f7; }
  .wf-bottom-nav { display: none; }
  .wf-header { padding: 10px 28px; }
  .wf-home { max-width: 1180px; margin: 0 auto 32px; width: 100%; }
  .wf-banner-row { height: 280px; }
  .wf-banner-slider, .wf-promo-card, .wf-sub-banners a, .wf-mega-strip { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .wf-product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
  .wf-flash-card { width: 180px; min-width: 180px; height: auto; }
  .wf-flash-card img { height: 120px; }
  .wf-banner-slider .slide h2 { font-size: 32px; }
  .wf-banner-slider .slide p { font-size: 16px; }
  .wf-promo-card { font-size: 18px; }
  .wf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px; padding: 16px 24px 40px; }
  .wf-product-card { height: 340px; }
  body.wf-theme .main_product_inner { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .wf-shell { max-width: 980px; }
  .wf-profile-page { max-width: 980px; margin: 0 auto; }
  .wf-menu, .wf-stats, .wf-logout { max-width: 720px; margin-left: auto; margin-right: auto; }
  .wf-stats { margin-top: -24px; }
  body.wf-theme .footer-v2 { display: none !important; }
  body.wf-theme .main-details-page .col-sm-6 { width: 50%; }
  .wf-desk-links { display: flex; gap: 18px; margin-left: 8px; }
  .wf-desk-links a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
}
@media (min-width: 1100px) {
  .wf-product-grid,
  body.wf-theme .main_product_inner { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
.wf-desk-links { display: none; }
@media (max-width: 767px) {
  .wf-banner-section, .wf-flash, .wf-product-grid { max-width: none; width: 100%; }
}

@keyframes wfRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes wfBadge {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wf-banner-row { animation: wfRise .45s ease both; }
.wf-sub-banners, .wf-mega-strip, .wf-flash { animation: wfRise .5s ease both; }
.wf-flash-card { animation: wfRise .4s ease both; }
.wf-flash-card .discount, .wf-product-card .discount { animation: wfBadge .35s ease both; }
.wf-product-card { animation: wfRise .45s ease both; }
.wf-product-card .img-wrap img, .wf-flash-card img { transition: transform .35s ease; }
.wf-product-card:hover .img-wrap img, .wf-flash-card:hover img { transform: scale(1.06); }
.wf-product-card .cart-fab, .wf-flash-card .add-btn, .wf-flash-card button {
  transition: transform .15s ease, background .15s ease;
}
.wf-product-card .cart-fab:active, .wf-flash-card button:active { transform: scale(0.92); }
.wf-header { top: 0; }

/* Product details — same blocks as the mockup, wider on desktop */
.wf-pd-top { display: none; }
@media (min-width: 0px) {
  body.wf-product .wf-header,
  body.wf-product .wf-bottom-nav { display: none !important; }
  body.wf-product { background: #f5f5f5; padding-bottom: 76px !important; }
  body.wf-product #content { padding-top: 0 !important; background: #f5f5f5; }
  .wf-pd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 80;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .wf-pd-top .back { color: #333; display: flex; }
  .wf-pd-top .actions a {
    position: relative;
    color: #333;
    display: flex;
  }
  .wf-pd-top .wf-cart-qty { top: -8px; right: -10px; }
  body.wf-product .main-details-page { background: #f5f5f5; padding: 0; margin-bottom: 0; }
  body.wf-product .main-details-page .container,
  body.wf-product .main-details-page .row,
  body.wf-product .pro_details_area .container,
  body.wf-product .related-product-section .container { padding-left: 0; padding-right: 0; max-width: 100%; }
  body.wf-product .main-details-page .col-sm-6 { width: 100%; padding: 0; }
  body.wf-product .breadcrumb,
  body.wf-product .pro_brand,
  body.wf-product .contact-btn-row,
  body.wf-product .description-nav-wrapper,
  body.wf-product .product-details-discount-badge,
  body.wf-product .footer-v2 { display: none !important; }
  body.wf-product .details_slider,
  body.wf-product .details_slider .dimage_item,
  body.wf-product .details_slider .owl-stage-outer { background: #fff; }
  body.wf-product .indicator_thumb {
    display: flex !important;
    gap: 8px;
    padding: 8px 12px 14px;
    overflow-x: auto;
    background: #fff;
  }
  body.wf-product .indicator_thumb .indicator-item,
  body.wf-product .indicator_thumb .owl-item { width: 50px !important; flex: 0 0 50px; }
  body.wf-product .indicator_thumb img {
    width: 50px; height: 50px; object-fit: contain;
    border: 1px solid #eee; border-radius: 6px; background: #fff;
  }
  body.wf-product .details_right {
    background: transparent;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  body.wf-product .details_slider,
  body.wf-product .details_slider .dimage_item,
  body.wf-product .details_slider img,
  body.wf-product .block__pic {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  body.wf-product .wf-pd-off {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: #ff4d4d;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
  }
  body.wf-product .product-cart {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin-top: 8px;
    padding: 14px;
  }
  body.wf-product .product-cart > form { order: 5; }
  body.wf-product .product-cart .details-price { order: 1; display: flex; align-items: baseline; gap: 10px; margin: 0; }
  body.wf-product .product-cart .details-price del { order: 2; font-size: 14px; color: #999; font-weight: normal; }
  body.wf-product .product-cart .details-price #newPrice { order: 1; font-size: 22px; }
  body.wf-product .product-cart .name { order: 2; font-size: 15px; margin: 8px 0 6px; color: #222; line-height: 1.4; font-weight: 500; }
  body.wf-product .details-ratting-wrapper { order: 3; font-size: 12px; color: #777; }
  body.wf-product .details-ratting-wrapper i { color: #f5a623; }
  body.wf-product .wholesale-pricing-section,
  body.wf-product .variant-bulk-order-wrap { order: 4; }
  body.wf-product .variant-order-row[data-variant-id="0"] {
    border: none !important; box-shadow: none !important; padding: 14px; margin-top: 8px; background: #fff; border-radius: 0;
  }
  body.wf-product .variant-order-row[data-variant-id="0"] .variant-order-thumb,
  body.wf-product .variant-order-row[data-variant-id="0"] .variant-order-title,
  body.wf-product .variant-order-row[data-variant-id="0"] .variant-order-price { display: none; }
  body.wf-product .variant-order-row[data-variant-id="0"]::before {
    content: "Quantity";
    font-size: 14px;
    color: #333;
    margin-right: auto;
  }
  body.wf-product .variant-order-row[data-variant-id="0"] .variant-order-stock {
    position: absolute; left: 14px; bottom: 8px; font-size: 11px; color: #999;
  }
  body.wf-product .variant-order-row[data-variant-id="0"] { position: relative; padding-bottom: 28px; }
  body.wf-product .wf-seller {
    display: flex; align-items: center; gap: 10px;
    background: #fff; margin-top: 8px; padding: 14px; text-decoration: none;
  }
  body.wf-product .wf-seller .avatar {
    width: 40px; height: 40px; border-radius: 8px; background: #4b3fbb; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: bold;
  }
  body.wf-product .wf-seller .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  body.wf-product .wf-seller .name { display: block; font-size: 13px; font-weight: bold; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.wf-product .wf-seller .visit { flex-shrink: 0; white-space: nowrap; }
  body.wf-product .wf-seller .stats { font-size: 11px; color: #888; }
  body.wf-product .wf-seller .visit {
    font-size: 12px; color: orange; border: 1px solid orange; padding: 5px 10px; border-radius: 16px;
  }
  body.wf-product .pro_details_area { background: transparent; margin: 0; }
  body.wf-product #description,
  body.wf-product .gomobd-review-section,
  body.wf-product .related-product-section {
    background: #fff; margin: 8px 0 0; padding: 14px;
  }
  body.wf-product #description h2,
  body.wf-product .gomobd-review-title,
  body.wf-product .related-title h5 { font-size: 14px; margin: 0 0 8px; color: #222; font-weight: 700; }
  body.wf-product #description p { font-size: 13px; color: #555; line-height: 1.6; }
  body.wf-product .related_slider,
  body.wf-product .related_slider .owl-stage-outer,
  body.wf-product .related_slider .owl-stage {
    display: flex !important; transform: none !important; width: auto !important; overflow-x: auto; gap: 10px;
  }
  body.wf-product .related_slider .owl-item,
  body.wf-product .related_slider .product_item { min-width: 110px; width: 110px !important; flex: 0 0 110px; }
  body.wf-product .related_slider .pro_img,
  body.wf-product .related_slider .pro_img img { height: 80px !important; object-fit: contain; }
  body.wf-product .variant-bulk-btn-row { align-items: center; }
  body.wf-product .wf-pd-chat {
    width: 46px; height: 46px; border-radius: 8px; border: 1px solid #ddd; background: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #333;
  }
  body.wf-product .variant-bulk-add-btn,
  body.wf-product .variant-bulk-order-btn { height: 46px; border-radius: 8px !important; font-size: 14px; font-weight: bold; }
}
body.wf-product .wf-seller { display: flex; }
body.wf-product .wf-pd-off {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  right: auto !important; width: auto !important; height: auto !important;
  background: #ff4d4d !important; color: #fff !important;
  font-size: 12px !important; font-weight: 700; padding: 3px 8px !important;
  border-radius: 6px !important; display: inline-block !important;
}
body.wf-product .wf-desc,
body.wf-product .wf-also,
body.wf-product .gomobd-review-section {
  background: #fff; margin-top: 8px; padding: 14px;
}
body.wf-product .wf-desc h3,
body.wf-product .wf-also h3,
body.wf-product .gomobd-review-title { font-size: 14px; margin: 0 0 8px; color: #222; font-weight: 700; }
body.wf-product .wf-desc-body { font-size: 13px; color: #555; line-height: 1.6; }
body.wf-product #description { display: none !important; }
body.wf-product .wf-review-item { padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
body.wf-product .wf-review-item .rname { font-size: 13px; font-weight: bold; color: #333; }
body.wf-product .wf-review-item .rstars { color: #f5a623; font-size: 12px; margin: 2px 0; }
body.wf-product .wf-review-item .rtext { font-size: 12px; color: #666; }
body.wf-product .wf-also .wf-flash-card { position: relative; }
.wf-taka {
  font-family: "Nirmala UI", "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.92em;
  line-height: 1;
  display: inline;
}
body.wf-product .wf-meta-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #777; margin-top: 4px;
}
body.wf-product .wf-meta-row .rating { color: #f5a623; font-weight: 700; }
body.wf-product .wf-meta-row a { color: #777; text-decoration: none; }
body.wf-product .wf-meta-row .divider { color: #ddd; }
body.wf-product .variant-order-row { flex-wrap: nowrap !important; align-items: center; }
body.wf-product .variant-order-right { width: auto !important; flex-shrink: 0; }
body.wf-product .wf-seller {
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
body.wf-product .wf-seller .avatar {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #5b4bdb, #ff7a1a);
  font-size: 18px;
}
body.wf-product .wf-seller .stats .star { color: #f5a623; font-weight: 700; }
body.wf-product .wf-seller .visit {
  background: #fff7ed; font-weight: 700;
}
body.wf-product .pro_details_area,
body.wf-product .pro_details_area .col-sm-8,
body.wf-product .wf-reviews,
body.wf-product .wf-desc,
body.wf-product .wf-also { width: 100%; }
body.wf-product .pro_details_area .col-sm-8 { max-width: 100% !important; flex: 0 0 100%; }
body.wf-product .gomobd-review-section { margin-top: 8px !important; padding-top: 14px !important; }
body.wf-product .wf-also { margin-top: 8px !important; }
@media (max-width: 767px) {
  body.wf-product .product-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  body.wf-product .details_slider {
    border: none !important;
    margin: 0 !important;
    max-height: none !important;
  }
  body.wf-product .details_slider .owl-stage-outer,
  body.wf-product .details_slider .owl-stage,
  body.wf-product .details_slider .owl-item,
  body.wf-product .details_slider .dimage_item {
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
  }
  body.wf-product .details_slider .dimage_item {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  body.wf-product .details_slider img.block__pic {
    width: auto !important;
    max-width: 100%;
    height: 260px !important;
    max-height: 260px !important;
    margin: 0 auto !important;
    object-position: center center;
  }
  body.wf-product .product-cart,
  body.wf-product .variant-order-row[data-variant-id="0"],
  body.wf-product .wf-seller,
  body.wf-product .wf-desc,
  body.wf-product .gomobd-review-section,
  body.wf-product .wf-also { margin-top: 8px !important; }
  body.wf-product .variant-bulk-order-wrap { margin-top: 0 !important; }
  body.wf-product section.pro_details_area {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  body.wf-product .wf-also { overflow: hidden; padding: 12px; }
  body.wf-product .wf-also .wf-flash-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  body.wf-product .wf-also .wf-flash-card {
    flex: 0 0 148px !important;
    width: 148px !important;
    min-width: 148px !important;
    scroll-snap-align: start;
  }
  body.wf-product .indicator_thumb { padding: 6px 12px 8px !important; margin: 0 !important; }
  body.wf-product .details-action-box,
  body.wf-product #writeReview.tab-content {
    margin-top: 0 !important;
    padding: 0 !important;
  }
  body.wf-product .product-cart { margin-top: 0 !important; }
  body.wf-product .wf-desc { margin-bottom: 0 !important; padding-bottom: 12px !important; }
  body.wf-product .gomobd-review-section { margin-top: 8px !important; }
  body.wf-product #writeReview > .container,
  body.wf-product #writeReview > .container > .row > .col-sm-12 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
  }
}
body.wf-product .wf-reviews-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
body.wf-product .wf-write-review {
  flex-shrink: 0; border: 1px solid orange; background: #fff; color: orange;
  border-radius: 16px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
body.wf-product .wf-reviews-layout { display: block; }
body.wf-product .wf-star-bars { display: none; }
body.wf-product .gomobd-review-empty { color: #777; font-size: 13px; padding: 8px 0 0; }
@media (min-width: 768px) {
  body.wf-product .wf-reviews-layout { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
  body.wf-product .wf-star-bars { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
  body.wf-product .wf-star-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
  body.wf-product .wf-star-line .bar { flex: 1; height: 8px; background: #f1f1f1; border-radius: 8px; overflow: hidden; }
  body.wf-product .wf-star-line .bar span { display: block; height: 100%; background: #f5a623; }
  body.wf-product .wf-star-line .num { width: 24px; text-align: right; color: #888; }
}
body.wf-product .details-price,
body.wf-product .details-price #newPrice,
body.wf-product .details-price del,
body.wf-theme .wf-product-card .price,
body.wf-theme .wf-flash-card .price,
body.wf-theme .wf-flash-card .old-price,
body.wf-theme .wf-product-card .old-price {
  font-family: "Nirmala UI", "Segoe UI", Arial, sans-serif !important;
  line-height: 1.15 !important;
}
@media (min-width: 768px) {
  body.wf-product .product-section > .container > .row {
    display: flex;
    max-width: 1080px;
    margin: 16px auto 0;
    align-items: flex-start;
    gap: 16px;
  }
  body.wf-product .main-details-page .col-sm-6 { width: calc(50% - 8px) !important; flex: 1; }
  body.wf-product .wf-desc,
  body.wf-product .wf-seller,
  body.wf-product .gomobd-review-section,
  body.wf-product .wf-also,
  body.wf-product .pro_details_area { max-width: 1080px; margin-left: auto; margin-right: auto; }
  body.wf-product .details-price #newPrice { font-size: 28px !important; }
  body.wf-product .details-price del { font-size: 16px !important; }
  body.wf-product .variant-bulk-btn-row { max-width: 1080px; }
}
@media (min-width: 768px) {
  body.wf-theme .main-details-page .variant-bulk-btn-row {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 1080px;
    background: #fff;
    padding: 10px 14px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 95;
    margin: 0 !important;
    gap: 10px;
  }
  body.wf-product { padding-bottom: 76px !important; }
}
