@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f8f8;
  color: #e4b76e;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: #fff;
  color: #fff;
  border-bottom: 1px solid #444;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  gap: 1rem;
}

.leftt, .centerr, .rightt {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leftt {
  flex: 1;
}

.centerr {
  flex: 3;
  justify-content: center;
}

.rightt {
  flex: 1;
  justify-content: flex-end;
}

.logo img {
  height: 80px;
}

.search-box {
  display: flex;
  border: 1px solid #444;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 600px;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  color: #252525;
  flex: 1;
}

.search-box button {
  background: #000;
  color: white;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
}

.cart {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #252525;
}

.cart-icon {
  text-decoration: none; 
  color: inherit;        
}

.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #252525;
}

.nav-bar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid #444;
}

.nav-left {
  flex: 1;
  position: relative;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-bar a {
  color: #252525;
  text-decoration: none;
  font-weight: 500;
}

.nav-bar a:hover {
  text-decoration: underline;
}

.category-btn {
  background: #333;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  border: 1px solid #444;
  border-top: none;
  z-index: 9999;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.category-dropdown ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-dropdown li {
  width: 100%;
}

.category-dropdown a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  transition: background 0.3s;
}

.category-dropdown a:hover {
  background: #444;
}

.category-dropdown.open {
  display: block;
}

@media (max-width: 768px) {
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .leftt, .centerr, .rightt {
    flex: 0 0 100%;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .leftt {
    order: 1;
    gap: 0.5rem;
  }

  .centerr {
    order: 3;
    display: flex;
    margin-top: 0.5rem;
    padding: 0 1rem;
  }

  .rightt {
    order: 2;
    justify-content: flex-end;
  }

  .burger {
    order: 1;
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
  }

  .category-btn {
    display: none;
  }

  .nav-bar {
    display: none;
    width: 100%;
  }

  .nav-bar.open {
    display: block;
  }

  .nav-bar nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .nav-right {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .category-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}
/* KORPA */
.containerkorpa {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h2 {
  color: #252525;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.korpa table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.korpa th, .korpa td {
    color: #414040;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}
.korpa th {
    background-color: #f9f9f9;
    font-weight: 600;
}
.korpa img {
    width: 60px;
    border-radius: 8px;
}
.qty-btn {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

input[type="text"][readonly] {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
}

.delete-icon {
    color: #dc3545;
    font-size: 18px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.delete-icon:hover {
    color: #a71d2a;
}

.korpa p strong {
    color: #252525;
    font-size: 24px;
    font-weight: bold;
}

.checkout {
    color: #414040;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.checkout form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.checkout label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.radio-group {
    margin-bottom: 20px;
}

.checkout input[type="text"],
.checkout input[type="email"],
.checkout textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.checkout textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout h2 {
    grid-column: 1 / -1;
    font-size: 22px;
    border-bottom: 2px solid #e4b76e;
    padding-bottom: 5px;
    margin-top: 20px;
}

.checkout input[type="radio"] {
    margin-right: 8px;
}

.checkout button[type="submit"],
.checkout button[type="button"],
.checkout button {
    grid-column: 1 / -1;
    padding: 15px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.checkout .delete {
    background-color: #dc3545;
}

/* Prazna korpa */
.prazna-korpa img {
    width: 150px;
    margin-bottom: 20px;
}

.prazna-korpa p {
    font-size: 24px;
    margin-bottom: 20px;
}

.prazna-korpa a {
    padding: 12px 50px;
    background-color: #e4b76e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
}

.checkout input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 20px 10px 0 0;
    font: inherit;
    color: #e4b76e;
    width: 20px;
    height: 20px;
    border: 2px solid #e4b76e;
    border-radius: 50%;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: border 0.3s ease;
}

.checkout input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
    background-color: #ba914f;
}

.checkout input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .korpa table, .korpa thead, .korpa tbody, .korpa th, .korpa td, .korpa tr {
        display: block;
    }

    .korpa th {
        display: none;
    }

    .korpa td {
        padding: 10px;
        border: none;
        position: relative;
    }

    .korpa td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
    }

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

/*Potvrda narudzbine */
.containerpotvrde {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px;
}
.containerpotvrde h2 {
    font-size: 2.5rem;
    color: #252525;
    margin-bottom: 20px;
    text-align: center;
}

.containerpotvrde h3 {
    font-size: 1.8rem;
    color: #252525;
    margin-top: 40px;
    margin-bottom: 15px;
}
.containerpotvrde p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
}

.containerpotvrde strong {
    color: #252525;
}

.containerpotvrde table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background-color: #fdfdfd;
    border-radius: 12px;
    overflow: hidden;
}

.containerpotvrde thead {
    background-color: #e4b76e;
    color: white;
}

.containerpotvrde th,
.containerpotvrde td {
  color: #252525;
    padding: 15px;
    text-align: center;
    font-size: 1rem;
}

.containerpotvrde tbody tr:nth-child(even) {
    background-color: rgb(240, 240, 240);
}

.containerpotvrde tbody tr:hover {
    background-color: rgb(223, 223, 223);
}

@media (max-width: 768px) {
    .containerpotvrde table,
    .containerpotvrde thead,
    .containerpotvrde tbody,
    .containerpotvrde th,
    .containerpotvrde td,
    .containerpotvrde tr {
        display: block;
    }

    .containerpotvrde thead {
        display: none;
    }

    .containerpotvrde tr {
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .containerpotvrde td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .containerpotvrde td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        color: #444;
        text-align: left;
    }
}

.info-box {
    background-color: #e3f7ec;
    color: #2c7a4b;
    padding: 20px;
    margin-top: 30px;
    border-left: 5px solid #27ae60;
    border-radius: 12px;
    font-size: 1.1rem;
}

.info-box.card {
    background-color: #fdf3e7;
    color: #c27c0e;
    border-left-color: #e67e22;
}

/* FOOTER */
.site-footer {
  background-color: #1F1F1F;
  color: #eee;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: auto;
}

.footer-logo img {
  width: 160px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li,
.footer-legal ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a,
.footer-legal a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #e4b76e;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom a {
  color: #87D037;
  text-decoration: none;
}