* {
  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;
}

/* 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 */
}
/* logo */
header .logo {
  font-size: 30px;
  color: #333;
  font-weight: 900;
}

header .logo span {
  color: #fdc5f5;
}
/* galvenes saites */
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;
}

/* Responsiva 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ā*/
  }

/* mobila navigacijas 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;
}
/* kajene */
footer {
  background-color: #dddddd; 
  padding: 15px 20px;
  text-align: left; 
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #ccc;
}

.footer-container {
  display: flex;
  justify-content: flex-start; 
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 15px; 
}

.footer-left a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-left a:hover {
  color: #a70e0e; 
}


.search-container {
  position: absolute;
  right: 180px;
  top: 20px;
}
/*groza ikona */
.icons a.fas.fa-shopping-cart {
  font-size: 30px;
}
/* Dropdown 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;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: #fb6f92;
}


body {
  min-height: 100vh;
}
/* Lietotāja reģistrācijas un autorizācijas 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 fiksētajai 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;
}

/* Responsivas lapas padding */
@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;
}
/* Mobila meklesanas josla */

.mobile-search-toggle {
  display: none;
}

/* Mobila 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;

    /* Paslept */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* Redzamiba, 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%;
  }
}

