/* ====================================
   CLEAN & INDUSTRIAL DESIGN SYSTEM
   ==================================== */
.es-wrapper {
  box-sizing: border-box; 
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #F8FAFC;
  color: #1E293B;
  line-height: 1.6;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.es-wrapper *, .es-wrapper *::before, .es-wrapper *::after { box-sizing: border-box; }

:root {
  --enerset-blue: #0F172A;
  --enerset-red: #E51C3C;
  --enerset-red-hover: #C41E3A;
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --radius-std: 8px;
  --radius-l: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --container-width: 1200px;
}

.es-wrapper img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-std); }
.es-wrapper a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
.es-wrapper ul { list-style: none; padding: 0; margin: 0; }

.es-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.es-section { padding: 80px 0; }
.es-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.es-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.es-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Za jednaku visinu kolona */
.es-col-equal { display: flex; flex-direction: column; }

.es-heading { font-weight: 800; color: var(--enerset-blue); line-height: 1.2; margin-bottom: 16px; }
.es-heading-lg { font-size: 2.5rem; }
.es-heading-md { font-size: 2rem; }
.es-heading-sm { font-size: 1.25rem; }
.es-text-lead { font-size: 1.125rem; color: var(--text-muted); max-width: 900px; }
.es-center { text-align: center; margin-left: auto; margin-right: auto; }
.es-muted { color: var(--text-muted); }

/* HERO SECTION */
.es-hero{
  position:relative;
  background-size: cover;
  background-position: center;
  color:#fff;
  padding: 100px 0;
  text-align: center;
  transition: background-image .4s ease;
  margin-top: -1px;
}
.es-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(15, 23, 42, 0.76);
  z-index:0;
}
.es-hero .es-container{ position:relative; z-index:1; }

.es-hero h1 { 
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 18px;
  color: #ffffff;
  line-height: 1.2;
}
.es-hero p {
  font-size: 1.2rem;
  color: #CBD5E1;
  max-width: 820px;
  margin: 0 auto 28px;
}

.es-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.es-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-weight: 800; border-radius: var(--radius-std);
  transition: all 0.2s; cursor: pointer;
}
.es-btn-primary { background: var(--enerset-red); color: white; border: none; }
.es-btn-primary:hover { background: var(--enerset-red-hover); transform: translateY(-2px); color: white; }
.es-btn-outline { background: transparent; border: 2px solid white; color: white; }
.es-btn-outline:hover { background: white; color: var(--enerset-blue); }

/* TAB NAVIGATION */
.es-tab-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: -30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.es-tab-toggle {
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 20px 40px;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.es-tab-toggle:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--enerset-blue); }

.es-tab-toggle.active {
  background: var(--enerset-red);
  color: white;
  border-color: var(--enerset-red);
  box-shadow: 0 10px 25px -5px rgba(229, 28, 60, 0.4);
}

.es-tab-content { display: none; animation: fadeIn 0.5s ease; }
.es-tab-content.visible { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* PRODUCT CARDS */
.es-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

.es-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--enerset-red); }

.es-card-img { width: 100%; height: 210px; background-color: #f1f5f9; position: relative; }
.es-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.es-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.es-badge-float {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(15, 23, 42, 0.9); color: #fff; padding: 4px 8px; 
  font-size: 0.7rem; font-weight: 900; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 1px;
}
.es-badge-float.red { background: var(--enerset-red); }

.es-icon-circle {
  width: 48px; height: 48px; background: #F1F5F9; color: var(--enerset-blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.2rem;
}

.es-product-title { font-weight: 900; font-size: 1.25rem; margin-bottom: 8px; color: var(--enerset-blue); line-height:1.3;}
.es-product-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; line-height: 1.5; }

.es-spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--border-light);
  font-size: 0.85rem; color: var(--text-muted);
}
.es-spec-item strong { display: block; color: var(--enerset-blue); font-size: 0.9rem; font-weight: 800; }

.es-carousel-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* FEATURE CARDS */
.es-feature-card { text-align: left; }
.es-feature-card img {
  width: 100%; height: 250px; object-fit: cover;
  border-radius: var(--radius-l);
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.es-feature-card h3 { font-size: 1.15rem; font-weight: 900; color: var(--enerset-blue); margin-bottom: 10px; }
.es-feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* DATA TABLE */
.es-data-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-l);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.es-calc-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.es-control-group { margin-bottom: 24px; }
.es-label { display: block; font-weight: 900; color: var(--enerset-blue); margin-bottom: 12px; font-size: 1.05rem; }

.es-type-selector { display: flex; flex-direction: column; gap: 12px; }
.es-type-btn {
  padding: 18px; border: 2px solid var(--border-light); background: #fff;
  border-radius: var(--radius-std); font-weight: 900; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
}
.es-type-btn:hover { border-color: #CBD5E1; }
.es-type-btn.active { border-color: var(--enerset-red); color: var(--enerset-red); background: #FEF2F2; }
.es-type-btn small { display: block; font-weight: 500; font-size: 0.85rem; margin-top: 4px; color: var(--text-muted); }
.es-type-btn.active small { color: var(--enerset-red); }

.es-table-container {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-std);
  overflow: hidden; max-height: 520px; overflow-y: auto; position: relative;
}
.es-power-table { width: 100%; border-collapse: collapse; text-align: left; }
.es-power-table thead { background: var(--enerset-blue); color: #fff; position: sticky; top: 0; z-index: 2; }
.es-power-table th, .es-power-table td { padding: 12px 20px; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.es-power-table th { font-weight: 800; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.5px; }
.es-power-table tr:nth-child(even) { background-color: #F8FAFC; }
.es-power-table td strong { color: var(--enerset-blue); }
.es-table-header { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.es-table-title { font-weight: 900; color: var(--enerset-blue); font-size: 1.15rem; }

/* SPECS & CTA */
/* DODAT HEIGHT 100% DA BI OKVIRI BILI ISTE VISINE */
.es-specs-wrapper { 
  background: #fff; 
  padding: 40px; 
  border-radius: var(--radius-l); 
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.es-spec-list { width: 100%; }
.es-spec-list li { 
  display: flex; justify-content: space-between; padding: 12px 0; 
  border-bottom: 1px solid #F1F5F9; font-size: 0.95rem; gap: 16px;
}
.es-spec-list li strong { color: var(--enerset-blue); text-align:right;}
.es-spec-list li:last-child { border-bottom: none; }

.es-cta-box {
  background: #F1F5F9; border-radius: var(--radius-l); padding: 60px; text-align: center;
  border: 2px dashed var(--border-light); margin-top: 60px;
}

.es-divider { height: 1px; background: var(--border-light); margin: 34px 0; width:100%; }

/* Responsive */
@media (max-width: 900px) {
  .es-calc-grid { grid-template-columns: 1fr; }
  .es-table-container { max-height: 420px; }
  .es-grid-2, .es-grid-3 { grid-template-columns: 1fr; } 
  .es-data-box { padding: 24px; }
  
  .es-carousel-container, .es-grid-4 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
  }
  .es-carousel-container > .es-product-card, .es-grid-4 > .es-product-card {
    min-width: 280px;
    scroll-snap-align: center;
  }
}

@media (max-width: 600px) {
  .es-section { padding: 40px 0; }
  .es-hero { padding: 60px 0; }
  .es-heading-md { font-size: 1.65rem; }
  .es-hero-btns { flex-direction: column; width: 100%; }
  .es-btn { width: 100%; }
  .es-specs-wrapper { padding: 24px; }
  .es-cta-box { padding: 32px 24px; }
  
  .es-tab-nav { flex-direction: column; gap: 10px; padding: 0 10px; margin-top: -20px; }
  .es-tab-toggle { width: 100%; justify-content: center; padding: 15px; }
}