html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #333;
  overflow-x: hidden;
}

/* Hides Hero and Logo when menu is toggled */
body.menu-open .hero,
body.menu-open .logo {
  display: none;
}

/* Centers the remaining nav container when logo is hidden */
body.menu-open .nav {
  justify-content: center;
}

h1, h2, h3, p {
  font-family: 'Lora', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   2. TOP BAR
   ========================================= */
.top-bar {
  background: #8c67a3;
  font-size: 18px;
  border-bottom: 5px solid #53b8a3;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: #fff;
  font-weight: bold;
}

.top-bar .left span {
  margin-right: 15px;
}

.top-bar .right img {
  width: 18px;
  margin-left: 10px;
}

.top-bar .right i {
  margin-left: 12px;
  cursor: pointer;
  color: #fff;
}

/* =========================================
   3. NAVIGATION & HEADER
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid #eee;
  margin-bottom: 10px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.logo {
  height: 150px;
}

nav a {
  margin-left: 10px;
  font-size: 23px;
  line-height: 3;
  color: #ed9ed4;
  text-decoration: none;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
}

nav a:hover {
  color: #9853c2;
}

.menu-toggle {
  display: none;
  font-size: 74px;
  cursor: pointer;
  color: #8c67a3;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
  height: 400px;
}

.hero-inner {
  display: flex;
  height: 100%;
}

.hero-left {
  width: 330px;
  background: url("images/majaljujic.jpg") center/cover no-repeat;
  flex-shrink: 0;
  border-radius: 12px;
}

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; 
  padding: 40px;
 
  background:
    linear-gradient(rgba(255,255,255,0.80), rgba(255,255,255,0.85)),
    url("images/moja_babica_logo.png") no-repeat center / contain;
  font-family: 'Playfair Display', serif;
}

/* HERO TYPOGRAPHY */
.hero-right h2 { font-size: clamp(22px, 2.5vw, 28px); color: #8c67a3; margin-bottom: 10px; }
.hero-right h1 { font-size: clamp(22px, 6.5vw, 80px); color: #8c67a3; margin-bottom: 10px; }
.hero-right p { font-size: clamp(18px, 1.5vw, 22px); color: #8c67a3; margin-bottom: 10px; margin-top: 20px; }

/* =========================================
   5. BUTTONS & GRID AND FORM
   ========================================= */
.button {
  display: inline-block;
  padding: 16px 44px;
  background-color: #8c67a3; color: #fff;
  border: none; border-radius: 6px;
  font-size: 22px; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

.button:hover {
  background-color: #e3afda; /* Lightens the purple */
  transform: translateY(-1px); /* Lifts the button up */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds a soft shadow */
}

.button:active {
  transform: translateY(-1px); /* Sinks slightly when clicked */
}

.submit-btn {
  display: inline-block;
  padding: 16px 44px;
  background-color: #8c67a3; color: #fff;
  border: none; border-radius: 6px;
  font-size: 22px; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  margin-top: 20px;
}

.submit-btn:hover {
  background-color: #e3afda; /* Lightens the purple */
  transform: translateY(-1px); /* Lifts the button up */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds a soft shadow */
}

.submit-btn:active {
  transform: translateY(-1px); /* Sinks slightly when clicked */
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5%;
}

/* The container for the form */
.button-wrapper {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically (if the div has height) */
  width: 100%;
}

.form-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease; /* Smooth fade in */
}

.form-wrapper.active {
  max-height: 1500px; /* Large enough to show everything */
  opacity: 1;
  margin-top: 20px;
}

/* Styling the form to match your site's "Fancy" look */
.form-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 22px; /* Matching your image/card borders */
  border: 3px solid #f0e6f5;
  box-shadow: 0 15px 35px rgba(140, 103, 163, 0.08); /* Soft purple shadow */
}

.form-card h3 {
  color: #8c67a3;
  margin-bottom: 45px;
  text-align: center;
  font-size: 30px;
}

.input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.field {
  flex: 1; /* Makes both columns equal width */
}

.field label {
  display: block;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #8c67a3;
  margin-bottom: 5px;
}

.field input, .field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: 'Lora', serif;
  background-color: #fff;
  outline: none;
}

/* Mobile responsive: stack them vertically on small screens */
@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
  }
}

/* Standard inputs */
.form-card input, .form-card textarea {
  width: 100%;
  padding: 15px;
  border: 3px solid #ddd;
  border-radius: 12px;
  font-family: 'Lora', serif;
  outline: none;
}
 
.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  background: #e3afda;
  border-radius: 22px;
  padding-bottom: 15px;
  transition: all 0.2s ease;
}

.card a {
  text-decoration: none !important;
}

.card:hover {
  background-color: #8c67a3;  
  transform: translateY(-5px); /* Lifts the button up */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds a soft shadow */
}

.card img, .product img {
  width: 50%;
  align-self: center;
  object-fit: contain;  
  border-radius: 22px; 
  margin-top: 15px;
}

.card h3 { font-size: clamp(19px, 2vw + 1rem, 30px); color: white; padding: 10px; }
.card p { font-size: clamp(14px, 1vw + 0.5rem, 18px); color: white; padding: 10px; }

.categories, .products { margin: 50px auto; padding-bottom: 100px; }

/* INFO SEKCIJA */
.info {
  background: #f8f8f8;
  padding: 10px 0;
  scroll-margin-top: 150px; /* Adjust this number based on your header height */
}

.info-content {
  display: flex;
  align-items: center; /* Centriranje slike i teksta po vertikali */
  gap: 40px;           /* Razmak između teksta i slike */
}

.info-text {
  flex: 0 0 50%;       /* Tekst uvek zauzima tačno 50% */
  text-align: left;    /* Poravnanje teksta na levo */
}



 



 

.info-text h2 {
  color: #8c67a3;
  margin-bottom: 20px;
  font-size: clamp(24px, 4vw, 36px);
}

.info-text p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

/* SLIKA KOJA SE SMANJUJE */
.info-image {
  flex: 1;              /* Zauzima ostatak prostora */
  display: flex;
  justify-content: center;
}

.info-image img {
  width: 100%;         /* Slika se širi do granica svog kontejnera */
  max-width: 450px;    /* Sprečava da slika postane prevelika na ogromnim ekranima */
  height: auto;        /* Održava proporcije */
  border-radius: 22px; /* Da se slaže sa tvojim karticama */
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section-divider {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 40px 0;
}

/* 5-Column Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Exactly 5 columns in a single row */
  gap: 15px; 
  margin-bottom: 50px;
}

.gallery-item img {
  width: 100%
  /* height: 500px; /* Standard thumbnail display height */
  object-fit: cover; 
  border-radius: 8px; /* Smooth corners matching the cards */
}

/* Side-by-side spacing for buttons inside the wrapper */
.dual-buttons {
  display: flex;
  justify-content: center; /* Perfectly centered alignment */
  gap: 20px; 
}

.dual-buttons .button {
  text-decoration: none !important;
  display: inline-block;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
  background: #8c67a3; color: #fff; padding: 40px 0; border-top: 5px solid #53b8a3;
}

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
footer a { display: block; color: #ccc; margin: 5px 0; text-decoration: none; }

/* =========================================
   7. RESPONSIVE / MOBILE (MAX 768px)
   ========================================= */
@media(max-width: 768px) {
  .top-bar-content { flex-direction: column; text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }

  nav.active ~ .menu-toggle { display: none; }

  nav { display: none; flex-direction: column; }

  nav.active {
    display: flex;
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 999;
    padding: 20px 0;
  }

  nav a { width: 100%; text-align: center; padding: 15px; margin: 0; }

  .hero-inner { flex-direction: column; }
  .hero-left { display: none; }
  .hero-right { width: 100%; padding: 30px 20px; }
  
  .info-content {
    flex-direction: column; /* Slika ide ispod teksta */
    text-align: center;
  }

  .info-text {
    flex: 0 0 100%;         /* Tekst zauzima punu širinu na mobilnom */
    text-align: center;
  }
  
  .info h2 {
    font-size: 38px !important; /* Forces a specific size for mobile */
  }

  .info-image {
    width: 100%;
    margin-top: 30px;
  }

  .info-image img {
    width: 80%;                 /* Na mobilnom slika neće biti preko celog ekrana, već malo manja */
  }
  
  .hero-right h1 {
    font-size: 58px !important; /* Forces a specific size for mobile */
    line-height: 1.1;
    margin-bottom: 15px;
  }
  
  .hero-right h2 {
    font-size: 23px;
  }

  .hero-right p {
    font-size: 18px;
    padding: 0 10px; /* Gives the text some breathing room on narrow screens */
  }

  .gallery-grid {
    grid-template-columns: repeat(1, 1fr); /* Reverts to 2 images per row on phone screens */
  }
  
  .gallery-grid img { width: 100%;}
  
  .dual-buttons {
    flex-direction: column; /* Stack buttons cleanly on small screens */
    align-items: center;
  }
  
  
 
}
 
/* Responsive adjustment for the inputs */
@media (max-width: 600px) {
  .input-group {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   8. PRIPREMA PAGE STRUCTURAL STYLING
   ========================================= */

/* Center layout for single-column page content */
.unique-page-layout {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Restricts line length for readability */
.unique-page-layout .info-text {
  max-width: 850px;
  margin: 0 auto 50px auto;
}

/* Force headings to match the exact font and purple brand color of your index titles */
.unique-page-layout .info-text h2 {
  font-family: 'Lora', serif;
  color: #8c67a3; 
  font-size: 2.8rem;
}

.unique-page-layout .info-text h3 {
  font-family: 'Lora', serif; /* Overrides the global Lora font setting */
  color: #8c67a3;                        /* Explicitly forces your brand purple */
  font-size: 1.8rem;
  margin-top: 45px;
  margin-bottom: 15px;
}

.unique-page-layout .info-text p {
  margin-bottom: 20px;
}

/* Custom left-aligned list box matching text block boundaries */
.content-list {
  list-style-type: none;
  padding: 0;
  margin: 25px auto 35px auto;
  max-width: 850px; 
  text-align: left;
}

.content-list li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px; /* Creates clean spacing for the heart bullet */
  color: #555;        /* Matches your paragraph text color */
}

/* Custom matching purple heart bullets */
.content-list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  color: #8c67a3;
  font-size: 0.9rem;
}


.price {
  color: #8c67a3;   
  font-weight: bold;  
  font-family: 'Lora', serif; 
}