.u-cookies-consent {
  background-image: none;
}

.u-cookies-consent .u-sheet-1 {
  min-height: 212px;
}

.u-cookies-consent .u-layout-wrap-1 {
  margin-top: 30px;
  margin-bottom: 30px;
}

.u-cookies-consent .u-layout-cell-1 {
  min-height: 152px;
}

.u-cookies-consent .u-container-layout-1 {
  padding: 30px 60px;
}

.u-cookies-consent .u-text-1 {
  font-size: 1.125rem;
  margin: 0 351px 0 0;
}

.u-cookies-consent .u-text-2 {
  font-size: 0.875rem;
  margin: 8px 51px 0 0;
}

.u-cookies-consent .u-layout-cell-2 {
  min-height: 152px;
}

.u-cookies-consent .u-container-layout-2 {
  padding: 30px;
}

.u-cookies-consent .u-btn-1 {
  margin: 0 auto 0 0;
}

@media (max-width: 1199px) {
  .u-cookies-consent .u-sheet-1 {
    min-height: 131px;
  }

  .u-cookies-consent .u-layout-cell-1 {
    min-height: 125px;
  }

  .u-cookies-consent .u-text-1 {
    margin-right: 198px;
  }

  .u-cookies-consent .u-text-2 {
    margin-right: 0;
  }

  .u-cookies-consent .u-layout-cell-2 {
    min-height: 125px;
  }
}

@media (max-width: 991px) {
  .u-cookies-consent .u-sheet-1 {
    min-height: 106px;
  }

  .u-cookies-consent .u-layout-cell-1 {
    min-height: 100px;
  }

  .u-cookies-consent .u-container-layout-1 {
    padding-left: 30px;
    padding-right: 30px;
  }

  .u-cookies-consent .u-text-1 {
    margin-right: 53px;
  }

  .u-cookies-consent .u-layout-cell-2 {
    min-height: 100px;
  }
}

@media (max-width: 767px) {
  .u-cookies-consent .u-sheet-1 {
    min-height: 225px;
  }

  .u-cookies-consent .u-layout-cell-1 {
    min-height: 154px;
  }

  .u-cookies-consent .u-container-layout-1 {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
  }

  .u-cookies-consent .u-layout-cell-2 {
    min-height: 65px;
  }

  .u-cookies-consent .u-container-layout-2 {
    padding: 10px;
  }
}

@media (max-width: 575px) {
  .u-cookies-consent .u-sheet-1 {
    min-height: 121px;
  }

  .u-cookies-consent .u-layout-cell-1 {
    min-height: 100px;
  }

  .u-cookies-consent .u-text-1 {
    margin-right: 0;
  }

  .u-cookies-consent .u-layout-cell-2 {
    min-height: 15px;
  }
}

/* --- CUSTOM STYLES RESTORED & ADDED --- */

/* 1. Global Grid Layout (4 Columns) */
@media (min-width: 992px) {
  .responsive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    /* Force equal widths */
    gap: 20px;
  }

  /* Enforce 80% Width on Large Screens */
  .u-sheet-1 {
    max-width: 80% !important;
    margin: 0 auto;
  }

  /* Reset margins for grid items */
  .u-repeater-item {
    margin: 0 !important;
  }
}

/* 2. Product Card Standardization */
.product-card {
  height: 100%;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  /* Contain content */
}

.product-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 15px;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  max-width: 100%;
  /* Prevent image overflow */
}

.product-card h4 {
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  /* Force break if necessary */
  word-break: break-word;
  /* Legacy support */
  hyphens: auto;
  margin: 10px 0;
  font-size: 1.2rem;
  width: 100%;
  padding: 0 5px;
  /* Add slight padding */
}

.product-card p.product-card-price {
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
}

/* 3. Center Separator Line */
.u-border-3 {
  margin: 30px auto !important;
  max-width: 80% !important;
  width: 100% !important;
}

/* 4. Category Headers */
/* 4. Category Headers */
h2.u-text-1 {
  text-align: left !important;
  font-size: 2.5rem !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
  display: block !important;
  float: none !important;
  grid-column: 1 / -1 !important;
  /* Span all columns */
}

/* 5. Responsive Table Support (New Request) */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* Basic Table Styling */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

th,
td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;

  /* Prevent cells from forcing overflow */
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 300px;
  /* Logic buffer */
}

/* Zebra Striping */
tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Ensure images in tables don't break layout */
table img {
  max-width: 100%;
  height: auto;
}