/* ========================================= */
/* ===== გლობალური და ძირითადი სტილები ===== */
/* ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0d0d0d;
  color: #fff;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

main {
    padding-top: 90px; /* Header height */
}


/* ========================================= */
/* =========== HEADER & NAVIGATION ========= */
/* ========================================= */

header {
  background: #0d0d0d;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-bottom: 1px solid #d4af37;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 40px;
  color: #d4af37;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: rgb(0, 208, 255);
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #d4af37;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(90deg, #1a1a1a, #2c2c2c);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1;
  top: 100%;
  left: 0;
  border-radius: 5px;
  border: 1px solid #d4af37;
  padding: 10px 0;
}

.dropdown-content a {
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #d4af37;
  color: #1a1a1a;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons .luxury-btn {
    padding: 9px 10px;
    font-size: 10px;
    font-weight: normal;
}

.auth-buttons .luxury-btn.register-btn {
    background-color: transparent;
    color: #d4af37;
}

.auth-buttons .luxury-btn.register-btn:hover {
    background-color: #d4af37;
    color: #0d0d0d;
}

.desktop-social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #d4af37;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #d4af37;
  transition: all 0.3s ease;
}

/* დამალე მობილურის ღილაკების კონტეინერი დესკტოპზე */
.mobile-auth-container {
    display: none;
}


/* ========================================= */
/* ================= FOOTER ================ */
/* ========================================= */

footer {
  text-align: center;
  padding: 30px;
  background: #0d0d0d;
  color: #d4af37;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  border-top: 1px solid #d4af37;
}

footer .social-icons {
  justify-content: center;
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

/* ========================================= */
/* =========== ზოგადი კლასები ============= */
/* ========================================= */

.luxury-btn {
    display: inline-block;
    padding: 9px 10px;
    background: #d4af37;
    color: #0d0d0d;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    border: 1px solid #d4af37;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.luxury-btn:hover {
    background-color: #b8972e;
    transform: translateY(-2px);
}

/* ========================================= */
/* =========== IMAGE MODAL STYLES ========== */
/* ========================================= */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    border: 2px solid #d4af37;
}

.image-modal-details {
    margin-top: 15px;
    color: #fff;
}

.image-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #d4af37;
}

.image-modal-price {
    font-size: 18px;
    margin-top: 5px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #d4af37;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========================================= */
/* ======== RESPONSIVE (TABLET & MOBILE) ======== */
/* ========================================= */

@media (max-width: 992px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 280px;
    background: #111;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: left 0.4s ease-in-out;
    gap: 0;
  }

  .nav-links.active {
    left: 0;
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links li {
    margin: 20px 0;
    width: 100%;
    text-align: center;
  }
  
  .dropdown-content {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 10px 0 0 0;
  }
  
  .logo-text {
      font-size: 32px;
  }

  /* მობილურის ღილაკების ჩვენება და გასტილვა */
  .mobile-auth-container {
      display: flex;
      gap: 10px;
      width: 90%;
      justify-content: center;
      margin-bottom: 40px;
      order: -1; 
  }
  
  .mobile-auth-btn {
      display: block;
      flex: 1;
      padding: 6px 8px;
      font-size: 13px; 
      border-radius: 5px;
      font-weight: bold;
      text-align: center;
      border: 1px solid #d4af37;
      transition: background-color 0.3s, color 0.3s;
      text-decoration: none; /* დავამატეთ, რომ ლინკს ხაზი არ ჰქონდეს */
  }

  .mobile-auth-btn:first-child {
      color: #d4af37;
      background-color: transparent;
  }

  .mobile-auth-btn:last-child {
      color: #0d0d0d;
      background-color: #d4af37;
  }

  .mobile-auth-btn:hover {
      background-color: #b8972e;
      color: #0d0d0d !important;
  }
}

@media (max-width: 768px) {
    main {
        padding-top: 80px;
    }
    
    h2, .offers-title, .underlined-title {
        font-size: 32px !important;
    }

    .logo-text {
        font-size: 28px;
    }
}

/* Cart icon styling */
.cart-icon a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;            /* მოაშორე ხაზი */
  color: #d4af37;                   /* ბრენდის ოქროსფერი */
}

.cart-icon a:hover{
  opacity: .85;
}

.cart-icon i{
  font-size: 22px;
  line-height: 1;
  color: #d4af37;                   /* ხატულაც ოქროსფერი */
}

/* ლამაზი ბეჯი რაოდენობისთვის */
#cart-count{
  display: inline-block;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #d4af37;             /* ოქროსფერი ფონზე */
  color: #111;                      /* მუქი ტექსტი */
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;            /* ხაზი არ იყოს */
  transform: translateY(-2px);      /* ოდნავ ასწია ვიზუალისთვის */
}
