/* Automatic settings */

:root {
  --bg: #f7f7f7;
  --bg2: #ffffff; /* white */
  --brand: #5c5a57;
  --highlight1: #707e3d;
  --highlight2: #75a43f;
  --highlight3: #a5c86e;
  --highlight4: #a5d6a7;
  --highlight5: #c5e1c5;
  --font-main: InstrumentSans-Regular;
  --font-highlight: MartianMono-Regular;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--brand);
  /* scrollbar-gutter: stable both-edges; */
  scrollbar-color: var(--highlight2) var(--bg);
  scrollbar-width: thin;
  text-decoration: none;
  list-style: none;
  /* z-index: 0; */
}

img, .image {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-size: cover;
  background-position-y: center;
  background-position-x: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.linked-text {
  color: var(--highlight2);
  text-decoration: underline;
  white-space: nowrap;
}

.linked-text:hover {
  color: var(--highlight1);
}

.popup {
  position: fixed;
  background-color: var(--highlight2);
  color: var(--bg2);
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  z-index: 1;
}

.hint {
  font-size: 0.8rem;
  color: color-mix(in srgb, currentColor 75%, transparent);
}

hr {
  margin-block: 5px;
  border: 1px solid gainsboro;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.5rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.5rem;
}

h6, p, br, input, button {
  font-size: 1rem;
}

button {
  background-color: var(--highlight2);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
  color: var(--bg2);
  border: none;
  text-align: center;
  padding: 1rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

button * {
  color: var(--bg2);
  text-align: center;
}

button:hover {
  background-color: color-mix(in srgb, currentColor 10%, var(--highlight1));
  cursor: pointer;
}

.onclick {
  cursor: pointer;
}

body {
  background-color: var(--bg);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  transform: scale(-1, -1);
  z-index: -100;
  height: 550px;
  top: calc(100% - 550px);
  overflow: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -100;
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-content: center;
  align-items: center;
  width: 100%;
  margin-top: 72px;
}

.title {
  margin-top: 2rem;
  margin-inline: 1rem;
  width: fit-content;
}

.title *:not(p) {
  font-size: calc(1vw + 2.2rem);
  font-family: var(--font-highlight);
}

.block-page {
  height: fit-content;
  width: 100%;
  gap: 1rem;
  margin-block: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.whole-block-page {
  min-height: calc(100vh - 72px);
  width: 100%;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.whole-block-page *:not(p, h6, span) {
  font-family: var(--font-highlight);
}

.whole-block-page > *:last-child {
  margin-bottom: 2rem;
}

@media (min-width: 844px) {

  .whole-block-page > h1 {
    font-size: 4rem;
  }

  .whole-block-page > h2 {
    font-size: 3.5rem;
  }

  .whole-block-page > h3 {
    font-size: 3rem;
  }

  .whole-block-page > h4 {
    font-size: 2.5rem;
  }

  .whole-block-page > h5 {
    font-size: 2rem;
  }

  .whole-block-page > h6 {
    font-size: 1.5rem;
  }

  .whole-block-page > *:last-child {
    margin-bottom: 72px;
  }
}

/* header.php */

header, .header-menu {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  padding: 0.5rem 2%;
  width: 100%;
  height: 72px;
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--bg);
  z-index: 1;
}

header > *, .header-menu > * {
  margin-inline: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  cursor: pointer;
}

.logo p {
  font-size: 1rem;
}

.logo img {
  height: 3rem;
  margin-right: 0.5rem;
  border-radius: 999px;
}

nav, .nav-menu {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  align-content: center;
  gap: 2rem;
  overflow: hidden;
}

nav > *, .nav-menu > * {
  font-size: 1rem;
  cursor: pointer;
  padding-block: 0.2rem;
  border-radius: 999px;
  color: color-mix(in srgb, currentColor 75%, transparent);
  position: relative;
  transition: color 0.3s ease;
}

nav > *::before, .nav-menu > *::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width 0.3s ease;
}

nav > *:hover::before, .nav-menu > *:hover::before{
  width: 100%;
}

nav > *:hover, .nav-menu > *:hover {
  color: var(--brand);
}

.action-btns, .action-btns-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 0;
}

.action-btns form, .action-btns-menu form {
  width: 0px;
  border: 0px;
  padding: 0rem;
  height: 2rem;
  will-change: transform;
  transition: all 0.2s ease;
  right: 100%;
  align-self: center;
  background-color: var(--bg2);
  margin-right: 0.5rem;
}

.action-btns form input, .action-btns-menu form input {
  width: 100%;
  height: 100%;
  border: 0px;
  font-size: 1.3rem;
  outline: none;
}

.action-btns form.open {
  width: 14.5vw;
  border: 1px solid gainsboro;
  padding-inline: 0.5rem;
}

.action-btns-menu form.open {
  width: 45vw;
  border: 1px solid gainsboro;
  padding-inline: 0.5rem;
}

.action-btns > *:not(form), .action-btns-menu > *:not(form) {
  margin-left: 15px;
  width: 1.4rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  will-change: transform;
  transition: transform 0.08s ease;
  transform-origin: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.action-btns > *:not(form):hover, .action-btns-menu > *:not(form):hover {
  cursor: pointer;
  transform: scale(1.05);
}

.action-btns > *:nth-child(2), .action-btns-menu > *:nth-child(2) {
  margin-left: 0;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -12px;
  background: var(--highlight3);
  color: var(--bg2);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
}

.burger-menu {
  display: none;
  width: fit-content;
  height: 32px;
  cursor: pointer;
}

.cover-menu {
  position: fixed;
  display: grid;
  grid-template-rows: 0.4fr min-content min-content 4fr ;
  gap: 2rem;
  top: 0;
  width: 100%;
  height: 0%;
  background-color: var(--bg);
  overflow-x: hidden;
  white-space: nowrap;
  transition: height 0.4s ease-in-out;
  transform-origin: top;
  will-change: transform;
  scrollbar-width: none;
  scroll-behavior: none;
  z-index: 100;
}

.cover-menu > div {
  scrollbar-width: none;
  scroll-behavior: none;
  position: static;
}

.cover-menu .nav-menu {
  flex-direction: column;
  gap: 1rem;
}

.cover-menu .header-menu {
  margin: 0;
}

.side-koszyk {
  position: fixed;
  right: 0%;
  height: 0%;
  width: 22%;
  min-width: 350px;
  margin: 1rem;
  padding-inline: 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background-color: var(--bg2);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  transform-origin: top;
  overflow-y: auto;
  will-change: transform;
  z-index: 1;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  text-align: start;
}

.side-koszyk > *:not(.product-title, button) {
  background-color: var(--bg);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.side-koszyk button {
  background-color: var(--highlight2);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--bg2);
  text-align: center;
  padding: 0.5rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.side-koszyk button:hover {
  background-color: color-mix(in srgb, currentColor 10%, var(--highlight1));
  cursor: pointer;
}

.side-koszyk-item {
  gap: 0.5rem;
  display: flex;
  flex-direction: row;
}

.side-koszyk-item > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 70%;
  height: 100%;
}

.side-koszyk-item > .image {
  border-radius: 0.5rem;
  width: 30%;
}

.side-koszyk-item > div > div:not(.product-price) {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  gap: 2rem;
}

@media (max-width: 956px) {

  header, .header-menu {
    padding: 0.5rem 1.5rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo p {
    display: none;
  }

  .logo img {
    height: 2.6rem;
  }

  nav *{
    font-size: 0.85rem;
  }

  .action-btns, .action-btns-menu {
    margin-left: initial;
  }

  .action-btns > *:not(form) {
    width: 1.1rem;
    margin-left: 10px;
  }
}

@media (max-width: 674px) {

  nav, .action-btns {
    display: none;
  }

  .burger-menu {
    display: block;
  }
}

/* footer.php */

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  color: #333;
  font-size: 0.9rem;
  gap: 1rem;
  padding: 2rem 6rem;
  width: 100%;
  bottom: 0%;
  background-color: var(--bg);
}

footer > * {
  white-space: nowrap;
}

footer > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer hr {
  border: 1px solid gainsboro;
  border-radius: 20px;
  height: 150px;
}

footer > div > * {
  margin-block: 5px;
}

footer > div > h6:hover {
  color: var(--highlight2);
}

.newsletter > form {
  display: flex;
  flex-direction: column;
}

.newsletter > form input {
  padding: 10px;
  border: 1px solid gainsboro;
  font-size: 14px;
  margin-block: 5px;
}

.newsletter > form > .subscribe input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--highlight3);
}

.newsletter > form > div {
  width: max-content;
  margin-block: 5px;
  white-space: normal;
}

.subscribe button {
  padding: 10px 15px;
  font-weight: bold;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-align: left;
  max-width: 280px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media (max-width: 1356px) {
  
  footer {
    justify-content: space-evenly;
    padding-inline: 1rem;
  }

  footer > div:not(.newsletter, .kontakt), .vvv {
    display: none;
  }
}

@media (max-width: 723px) {
  
  footer {
    flex-direction: column;
  }

  footer > div:not(.newsletter, .kontakt), .vvv {
    display: flex;
  }

  footer hr {
    height: 0;
    width: 60%;
  }
}

/* @media (max-width: 723px) {

  footer > div:not(.kontakt), footer hr {
    display: none;
  }
} */

/* index.php */

/* .main-title {
  font-size: 2rem;
  height: calc(100vh - 72px - 16rem);
  margin-top: 16rem;
}

.main-title * {
  font-family: var(--font-highlight);
  font-weight: bold;
}

@media (min-width: 844px) {
  .main-title h1 {
    font-size: 4rem;
  }

  .main-title p {
    font-size: 2.5rem;
  }
} */

/* ROŚLINY/NASIONA/NAWOZY/DOSTAWA/PRODUKT everythinggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg */

.product-price {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  width: 100%;
}

.product-price > *:not(.new) {
  text-decoration: line-through;
}

.product-price .new {
  color: #59a100;
  font-weight: bold;
}

/* rosliny.php */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208.886px, 1fr));
  grid-template-rows: repeat(auto-fill, minmax(1fr, 330px));
  gap: 2.2rem;
  padding: 3rem;
  width: 100%;
  min-height: 90vh;
}

.product-card {
  background: var(--bg2);
  border-radius: 0.5rem;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  padding: 1rem;
  min-width: 208.886px;
  height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: start;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card > *:not(h6, p) {
  white-space: nowrap;
}

.product-card .image{
  height: 10rem;
  will-change: transform;
}

.product-card h6 {
  color: #333;
}

.product-card p {
  font-size: 0.9rem;
  color: #666;
}

.product-card > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.product-icons {
  display: flex;
  gap: 10px;
  font-size: 1rem;
  color: #aaa;
}

.product-icons button:not(.product-horizontal, .product-icons) {
  padding: 0;
  background-color: inherit;
  box-shadow: none;
  margin-inline: 5px;
  transition: all 0.2s ease;
}

.product-icons button:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.product-icons img {
  width: 1.3rem;
}

@media (max-width: 1037px) {
  .qqq {
    display: none;
  }
}

/* produkt.php */

.product-details {
  width: 70%;
  height: auto;
  display: grid;
  grid-template-columns: calc(60% - 0.9rem) calc(40% - 0.6rem);
  padding-top: 1rem;
  gap: 1.5rem;
  color: black;
  white-space: nowrap;
}

.product-description-description, .product-recomendation {
  white-space: normal;
}

.product-details hr {
  width: 100%;
}

.product-details > div {
  display: grid;
  grid-template-columns: 100%;
}

.product-description {
  grid-template-rows: auto auto auto;
}

.product-functions {
  grid-template-rows: auto auto;
  height: fit-content;
}

.product-details > div > * {
  background-color: var(--bg);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  padding: 2rem;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  text-align: start;
  overflow: hidden;
}

.product-details > * > * > *{
  width: 100%;
}

.product-title {
  text-align: start;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  align-items: center;
}

.similar-offers {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 1rem;
  padding: 1rem;
  margin: -1rem;
  overflow-x: auto;
}

.similar-offers > * {
  height: 100%;
  width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-content: start;
  align-items: center;
}

.product-recomendation {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  text-align: start;
}

.product-recomendation > *:not(h6, p) {
  white-space: nowrap;
}

.product-recomendation > *:last-child {
  width: 100%;
  justify-content: space-between;
}

.product-recomendation .image{
  height: 10rem;
  width: 100%;
}

.product-recomendation h6 {
  color: #333;
}

.product-recomendation p {
  font-size: 0.9rem;
  color: #666;
}

.product-recomendation div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 0.9rem;
}

.product-description-description * {
  list-style: inside disc;
}

.product-price *:not(.similar-offers *, .side-koszyk-item *, .product-card *) {
  font-size: 1.5rem;
}

.product-quantity {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  margin-block: 0.5rem;
  width: fit-content;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #dcdcdc;
}

.product-quantity > input.ilosc-do-koszyka {
  width: 60px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  border: none;
  outline: none;
  background-color: var(--bg2);
}

.product-quantity .image {
  height: 35px;
  width: 35px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
  transition: background-color 0.3s;
  background-color: var(--highlight5);
}

.product-quantity .image:hover {
  background-color: var(--highlight4);
}

.product-quantity .image:first-child {
  border-right: 1px solid #dcdcdc;
}

.product-quantity .image:last-child {
  border-left: 1px solid #dcdcdc;
}

.product-delivery {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-delivery > div {
  display: flex;
  flex-direction: row;
}

.product-delivery > div > div {
  display: flex;
  flex-direction: column;
}

.product-delivery img {
  margin-inline: 5px;
}

.product-description > div:nth-child(4), .product-description > div:nth-child(5) {
  display: none;
}

@media (max-width: 1267px) {
  .product-details {
    width: 90%;
  }
}

@media (max-width: 985px) {
  .product-details {
    grid-template-columns: 1fr;
    width: 80%;
  }

  .product-details > div > * {
    padding: 1.5rem;
  }

  .product-functions > div:nth-child(1), .product-functions > div:nth-child(2) {
    display: none;
  }

  .product-description > div:nth-child(4), .product-description > div:nth-child(5) {
    display: flex;
  }
}

/* search.php */

.search {
  width: 60%;
}

.search input {
  font-size: calc(2.5vw + 2.2rem);
  padding: 10px;
  border: 1px solid gainsboro;
  border-radius: 4px;
}

.search input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--highlight3);
}

.wyswietlanie-search {
  width: 80%;
  height: auto;
  display: grid;
  grid-template-columns: calc(25% - 0.375rem) calc(75% - 1.125rem);
  grid-template-rows: auto;
  padding-top: 1rem;
  gap: 1.5rem;
}

.wyswietlanie-search > * {
  width: 100%;
  background-color: var(--bg2);
  border-radius: 4px;
  padding: 2rem;
  text-align: start;
  overflow: hidden;
}

.wyswietlanie-search > * > * {
  overflow-x: auto;
  scrollbar-width: none;
}

.kategorie {
  position: sticky;
  top: calc(72px + 1rem);
  height: fit-content;
  white-space: nowrap;
  min-width: min-content;
  max-width: 550px;
}

.kategorie table {
  font-size: 1.1rem;
}

.kategorie td, .kategorie th {
  padding-block: 0.25rem;
}

.kategorie input[type='number'] {
  width: 80%;
}

.product-search {
  gap: 1rem;
  display: flex;
  flex-direction: column;
  min-width: min-content;
}

.product-search > *:first-child {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.product-search > *:first-child button {
  margin: 0;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}

.product-search > *:first-child img {
  height: 1.8rem;
  width: 1.8rem;
}

.product-horizontal {
  border-radius: 0.5rem;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease; 
  gap: 1rem;
  padding: 1rem;
  height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  will-change: transform;
}

.product-horizontal:hover {
  transform: translateY(-3px);
}

.product-horizontal > div {
  display: flex;
  flex-direction: row;
  font-size: 0.9rem;
  gap: 1rem;
}

.product-horizontal > *:last-child {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.product-horizontal > *:last-child > *:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.product-horizontal .image{
  height: 10rem;
  width: 10rem;
  will-change: transform;
}

.product-horizontal h6 {
  color: #333;
}

.product-horizontal p {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 1325px) {
  .wyswietlanie-search {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .kategorie {
    width: 60%;
    position: static;
    justify-self: center;
    place-self: center;
    align-self: center;
  }
}

@media (max-width: 800px) {
  .search {
    width: 90%;
  }

  .wyswietlanie-search {
    width: 85%;
  }

  .kategorie {
    width: 100%;
  }

  .product-search > *:first-child {
    display: none;
  }
}

/* koszyk.php */

.koszyk {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: calc(70% - 1.05rem) calc(30% - 0.45rem);
  width: 80%;
  margin-bottom: 0 !important;
}

.koszyk > * {
  background-color: var(--bg2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 70vh;
  border-radius: 4px;
}

.koszyk-product {
  overflow-y: auto;
  gap: 1rem;
  text-align: start;
}

.koszyk-proceed {
  height: fit-content;
  width: fit-content;
  gap: 0.5rem;
  white-space: nowrap;
}

.koszyk-proceed > *:not(button) {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.koszyk-proceed > *:first-child * {
  font-size: 1.5rem;
}

@media (max-width: 1444px) {
  .koszyk {
    grid-template-columns: 1fr;
    margin-block: 2rem !important;
  }

  .koszyk-proceed {
    grid-row: 1;
  }

  .koszyk-product {
    grid-row: 2;
    height: max-content;
  }
}

/* login.php, register.php */

.login {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  color: var(--brand);
  white-space: nowrap;
  text-align: center;
}

.login > *:not(h1) {
  width: 60vw;
  max-width: 500px;
  min-width: 320px;
}

.login input {
  padding: 12px;
  border: 1px solid gainsboro;
  border-radius: 4px;
  outline: none;
}

.login button {
  padding: 4px;
  border: 1px solid gainsboro;
  border-radius: 4px;
  cursor: pointer;
}

.login .change-account-input {
  position: absolute;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: calc(1vw + 0.3rem);
}

.or_line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.or_element {
  flex: 1;
  height: 1px;
  background: var(--brand);
}

.or_line p {
  font-size: 1.2rem;
}

.login_with_google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  width: 100%;
  border: 1px solid gainsboro;
  background-color: var(--bg2);
  border-radius: 4px;
  color: #333333;
  transition: background 0.3s;
}

.login_with_google:hover {
  background-color: color-mix(in srgb, currentColor 10%, var(--bg2));
  cursor: pointer;
}

/* user.php, daneKonta.php (moje konto) */

.tint {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  z-index: 100;
  visibility: hidden;
}

.account_data {
  background-color: var(--bg2);
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  margin: 2rem;
  display: flex;
  flex-direction: column;
}

.account_data > div {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  border-bottom: 1px solid gainsboro;
  align-items: center;
  padding-block: 1rem;
  gap: 1.40677rem;
}

.account_data > div:last-child {
  border-bottom: none;
}

.account_data button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.account_data .button_normal {
  background-color: var(--highlight3);
}

.account_data .button_normal:hover {
  background-color: var(--highlight2);
}

.account_data .button_cancel {
  background-color: gainsboro;
}

.account_data .button_cancel:hover {
  background-color: color-mix(in srgb, currentColor 70%, var(--brand));
}

.account_data input {
  padding: 0.8rem;
  border: 1px solid gainsboro;
  border-radius: 4px;
}

#account_change_name, #account_change_email {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg2);
  padding: 2rem;
  border-radius: 8px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 26px rgba(0,0,0,0.1);
}

#account_change_name div, #account_change_email div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#account_change_name div div {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  align-content: center;
  text-align: start;
  gap: 0.5rem;
}

#account_change_name p, #account_change_email p, .account_data label {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .account_data > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* admin.php i reszta */

.info-admin {
  display: grid;
  grid-template-columns: auto auto auto auto;
  align-items: center;
  gap: 1rem;
  margin-inline: 2rem;
}

.info-admin div {
  background-color: var(--bg2);
  padding: 2rem;
  border-radius: 0.5rem;
  gap: 0.25rem;
  min-height: fit-content;
  max-height: 195.2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.info-admin h5 {
  width: 15vw;
  min-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-admin span {
  white-space: nowrap;
}

@media (max-width: 1105px) {
  .info-admin {
    grid-template-columns: auto auto;
  }
}

@media (max-width: 844px) {
  .info-admin {
    grid-template-columns: auto;
    margin: 0;
  }

  .info-admin div {
    width: 65vw;
    padding-block: 1.5rem;
  }
}

@media (max-width: 544px) {
  .info-admin div {
    width: 85vw;
  }
}

.admin_logs {
  background-color: var(--bg2);
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: calc(100vw - 2rem);
  margin: 0 !important;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-x: hidden;
}

.admin_logs table {
  border-collapse: collapse;
}

.admin_logs table th, .admin_logs table td {
  border: 2px solid var(--highlight2);
  padding: 4px 8px;
}

.table-line-user:hover {
  cursor: pointer;
  background-color: var(--highlight5);
  color: wheat;
}

.table-line-user * {
  max-width: 5vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-line-user *:hover {
  color: black;
}

.admin_logs a {
  display: inline-block;
  margin-inline: 2px;
  font-size: 1.2rem;
  font-family: var(--font-highlight);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#admin_page_1, #admin_page_2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg2);
  padding: 2rem;
  border-radius: 8px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 26px rgba(0,0,0,0.1);
}

/* checkout.php i inne */

.summary-container {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    gap: 40px;
}

.summary-box {
    flex: 1;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.summary-title {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.summary-item {
    margin-bottom: 10px;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 50rem;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: sans-serif;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-line {
    position: absolute;
    top: 1.2rem;
    left: 0;
    right: 0;
    height: 0.125rem;
    background-color: #ccc;
    z-index: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
}

.step.completed .step-circle {
    background-color: #28a745;
}

.step.active .step-circle {
    background-color: #007bff;
}

.step-label {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}