/* ============================================
   Shared CSS - Generated by Brand Designer Studio
   Plugin: nordlinepaadid-blocks
   ============================================ */

/* Full-width breakout: edge-to-edge regardless of WP layout/padding */
[class*="wp-block-nordlinepaadid-blocks"].alignfull {
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: hidden;
}

/* Zero margin between blocks — sections stack seamlessly */
[class*="wp-block-nordlinepaadid-blocks"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(22, 68, 150, 0.75) 0%, rgba(22, 68, 150, 0.55) 45%, rgba(22, 68, 150, 0.1) 80%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 30px;
  max-width: 520px;
}
.hero-content h1 {
  color: var(--theme-palette-color-8);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.hero-content p {
  color: #e2e1e9;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-buttons {
  display: flex;
  gap: 10px;
}
.btn-primary {
  background: var(--theme-palette-color-2);
  color: var(--theme-palette-color-8);
  border: none;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary {
  background: var(--theme-palette-color-8);
  color: var(--theme-palette-color-1);
  border: 1px solid var(--theme-palette-color-1);
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  background: var(--theme-palette-color-1);
  color: var(--theme-palette-color-8);
  text-decoration: none;
}
.btn-primary {
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

/* CATEGORIES ROW */
.categories-section {
  background: #f0f1f5;
  padding: 20px 0;
  border-bottom: 1px solid #e2e1e9;
}
.categories-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  padding: 0 12px;
}
@media (max-width: 480px) {
  .categories-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  gap: 0;
  width: 100%;
  background: var(--theme-palette-color-8);
  border-radius: 4px;
  border: 1px solid #e2e1e9;
  box-shadow: 0 2px 6px rgba(55,60,83,0.07);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  padding-bottom: 10px;
}
.category-item:hover {
  box-shadow: 0 6px 18px rgba(50,72,109,0.15);
  transform: translateY(-2px);
}
.category-image {
  width: 100%;
  height: 90px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: #f5f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-palette-color-1);
  padding: 8px 8px 2px;
  line-height: 1.3;
}
.category-link {
  font-size: 11px;
  color: var(--theme-palette-color-2);
  text-decoration: none;
  padding: 2px 8px 10px;
  opacity: 0.8;
}
.category-link:hover {
  text-decoration: underline;
}

/* PRODUCTS SECTION */
.products-section {
  background: #f0f1f5;
  padding: 20px;
}
.section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-palette-color-1);
  margin-bottom: 14px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--theme-palette-color-8);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(55,60,83,0.08);
  display: flex;
  flex-direction: column;
}
.product-image-wrap {
  position: relative;
  background: #f5f6f9;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-new {
  background: var(--theme-palette-color-2);
  color: var(--theme-palette-color-8);
}
.badge-sale {
  background: var(--theme-palette-color-1);
  color: var(--theme-palette-color-8);
}
.badge-pct {
  background: #6c81a8;
  color: var(--theme-palette-color-8);
}
.product-
.product-name {
  font-size: 12px;
  color: var(--theme-palette-color-1);
  font-weight: 600;
  line-height: 1.3;
  min-height: 30px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-palette-color-1);
}
.product-price-old {
  font-size: 12px;
  color: #9090a0;
  text-decoration: line-through;
}
.btn-cart {
  background: var(--theme-palette-color-2);
  color: var(--theme-palette-color-8);
  border: none;
  padding: 7px 0;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.btn-cart:hover {
  background: var(--theme-palette-color-2);
}
.btn-details {
  font-size: 11px;
  color: #6c81a8;
  text-decoration: none;
  text-align: center;
  display: block;
}
.btn-details:hover {
  color: var(--theme-palette-color-1);
  text-decoration: underline;
}

/* INFO STRIP */
.info-strip {
  background: var(--theme-palette-color-8);
  border-top: 1px solid #e2e1e9;
  border-bottom: 1px solid #e2e1e9;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 4px;
}
.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.info-item span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-palette-color-1);
}
.info-item span:last-child {
  font-size: 11px;
  color: var(--theme-palette-color-1);
}

/* BRANDS SECTION */
.brands-section {
  background: var(--theme-palette-color-8);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.brand-logo-img {
  height: 28px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.8;
}


/* LOGOS SECTION */
.logos-section {
  background: var(--theme-palette-color-8, #fff);
  padding: 14px 20px;
  border-top: 1px solid #e2e1e9;
  border-bottom: 1px solid #e2e1e9;
}
.logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.logos-track.logos-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.logos-track.logos-scroll::-webkit-scrollbar {
  display: none;
}
.logos-track.logos-nowrap {
  flex-wrap: nowrap;
  justify-content: center;
}
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-item img {
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  display: block;
}
.logo-item img:hover {
  opacity: 1;
}

/* Responsive logos */
@media (max-width: 768px) {
  .logos-track {
    gap: 20px;
    justify-content: center;
  }
  .logos-track.logos-scroll {
    justify-content: flex-start;
  }
  .logos-track.logos-nowrap {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .logos-section {
    padding: 12px 14px;
  }
  .logos-track {
    gap: 16px;
  }
}


/* ============================================
   Editor Styles
   ============================================ */

/* Full-width breakout in editor */
.block-editor-block-list__block .hero-section-block {
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 1.5rem));
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 1.5rem));
    width: calc(100% + var(--wp--style--root--padding-left, 1.5rem) + var(--wp--style--root--padding-right, 1.5rem));
}
.block-editor-block-list__block .hero-section-block > * {
    max-width: 100%;
}
/* Clickable image wrappers */
.block-editor-block-list__block .hero-section-block [data-image-wrap] {
    cursor: pointer;
    transition: outline 0.15s ease, box-shadow 0.15s ease;
}
.block-editor-block-list__block .hero-section-block [data-image-wrap]:hover {
    outline: 2px solid rgba(0,124,186,0.5);
    outline-offset: 2px;
}
.block-editor-block-list__block .hero-section-block [data-image-wrap] img {
    max-width: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Full-width breakout in editor */
.block-editor-block-list__block .section-2-block {
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 1.5rem));
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 1.5rem));
    width: calc(100% + var(--wp--style--root--padding-left, 1.5rem) + var(--wp--style--root--padding-right, 1.5rem));
}
.block-editor-block-list__block .section-2-block > * {
    max-width: 100%;
}
/* Clickable image wrappers */
.block-editor-block-list__block .section-2-block [data-image-wrap] {
    cursor: pointer;
    transition: outline 0.15s ease, box-shadow 0.15s ease;
}
.block-editor-block-list__block .section-2-block [data-image-wrap]:hover {
    outline: 2px solid rgba(0,124,186,0.5);
    outline-offset: 2px;
}
.block-editor-block-list__block .section-2-block [data-image-wrap] img {
    max-width: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Full-width breakout in editor */
.block-editor-block-list__block .products-block {
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 1.5rem));
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 1.5rem));
    width: calc(100% + var(--wp--style--root--padding-left, 1.5rem) + var(--wp--style--root--padding-right, 1.5rem));
}
.block-editor-block-list__block .products-block > * {
    max-width: 100%;
}
/* Clickable image wrappers */
.block-editor-block-list__block .products-block [data-image-wrap] {
    cursor: pointer;
    transition: outline 0.15s ease, box-shadow 0.15s ease;
}
.block-editor-block-list__block .products-block [data-image-wrap]:hover {
    outline: 2px solid rgba(0,124,186,0.5);
    outline-offset: 2px;
}
.block-editor-block-list__block .products-block [data-image-wrap] img {
    max-width: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Full-width breakout in editor */
.block-editor-block-list__block .logos-block {
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 1.5rem));
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 1.5rem));
    width: calc(100% + var(--wp--style--root--padding-left, 1.5rem) + var(--wp--style--root--padding-right, 1.5rem));
}
.block-editor-block-list__block .logos-block > * {
    max-width: 100%;
}

/* Clean color picker dots */
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }
input[type="color"]::-moz-color-swatch { border: none; border-radius: 50%; }
