* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color:white;
  color: #333;
}

img { max-width: 100%; display: block; }

/* ==========================================
   1. TOP HEADER & MAIN HEADER
========================================== */
.easyshop-top-header {
  background-color: #1a202c;
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 8px 24px;
}

.easyshop-top-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.easyshop-top-header a {
  color: #e2e8f0;
  text-decoration: none;
  margin-left: 12px;
}

.easyshop-top-header-links ul { list-style: none; display: inline-flex; }
.easyshop-top-header-links li { display: inline-block; }

.easyshop-main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.easyshop-main-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.easyshop-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger Menu Button (Mobile) */
.easyshop-drawer-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1a202c;
}

.easyshop-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2b6cb0;
  text-decoration: none;
}

.easyshop-logo img {
 height:42px;
 width:160px;
}

.easyshop-nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.easyshop-nav-menu li { position: relative; }

.easyshop-nav-menu a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.easyshop-nav-menu a:hover,
.easyshop-nav-menu .current-menu-item > a {
  color: #2b6cb0;
}

/* Dropdown support for WP menus with children */
.easyshop-nav-menu ul.sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
}

.easyshop-nav-menu li:hover > ul.sub-menu { display: flex; }
.easyshop-nav-menu ul.sub-menu a { padding: 6px 8px; display: block; border-radius: 4px; }
.easyshop-nav-menu ul.sub-menu a:hover { background: #f7fafc; }

.easyshop-header-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #edf2f7;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #2d3748;
  font-weight: 600;
  font-size: 0.85rem;
}

.easyshop-cart-badge {
  background: #2b6cb0;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
}

/* ==========================================
   2. MOBILE DRAWER & BACKDROP
========================================== */
.easyshop-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.easyshop-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.easyshop-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.easyshop-drawer.active {
  left: 0;
}

.easyshop-drawer-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.easyshop-drawer-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.easyshop-drawer-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.easyshop-drawer-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #a0aec0;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.easyshop-drawer-content .easyshop-category-list { list-style: none; }
.easyshop-drawer-content .easyshop-category-list > li > a { display: block; padding: 8px 10px; color: #4a5568; text-decoration: none; border-radius: 6px; font-weight: 500;}
.easyshop-drawer-content .easyshop-category-list > li > a:hover { background: #f7fafc; color: #1a202c; }

/* ==========================================
   3. COLLAPSIBLE CATEGORY TREE
========================================== */
.easyshop-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.easyshop-cat-item {
  display: flex;
  flex-direction: column;
}

.easyshop-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: #4a5568;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.easyshop-cat-header:hover {
  background: #f7fafc;
  color: #1a202c;
}

.easyshop-toggle-icon {
  font-size: 1.75rem;
  transition: transform 0.2s ease;
}

.easyshop-cat-item.open > .easyshop-cat-header .easyshop-toggle-icon {
  transform: rotate(90deg);
}

/* Subcategories */
.easyshop-subcategory-list {
  list-style: none;
  padding-left: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.easyshop-cat-item.open > .easyshop-subcategory-list {
  max-height: 500px; /* Expands smoothly */
  margin-top: 4px;
}

.easyshop-subcategory-list a {
  text-decoration: none;
  color: #718096;
  font-size: 0.9rem;
  padding: 6px 8px;
  display: block;
  border-radius: 4px;
}

.easyshop-subcategory-list a:hover {
  color: #2b6cb0;
  background: #edf2f7;
}

/* ==========================================
   4. MAIN CONTENT CONTAINER
========================================== */
.easyshop-layout-container {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Section: 3-Column Grid */
.easyshop-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 20px;
}

.easyshop-layout-grid.easyshop-no-sidebar { grid-template-columns: 1fr 280px; }
.easyshop-layout-grid.easyshop-no-promo { grid-template-columns: 240px 1fr; }
.easyshop-layout-grid.easyshop-no-sidebar.easyshop-no-promo { grid-template-columns: 1fr; }

.easyshop-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

/* Column 1: Left Category Sidebar */
.easyshop-category-sidebar h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #edf2f7;
}

/* Column 2: Center Main Content Area */
.easyshop-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Main Hero Banner / Slider */
.easyshop-slider-banner {
  background: #edf2f7;
  background-size: cover;
  background-position: center;
  height: 280px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.easyshop-slider-content h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.easyshop-slider-content .easyshop-slider-btn {
  display: inline-block;
  margin-top: 12px;
  background: #1a202c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.easyshop-slider-arrow {
  background: #ffffff;
  border: 1px solid #cbd5e0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  z-index: 5;
}

/* Offer/product slides inside the hero banner: full-bleed image + price overlay */
.easyshop-slider-viewport {
  position: relative;
  flex: 1;
  height: 100%;
  margin: 0 16px;
  overflow: hidden;
  border-radius: 8px;
}

.easyshop-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.easyshop-slider-slide {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.easyshop-slider-slide-media {
  position: absolute;
  inset: 0;
  display: block;
}

.easyshop-slider-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.easyshop-slider-slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #718096;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
}

.easyshop-slider-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.easyshop-slider-price-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(26, 32, 44, 0.85);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  z-index: 2;
}

.easyshop-slider-price-overlay del {
  color: #cbd5e0;
  font-weight: 400;
  margin-right: 6px;
  font-size: 0.9rem;
}

.easyshop-slider-price-overlay ins {
  text-decoration: none;
}

@media (max-width: 600px) {
  .easyshop-slider-price-overlay {
    font-size: 1rem;
    padding: 6px 12px;
  }
}

/* --- Universal Product Sections --- */
.easyshop-product-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.easyshop-product-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.easyshop-product-section h3 {
  font-size: 1.1rem;
}

.easyshop-product-section-head a {
  font-size: 0.8rem;
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 600;
}

/* Flexbox Layout for PC */
.easyshop-product-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.easyshop-product-card {
  flex: 1 1 0;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.easyshop-product-card a.easyshop-product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.easyshop-product-img-placeholder {
  background: #e2e8f0;
  height: 100px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 0.8rem;
  overflow: hidden;
}

.easyshop-product-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.easyshop-product-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.easyshop-product-price {
  font-size: 0.8rem;
  color: #2b6cb0;
  margin-bottom: 8px;
}

.easyshop-product-price del { color: #a0aec0; margin-right: 4px; font-weight: 400; }
.easyshop-product-price ins { text-decoration: none; }

.easyshop-btn-cart,
.easyshop-product-card .add_to_cart_button,
.easyshop-product-card .product_type_variable,
.easyshop-product-card a.button {
  background: #2b6cb0;
  color: #fff !important;
  border: none;
  padding: 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.easyshop-btn-cart:hover,
.easyshop-product-card .add_to_cart_button:hover {
  background: #1a202c;
}

.easyshop-product-empty { color: #a0aec0; font-size: 0.9rem; padding: 20px 0; text-align: center; }

/* Column 3: Right Category Image Card */
.easyshop-right-promo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.easyshop-promo-img-placeholder {
  background: #cbd5e0;
  height: 220px;
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  overflow: hidden;
}

.easyshop-promo-img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.easyshop-promo-btn {
  background: #1a202c;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: auto;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

/* ==========================================
   5. 3-COLUMN FOOTER
========================================== */
.easyshop-footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 40px 24px 20px 24px;
  margin-top: 40px;
}

.easyshop-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2d3748;
}

.easyshop-footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.easyshop-footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.easyshop-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.easyshop-footer-links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.easyshop-footer-links a:hover {
  color: #ffffff;
}

.easyshop-bottom-footer {
  max-width: 1400px;
  margin: 20px auto 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: #718096;
}

/* ==========================================
   6. WOOCOMMERCE PAGE ADJUSTMENTS
   (shop / archive / single / cart / checkout)
========================================== */
.easyshop-woo-page-wrap {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px;
}

.easyshop-woo-page-wrap ul.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
}

.easyshop-woo-page-wrap ul.products li.product {
  list-style: none;
  display: flex;
}

.easyshop-woo-page-wrap ul.products li.product .easyshop-product-card {
  width: 100%;
}

.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 16px;
}

.woocommerce-breadcrumb a { color: #718096; }

.single-product .easyshop-woo-page-wrap,
.woocommerce-cart .easyshop-woo-page-wrap,
.woocommerce-checkout .easyshop-woo-page-wrap,
.woocommerce-account .easyshop-woo-page-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: #2b6cb0;
  color: #fff;
  border-radius: 6px;
  border: none;
}

.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: #1a202c;
  color: #fff;
}

.woocommerce span.onsale {
  background: #2b6cb0;
}

/* ==========================================
   7. RESPONSIVE BREAKPOINTS
========================================== */
@media (max-width: 992px) {
  .easyshop-drawer-toggle {
    display: block; /* Show hamburger button */
  }

  .easyshop-category-sidebar {
    display: none; /* Hide left category sidebar on mobile/tablets */
  }

  .easyshop-layout-grid,
  .easyshop-layout-grid.easyshop-no-sidebar,
  .easyshop-layout-grid.easyshop-no-promo {
    grid-template-columns: 1fr;
  }

  .easyshop-footer-inner {
    grid-template-columns: 1fr;
  }

  .easyshop-woo-page-wrap ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .easyshop-nav-menu {
    display: none; /* Hide header menu links on small mobile screens */
  }

  .easyshop-top-header-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .easyshop-product-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }

  .easyshop-woo-page-wrap ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}
