body, h1, h2, p {
    margin: 0;
    padding: 0;
  }
  
  /* Body text uses Source Sans Pro */
body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.content {
    padding: 20px;
}

/* Headings use Libre Baskerville */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  color: #222;
}


p {
    text-align: justify;
}

/* ===== HEADER STYLES ===== */

header {
  background-color: #cdc0af;               /* Blue background */
  color: #271914;                            /* Brown text */
  display: flex;                           /* Layout children in a row */
  justify-content: space-between;          /* Title left, nav right */
  align-items: center;                     /* Vertically center everything */
  padding: 15px 40px;                      /* Space around edges */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);  /* Soft shadow for depth */
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
}

/* Title (left side) */
header h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

/* Navigation (right side) */
nav ul {
  list-style: none;                        /* Remove bullets */
  margin: 0;
  padding: 0;
  display: flex;                           /* Horizontal row */
  gap: 25px;                               /* Space between links */
}

nav a {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;                      /* For hover underline */
  transition: color 0.3s ease;
}

/* Hover effect: underline animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #271914;               /* Gold underline */
  transition: width 0.3s ease;
}

nav a:hover {
  color: #271914;
}

nav a:hover::after {
  width: 100%;
}

#aboutHome, #aboutUs {
    padding: 30px;
}

/* Carousel */

.carousel-item img {
  height: 80vh;              /* adjust carousel height */
  object-fit: cover;         /* makes image fill nicely */
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);  /* semi-transparent dark box behind text */
  border-radius: 8px;
  padding: 1rem 2rem;
}

header h1 a {
  color: inherit;              /* use same color as header text */
  text-decoration: none;       /* remove underline */
}

header h1 a:hover {
  color: #271914;              /* optional: highlight on hover */
  transition: color 0.3s ease;
}

h3 {
    text-transform: uppercase;
}

a.up-button {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px;
}

button.up-button {
    background-color: #271914;
    border: none;
    font-size: 20px;
    border-radius: 4px;
}

button.up-button:hover {
    background-color: #271914cc;
}

footer {
    background-color: #cdc0af;
    padding: 10px 0 0;
    margin: 0;
}

.carousel-inner {
    max-height: 500px;
}

/* cards */

.card-container {
    padding: 10px;
}

.card {
    position: relative;
    overflow: hidden;
    border: none;
}

.card img:not(.buy-img) {
    width: 100%;
    object-fit: cover;
}

/* Rahlo povečanje slike na hover */
.card:hover img {
    transform: scale(1.03);
}

/* ---- Spodnji del kartice ---- */
.card-body {
    text-align: start;
    min-height: 120px; /* višina spodnjega dela */
    position: relative;
}

.card:hover .card-body:not(.buy-card):not(.payment-info) {
    text-align: center;
}

/* Naslov in cena */
.card-title,
.card-text {
    opacity: 1;
}

.card-title {
    margin-top: 15px;
    height: 40px;
}

.a-container {
    height: 126px;
}

/* Gumb privzeto skrit */
.card-hover-btn {
    display: none;
    margin-top: 53px; /* 🔹 pomakni gumb malo nižje od slike */
    background-color: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    text-transform: uppercase;
    font-weight: 500;
    padding: 8px 20px;
}

/* Ob hoverju: skrij naslov in ceno, pokaži gumb */
.card:hover .card-body:not(.buy-card) .card-title,
.card:hover .card-body:not(.buy-card) .card-text {
    opacity: 0;
    display: none;
}

.card:hover .card-hover-btn {
    display: inline-block;
}

/* Hover efekt gumba */
.card-hover-btn:hover {
    background-color: #271914 !important;
    color: #fff !important;
}

.card:not(:hover) .a-container {
    display: none;
}

/* Contact us form */
button.btn-primary {
    margin-top: 15px;
    background-color: #271914 !important;
    border: none;
}

button.btn-primary:hover {
    background-color: #271914cc !important;
}

.modal-footer button.btn-primary {
    margin-top: 4px;
}

/* izbriši kasneje? /*

 */
.card img {
    border-radius: 0.5rem;
}
.card {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: none;
}

.fas.fa-close {
    font-size: 2.5rem;
    margin-right: 30px;
}

.fas.fa-close:hover {
    cursor: pointer;
}

.buy-img {
    width: 150px;
    height: 200px;
    object-fit: cover;
}

.card-header.bg-primary.text-white.text-center {
    background-color: #271914cc !important;
}

.home-flex {
    display: flex;
    gap: 30px;
    padding-bottom: 30px;
}

.middle-text {
    max-width: 35vw;
    margin: auto;
}