/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Top Bar {ANNOUNCEMENT} */

.top-bar {
  background-color: #000000;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%; /* Start outside right edge */
  animation: scroll-left 15s linear infinite;
}

.marquee span {
  font-size: 0.9rem;
  color: #ffffff;
  display: inline-block;
  padding-right: 100%; /* Ensures it moves fully out on left */
}

.marquee-wrapper:hover .marquee {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* <-----------------------------------------Navbar-----------------------------------------------> */
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background:transparent;
  
  position: relative;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #fdfcfc;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

a[title="Cart"] {
  position: relative;
  display: inline-block;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 50%;
}

/* Hamburger */
.hamburger  {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #0c0c0c;
  border-radius: 2px;
}

/* Nav Links */
.nav-collapse {
  display: flex;
  justify-content: center;
  flex: 1;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}
.nav-links li a {
  text-decoration: none;
  color: #0d0d0d;
  font-weight: 700;
  transition: all 0.3s ease;
}
.nav-links li a:hover {
  color: #f8f1f1;
  border-bottom: 2px solid #0c0d0d;
}

/* Dropdowns */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 160px;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 10px;
  color: #333;
}
.dropdown-menu li a:hover {
  background: #f1f1f1;
}

/* ============================= */
/* Mobile Styling */
/* ============================= */
@media (max-width: 992px) {
  .navbar {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .hamburger {
    display: flex;
    order: 1;
    z-index: 1001;
  }

  .logo {
    order: 2;
    text-align: center;
    flex: 1 1 100%;
    margin-left: 60px;
  }
.nav-icons {
    order: 3;
    justify-content: flex-end;
    gap: 15px;
    margin-left: 45px;
    color:black;
    
  }

  .nav-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 60px 20px 20px;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .nav-collapse.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .dropdown-menu {
    position: relative;
    box-shadow: none;
  }
}


/* Banner Image */

.hero-banner {
  position: relative;
  width: 100%;
  height: 700px;
  background-image: url('../images/phone case opt 2.jpg'); /* 🔁 Replace with actual filename */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}



/* <------------------------------------ Best Selling Cards ---------------------------------------> */

/* CSS for Best Selling Section with Full-width Cards */
.best-selling-section {
  padding: 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Arial', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
  background-color: rgb(23 28 32);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fffefe;
  margin: 0;
}

.view-all-btn {
  background-color: white;
  border: 1px solid #ffffff;
  color: #000000;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: #ffffff;
  color: black;
}

.product-wrapper {
  position: relative;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

.product-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
}

.product-container::-webkit-scrollbar {
  display: none;
}

.product-card {
  min-width: 300px;
  width: 300px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-5px);
}

.offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #4CAF50;
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  z-index: 2;
}

.product-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-image .back-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-image:hover .front-image {
  opacity: 0;
}

.product-image:hover .back-image {
  opacity: 1;
}

.product-info {
  padding: 1.2rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.8rem 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em;
  line-height: 1.5em;
}

.product-info p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.old-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.scroll-arrow {
  background-color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 1;
  transition: all 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}

.scroll-arrow:hover {
  background-color: #f0f0f0;
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
  left: 10px;
}

.scroll-arrow.right {
  right: 40px;
  margin-top: 700px;
}

.scroll-arrow.hidden {
  visibility: hidden;
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-header, .product-wrapper {
    padding: 0 1rem;
  }
  
  .product-card {
    min-width: 260px;
    width: 260px;
  }
  
  .product-image {
    height: 260px;
  }
  
  .scroll-arrow {
    width: 40px;
    height: 40px;
  }
  
  .scroll-arrow.left {
    left: -3px;
  }
  
  .scroll-arrow.right {
    right: 27px;
    margin-top: 230px;
  }
}

/* <!--------------------------- Design Category Section -------------------------------> */

.designs-section {
  padding: 40px 20px;
  background-color: rgb(23 28 32);
  color: white;
}

.designs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.designs-header h2 {
  font-size: 32px;
  font-weight: 700;
}

.view-all {
  background-color: white;
  color: black;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}

.designs-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.designs-scroll::-webkit-scrollbar {
  display: none;
}

.design-card {
  width: 300px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto; /* Prevent shrinking */
  scroll-snap-align: start;
  margin-right: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.design-card:hover {
  transform: translateY(-6px);
}

.design-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text over image */
.overlay-text {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
}


/* <!--------------------------- Accessories Section -------------------------------> */

/* Accessories Section Container */
.accessories-section {
  padding: 40px 20px;
  background-color: rgb(23 28 32);
}

.accessories-section h2 {
  color: white;
  font-size: xx-large;
}


.accessories-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;       /* Hide scrollbar in Firefox */
}

.accessories-scroll::-webkit-scrollbar {
  display: none;               /* Hide scrollbar in Chrome/Safari */
}

/* Each Card */
.accessory-card {
  flex: 0 0 auto;
  width: 260px;
  height: 260px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-align: center;
}

.accessory-card:hover {
  transform: scale(1.05);
}

/* Image Styling */
.accessory-card img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  margin-bottom: 10px;
  margin-top: 10px;
  box-shadow: 0 6px 16px rgba(205, 201, 201, 0.1);
}

/* Text under image */
.accessory-card p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* <!--------------------------------- Customise-central -------------------------------------> */

/* Prevent horizontal scroll */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Container with full screen height */
.customise-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Image fits exactly inside container */
.customise-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Marquee below the image */
.customise-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: rgb(23 28 32); 
  white-space: nowrap;
  padding: 10px 0;
}

.customise-marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

.customise-marquee-track span {
  display: inline-block;
  margin-right: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

/* Smooth left scrolling */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* <!--------------------------------------- FAQ Section ---------------------------------------> */


.faq-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: rgb(23 28 32);
  color: white;
  padding: 60px 40px;
  gap: 40px;
}

.faq-left {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.faq-left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.faq-left p {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.faq-left a {
  color: #ffffff;
  text-decoration: underline;
}

.faq-right {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.faq-item {
  border-bottom: 1px solid #333;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 10px;
}

.faq-question {
  width: 100%;
  padding: 20px;
  font-size: 1rem;
  text-align: left;
  background-color: #1c1e20;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
  box-shadow: 0 0 10px rgba(185, 184, 184, 0.5);
  border-radius: 6px;
}

.faq-question:hover {
  background-color: #2b2d2f;
}

.arrow {
  transition: transform 0.3s ease;
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #23272a;
  transition: max-height 0.7s ease-in, opacity 0.7s ease-in, transform 0.7s ease-in;
  opacity: 0;
  transform: translateY(-10px);
  padding: 0 20px;
  border-top: 1px solid #333;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  padding: 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e3e3e3;
}

/* <!--------------------------------------- Footer --------------------------------------------> */

footer {
  background-color: rgb(23 28 32);
  color: #ffffff;
  padding: 50px 5% 30px;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-column {
  flex: 1;
  min-width: 180px;
  margin-bottom: 20px;
}

.logo-newsletter {
  flex: 1.5;
}

.logo-newsletter h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.logo-newsletter h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #cccccc;
}

.newsletter-form {
  display: flex;
  max-width: 300px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background: #2d2f33;
  color: #ffffff;
  font-size: 14px;
}

.newsletter-form button {
  padding: 0 15px;
  background: #2d2f33;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #ffffff;
}

.question-heading {
  margin-top: 30px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #2d2f33;
  padding-top: 20px;
  text-align: center;
  color: #cccccc;
  font-size: 14px;
}

.footer-bottom p {
  margin: 5px 0;
}

#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #f90;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: all 0.3s;
}

#scrollToTop:hover {
  background-color: #f90;
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-column {
    min-width: 150px;
    flex: 1 1 40%;
  }
  
  .logo-newsletter {
    flex: 1 1 100%;
  }
}

/* -------------------------- ADDITIONAL RESPONSIVE ENHANCEMENTS -------------------------- */

/* General responsive tweaks */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
   
  }

  .hero-banner {
    height: 500px;
  }

  .search-form form {
    flex-direction: column;
    gap: 1rem;
  }

  .brands {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .designs-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .faq-section {
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .top-bar {
    height: auto;
    padding: 10px;
    text-align: center;
  }

  .hero-banner {
    height: 240px;
  }

  .product-card {
    min-width: 220px;
    width: 220px;
  }

  .product-image {
    height: 220px;
  }

  .design-card {
    width: 240px;
    height: 240px;
  }

  .accessory-card {
    width: 200px;
    height: 200px;
  }

  .accessory-card img {
    width: 140px;
    height: 140px;
  }

  .faq-left h2 {
    font-size: 2rem;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  .logo-newsletter h2 {
    font-size: 1.5rem;
  }
}




/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.user-menu-btn {
    background:transparent;
    color: rgb(11, 11, 11);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: #0c0c0c;
    color: rgb(250, 246, 246);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background-color: #f5f7ff;
    color: #4361ee;
    padding-left: 25px;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.logout-btn {
    color: #e63946 !important;
}

.login-btn {
    background: #4361ee;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .user-menu-btn, .login-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .user-dropdown-content {
        min-width: 180px;
    }
}

/* Dropdown default hidden */
.nav-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dropdown {
  position: relative;
}

.dropdown a {
  padding: 10px;
  display: block;
  text-decoration: none;
  color: #333;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #fff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}
