/**
 * Layout Styles
 */

/*========= Accessibility Styles =========*/
.marquee {
  background-color: var(--color-text-primary);
  color: rgb(255, 255, 255);
  padding: 11px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}


/*========= Header =========*/

.main-header {
  background-color: var(--color-background);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 20px;
  position: relative;
}
.container::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  left: 50%;
  bottom: 0px;
  background-color: var(--color-primary);
  animation: fill 2s ease-in-out forwards;
}
@keyframes fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
    left: 0;
  }
}
/*========= Logo =========*/
.logo {
  padding: auto var(--space-xl);
  display: flex;
  gap: 10px;
  align-items: center;
}
.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50px;
}
.logo-link {
  text-decoration: none;
  color: inherit;
}
.logo-link:hover {
  text-decoration: none;
}
.logo h1 {
  font-family: var(--font-heading-en);
  font-size: var(--fs-h1);
  color: var(--color-primary);
  margin: 0;
  cursor: pointer;
}

/*========= Search Component =========*/
.search-container {
  width: 45%;
  position: relative;
  margin: 0 15px;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  background-color: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-background);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.15);
  padding-right: 45px;
}

.search-input::placeholder {
  color: #6b7280;
  opacity: 0.8;
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-btn:hover {
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.1);
}

.search-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.search-btn-mobile {
  display: none;
}
/* Responsive search */
@media (max-width: 768px) {
  .search-container {
    display: none;
  }
  .search-btn-mobile {
    font-size: 20px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    transition: all 0.2s ease;
  }
  .search-btn-mobile:hover {
    color: var(--color-primary);
    background-color: rgba(37, 99, 235, 0.1);
  }
}

/*========= Header Actions =========*/

.header-actions {
  gap: 10px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
/*========= Dark Mode Button =========*/
.dark-mode-btn {
  padding: 12px 14px;
  border-radius: 50px;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: all 0.3s ease-in-out;
}
.dark-mode-btn:hover {
  transform: scale(1.05);
  background-color: #2563eb66;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.search-btn:hover,
.search-btn:focus,
.search-btn:active,
.cart-btn:hover,
.cart-btn:focus,
.cart-btn:active,
.user-btn:hover,
.user-btn:focus,
.user-btn:active {
  color: var(--color-primary);
  transition: var(--transition);
}

/*========= Cart Link Container =========*/

.cart-link-container:hover #cart-icon {
  transform: rotate(10deg);
}
.cart-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--fs-body);
  color: var(--color-text-primary);
}
#cart-icon,
#user-icon {
  font-size: 20px;
  color: var(--color-text-primary);
  transition: all 0.3s ease-in-out;
}
.cart-text {
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  font-family: var(--font-primary-en);
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cart-count {
  background-color: var(--color-primary);
  color: white;
  padding: 1px 10px;
  border-radius: 50px;
  font-size: var(--fs-body);
  font-weight: 600;
}

/*========= Cart Link Container & User Link Container =========*/
.cart-link-container,
.user-link-container {
  text-decoration: none;
  color: var(--color-text-primary);
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  border: 1px solid var(--color-text-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background-color: #2563eb24;
  border: none;
  transition: all 0.3s ease-in-out;
  padding: 8px 7px;
}
.cart-link-container:hover,
.user-link-container:hover {
  transform: scale(1.05);
  background-color: #2563eb66;
}
/*========= User Link Container =========*/

.user-link-container:hover #cart-icon {
  transform: rotate(10deg);
}
.user-text {
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  font-family: var(--font-primary-en);
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
}
.user-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--fs-body);
  color: var(--color-text-primary);
}
@media (max-width: 970px) {
  .user-link-container {
    display: none;
  }
  .cart-text {
    display: none;
  }
  .user-text {
    display: none;
  }
  .dark-mode-btn {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
  .dark-mode-btn:hover {
    padding: 12px 14px;
  }
}
/*========= Hero Section =========*/
.hero {
  background-color: var(--color-background);
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide 1 - Latest Devices */
.slide-1 {
  background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.85),
      rgba(15, 23, 42, 0.9)
    ),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Slide 2 - Special Offers */
.slide-2 {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.8),
      rgba(30, 41, 59, 0.9)
    ),
    url("https://images.unsplash.com/photo-1517336714731-489689fd1ca8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Slide 3 - Featured Collection */
.slide-3 {
  background: url("https://images.unsplash.com/photo-1530893609608-32a9af3aa95c?auto=format&fit=crop&q=100&w=1200");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.slide-3 .slide-content {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15),
    rgba(15, 23, 42, 0.1)
  );
  border: 2px solid rgba(37, 99, 235, 0.2);
}

.slide-3 .slide-content h2 {
  color: var(--color-secondary);
  text-shadow: 2px 2px 4px rgba(15, 23, 42, 0.1);
}

.slide-3 .slide-content p {
  color: var(--color-secondary);
  text-shadow: 1px 1px 2px rgba(15, 23, 42, 0.1);
}

.slide-content {
  position: relative;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 60px;
  text-align: right;
  animation: slideInRight 1s ease-out;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 40px 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-content h2 {
  font-family: var(--font-heading-en);
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.slide-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.slide-content p {
  font-family: var(--font-primary-en);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 35px 0;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 500px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), #d4b85a);
  color: var(--color-secondary);
  text-decoration: none;
  font-family: var(--font-primary-en);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(193, 164, 95, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(193, 164, 95, 0.6);
  background: linear-gradient(135deg, #d4b85a, var(--color-primary));
}

.cta-button:active {
  transform: translateY(-1px);
}
/*========= Slider Navigation =========*/
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
  z-index: 200;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: rgba(193, 164, 95, 0.8);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(193, 164, 95, 0.4);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}
/*========= Slider Navigation =========*/
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
  z-index: 200;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: rgba(193, 164, 95, 0.8);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(193, 164, 95, 0.4);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 200;
}

.indicator {
  width: 75px;
  height: 1px;

  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator.active {
  background: var(--color-primary);
  border-color: white;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(193, 164, 95, 0.7);
  transform: scale(1.1);
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50px;
  background: #6f53c93f;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--color-text-primary);
  position: relative;
  transition: all 0.5s ease;
}
.mobile-menu-btn::after {
   content: "";
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  transition: all 0.5s ease;
}

.mobile-menu-btn:hover::after {
  display: inline;
}
#mobile-menu-btn-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 20px;
  z-index: 1000000000;
  width: 40px;
  height: 40px; 
  border-radius: 50px;
  background-color: #a4afc949;
  transition: all 0.5 ease;
}

#mobile-menu-btn-2::after {
  content: "";
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}
#mobile-menu-btn-2:hover::after {
  display: inline;
}

.mobile-menu-content {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-background);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: 1.5rem 0;
}

.js-menu-content {
  display: flex;
  justify-content: flex-start;
  background-color: var(--color-background);
  transition: all 0.3s ease-in-out;
  animation: rightToLeft 0.3s ease-in-out;
  height: 100%;
}

.mobile-menu-list {
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 50px !important;
}

.mobile-menu-item {
  gap: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  font-family: var(--font-primary-en);
  font-size: var(--fs-body);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: all 0.3s ease-in-out;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu-item:hover {
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-item:hover::before {
  opacity: 1;
}

.mobile-menu-link {
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all 0.3s ease-in-out;
  width: 100%;
  display: flex;
  align-items: center;
}

.mobile-menu-link:hover .mobile-menu-item {
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.1);
}

/*Back to top button*/
.back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  animation: fade-in 0.5s ease-in-out;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--color-success);
  color: var(--color-primary);
}
.back-to-top:active {
  transform: scale(0.95);
}
.back-to-top:focus {
  transform: scale(1);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
