/* ===== Max širina i layout ===== */
.woocommerce div.product .woocommerce-tabs .panel .imd-docs-wrap,
.woocommerce-Tabs-panel .imd-docs-wrap {
  max-width: 800px;
  margin: 16px auto 0;
  padding: 0 10px; /* malo unutarnjeg razmaka na mobitelu */
  box-sizing: border-box;
}

/* ===== Lista dokumenata ===== */
.imd-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* Pojedina stavka */
.imd-docs-item {
  display: grid;
  grid-template-columns: 28px 1fr 40px; /* ikona | naslov | download */
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.imd-docs-item:last-child { border-bottom: none; }

/* Hover/focus efekti za “elevaciju” */
.imd-docs-item:hover {
  background: rgba(0,0,0,0.02);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  transform: translateY(-1px);
}

/* ===== Ikone ===== */
.imd-docs-icon .imd-svg-doc,
.imd-docs-download .imd-svg-dl {
  display: inline-block;
  vertical-align: middle;
}

.imd-docs-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
}

/* ===== Naslov i “badge” ekstenzije ===== */
.imd-docs-title {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

.imd-docs-ext {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.75);
}

/* ===== Download gumb (ikona) ===== */
.imd-docs-download {
  justify-self: end;
  line-height: 0;
  padding: 8px;
  border-radius: 10px;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  outline: none;
}

.imd-docs-download:hover {
  background: rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.imd-docs-download:focus-visible {
  box-shadow: 0 0 0 3px rgba(100, 150, 250, 0.35);
}

/* ===== Tipografija unutar custom WYSIWYG tabova ===== */
.woocommerce div.product .woocommerce-tabs .panel .imd-custom-tab-content {
  max-width: 800px;
  margin: 12px auto 0;
  padding: 0 10px;
  box-sizing: border-box;
}

.woocommerce div.product .woocommerce-tabs .panel .imd-custom-tab-content p {
  margin: 0 0 1em;
}

.woocommerce div.product .woocommerce-tabs .panel .imd-custom-tab-content ul {
  margin: 0 0 1em 1.2em;
}

/* ===== Responsivnost ===== */
@media (max-width: 480px) {
  .imd-docs-item {
    grid-template-columns: 24px 1fr 36px;
    gap: 12px;
    padding: 12px 12px;
  }
  .imd-docs-icon { width: 24px; height: 24px; border-radius: 6px; }
  .imd-docs-title { font-weight: 600; }
  .imd-docs-ext { display: none; } /* po želji – manje gužve na XS */
}

/* ===== Respect reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .imd-docs-item,
  .imd-docs-download {
    transition: none;
  }
}

/* ===== Mala dorada linkova u panelu (Woodmart friendly) ===== */
.woocommerce div.product .woocommerce-tabs .panel a.imd-docs-download:hover {
  text-decoration: none;
}
.product-attribute-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.attribute-group {
  background: #fafafa;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px;
}

.attribute-group h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 12px;
  color: #333;
}

.attr-table {
  width: 100%;
  border-collapse: collapse;
}

.attr-table th {
  text-align: left;
  color: #555;
  width: 60%;
  padding: 4px 0;
}

.attr-table td {
  color: #000;
  font-weight: 500;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .product-attribute-groups {
    grid-template-columns: 1fr;
  }
}
.woocommerce-product-attributes.shop_attributes{display:none;}