* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  outline: none;
  border: none;
}
/* HTML iestatijumi */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
/* Vārda dienu paziņojums */
.nameday-notification {
  background: #ffe6f0;
  border: 1px solid #ff99cc;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  margin: 10px;
  border-radius: 8px;
}

/* Personīgais paziņojums */
.reminder-personal {
  background: #fff4cc;
  border: 1px solid #ffcc00;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  margin: 10px;
  border-radius: 8px;
  font-weight: bold;
}
/* Lapas galvene */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 20px 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 5px 10px rgba(0, 0, 0, 0.1); /* viegla ena */
}
/* Galvenes logo */
header .logo {
  font-size: 30px;
  color: #333;
  font-weight: 900;
}

header .logo span {
  color: #fdc5f5;
}
/* Galvenes navigācijas josla */
header .navbar a {
  font-size: 20px;
  padding: 0 15px;
  color: #666;
}

header .navbar a:hover {
  color: #fdc5f5;
  font-weight: 500;
}

header .icons a {
  color: #333;
  margin-left: 15px;
}

header .icons a:hover {
  color: #fb6f92;
  font-weight: 600;
}

header #toggler {
  display: none;
}

header .fa-bars {
  font-size: 30px;
  color: #333;
  border-radius: 5px;
  padding: 5px 15px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.3);
  display: none;
}

/* Responsivā galvene */
@media (max-width: 991px) {
  header {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  header .fa-bars {
    display: block; /* slēpj hamburgera izvēlni datora režīmā*/
  }

/* Mobilā navigācijas josla */
  header .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #eee;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  header #toggler:checked ~ .navbar {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }

  header .navbar a {
    margin: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
  }
}
/* responsiva kajene */
@media screen and (max-width: 480px) {
  .footer-container {
    flex-direction: column;
    gap: 10px;
  }
  .footer-left a {
    display: block;
  }
}


.sidebar-container {
  padding: 20px;
}
/* Lapas kājene */
footer {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  padding: 18px 30px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  gap: 18px;
}

.footer-left a {
  color: #444;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: color 0.25s ease;
}

/* Maiga kursora novietošanas animācija */
.footer-left a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #fdc5f5, #fb6f92);
  transition: width 0.3s ease;
}

.footer-left a:hover {
  color: #fb6f92;
}

.footer-left a:hover::after {
  width: 100%;
}

.search-container {
  position: absolute;
  right: 180px;
  top: 20px;
  display: flex;
  align-items: center;
  margin-left: 20px;
}
.search-container button {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 4px 4px 0;
  background-color: #ddd;
  cursor: pointer;
}
    .search-container button:hover {
      background-color: #ccc;
    }
/* Groza ikona */
.icons a.fas.fa-shopping-cart {
  font-size: 30px;
}
/* Izkrītošā saraksta kontaineri */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Profila ikona */
.dropbtn {
 font-size: 30px;
  color: #333;
  margin-left: 15px;
  background: none;
  border: none;
  cursor: pointer;
}


.dropbtn:hover {
  color: #fb6f92;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #f1f1f1;
  min-width: 160px;
  border-radius: 6px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-size: 0; 
}

/* Izkrītošā saraksta saites */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 16px; 
  line-height: 1.4;
}
/* ================= Product Details ================= */

.product-container {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  gap: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}

.product-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.product-info {
  flex: 1;
  font-family: 'Poppins', sans-serif;
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.product-category {
  color: #777;
  margin-bottom: 10px;
}

.product-description {
  margin: 20px 0;
  line-height: 1.6;
}

.product-price {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
  color: #222;
}
.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: #fb6f92;
}


body {
  min-height: 100vh;
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.9) 0%,
      rgba(255,255,255,0.6) 35%,
      rgba(255,255,255,0.4) 60%,
      rgba(255,255,255,0.15) 100%
    ),
    url("images/flowers-bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
/* Lietotāja reģistrācijas un pieslēgšanās izkārtojums */
.form-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.container h2 {
  color: #4a3b3f;
  margin-bottom: 24px;
  font-size: 28px;
  letter-spacing: 0.5px;
}

.container input {
  width: 100%;
  padding: 12px 16px;
  height: 40px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.container input:focus {
  border-color: #e71c1c;
  box-shadow: 0 0 5px rgba(209, 124, 161, 0.4);
}

.container button {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: #c22636; 
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.container button:hover {
  background: #bb6d91;
  transform: scale(1.03);
}

.container p {
  margin-top: 20px;
  color: #666;
  font-size: 14px;
}

.container a {
  color: #d17ca1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.container a:hover {
  color: #bb6d91;
}

/* ---------- responsivs dizains ---------- */
@media (max-width: 480px) {
  .container {
    padding: 32px 24px;
    margin: 16px;
  }

  .container h2 {
    font-size: 24px;
  }

  .container button {
    font-size: 15px;
  }
}
.top-right-btn {
    position: fixed;     
    top: 20px;           
    right: 20px;        
    background-color: #a70e0e;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    z-index: 1000;       
    transition: background-color 0.3s;
}

.top-right-btn:hover {
    background-color: #ff4c4c;
}

@media screen and (max-width: 480px) {
    .top-right-btn {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 13px;
    }
}
/* lapas izkārtojums */

.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  margin-top: 140px; /* vieta galvenei */
  padding: 40px 80px;
  flex: 1;
}

.contact-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 25px;
  max-width: 420px;
  font-size: 17px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
/* Groza pazinojums */
.cart-empty {
  text-align: center;
  margin-top: 20px; 
}

/* Par mums teksts */
.about-text {
  max-width: 800px;
  font-size: 17px;
  line-height: 1.8;
}
.product-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.product-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.product-btn:hover {
  background: #444;
}

/* Atpakaļ poga detalizēta produkta skatam */
.back-btn {
  display: inline-block;
  padding: 10px 15px;
  background: #eee;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
}

.back-btn:hover {
  background: #ddd;
}
.contact-layout {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.contact-left {
  flex: 1;
}

.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Google karte */
.map-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 30px;
}

.map-container iframe {
  width: 800px;
  max-width: 100%;
  height: 550px;
  border: 0;
  border-radius: 12px;
}

/* Mobilā versija kartei */
@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }

  .map-container {
    justify-content: center;
  }

  .map-container iframe {
    width: 100%;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 30px;
  }
}
/* ================= Katalogs ================= */


.catalog-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.catalog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.catalog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.catalog-body {
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-body h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.catalog-category {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.catalog-desc {
  font-size: 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.catalog-price {
  font-size: 20px;
  font-weight: 600;
  color: #1e9c4b;
  margin-bottom: 14px;
}

.catalog-btn {
  background: #0d6efd;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.25s ease;
}

.catalog-btn:hover {
  background: #0b5ed7;
}
/* Mobilā meklesanas josla */

.mobile-search-toggle {
  display: none;
}

/* Mobilā meklesanas josla */
@media (max-width: 768px) {

  header .icons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Meklesanas joslas parametri */
  .mobile-search-toggle {
    display: block;
    font-size: 26px;
    margin-bottom: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
  }

  /* Mekletaja joslas konteineris */
  .search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 12px;
    background: #eee;
    z-index: 999;

    /* Paslēpt joslu */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* Redzamiba, kuru parvalda JS */
  .search-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Meklesanas joslas izkartojums */
  .search-container form {
    width: 90%;
    display: flex;
  }

  .search-container input {
    width: 100%;
    padding: 6px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
  }
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px;
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.75) 35%,
      rgba(255,255,255,0.4) 60%,
      rgba(255,255,255,0.1) 100%
    ),
    url("images/flowers-bg.jpg");
  background-size: cover;
  background-position: center right;
  border-radius: 30px;
  overflow: hidden;
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 48px;
  color: #222;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-block;
  background: #fb6f92;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background: #f4577e;
  transform: translateY(-2px);
}

.hero-image {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: url("images/hero-flower.png") center/cover no-repeat;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 50px 30px;
  }

  .hero-image {
    width: 280px;
    height: 280px;
  }
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding-right: 35px; /* Vieta acs ikonai, kas atrodas paroles ievadīšanas laukā */
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: #888;
  font-size: 1.1em;
}
/* Navigācijas josla */
.navbar {
  display: flex;
  align-items: center;
  gap: 25px;
}

.dropdown-nav {
  position: relative;
  display: inline-flex;
}

.dropbtn-nav {
  font-size: 20px;
  color: #666;
  padding: 10px 10px;
  display: inline-block;
  transition: 0.3s ease;
}

.dropbtn-nav:hover {
  color: #fb6f92;
}

/* izkrītošais saraksts */
.dropdown-content-nav {
  position: absolute;
  top: calc(100% - 5px); 
  left: 0;
  min-width: 200px;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.2s ease;
  z-index: 999;

  padding: 6px 0;
}

/* Patur izkrītošo sarakstu atvērtu, kad novietosiet kursoru uz pogas */
.dropdown-nav:hover .dropdown-content-nav,
.dropdown-content-nav:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  transition: 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-content-nav a:hover {
  background: #fff0f5;
  color: #fb6f92;
  border-left: 3px solid #fb6f92;
  padding-left: 20px;
}
@media (max-width: 768px) {

  /* Centrē navigācijas joslu */
  header .navbar {
    text-align: center;
  }

  /* Centrē izkrītošo sarakstu */
  .dropdown-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Centrē kataloga pogu */
  .dropbtn-nav {
    width: 90%;
    text-align: center;
  }

  /* Izkrītošā saraksta centrēšana */
  .dropdown-content-nav {
    position: static;
    width: 90%;
    margin-top: 8px;

    opacity: 1;
    visibility: visible;
    transform: none;

    display: none;
  }

  /* Izkritošā saraksta parādīšanās */
  .dropdown-nav:hover .dropdown-content-nav {
    display: block;
  }

  /* Centrētās hipersaites */
  .dropdown-content-nav a {
    text-align: center;
  }
}
@media (max-width: 768px) {

  .product-container {
    flex-direction: column;
    padding: 15px;
  }

  .product-image {
    width: 100%;
  }

  .product-image img {
    width: 100%;
    max-width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
  }
}
/* Lietotaja profils */
    .profile-card {
      max-width: 400px;
      margin: 50px auto;
      padding: 30px;
      background: #f9f9f9;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .profile-card h2 { 
    margin-bottom: 20px; 
  }
    .profile-card label { 
     display: block; 
     margin: 10px 0 5px; 
  }
    .profile-card input  {
      width: 100%;
      padding: 8px 10px;
      border-radius: 5px;
      border: 1px solid #ccc;
    }
    .profile-card button {
      margin-top: 20px;
      padding: 10px 15px;
      border: none;
      background: #4CAF50;
      color: white;
      border-radius: 5px;
      cursor: pointer;
    }
    .profile-card button:hover { 
      background: #45a049; 
    }
    .success-msg {
      background: #d4edda;
      color: #155724;
      padding: 10px;
      border-radius: 5px;
      margin-bottom: 15px;
      text-align: center;
    }
    .avatar {
      text-align: center;
      margin-bottom: 20px;
    }
    .avatar i { 
      font-size: 80px; 
      color: #777; 
    }