/* ========================= */
/* RESET */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;

  font-size: 15px;

  background: #ffffff;

  color: #142b5f;
}

/* ========================= */
/* HEADER */
/* ========================= */

.header {
  width: 100%;

  height: 92px;

  display: flex;

  align-items: center;

  padding: 0 6%;

  background: #ffffff;

  position: sticky;

  top: 0;

  z-index: 999;

  border-bottom: 1px solid #e8edf5;

  transition: 0.3s ease;
}

/* ========================= */
/* LOGO */
/* ========================= */

.headerLogo {
  display: flex;

  align-items: center;

  flex-shrink: 0;
}

.headerLogo a {
  display: flex;

  align-items: center;

  text-decoration: none;
}

.headerLogo img {
  width: 145px;

  height: auto;

  display: block;

  object-fit: contain;
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.headerNavbar {
  display: flex;

  align-items: center;

  gap: 27px;

  margin-left: auto;
}

.headerNavbar > a {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 8px 2px;

  color: #142b5f;

  font-size: 15px;

  font-weight: 500;

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

/* ========================= */
/* NAVBAR HOVER */
/* ========================= */

.headerNavbar > a:not(.iconBtn)::after {
  content: "";

  position: absolute;

  left: 50%;

  bottom: -8px;

  width: 0;

  height: 3px;

  border-radius: 10px;

  background: #20c4e8;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.headerNavbar > a:not(.iconBtn):hover {
  color: #2864e8;
}

.headerNavbar > a:not(.iconBtn):hover::after {
  width: 22px;
}

/* ========================= */
/* ICON BUTTONS */
/* ========================= */

.iconBtn {
  width: 42px;

  height: 42px;

  display: flex !important;

  align-items: center;

  justify-content: center;

  padding: 0 !important;

  border-radius: 12px;

  background: transparent;

  color: #142b5f;

  text-decoration: none;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* XƏTTİ SÖNDÜR */

.iconBtn::after {
  display: none !important;
}

/* SVG */

.iconBtn svg {
  width: 22px;

  height: 22px;

  display: block;

  transition: 0.25s ease;
}

/* ÜMUMİ HOVER */

.iconBtn:hover {
  background: #f1f6ff;

  color: #2864e8;

  transform: translateY(-2px);
}

/* ========================= */
/* BASKET */
/* ========================= */

.basketBtn:hover {
  color: #2864e8;
}

/* ========================= */
/* FAVORITE */
/* ========================= */

.favoriteBtn:hover {
  color: #f97316;
}

.favoriteBtn:hover svg {
  transform: scale(1.08);
}

/* ========================= */
/* ACCOUNT */
/* ========================= */

.accountBtn:hover {
  color: #06b6d4;
}

/* ========================= */
/* SCROLL HEADER */
/* ========================= */

.header.scrolled {
  box-shadow: 0 8px 25px rgba(20, 43, 95, 0.08);
}

/* ========================= */
/* SIDE PANEL */
/* ========================= */

.side-panel {
  position: fixed;

  top: 0;

  right: -350px;

  width: 350px;

  height: 100%;

  background: #ffffff;

  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);

  z-index: 9999;

  transition: 0.3s ease;

  overflow-y: auto;
}

.side-panel.activebasket {
  right: 0;
}

/* ========================= */
/* PANEL CONTENT */
/* ========================= */

.panel-content {
  position: relative;

  padding: 25px;
}

.side-panel h2 {
  text-align: center;

  color: #142b5f;

  margin-bottom: 20px;
}

/* ========================= */
/* CLOSE */
/* ========================= */

.close-btn {
  position: absolute;

  top: 15px;

  right: 15px;

  width: 32px;

  height: 32px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: none;

  border-radius: 50%;

  background: #2864e8;

  color: #ffffff;

  font-size: 20px;

  cursor: pointer;

  transition: 0.2s ease;
}

.close-btn:hover {
  background: #142b5f;

  transform: rotate(90deg);
}

/* ========================= */
/* BASKET ITEMS */
/* ========================= */

#basketItems {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.basket-item {
  padding: 14px;

  background: #f5f8fd;

  border: 1px solid #e4ebf5;

  border-radius: 12px;
}

.basket-item strong {
  display: block;

  color: #142b5f;

  margin-bottom: 8px;
}

.basket-item p {
  color: #64748b;

  font-size: 13px;

  margin-bottom: 8px;
}

.basket-item button {
  border: none;

  cursor: pointer;

  border-radius: 6px;
}

.increase-item,
.decrease-item {
  width: 25px;

  height: 25px;

  background: #e8f1ff;

  color: #2563eb;

  font-weight: bold;
}

.remove-item {
  padding: 5px 10px;

  background: #fee2e2;

  color: #dc2626;
}

/* ========================= */
/* EMPTY BASKET */
/* ========================= */

#emptyBasket {
  text-align: center;

  color: #94a3b8;

  font-size: 14px;

  padding: 30px 10px;
}

/* ========================= */
/* TOTAL */
/* ========================= */

#totalPrice {
  margin-top: 20px;

  padding-top: 18px;

  border-top: 1px solid #e5eaf2;

  color: #142b5f;

  font-size: 17px;

  font-weight: 700;

  text-align: right;
}

/* ========================= */
/* ANIMATION */
/* ========================= */

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: translateY(10px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1200px) {
  .header {
    padding: 0 4%;
  }

  .headerNavbar {
    gap: 20px;
  }
}

@media (max-width: 950px) {
  .header {
    padding: 0 25px;
  }

  .headerLogo img {
    width: 125px;
  }

  .headerNavbar {
    gap: 15px;
  }

  .headerNavbar > a {
    font-size: 14px;
  }
}

@media (max-width: 750px) {
  .header {
    height: auto;

    min-height: 80px;

    flex-wrap: wrap;

    padding: 15px 20px;

    gap: 15px;
  }

  .headerLogo {
    width: 100%;

    justify-content: center;
  }

  .headerNavbar {
    width: 100%;

    justify-content: center;

    flex-wrap: wrap;

    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .headerNavbar {
    gap: 10px;
  }

  .headerNavbar > a {
    font-size: 13px;
  }

  .iconBtn {
    width: 38px;

    height: 38px;
  }

  .iconBtn svg {
    width: 20px;

    height: 20px;
  }

  .side-panel {
    width: 100%;

    right: -100%;
  }
}
/* ========================================= */
/* FAVORITE PANEL */
/* ========================================= */

.favorite-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: 0.3s ease;
  overflow-y: auto;
}

.favorite-panel.active {
  right: 0;
}

.favorite-panel-content {
  position: relative;
  padding: 30px 22px;
}

.favorite-panel h2 {
  text-align: center;
  color: #142b5f;
  margin: 15px 0 30px;
}

.favorite-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #2864e8;
  color: #ffffff;
  font-size: 21px;
  cursor: pointer;
  transition: 0.2s ease;
}

.favorite-close:hover {
  background: #142b5f;
  transform: rotate(90deg);
}

/* FAVORITE ITEMS */

#favoriteItems {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f5f8fd;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
}

.favorite-product-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.favorite-product-link img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 9px;
  padding: 5px;
}

.favorite-product-info {
  min-width: 0;
}

.favorite-product-info h3 {
  color: #142b5f;
  font-size: 13px;
  margin-bottom: 8px;
}

.favorite-product-info strong {
  color: #2563eb;
  font-size: 13px;
}

.remove-favorite {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 19px;
  cursor: pointer;
}

.remove-favorite:hover {
  background: #fecaca;
}

#emptyFavorites {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 35px 10px;
}

@media (max-width: 500px) {
  .favorite-panel {
    width: 100%;
    right: -100%;
  }
}

/* ========================================= */
/* FOOTER */
/* ========================================= */

.site-footer {
  width: 100%;
  background: #071e49;
  color: #ffffff;
  padding: 65px 7% 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 55px;
  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.footer-column h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 165px;
  height: auto;
  object-fit: contain;

  /* Müvəqqəti olaraq loqoya ağ fon */
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
}

.footer-about p {
  max-width: 300px;
  color: #b8c7df;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 23px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column ul a {
  color: #b8c7df;
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s;
}

.footer-column ul a:hover {
  color: #20c4e8;
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-socials a {
  color: #d8e7f7;
  font-size: 13px;
  text-decoration: none;
  transition: 0.25s;
}

.footer-socials a:hover {
  color: #20c4e8;
}

.footer-contact ul li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact ul li span {
  color: #8299bb;
  font-size: 12px;
}

.footer-bottom {
  max-width: 1500px;
  margin: 0 auto;
  min-height: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p,
.footer-bottom span {
  color: #9fb1cc;
  font-size: 12px;
}

/* ========================================= */
/* FOOTER RESPONSIVE */
/* ========================================= */

@media (max-width: 1000px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 45px 7% 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 35px;
  }

  .footer-logo img {
    width: 145px;
  }

  .footer-bottom {
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
/* ================================= */
/* BASKET PAYMENT */
/* ================================= */

.basket-payment {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2eaf5;
}

.basket-payment-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 14px 20px;

  background: linear-gradient(100deg, #2563eb, #06b6d4);
  color: #ffffff;

  border-radius: 10px;
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  transition: 0.25s;
}

.basket-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.basket-contact-text {
  margin-top: 17px;

  color: #71829c;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.basket-contact-text a {
  display: inline-block;

  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;

  margin-top: 4px;
}

.basket-contact-text a:hover {
  color: #06b6d4;
}
.navbar-account-avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: 0.25s;
}

.navbar-account-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* HAMBURGER MENYU — TABLET VƏ TELEFON */

.menu-toggle {
  display: none;
}

@media (max-width: 950px) {
  .header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 76px;
    height: auto;
    padding: 12px 22px;
    gap: 12px;
  }

  .headerLogo {
    width: auto;
    margin: 0;
  }

  .headerLogo img {
    max-width: 135px;
    height: auto;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    padding: 9px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid #e5eaf0;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: #09234a;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .menu-toggle.menu-active span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.menu-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.menu-active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .headerNavbar {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    padding: 16px 4px 8px;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border-top: 1px solid #edf0f4;
  }

  .headerNavbar.menu-open {
    display: flex;
  }

  .headerNavbar > a:not(.iconBtn) {
    display: block;
    width: 100%;
    padding: 12px 8px;
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
  }

  .headerNavbar > .iconBtn {
    display: inline-flex;
    align-self: flex-start;
    margin: 12px 12px 4px 0;
  }
}

@media (max-width: 380px) {
  .header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .headerLogo img {
    max-width: 120px;
  }
}
