/* Modern Product Articles CSS for Construction Materials */

/* Product article container */
.product-article {
max-width: 1240px;
  background: var(--light, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-bottom: 2rem;
  padding: 25px;
    width: 90%;
    margin: 30px auto 0 auto;
}
/*
.product-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #008ad3, var(--accent, #1d4ed8));
}*/

.product-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Product header with image and basic info */
.product-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.product-image {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    /* maknuto aspect-ratio i overflow */
}

.product-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* cijela slika stane unutra */
    border-radius: 20px;
}


.product-image:hover img {
  transform: scale(1.05);
}

/* Placeholder for products without image */
.product-image.no-image {
  background: linear-gradient(135deg, #008ad3, var(--accent, #1d4ed8));
  color: white;
  font-size: 3rem;
}

.product-image.no-image::before {
  content: '🏗️';
  font-size: 4rem;
}

.product-basic-info h2 {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--dark, #1f2937);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-category {
  display: inline-block;
  background: linear-gradient(135deg, #008ad3, var(--accent, #1d4ed8));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-summary {
  font-size: 1.125rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Product specifications grid */
.product-specs {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.specs-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark, #1f2937);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specs-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #008ad3, var(--accent, #1d4ed8));
  border-radius: 2px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.spec-card {
  background: var(--light, #ffffff);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.spec-card h3 {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: #008ad3;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icons for different spec types */
.spec-card.composition h3::before { content: '🧪'; }
.spec-card.application h3::before { content: '🔨'; }
.spec-card.packaging h3::before { content: '📦'; }
.spec-card.technical h3::before { content: '⚙️'; }

.spec-content {
  color: var(--text-primary, #374151);
  line-height: 1.6;
}

.spec-content ul {
  list-style: none;
  padding: 0;
}

.spec-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.spec-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #008ad3;
  font-weight: bold;
}

/* Packaging options styling */
.packaging-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.package-item {
  background: #008ad3;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Call-to-action section */
.product-cta {
  background: var(--dark, #1f2937);
  color: var(--light, #ffffff);
  padding: 2rem;
  text-align: center;
}

.cta-content h3 {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button.primary {
  background: linear-gradient(135deg, #008ad3, var(--accent, #1d4ed8));
  color: white;
}

.cta-button.secondary {
  border-color: #008ad3;
  color: #008ad3;
  background: transparent;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .product-article {
     width: 100%;}

  .product-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .product-image {
    max-width: 250px;
    margin: 0 auto;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .product-article {
    border-radius: 0;
  }
  
  .product-header,
  .product-specs,
  .product-cta {
    padding: 1.5rem;
  }
  
  .packaging-options {
    justify-content: center;
  }
}

/* Print styles for technical documentation */
@media print {
  .product-article {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  .product-cta {
    display: none;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px auto;
  align-items: stretch;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.product-thumb {
  height: auto;
    max-width: 100%;
}
.product-thumb img {
  display: block;
  vertical-align: top;  
  margin: auto;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.product-short {
  font-size: 14px;
  color: #666;
}
/* ---------- Galerija proizvoda GRID ---------- */
.gallery {
    margin-top: 30px;
}
.gallery-grid {
    margin-top: 30px;
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* slike popune prostor kartice */
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  display: block;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 15px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
}

.product-card img {
  object-fit: cover;
  border-radius: 12px;
}

.product-card h3 {
  margin: 12px 0 0;
  font-size: 1rem;
  color: #333;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        width: 100%;
    }
}