/* Modern premium e-commerce overrides (scoped to front-end) */
body.ezy-modern {
  --body-bg: #f6f7f9;
  --body-f: #0f172a;
  --top-h-bg: rgba(255, 255, 255, 0.95);
  --top-h-c: #0f172a;
  --main-h-bg: rgba(255, 255, 255, 0.92);
  --main-h-c: #0f172a;
  --theme-color: #2563eb;
  --theme-color2: #0f172a;
  --grad: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-reverse: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  --white-smoke: #f8fafc;
  --l-grey: #e2e8f0;
  --grey: #64748b;
  --d-grey: #334155;
  --fonts: "Plus Jakarta Sans", "Outfit", "Roboto", sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 28px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --shadow-lux: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-lux-hover: 0 26px 60px rgba(15, 23, 42, 0.16);
  --transition-base: 0.25s ease;
  --transition-slow: 0.45s ease;
  --letter-spacing-tight: -0.01em;
}

body.ezy-modern {
  background: var(--body-bg);
  color: var(--body-f);
  font-family: var(--fonts);
  letter-spacing: -0.01em;
}

body.ezy-modern h1,
body.ezy-modern h2,
body.ezy-modern h3,
body.ezy-modern h4 {
  color: var(--body-f);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.ezy-modern .container {
  max-width: 1280px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header + navigation */
body.ezy-modern .top-header {
  background: var(--top-h-bg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

body.ezy-modern .top-header a {
  font-weight: 600;
  color: var(--d-grey);
}

    body.ezy-modern .main-header {
        background: #dfe0e2;
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: var(--shadow-sm);
    }

body.ezy-modern .main-header.main-header-classadd {
  box-shadow: var(--shadow-md);
}

body.ezy-modern .main-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

body.ezy-modern .main-header .web-logo,
body.ezy-modern .main-header .category_dropdown,
body.ezy-modern .main-header .searchbar {
  float: none !important;
}

body.ezy-modern .main-header .web-logo {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

body.ezy-modern .main-header .category_dropdown {
  width: auto;
  height: auto;
  margin: 0 !important;
  flex: 0 0 auto;
}

body.ezy-modern .main-header .searchbar {
  width: min(720px, 100%) !important;
  flex: 0 1 720px;
  margin: 0;
}

body.ezy-modern .web-logo img {
  max-height: 80px;
}

body.ezy-modern #dvHeaderLinkViewContainer a {
  padding: 8px 14px;
  margin-right: 6px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--d-grey);
  text-decoration: none;
  transition: all var(--transition-base);
}

body.ezy-modern #dvHeaderLinkViewContainer a:hover {
  background: #f1f5f9;
  color: var(--theme-color);
}

body.ezy-modern .top-search-box {
  max-width: 720px;
}

body.ezy-modern .main-header .top-search-box {
  margin: 0 !important;
}

body.ezy-modern .top-search-box input[type="text"] {
  height: 52px;
  border-radius: 999px !important;
  background: #f8fafc !important;
}

body.ezy-modern .top-search-box .input-group-btn .btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Hero + sections */
body.ezy-modern .home-box {
  gap: 28px;
  margin: 24px 0 32px;
}

body.ezy-modern .home-box .section1,
body.ezy-modern .home-box .section3 {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
}

body.ezy-modern .home-box .section1 #dvCategoriesContainer {
  padding: 6px 0;
}

body.ezy-modern .homepage-banner .swiper-slide {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

body.ezy-modern .homepage-p2 {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body.ezy-modern .product-home-heading .h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* Category menu */
body.ezy-modern .first-level-a,
body.ezy-modern .second-level-a,
body.ezy-modern .third-level-a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--d-grey);
  font-weight: 600;
  transition: all var(--transition-base);
}

body.ezy-modern .first-level-a:hover,
body.ezy-modern .second-level-a:hover,
body.ezy-modern .third-level-a:hover {
  background: #f1f5f9;
  color: var(--theme-color);
}

body.ezy-modern .second-level-ul,
body.ezy-modern .third-level-ul {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 8px;
}

/* Product grid */
body.ezy-modern .product-box-wrapper.row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

body.ezy-modern .product-box-wrapper.row > [class*="col-"] {
  padding: 0;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

body.ezy-modern .product-box {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-lux);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

body.ezy-modern .product-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lux-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

body.ezy-modern .p-img {
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px;
  aspect-ratio: 4 / 5;
}

body.ezy-modern .p-data {
  padding: 12px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.ezy-modern .p-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 44px;
  height: auto;
}

body.ezy-modern .p-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-color);
}

body.ezy-modern .p-price .p-old-p {
  font-size: 13px;
  color: var(--grey);
  text-decoration: line-through;
}

body.ezy-modern .p-badges span {
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

body.ezy-modern .p-review {
  color: var(--grey);
  font-size: 13px;
}

body.ezy-modern .p-action-btn {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 12px 0 0;
  padding: 12px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

body.ezy-modern .p-action-btn a {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #334155;
}

body.ezy-modern .p-action-btn .p-compare {
  width: auto;
  height: auto;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--d-grey);
  background: #f1f5f9;
}

body.ezy-modern .p-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: currentColor;
}

body.ezy-modern .p-action-btn .p-fav {
  color: #ef4444;
}

body.ezy-modern .p-conditional_div {
  margin-top: auto;
  padding-top: 12px;
}

body.ezy-modern .p-conditional_div .p-cart {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.ezy-modern .p-conditional_div .qty input[type="number"] {
  height: 44px;
  width: 60px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 0 10px;
}

body.ezy-modern .p-conditional_div .p-buy-now {
  background: var(--grad);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}

body.ezy-modern .p-conditional_div .p-cart-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.ezy-modern .p-conditional_div .p-cart-icon img {
  width: 20px;
  height: 20px;
}

/* Buttons */
body.ezy-modern .btn,
body.ezy-modern .btnLoadMore,
body.ezy-modern .go-to-cart-btn,
body.ezy-modern #btnShowRegisterForm,
body.ezy-modern #btnShowLoginForm {
  border-radius: 999px !important;
  padding: 12px 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.ezy-modern .btn-primary,
body.ezy-modern .btn.theme-bg,
body.ezy-modern .btn.f-theme,
body.ezy-modern .btnLoadMore,
body.ezy-modern .go-to-cart-btn {
  background: var(--grad) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 14px 30px -20px rgba(37, 99, 235, 0.6);
}

body.ezy-modern #btnShowLoginForm {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none;
}

body.ezy-modern .btn-primary:hover,
body.ezy-modern .btnLoadMore:hover,
body.ezy-modern .go-to-cart-btn:hover {
  transform: translateY(-1px);
}

/* Mobile-first adjustments */
@media (max-width: 1199px) {
  body.ezy-modern .product-box-wrapper.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body.ezy-modern .main-header .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  body.ezy-modern .main-header .searchbar {
    flex: 1 1 100%;
    width: 100% !important;
  }

  body.ezy-modern .product-box-wrapper.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 575px) {
  body.ezy-modern .main-header .container {
    gap: 10px;
  }

  body.ezy-modern .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.ezy-modern .product-box-wrapper.row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.ezy-modern .home-box {
    margin: 18px 0 24px;
  }
}
