/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.hero {
  height: 120vh;
  position: relative;
  color: white;
}

.home-page .hero {
  display: flex;
  align-items: center;
  height: 120vh;
  padding-left: 100px;
  background-image: url('/images/home.jpeg');
  background-size: cover;
  background-position: center;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

/* BIG HEADING */
.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  font-style: italic;
}

.hero-text .hero-animated-title {
  color: #e2a11e;
}

/* GLOBAL PARAGRAPH (This was causing your font issue) */
.hero-text p {
  margin: 25px 0;
  font-size: 18px;
  color: #ffffff;
  font-weight: 700;
}

/* ===== UPDATED AUTH CARD SECTION ===== */

.auth-card {
  position: absolute;
  /* Adjust these to move it to the right of the text */
  right: -460px; 
  top:-45px; 
  width: 170px;         
  height: auto;        
  padding: 25px 15px;  
  border-radius: 25px; 

  background: rgba(10, 10, 10, 0.85); 
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;           
  z-index: 100;
}

/* Targeting specifically to override the 18px p tag rule */
.auth-card .welcome-text {
  font-size: 10px !important;    /* Small like the design */
  font-weight: 800 !important;   /* Bold and punchy */
  letter-spacing: 2px !important;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 5px 0 !important;  /* Overrides the 25px global margin */
  text-align: center;
  width: 100%;
}

/* Login Button - White Pill */
.auth-card .login-btn {
  width: 100%;
  padding: 5px ;
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  color: #000000 !important;
  transition: 0.3s ease;
}

/* Signup Button - Ghost Pill */
.auth-card .signup-btn {
  width: 100%;
  padding: 5px ;
  font-size: 10px; /* Fixed from 5px */
  font-weight: 600;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.3s ease;
}

.auth-card .login-btn:hover,
.auth-card .signup-btn:hover {
  background: #f4a300;
  color: #ffffff !important;
  border-color: #f4a300;
}

/* OTHER ELEMENTS */
.btn {
    text-decoration: none;
  background: #f4a300;
  padding: 8px 12px;
  border: none;
  color: white;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* FLOATING SHOE */
.floating-shoe {
  position: absolute;
  right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.floating-shoe img {
  width: 350px;
  filter: drop-shadow(0 20px 30px rgba(22, 22, 22, 0.84));
  /* Added a slightly longer transition for a "premium" smooth feel */
  transition: transform 0.4s ease-in-out; 
}

/* HOVER EFFECT - SCALE ONLY */
.floating-shoe:hover img {
  /* This makes it 15% larger without any rotation */
  transform: scale(1.15); 
}


/* Product Carousel Styling */
.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 5%;
}

.product-card {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.product-img-wrapper img {
    width: 100%;
    mix-blend-mode: multiply; /* Helps blend shoe images with light backgrounds */
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.arrow-icon {
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}


/* Section Heading */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-left: 5%;
}

/* Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns like the image */
    gap: 20px;
    padding: 0 5%;
}

/* Individual Card */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px; /* Set a fixed height for consistency */
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box without stretching */
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Text Overlay */
.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); /* Darkens bottom for text clarity */
    color: white;
}

.category-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.category-info p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.discover-link {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.discover-link span {
    margin-left: 5px;
    transition: margin 0.3s;
}

.category-card:hover .discover-link span {
    margin-left: 10px;
}

.highlight{
  font-style: italic;
  font-weight: 100;
}

.fas fa-eye{
     top: 200px;
}

/* ==========================================================================
   🔍 PREMIUM EXPANDING SEARCH BAR STYLING
   ========================================================================== */
.icons {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}
.search-form {
    display: flex;
    align-items: center;
}

.search-input-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Wrapper around the input and clear button */
.search-box-wrapper {
    position: relative;
    display: inline-block;
}

.search-input {
    width: 0; /* Starts hidden */
    opacity: 0;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    transition: width 0.4s ease, opacity 0.4s ease;
}

.search-input.visible {
    font-size: 12px;
    width: 130px; 
    opacity: 1;
    padding: 10px 32px 10px 10px; /* Right padding leaves space so text doesn't hide under the × button */
    border: 1px solid rgb(228, 224, 224);
    border-radius: 12px;
}

/* When the user clicks into the box, it expands further */
.search-input:focus {
    width: 250px; 
}

.search-submit-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease, width 0.3s ease;
}

/* Completely hides the search icon when the input is open */
.search-submit-btn.hidden {
    opacity: 0;
    width: 0;
    pointer-events: none;
    overflow: hidden;
    margin: 0;
}

.search-submit-btn img {
    width: 18px;
    height: 18px;
}

/* Positioned directly inside the right side of the input field */
.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: #666;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
}

.clear-search-btn:hover {
    color: #000;
}

.nav-icons:hover {
    transform: scale(1.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4%;
    background-color: #ffffff8f;
    border-bottom: 1px solid #e1dfdf;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #64748b; 
    font-size: 12px;
    font-weight: 500;
    padding: 8px 0; 
    position: relative;
    transition: color 0.2s ease, font-weight 0.2s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: #0f172a; 
}


.nav-links a.active-nav-link {
    color: #0f172a !important;  
    font-weight: 600 !important; 
}

.nav-links a.active-nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #47484b;  
    border-radius: 2px;
}

/* Container framework to isolate the badge position metrics */
.cart-anchor-wrapper {
    position: relative;
    display: inline-block;
}

/* 🟥 The notification badge design block */
.cart-badge-count {
    position: absolute;
    top: -6px;       /* Shifts badge slightly above the image boundaries */
    right: -6px;     /* Shifts badge slightly outside right image boundaries */
    background-color: #fbef04; /* Vibrant notification red color */
    color: #040404;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Keeps clicks focused directly through to the link anchor */
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-title {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animated-title span {
  display: inline-block;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0; /* Prevents flash before animation starts */
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(-30px); /* Starts 30px to the left */
  }
  to {
    opacity: 1;
    transform: translateX(0); /* Slides to its original position */
  }
}

.fade-slide-text {
  display: inline-block;
  opacity: 0; /* Hidden initially */
  animation: fadeSlideRight 1s ease-out 0.4s forwards; /* 1s duration, starts after a 0.4s delay */
}

/* Smooth zoom entry animation when items append */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   📱 RESPONSIVE MEDIA QUERIES FOR ALL SCREEN SIZES
   ========================================================================== */

/* Tablets and Medium Screens (1024px and below) */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 15px 3%;
    }

    .nav-links {
        gap: 15px;
    }

    .hero {
        padding-left: 50px;
        height: 60vh;
    }

    .hero-text h1 {
        font-size: 50px;
    }

    .floating-shoe img {
        width: 300px;
    }

    .floating-shoe {
        right: 40px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

        .auth-card {
     font-size: 8px;
     right: -12px; 
     top: -10px;
}

}

/* Mobile Phones and Small Screens (768px and below) */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    /* Keeps navbar elements locked in a single horizontal row */
    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 10.5px;
    }

    .icons {
        gap: 10px !important;
    }

    /* Adjust Hero Section for mobile */
    .home-page .hero {
        height: 70vh;
        min-height: unset;
        padding: 40px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .floating-shoe {
        position: relative;
        right: auto;
        margin-top: 30px;
        align-self: center;
    }

    .floating-shoe img {
        width: 220px;
    }

    .auth-card {
     font-size: 8px;
     right: -8px; 
     top: -10px;
}
    .btn{
        font-size: 8px;
        padding: 8px;
    }
}

/* Very Small Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
    .logo {
        font-size: 15px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .icons {
        gap: 8px !important;
    }
    
    .home-page .hero {
        height: 35vh;
        min-height: unset;
        padding: 40px 15px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .search-input.visible {
    width: 90px;
    opacity: 1;
    padding: 4px 6px 5px 5px;
    border: 1px solid black;
    border-radius: 12px;
}
}

