* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #37465D;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.logo img {
    width: 60px;
    margin-right: 15px;
}

.top-nav ul {
    display: flex;
    gap: 25px;
}

.top-nav a {
    color: #37465D;
    font-weight: 500;
}

.lang img {
    width: 24px;
    margin-left: 8px;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #37465D;
}

.main-nav {
    background: #ffffff;
    padding: 12px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav ul {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav a {
    color: #333;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: #37465D;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('../assets/naslovna.jpeg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
}

.category-buttons {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

.category-buttons button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-buttons button.active,
.category-buttons button:hover {
    background: white;
    color: #37465D;
}

.search-bar {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #37465D;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
}

main {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}

.sidebar {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar input,
.sidebar select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.sidebar label {
    display: block;
    margin: 20px 0 10px;
    font-weight: bold;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.content {
    flex: 3;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-body h3 {
    margin-bottom: 10px;
}

.card-body p {
    font-size: 14px;
    margin: 6px 0;
    color: #555;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f;
    margin: 15px 0;
}

.card-buttons button {
    padding: 8px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background: #37465D;
    color: white;
}

.btn-secondary {
    background: #ffffff;
    color: #37465D;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
}

.modal .prev,
.modal .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.modal .prev {
    left: 30px;
}

.modal .next {
    right: 30px;
}

footer {
    background: #f8f8f8;
    padding: 50px 30px 20px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-logo img {
    width: 70px;
    margin-bottom: 15px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .top-bar{
        font-size: 14px;
    }
    main {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .top-bar {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .top-nav {
        width: 100%;
        order: 1;
    }

    .top-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 20px;
        z-index: 100;
        position: relative;
    }

    .top-nav ul.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        display: none;
    }

    .main-nav ul.active {
        display: flex;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .modal .prev,
    .modal .next {
        font-size: 36px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

.pagination-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* .specs {
    font-size: 0.85em;
    color: #555;
    background: #f4f4f4;
    padding: 5px;
    border-radius: 4px;
    margin: 5px 0;
} */
