/* =========================
   RESET & VARIJABLE
   ========================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --brand-primary: #0a4e7a;
    --brand-primary-light: #a3c9ef;
    --brand-primary-lighter: #d4e9f8;
    --brand-shadow: rgba(10, 78, 122, .15);
  }
  
  /* =========================
     GLOBAL
     ========================= */
  body {
    font-family: "Poppins", sans-serif;
    color: #222;
    background: #fdfdfd;
    line-height: 1.6;
  }
  
  h1, h2, h3 {
    color: var(--brand-primary);
    font-weight: 600;
  }
  
  p {
    color: #555;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
  }
  
  /* =========================
     HEADER TOP
     ========================= */
  .header-top {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 60px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }
  
  .contact-info {
    display: flex;
    gap: 20px;
    color: #444;
  }
  
  .top-nav {
    display: flex;
    gap: 40px;
  }
  
  .top-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color .3s, border-bottom .3s;
  }
  
  .top-nav a:hover {
    color: var(--brand-primary);
  }
  
  .top-nav a.active {
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 2px;
  }
  
  /* =========================
     GLAVNI HEADER
     ========================= */
  .header-main {
    background: var(--brand-primary-light);
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* logo | nav | filler */
    align-items: center;
    padding: 15px 60px;
    box-shadow: 0 2px 8px var(--brand-shadow);
    position: relative;
    z-index: 5;
  }
  
  .logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    justify-self: start;
  }
  
  .category-nav {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    justify-self: center;
  }
  
  .header-main::after {
    content: "";
    display: block;
    width: 70px;
    justify-self: end;
  }
  
  /* dropdown u header-u */
  .dropdown {
    position: relative;
  }
  
  .dropbtn {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: color .3s;
  }
  
  .dropbtn:hover {
    color: var(--brand-primary);
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    z-index: 10;
    overflow: hidden;
  }
  
  .dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background-color .2s;
  }
  
  .dropdown-content a:hover {
    background: var(--brand-primary-lighter);
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* =========================
     MAIN LAYOUT
     ========================= */
  main.content {
    padding: 60px 60px;
    max-width: 1600px;
    margin: 0 auto;
  }
  
  main.content > section {
    margin-bottom: 60px;
  }
  
  /* =========================
     HERO / POČETNA
     ========================= */
  .home-wrapper {
    padding-top: 40px;
  }
  
  .hero {
    text-align: center;
    padding: 40px 20px 20px;
  }
  
  .hero h1 {
    font-size: 34px;
  }
  
  .hero p {
    margin-top: 10px;
    font-size: 17px;
  }
  
  .hero-subtext {
    margin-top: 12px;
    font-size: 15px;
    color: #666;
  }
  
  /* sekcije na početnoj */
  .home-section {
    margin-top: 60px;
    text-align: center;
  }
  
  .home-section h2 {
    font-size: 26px;
  }
  
  .section-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
  }
  
  .section-divider {
    width: 100%;
    border-top: 2px solid #e3edf5;
    margin: 50px 0 40px;
  }
  
  /* =========================
     STATIC STRANE (kontakt)
     ========================= */
  .static-section {
    width: 100%;
    text-align: center;
  }
  
  .static-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .static-section p {
    font-size: 1rem;
    margin: 0 auto 1.2rem;
  }
  
  /* lista kontakta */
  .contact-list {
    list-style: none;
    padding: 0;
    margin: 30px auto 0;
    max-width: 480px;
    color: #444;
    line-height: 1.6;
    text-align: center;
  }
  
  .contact-list li {
    margin-bottom: 12px;
  }
  
  .contact-list strong {
    color: var(--brand-primary);
  }
  
  /* =========================
     CATALOG TOOLBAR
     ========================= */
  .catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
  }
  
  .catalog-toolbar label {
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-primary);
  }
  
  .catalog-toolbar select {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-primary);
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    appearance: none;
  }
  
  .catalog-toolbar select:hover,
  .catalog-toolbar select:focus {
    box-shadow: 0 6px 18px rgba(10, 78, 122, 0.15);
    transform: translateY(-2px);
  }
  
  /* =========================
     GRID PROIZVODA
     ========================= */
  .product-grid {
    max-width: 1800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 34px;
    justify-items: center;
  }
  
  .product-card-link {
    text-decoration: none;
    color: inherit;
  }
  
  .product-card-link:hover .product-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  
  .product-card {
    width: 260px;
    height: 370px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    padding: 20px;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }
  
  /* slike u gridu */
  .product-image,
  .product-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
    margin-bottom: 15px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  }
  
  .product-placeholder {
    background: var(--brand-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  /* tekst u karticama */
  .product-name,
  .carousel-item-name,
  .home-product-name,
  .category-card span,
  .product-detail-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
  }
  .carousel-item-name {
    white-space: normal !important;         /* dozvoli više linija */
    overflow-wrap: break-word !important;   /* lomi reči po potrebi */
    word-break: break-word !important;
    text-align: center !important;
    max-width: 200px;
    margin: 0 auto 6px;
    line-height: 1.3;
  }
  
  .product-name {
    margin-top: 6px;
    margin-bottom: 4px;
  }
  
  .product-price,
  .carousel-item-price,
  .product-detail-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 6px;
  }
  .product-detail-price {
    text-align: left !important;
  }
  
  /* =========================
     STRANA PROIZVODA
     ========================= */
  .detail-content {
    background: #f7fbfd;
    padding: 60px 20px 100px;
    border-top: 1px solid #e8f1f8;
  }
  
  .product-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px;
    max-width: 1100px;
    margin: 0 auto 60px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
  }
  
  .product-detail-image,
  .product-detail-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .product-detail-placeholder {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    font-size: 24px;
    font-weight: 600;
  }
  
  .product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    text-align: left !important;
  }

  .product-detail-price {
    text-align: left !important;
  }

  .product-detail-name {
    font-size: 22px;
    margin-bottom: 4px;
  }
  
  .product-detail-price {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .product-detail-desc-wrapper {
    margin-top: 18px;
  }
  
  .product-detail-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--brand-primary);
    font-size: 16px;
  }
  
  .product-detail-desc {
    margin: 0;
    color: #444;
    line-height: 1.6;
    font-size: 15px;
    text-align: left;
    text-justify: inter-word;
  }
  
  .product-extra-info {
    width: 100%;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e3edf5;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .product-extra-info p {
    margin: 6px 0;
  }
  
  .product-extra-info strong {
    color: var(--brand-primary);
  }
  
  .analiticki-list {
    list-style: disc;
    margin-left: 25px;
    color: #444;
  }
  
  /* povezani proizvodi */
  .related-products {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 2px solid #e3edf5;
  }
  
  .related-products h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* link nazad */
  .back-link {
    display: block;
    margin: 40px auto 20px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
    max-width: 1100px;
    text-align: left;
  }
  
  .back-link:hover {
    color: #083b5b;
  }
  
  /* =========================
     PAGINACIJA & BREADCRUMB
     ========================= */
  .pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
  }
  
  .pagination button {
    padding: 8px 12px;
    border: none;
    background: var(--brand-primary-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  
  .pagination button:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
  }
  
  .pagination button.active {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
  }
  
  .pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: #555;
    margin-bottom: 25px;
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(10, 78, 122, 0.08);
    width: fit-content;
    font-weight: 500;
  }
  
  .breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
  }
  
  .breadcrumb a:hover {
    text-decoration: underline;
  }
  
  .breadcrumb span {
    color: #aaa;
    font-weight: 500;
  }
  
  .breadcrumb .current {
    font-weight: 700;
    color: #222;
  }
  
  /* =========================
     CAROUSEL "NAJTRAŽENIJI"
     ========================= */
  .carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 60px;
    overflow: hidden;
  }
  
  .carousel-track {
    display: flex;
    gap: 20px;
    padding: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
  }
  
  .carousel-track::-webkit-scrollbar {
    display: none;
  }
  
  .carousel-item {
    width: 260px;
    height: 380px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
  }
  
  .carousel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  
  .carousel-item img {
    width: 220px;
    height: 220px;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  }
  
  /* =========================
     GRID KATEGORIJA
     ========================= */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 34px;
    max-width: 1400px;
    margin: 30px auto 50px;
    padding: 0 20px;
  }
  
  .category-card {
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 14px rgba(0,0,0,.10);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }
  
  .category-card img {
    width: 180px;
    height: 180px;
    border-radius: 14px;
    object-fit: contain;
    margin-bottom: 16px;
  }
  
  /* =========================
     O NAMA BLOK
     ========================= */
  .about-section {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
  }
  
  .about-text {
    margin-top: 15px;
    font-size: 16px;
    color: #555;
    line-height: 1.75;
  }
  
  /* =========================
     RESPONSIVE
     ========================= */
  @media (max-width: 900px) {
    .header-top {
      padding: 6px 20px;
      flex-direction: column;
      gap: 6px;
    }
    .product-detail-card {
      align-items: flex-start !important;
    }
    .header-main {
      grid-template-columns: auto;
      row-gap: 10px;
      padding: 10px 20px;
    }
  
    .category-nav {
      flex-wrap: wrap;
      gap: 20px;
    }
  
    main.content {
      padding: 40px 20px;
    }
  
    .product-detail-card {
      flex-direction: column;
      align-items: center;
      gap: 30px;
    }
  
    .breadcrumb {
      font-size: 15px;
    }
  }
  
  .product-detail-price {
    text-align: left !important;
    width: 100%;
}
