* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #2c2c2c;
  padding-top: 70px;
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }
}

/* Header */
header {
  background-color: #ffffff;
  padding: 0.8rem 1.8rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  header {
    padding: 0.7rem 1.2rem;
    height: 64px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  text-decoration: none;
  display: inline-block;
  transform: translateY(-4px);
}

.logo img {
  width: 170px;   
  height: auto;  
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    width: 145px;
  }
}

.logo span {
  color: #2d8659;
}

.main-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.main-nav a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #dbe6ee;
  background: white;
  color: #1a5f7a;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  padding: 0;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn.active {
  background: #1a5f7a;
  color: white;
  border-color: #1a5f7a;
}

.mobile-menu-btn.active .icon-menu {
  display: none;
}

.mobile-menu-btn.active .icon-close {
  display: block;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 32, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 900;
}

.menu-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-cart-link {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: white;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.mobile-cart-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.cart-icon,
.favorites-icon,
.search-icon {
  position: relative;
  cursor: pointer;
  padding: 7px;
  transition: color 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon svg,
.favorites-icon svg,
.search-icon svg {
  width: 22px;
  height: 22px;
  stroke: #2c2c2c;
  transition: stroke 0.3s ease;
}

.cart-icon:hover svg,
.favorites-icon:hover svg,
.search-icon:hover svg {
  stroke: #1a5f7a;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #2d8659;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.favorites-icon.active svg {
  fill: #e53935;
  stroke: #e53935;
}

.favorites-icon svg {
  fill: none;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal.active {
  display: flex;
}

.search-modal-content {
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.search-modal-close:hover {
  background: #f5f5f5;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #1a5f7a;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:hover {
  background: #f9f9f9;
}

.search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.search-result-item-info {
  flex: 1;
}

.search-result-item-name {
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.search-result-item-price {
  color: #2d8659;
  font-weight: 700;
  font-size: 1.1rem;
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

/* Hero Section */
.hero {
  position: relative;
  color: white;
  min-height: calc(100vh - 20px);
  height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
  margin-top: -70px;
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 20px);
    height: calc(100vh - 20px);
    margin-top: -64px;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 19, 32, 0.75), rgba(14, 55, 68, 0.55));
  z-index: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease, transform 8s ease;
  transform: scale(1.05);
  overflow: hidden;
  height: 100%;
  width: 100%;
  min-height: 100%;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: #ffffff;
  width: 28px;
}

.btn-primary {
  background-color: white;
  color: #1a5f7a;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  padding: 14px 32px;
  border: 2px solid white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Features Section */
.features {
padding: 50px 2rem 40px;
  background-color: white;
  margin-top: -20px;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2c2c2c;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
}

/* Products Section */
.products {
  padding: 50px 2rem 80px;
  background-color: #f5f5f5;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2c2c2c;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Shop Filters Wrapper - Modern Design */
.shop-filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
  padding: 25px 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(26, 95, 122, 0.1);
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
}

/* Category Filter Buttons - FOR SHOP PAGE ONLY */
.category-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  background-image: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #2c2c2c;
  padding: 14px 28px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Montserrat", sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn::before {
  display: none;
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

/* Elimină toate efectele hover - doar click activează */
.filter-btn:hover:not(.active) {
  border-color: #e0e0e0 !important;
  color: #2c2c2c !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  background-image: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  background-color: transparent !important;
}

.filter-btn:hover:not(.active)::before {
  display: none !important;
}

/* Efect la click (active) - doar pentru butoanele neactive */
.filter-btn:active:not(.active) {
  transform: scale(0.98);
}

/* Doar butonul activ are culoare - același stil ca "Toate produsele" */
.filter-btn.active,
button.filter-btn.active,
.category-filters .filter-btn.active,
button.category-filters .filter-btn.active,
.category-filters button.filter-btn.active,
button.category-filters button.filter-btn.active,
.shop-filters-wrapper .category-filters .filter-btn.active,
.shop-filters-wrapper button.filter-btn.active,
.shop-filters-wrapper .category-filters button.filter-btn.active {
  background: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%) !important;
  background-image: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%) !important;
  background-color: #1a5f7a !important;
  color: white !important;
  border-color: #1a5f7a !important;
  box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3) !important;
  cursor: pointer !important;
  transform: none !important;
}

/* Forțează stilurile pe desktop - media query pentru desktop */
@media (min-width: 769px) {
  .filter-btn.active,
  button.filter-btn.active,
  .category-filters .filter-btn.active,
  button.category-filters .filter-btn.active,
  .category-filters button.filter-btn.active,
  button.category-filters button.filter-btn.active,
  .shop-filters-wrapper .category-filters .filter-btn.active,
  .shop-filters-wrapper button.filter-btn.active,
  .shop-filters-wrapper .category-filters button.filter-btn.active {
    background: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%) !important;
    background-image: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%) !important;
    background-color: #1a5f7a !important;
    color: white !important;
    border-color: #1a5f7a !important;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3) !important;
  }
}

/* Păstrează culoarea activă chiar și la hover */
.filter-btn.active:hover,
button.filter-btn.active:hover,
.category-filters .filter-btn.active:hover,
button.category-filters .filter-btn.active:hover,
.category-filters button.filter-btn.active:hover,
button.category-filters button.filter-btn.active:hover,
.shop-filters-wrapper .category-filters .filter-btn.active:hover,
.shop-filters-wrapper button.filter-btn.active:hover {
  background: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%) !important;
  background-image: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%) !important;
  background-color: #1a5f7a !important;
  color: white !important;
  border-color: #1a5f7a !important;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3) !important;
}

.filter-btn.active::before {
  display: none;
}

/* Sort Filters */
.sort-filters {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-label {
  font-weight: 600;
  color: #2c2c2c;
  font-size: 0.95rem;
  white-space: nowrap;
}

.sort-select {
  padding: 12px 20px;
  padding-right: 45px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2c2c2c;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c2c2c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 180px;
}

.sort-select:hover {
  border-color: #1a5f7a;
  box-shadow: 0 4px 12px rgba(26, 95, 122, 0.15);
}

.sort-select:focus {
  outline: none;
  border-color: #1a5f7a;
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

@media (max-width: 768px) {
  .shop-filters-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  
  .category-filters {
    justify-content: center;
  }
  
  .sort-filters {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .sort-select {
    width: 100%;
    min-width: auto;
  }
}

/* STATIC GRID - FOR SHOP PAGE */
.products-container {
  max-width: 1400px;
  margin: 0 auto;
}

.products-container .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
}

.product-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease-out, transform 0.25s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  border: 1px solid rgba(26, 95, 122, 0.08);
}

.product-card.hidden {
  display: none;
}

/* Hover simplu și smooth */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 95, 122, 0.15);
  border-color: rgba(26, 95, 122, 0.15);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;         
  background: linear-gradient(135deg, #e8f4f8 0%, #e8f5ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100%;           
}

.product-image a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  z-index: 1;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.product-image:hover img {
  transform: scale(1.08) translateZ(0);
  filter: brightness(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #2d8659;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-image svg {
  width: 120px;
  height: 120px;
  opacity: 0.3;
}

.product-info {
  padding: 25px;
  padding-bottom: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;

}

.product-category {
  color: #1a5f7a;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-info h3 {
  color: #2c2c2c;
   font-size: 1.2rem;
  margin-bottom: 8px;
}

.product-info h3 a {
  color: inherit;
  text-decoration: none;
}

.product-info h3 a:hover {
  color: #1a5f7a;
}

.product-info p {
  color: #666;
  line-height: 1.6;
   font-size: 0.9rem;
  margin-bottom: 14px;
  flex: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.spec-badge {
  background: linear-gradient(135deg, #e8f4f8 0%, #e8f5ef 100%);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1a5f7a;
  font-weight: 600;
  border: 1px solid rgba(26, 95, 122, 0.15);
}

.spec-badge:hover {
  /* Hover dezactivat - fără animație sau culoare */
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5f7a;
  background: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.add-to-cart {
  background: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-out;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(26, 95, 122, 0.25);
  transform: translateY(0);
}

/* Eliminat animația ::before pentru simplitate */

.add-to-cart:hover {
  background: linear-gradient(135deg, #2d8659 0%, #1a5f7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 95, 122, 0.25);
}

.add-to-cart:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 95, 122, 0.25);
}

.remove-from-favorites {
  background-color: transparent;
  color: #e53935;
  padding: 8px 16px;
  border: 1px solid #e53935;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-from-favorites:hover {
  background-color: #e53935;
  color: white;
}

.remove-from-favorites svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ========================================
   CAROUSEL STYLES - FOR HOME PAGE ONLY
   ======================================== */

.carousel-container {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  padding: 0 80px;
  overflow: hidden;
}

.products-wrapper {
  overflow: hidden;
  padding: 20px 0;
}

.carousel-container .products-grid {
  display: flex !important;
  gap: 20px;
  transition: transform 0.5s ease;
}

.carousel-container .product-card {
  min-width: calc(25% - 10px);
  max-width: calc(25% - 10px);
  width: calc(25% - 10px);
  flex-shrink: 0;
}

/* Carousel product cards - mai late și mai scurte */
.carousel-container .product-card .product-image {
  aspect-ratio: 4 / 3 !important;
}

.carousel-container .product-card .product-info {
  padding: 16px 18px 14px !important;
}

.carousel-container .product-card .product-info h3 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  line-height: 0.7 !important;
}

.carousel-container .product-card .product-info h3 a {
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.carousel-container .product-card .product-info p {
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-container .product-card .product-specs {
  margin-bottom: 12px !important;
  gap: 8px !important;
}

.carousel-container .product-card .product-specs .spec-badge {
  font-size: 0.8rem !important;
  padding: 7px 14px !important;
}

.carousel-container .product-card .product-footer {
  padding-top: 14px !important;
  gap: 15px !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.carousel-container .product-card .product-price {
  font-size: 1.4rem !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.carousel-container .product-card .add-to-cart {
  padding: 10px 20px !important;
  font-size: 0.85rem !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background-color: #1a5f7a;
  box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.carousel-arrow:hover svg {
  stroke: white;
}

.carousel-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-arrow.disabled:hover {
  background-color: white;
}

.carousel-arrow.disabled:hover svg {
  stroke: currentColor;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  stroke: #2c2c2c;
  transition: stroke 0.3s ease;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: #1a5f7a;
  width: 24px;
  border-radius: 5px;
}

/* Footer - Base Styles */
footer,
.site-footer,
footer.site-footer,
body footer,
body .site-footer {
  background-color: #2c2c2c !important;
  color: white !important;
  padding: 60px 2rem 30px !important;
  margin-top: 0 !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
}

.footer-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 40px !important;
  margin-bottom: 40px !important;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: white !important;
}

.footer-section p,
.footer-section a {
  color: #aaa !important;
  line-height: 2.2;
  text-decoration: none;
  display: block;
  font-size: 1rem;
}

.footer-section p {
  font-size: 1rem;
  color: #aaa !important;
}

.footer-section a:hover {
  color: #2d8659 !important;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 1rem;
  margin: 0;
  line-height: 2.2;
  color: #aaa !important;
}

/* Previne WooCommerce să afecteze footer-ul */
.woocommerce footer,
.woocommerce-page footer,
body.woocommerce footer,
body.woocommerce-page footer,
.woocommerce .site-footer,
.woocommerce-page .site-footer,
body.woocommerce .site-footer,
body.woocommerce-page .site-footer {
  background-color: #2c2c2c !important;
  color: white !important;
  padding: 60px 2rem 30px !important;
  margin-top: 0 !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce .footer-content,
.woocommerce-page .footer-content,
body.woocommerce .footer-content,
body.woocommerce-page .footer-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 40px !important;
  margin-bottom: 40px !important;
}

.woocommerce .footer-section,
.woocommerce-page .footer-section,
body.woocommerce .footer-section,
body.woocommerce-page .footer-section {
  color: white !important;
}

.woocommerce .footer-section h3,
.woocommerce-page .footer-section h3,
body.woocommerce .footer-section h3,
body.woocommerce-page .footer-section h3 {
  color: white !important;
  font-size: 1.2rem !important;
  margin-bottom: 20px !important;
}

.woocommerce .footer-section p,
.woocommerce-page .footer-section p,
.woocommerce .footer-section a,
.woocommerce-page .footer-section a,
body.woocommerce .footer-section p,
body.woocommerce-page .footer-section p,
body.woocommerce .footer-section a,
body.woocommerce-page .footer-section a {
  color: #aaa !important;
  line-height: 2.2 !important;
  font-size: 1rem !important;
}

.woocommerce .footer-section a:hover,
.woocommerce-page .footer-section a:hover,
body.woocommerce .footer-section a:hover,
body.woocommerce-page .footer-section a:hover {
  color: #2d8659 !important;
}

.woocommerce .footer-bottom,
.woocommerce-page .footer-bottom,
body.woocommerce .footer-bottom,
body.woocommerce-page .footer-bottom {
  text-align: center !important;
  padding-top: 30px !important;
  border-top: 1px solid #444 !important;
  color: #aaa !important;
  font-size: 1rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.woocommerce .footer-bottom p,
.woocommerce-page .footer-bottom p,
body.woocommerce .footer-bottom p,
body.woocommerce-page .footer-bottom p {
  font-size: 1rem !important;
  margin: 0 !important;
  line-height: 2.2 !important;
  color: #aaa !important;
}

/* Previne WooCommerce wrapper să afecteze footer-ul */
.woocommerce .site-footer,
.woocommerce-page .site-footer,
body[data-page="shop"] footer,
body[data-page="shop"] .site-footer {
  position: relative !important;
  z-index: 1 !important;
  background-color: #2c2c2c !important;
  color: white !important;
  padding: 60px 2rem 30px !important;
  margin-top: 0 !important;
  clear: both !important;
  width: 100% !important;
}

/* Asigură că footer-ul este în afara oricăror wrapper-uri WooCommerce */
body.woocommerce footer,
body.woocommerce-page footer,
body.woocommerce .site-footer,
body.woocommerce-page .site-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Product Presentation Section */
.product-presentation {
  padding: 80px 2rem;
  background-color: #ffffff;
}

.presentation-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.presentation-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
  box-shadow: 0 4px 20px rgba(26, 95, 122, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(26, 95, 122, 0.1);
}

.presentation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(26, 95, 122, 0.15);
}

.presentation-image {
  background-image: url("./images/wall image.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-placeholder svg {
  width: 200px;
  height: 200px;
  stroke: #1a5f7a;
  opacity: 0.3;
}

.badge-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #2d8659;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 134, 89, 0.3);
}

.badge-featured.new {
  background-color: #1a5f7a;
}

.presentation-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-header {
  margin-bottom: 30px;
}

.category-tag {
  display: inline-block;
  background-color: #1a5f7a;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.product-header h3 {
  font-size: 2rem;
  color: #2c2c2c;
  margin-bottom: 15px;
  font-weight: 700;
}

.product-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background-color: rgba(26, 95, 122, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(26, 95, 122, 0.08);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.spec-value {
  font-size: 1.1rem;
  color: #1a5f7a;
  font-weight: 700;
}

.presentation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 2px solid rgba(26, 95, 122, 0.1);
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d8659;
}

.btn-add-cart {
  background: linear-gradient(135deg, #1a5f7a 0%, #2d8659 100%);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(26, 95, 122, 0.2);
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
  .products-container .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-container .product-card {
    min-width: calc(25% - 10px);
    max-width: calc(25% - 10px);
    width: calc(25% - 10px);
  }
  
  .presentation-card {
    grid-template-columns: 1fr;
  }

  .presentation-image {
    min-height: 300px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .presentation-content {
    padding: 30px 20px;
  }

  .product-header h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .main-nav {
    display: none;
  }

  .products-container .products-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .nav-left {
    gap: 20px;
  }

  .category-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  /* turn off carousel behavior and create compact stacked cards */
  .carousel-container {
    padding: 0;
  }

  .products-wrapper {
    overflow: visible;
    padding: 0;
  }

  .carousel-container .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px !important;
    transform: none !important;
  }

  .carousel-arrow,
  .carousel-dots {
    display: none !important;
  }

  .carousel-container .product-card {
    min-width: 100%;
    max-width: 100%;
    padding: 14px !important;
  }

  .product-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .product-image {
    padding-top: 70%;
    border-radius: 8px;
  }

  .product-info {
    padding: 14px 12px 12px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-info p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .product-specs {
    gap: 8px;
    margin-bottom: 12px;
  }

  .spec-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .add-to-cart {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .remove-from-favorites {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .carousel-container .product-card {
    min-width: 100%;
  }
}

.cart-page {
  max-width: 1200px;
  margin: 100px auto 60px;
  padding: 0 2rem;
}

.cart-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #2c2c2c;
}

.cart-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.cart-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-items {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-item-left img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #666;
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #fafafa;
  cursor: pointer;
  font-weight: 700;
}

.cart-qty {
  min-width: 24px;
  text-align: center;
}

.cart-item-total {
  font-weight: 600;
}

.cart-remove {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.cart-remove:hover {
  color: #c0392b;
}

.cart-summary-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary-total {
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-empty {
  padding: 10px 0;
  color: #666;
}

/* Mobile adjustments for cart */
@media (max-width: 768px) {
  .cart-page {
    margin-top: 20px !important; /* Redus distanța față de navbar */
    padding: 0 1.5rem;
  }

  .cart-item {
    flex-direction: row; /* Păstrăm row pentru a vedea imaginea */
    align-items: center;
    gap: 12px;
  }

  .cart-item-left {
    flex: 1;
    min-width: 0; /* Permite shrink */
  }

  .cart-item-left img {
    width: 80px !important; /* Mărit dimensiunea imaginii pe mobile */
    height: 80px !important;
    flex-shrink: 0; /* Nu permite shrink */
    display: block !important; /* Asigură că se vede */
  }

  .cart-item-right {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    gap: 8px;
  }
}

/* Tablet adjustments for cart */
@media (max-width: 1024px) and (min-width: 769px) {
  .cart-page {
    margin-top: 40px !important; /* Redus distanța față de navbar pe tabletă */
  }
}

/* =========================================
   EXTRA SMALL PRODUCT FINE-TUNING
   ========================================= */
@media (max-width: 520px) {
  .carousel-container .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 12px !important;
  }

  .product-info {
    padding: 12px 10px 10px;
  }

  .product-info h3 {
    font-size: 0.95rem;
  }

  .product-info p {
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 1.1rem;
  }
}

/* =========================================
   MOBILE MENU BUTTON (HAMBURGER)
   ========================================= */
/* SHOW MENU ON MOBILE */
@media (max-width: 768px) {

  /* show hamburger */
  .mobile-menu-btn {
    display: flex;
    margin-left: auto;
    margin-right: 10px;
    z-index: 1201;
  }

  /* hide desktop nav */
  .main-nav {
    display: flex;
  }

  /* show mobile nav when active */
  .main-nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    color: white !important;
    font-size: 1rem;
    padding: 7px 0;
    width: 100%;
  }

  .mobile-cart-link {
    display: flex;
  }

  /* nav-left must align */
  .nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  /* hide "Coșul meu" button on mobile (optional) */
  .contact-btn {
    display: none;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
  }

  .main-nav {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    padding: 110px 28px 40px;
    background: linear-gradient(160deg, #04101b 0%, #0a2235 60%, #0f3a4f 100%);
    gap: 18px;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: -10px 0 30px rgba(0,0,0,0.35);
  }

  .main-nav::before {
    content: "Meniu";
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
  }

  .main-nav a {
    text-transform: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 8px;
  }
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================
   WOOCOMMERCE NAVBAR & FOOTER
   =========================== */
.woocommerce-cart header,
.woocommerce-checkout header,
body.woocommerce-cart header,
body.woocommerce-checkout header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  padding: 0.8rem 1.8rem !important;
  height: 70px !important;
  width: 100% !important;
}

.woocommerce-cart header .nav-left,
.woocommerce-checkout header .nav-left,
body.woocommerce-cart header .nav-left,
body.woocommerce-checkout header .nav-left {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
}

.woocommerce-cart header .nav-right,
.woocommerce-checkout header .nav-right,
body.woocommerce-cart header .nav-right,
body.woocommerce-checkout header .nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.woocommerce-cart header .main-nav,
.woocommerce-checkout header .main-nav,
body.woocommerce-cart header .main-nav,
body.woocommerce-checkout header .main-nav {
  display: flex !important;
  gap: 24px !important;
  justify-content: center !important;
  align-items: center !important;
}

.woocommerce-cart body,
.woocommerce-checkout body,
body.woocommerce-cart,
body.woocommerce-checkout {
  padding-top: 100px !important;
}

@media (max-width: 1024px) {
  /* Redus padding-top pe body pentru tabletă */
  body.woocommerce-cart,
  body.woocommerce-checkout {
    padding-top: 70px !important;
  }
}

@media (max-width: 768px) {
  /* Redus padding-top pe body pentru mobile - minim */
  body.woocommerce-cart,
  body.woocommerce-checkout,
  html body.woocommerce-cart,
  html body.woocommerce-checkout,
  body.woocommerce-cart.woocommerce-page {
    padding: 40px 16px 0 !important;
  }
  
  /* Redus și mai mult distanța pentru cart pe mobile */
  .woocommerce-cart .woocommerce {
    margin-top: 0 !important;
  }
}

.woocommerce-cart footer,
.woocommerce-checkout footer,
body.woocommerce-cart footer,
body.woocommerce-checkout footer {
  display: block !important;
  background-color: #2c2c2c !important;
  color: white !important;
  padding: 60px 2rem 30px !important;
  margin: 100px 0 0 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.woocommerce-cart body,
.woocommerce-checkout body,
body.woocommerce-cart,
body.woocommerce-checkout {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.woocommerce-cart html,
.woocommerce-checkout html,
html.woocommerce-cart,
html.woocommerce-checkout {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.woocommerce-cart footer .footer-content,
.woocommerce-checkout footer .footer-content,
body.woocommerce-cart footer .footer-content,
body.woocommerce-checkout footer .footer-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 40px !important;
}

.woocommerce-cart footer .footer-bottom,
.woocommerce-checkout footer .footer-bottom,
body.woocommerce-cart footer .footer-bottom,
body.woocommerce-checkout footer .footer-bottom {
  max-width: 1200px !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding-top: 30px !important;
  border-top: 1px solid #444 !important;
}

/* ===========================
   WOOCOMMERCE CART PAGE - COMPACT DESIGN
   =========================== */
.woocommerce-cart {
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px 0 0 0 !important;
  padding: 10px 0 0 0 !important;
  box-sizing: border-box !important;
}

/* Container principal pentru ambele chenare */
.woocommerce-cart .cart-container {
  max-width: 1400px;
  margin: 30px auto 80px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
}

/* Chenar principal - Coșul tău */
.woocommerce-cart .cart-main-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Chenar separat pentru cart totals - aceeași lățime ca chenarul principal */
.woocommerce-cart .cart-totals-box {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-cart .cart-totals-box .cart-collaterals {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 30px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  position: relative;
}

/* Asigură-te că nu există spațiu liber pe laterale */
.woocommerce-cart .cart-totals-box .cart-collaterals .cart_totals {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Elimină orice margin sau padding care creează spațiu liber */
.woocommerce-cart .cart-totals-box .cart-collaterals * {
  box-sizing: border-box;
}

/* Butonul este acum în interiorul cart-collaterals */
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
  display: block !important;
}


/* Asigură-te că cart_totals ocupă toată lățimea */
.woocommerce-cart .cart_totals {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Ascunde shipping din cart totals - doar la checkout */
.woocommerce-cart .cart_totals .shipping,
.woocommerce-cart .cart_totals tr.shipping,
.woocommerce-cart .cart_totals .cart-shipping,
.woocommerce-cart .cart_totals .shipping-calculator-form,
.woocommerce-cart .cart_totals .shipping-calculator-button,
.woocommerce-cart .cart_totals a.shipping-calculator-button,
.woocommerce-cart .cart_totals .woocommerce-shipping-calculator,
.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .shipping-calculator,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
.woocommerce-cart .cart_totals .shipping_method {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.woocommerce-cart .cart_totals h2 {
  display: none; /* Ascunde titlul "Cart totals" */
}

.woocommerce-cart .woocommerce-cart-page-title {
  font-size: 1.75rem !important;
  margin-bottom: 15px !important;
  padding-bottom: 12px !important;
}

.woocommerce-cart .cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.woocommerce-cart .cart-empty p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

.woocommerce-cart .return-to-shop {
  display: inline-block;
  background-color: #1a5f7a;
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.woocommerce-cart .return-to-shop:hover {
  background-color: #2d8659;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cart Table - Compact */
.woocommerce-cart table.cart {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.woocommerce-cart table.cart thead th {
  background-color: #f5f5f5;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #2c2c2c;
  border-bottom: 2px solid #e0e0e0;
  font-size: 0.9rem;
}

/* Ajustare spacing pentru header-ul tabelului - X mutat în dreapta */
.woocommerce-cart table.cart thead th.product-thumbnail {
  padding-left: 12px !important;
  padding-right: 8px !important;
}

.woocommerce-cart table.cart thead th.product-name {
  padding-left: 8px !important;
  padding-right: 12px !important;
}

.woocommerce-cart table.cart thead th.product-remove {
  padding-left: 12px !important;
  padding-right: 12px !important;
  width: 40px !important;
  text-align: center !important;
}

.woocommerce-cart table.cart tbody td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

/* Ajustare spacing - X mutat în dreapta după Subtotal */
.woocommerce-cart table.cart tbody td.product-thumbnail {
  padding-left: 12px !important;
  padding-right: 8px !important;
  width: auto !important;
}

.woocommerce-cart table.cart tbody td.product-name {
  padding-left: 8px !important;
  padding-right: 12px !important;
}

.woocommerce-cart table.cart tbody td.product-remove {
  padding-left: 12px !important;
  padding-right: 12px !important;
  width: 40px !important;
  text-align: center !important;
}

.woocommerce-cart table.cart tbody tr:last-child td {
  border-bottom: none;
}

.woocommerce-cart table.cart .product-thumbnail img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.woocommerce-cart table.cart .product-name a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: #1a5f7a;
}

.woocommerce-cart table.cart .product-price {
  font-weight: 600;
  color: #2c2c2c;
  font-size: 0.95rem;
}

.woocommerce-cart table.cart .product-subtotal {
  font-weight: 700;
  color: #1a5f7a;
  font-size: 1rem;
}

.woocommerce-cart table.cart .quantity input[type="number"] {
  width: 60px;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.woocommerce-cart table.cart .quantity input[type="number"]:focus {
  outline: none;
  border-color: #1a5f7a;
}

.woocommerce-cart table.cart .product-remove a {
  color: #d32f2f;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  transition: color 0.3s ease;
}

.woocommerce-cart table.cart .product-remove a:hover {
  color: #b71c1c;
}

/* Cart Actions - Compact */
.woocommerce-cart .actions {
  padding: 15px 0;
  border-top: none !important;
  margin-top: 15px;
  margin-bottom: 0;
  display: flex !important;
  gap: 12px;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.woocommerce-cart .coupon {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  flex: 1;
  min-width: 250px;
  align-items: center !important;
  justify-content: flex-start !important;
}

.woocommerce-cart .coupon input[type="text"] {
  flex: 0 0 auto !important;
  width: 250px !important;
  padding: 12px 16px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
  transition: border-color 0.3s ease !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.woocommerce-cart .coupon label {
  display: none !important;
}

.woocommerce-cart .coupon input[type="text"]:focus {
  outline: none;
  border-color: #1a5f7a;
}

.woocommerce-cart .coupon button,
.woocommerce-cart .coupon .coupon-button {
  background-color: #1a5f7a !important;
  color: white !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.woocommerce-cart .coupon button:hover,
.woocommerce-cart .coupon .coupon-button:hover {
  background-color: #2d8659 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Ascunde butonul "Actualizează coșul" */
.woocommerce-cart .actions button[name="update_cart"] {
  display: none !important;
}

.woocommerce-cart .actions .button:not(.coupon-button) {
  background-color: #f5f5f5;
  color: #2c2c2c;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.woocommerce-cart .actions .button:not(.coupon-button):hover {
  background-color: #e0e0e0;
}


.woocommerce-cart .cart_totals {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 1.2rem;
  color: #2c2c2c;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
  display: none; /* Ascundem titlul */
}

.woocommerce-cart .cart_totals table {
  width: 100% !important;
  margin-bottom: 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.woocommerce-cart .cart_totals table th {
  text-align: left !important;
  font-weight: 500;
  color: #666;
  padding: 10px 20px 10px 20px !important;
  width: auto !important;
}

.woocommerce-cart .cart_totals table td {
  text-align: right !important;
  font-weight: 600;
  color: #2c2c2c;
  padding: 10px 20px 10px 20px !important;
  width: auto !important;
}

/* Asigură-te că label-urile sunt la stânga și valorile la dreapta */
.woocommerce-cart .cart_totals table tr th {
  text-align: left !important;
}

.woocommerce-cart .cart_totals table tr td {
  text-align: right !important;
}

/* Order Total Row - Layout cu label stânga, valoare dreapta */
.woocommerce-cart .cart_totals .order-total {
  border-top: 2px solid #e0e0e0 !important;
  padding-top: 20px !important;
  margin-top: 15px !important;
}

.woocommerce-cart .cart_totals .order-total th {
  text-align: left !important;
  padding: 10px 20px 10px 20px !important;
  font-size: 1.2rem;
  color: #1a5f7a;
  font-weight: 600;
  border: none !important;
  width: auto !important;
}

.woocommerce-cart .cart_totals .order-total td {
  text-align: right !important;
  padding: 10px 20px 10px 20px !important;
  font-size: 1.3rem;
  color: #1a5f7a;
  font-weight: 700;
  border: none !important;
  width: auto !important;
}

/* Butonul în interiorul chenarului, sub Total, aliniat la dreapta */
.woocommerce-cart .cart-totals-box .wc-proceed-to-checkout {
  margin-top: 20px !important;
  text-align: right !important;
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 0 !important;
  clear: both !important;
  box-sizing: border-box;
}

.woocommerce-cart .cart-totals-box .wc-proceed-to-checkout a {
  display: inline-block !important;
  margin: 0 !important;
  box-sizing: border-box;
  min-width: 200px;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .cart-totals-box .wc-proceed-to-checkout a {
  display: inline-block !important;
  margin: 0 !important;
  float: none !important;
  background-color: #1a5f7a !important;
  color: white !important;
  padding: 14px 32px !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a:hover,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .cart-totals-box .wc-proceed-to-checkout a:hover {
  background-color: #2d8659 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}


/* Butonul separat pe linia următoare dacă nu încape */
.woocommerce-cart .cart_totals .order-total-button-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.woocommerce-cart .checkout-button {
  background-color: #1a5f7a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* =========================================
   WOOCOMMERCE CART - RESPONSIVE (MOBILE/TABLET)
   ========================================= */
@media (max-width: 1024px) {
  /* Redus distanța față de navbar pe tabletă */
  .woocommerce-cart {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .woocommerce-cart .cart-container {
    margin-top: 5px !important;
    padding-top: 0 !important;
    padding: 0 1.5rem;
  }
  
  .woocommerce-cart .cart-main-box,
  .woocommerce-cart .cart-totals-box .cart-collaterals {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* Redus padding-top pe body pentru mobile - minim posibil */
  body.woocommerce-cart,
  html body.woocommerce-cart,
  body.woocommerce-cart.woocommerce-page,
  body.woocommerce-cart.woocommerce-page.woocommerce-js {
    padding: 40px 16px 0 !important;
  }
  
  /* Redus distanța față de navbar pe mobile */
  .woocommerce-cart {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .woocommerce-cart .cart-container {
    margin-top: 0px !important;
    padding-top: 0 !important;
    padding: 0 1rem;
  }
  
  .woocommerce-cart .cart-main-box {
    margin-top: 0 !important;
    padding-top: 5px !important;
  }
  
  .woocommerce-cart .cart-main-box,
  .woocommerce-cart .cart-totals-box .cart-collaterals {
    padding: 15px;
  }
  
  .woocommerce-cart .woocommerce-cart-page-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 15px !important;
  }
  
  /* Elimină orice margin/padding suplimentar */
  .woocommerce-cart > * {
    margin-top: 0 !important;
  }
  
  .woocommerce-cart .woocommerce {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
  
  .woocommerce-cart .woocommerce-cart-page-title {
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
  }
  
  /* Asigură că imaginea produsului se vede pe mobile */
  .woocommerce-cart table.cart .product-thumbnail {
    display: table-cell !important;
    width: auto !important;
    padding: 8px !important;
  }
  
  .woocommerce-cart table.cart .product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Optimizare pentru tabel pe mobile */
  .woocommerce-cart table.cart {
    font-size: 0.9rem;
  }
  
  .woocommerce-cart table.cart thead th {
    padding: 8px 6px;
    font-size: 0.85rem;
  }
  
  .woocommerce-cart table.cart tbody td {
    padding: 10px 6px;
  }
  
  .woocommerce-cart table.cart .product-name {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .woocommerce-cart table.cart .product-price,
  .woocommerce-cart table.cart .product-subtotal {
    font-size: 0.9rem;
  }
  
  .woocommerce-cart table.cart .quantity input[type="number"] {
    width: 50px;
    padding: 6px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Optimizare pentru ecrane foarte mici */
  .woocommerce-cart .cart-container {
    padding: 0 0.75rem;
  }
  
  .woocommerce-cart table.cart .product-thumbnail img {
    width: 70px !important;
    height: 70px !important;
  }
  
  .woocommerce-cart table.cart thead {
    display: none; /* Ascunde header-ul pe ecrane foarte mici */
  }
  
  .woocommerce-cart table.cart tbody td {
    display: block;
    width: 100% !important;
    padding: 8px 0;
    text-align: left !important;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .woocommerce-cart table.cart tbody td:before {
    content: attr(data-title) ": ";
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
  }
  
  .woocommerce-cart table.cart tbody td.product-thumbnail {
    text-align: center;
    padding: 10px 0;
  }
  
  .woocommerce-cart table.cart tbody td.product-thumbnail:before {
    display: none;
  }
  
  .woocommerce-cart table.cart tbody td.product-remove {
    text-align: right;
    padding: 5px 0;
  }
  
  .woocommerce-cart table.cart tbody td.product-remove:before {
    display: none;
  }
}
}

.woocommerce-cart .checkout-button:hover {
  background-color: #2d8659;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===========================
   WOOCOMMERCE CHECKOUT PAGE
   =========================== */
.woocommerce-checkout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 80px 0 20px 0 !important;
  padding: 20px 0 !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout > .woocommerce {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.woocommerce-checkout .woocommerce {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 40px;
  width: 100%;
}

.woocommerce-checkout h3 {
  font-size: 1.5rem;
  color: #2c2c2c;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
}

.woocommerce-checkout .form-row {
  margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c2c2c;
  font-size: 0.95rem;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.3s ease;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  outline: none;
  border-color: #1a5f7a;
}

.woocommerce-checkout .form-row.woocommerce-invalid input {
  border-color: #d32f2f;
}

.woocommerce-checkout .form-row.woocommerce-validated input {
  border-color: #2d8659;
}

/* Order Review */
.woocommerce-checkout #order_review {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
}

.woocommerce-checkout #order_review_heading {
  font-size: 1.5rem;
  color: #2c2c2c;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.woocommerce-checkout .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.woocommerce-checkout .shop_table th {
  font-weight: 600;
  color: #2c2c2c;
}

.woocommerce-checkout .shop_table td {
  color: #666;
}

.woocommerce-checkout .shop_table .order-total th,
.woocommerce-checkout .shop_table .order-total td {
  border-top: 2px solid #e0e0e0;
  padding-top: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a5f7a;
}

/* Payment Methods */
.woocommerce-checkout #payment {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin-bottom: 20px;
}

.woocommerce-checkout #payment ul.payment_methods li {
  margin-bottom: 15px;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  margin-right: 10px;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 600;
  color: #2c2c2c;
  cursor: pointer;
}

.woocommerce-checkout #payment .place-order {
  margin-top: 20px;
  text-align: center;
}

.woocommerce-checkout #place_order {
  width: auto;
  min-width: 200px;
  background-color: #1a5f7a;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.woocommerce-checkout #place_order:hover {
  background-color: #2d8659;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.woocommerce-checkout #place_order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-cart .cart-container {
    padding: 0 1rem;
  }

  .woocommerce-cart .cart-main-box,
  .woocommerce-cart .cart-totals-box {
    padding: 20px;
  }

  .woocommerce-cart .cart_totals .order-total th,
  .woocommerce-cart .cart_totals .order-total td {
    text-align: left;
  }
  
  .woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    text-align: left;
  }
  
  .woocommerce-cart .cart_totals .wc-proceed-to-checkout a {
    width: 100%;
  }
  
  .woocommerce-cart .checkout-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .woocommerce-cart header,
  .woocommerce-checkout header,
  body.woocommerce-cart header,
  body.woocommerce-checkout header {
    padding: 0.7rem 1.2rem !important;
    height: 64px !important;
  }

  .woocommerce-cart,
  .woocommerce-checkout {
    padding: 20px 1rem 0 1rem !important;
    margin-top: 70px !important;
  }

  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce {
    padding: 20px;
  }

  .woocommerce-cart table.cart {
    font-size: 0.85rem;
  }

  .woocommerce-cart table.cart thead {
    display: none;
  }

  .woocommerce-cart table.cart tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
  }

  .woocommerce-cart table.cart tbody td {
    display: block;
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .woocommerce-cart table.cart tbody td:last-child {
    border-bottom: none;
  }

  .woocommerce-cart .cart_totals {
    max-width: 100%;
    position: static;
  }

  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .woocommerce-checkout .col-1,
  .woocommerce-checkout .col-2 {
    padding: 20px;
  }
}

/* ===========================
   ASCUNDE FOOTER-UL DEFAULT WORDPRESS (wp-block-template-part)
   =========================== */
.wp-block-template-part,
footer.wp-block-template-part,
.wp-block-template-part footer,
.site-footer.wp-block-template-part,
.wp-block-template-part.site-footer,
body .wp-block-template-part[data-type*="template-part"],
body .wp-block-template-part[data-type*="footer"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}