@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil+One&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    height: 100%;
    scrollbar-width: none;
}

body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #f9f9f9;
    color: #222;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*Nav Bar Style */
.navbar {
    height: 4vw;
    width: 100%;
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0vw 2vw;
    border-bottom: 0.15vw solid rgb(231, 233, 233);
    flex-wrap: wrap;
    gap: 1rem;
    position: fixed;
    z-index: 100;
}

.navlogo {
    height: 100%;
    width: 10vw;
    background-image: url(SS\ logo.png);
    background-size: contain;
    background-repeat: no-repeat;

}

.navTag {
    height: 100%;
    width: 30vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    left: -10vw;

}

.navTag a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 1rem;

}

.searchbar {
    height: 2.5vw;
    width: 15vw;
    background-color: rgb(231, 233, 233);
    display: flex;
    align-items: center;
    border-radius: 0.3vw;
    padding: 0vw 1vw;
    position: relative;
    left: 10vw;
}

.searchbar i {
    font-size: 1.2vw;
    color: #555;
}

.searchbar input {
    height: 70%;
    width: 90%;
    background-color: rgb(231, 233, 233);
    border: none;
    outline: none;
    font-size: 1vw;
    flex: 1;
    padding-left: 1vw;
}

.navWishlist,
.navCart {
    height: 2.5vw;
    width: 2.5vw;
    background-color: rgb(231, 233, 233);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10%;
}

.navWishlist.active,
.navCart.active {
    background-color: black;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.navWishlist.active i,
.navCart.active i {
    color: white;
}

.navWishlist {
    position: relative;
    left: 5vw;
}

.navCart {
    position: relative;
    right: 3vw;
}

.navWishlist,
.navCart i {
    text-decoration: none;
    font-size: 1.2vw;
    color: #555;
}

.navTag a.active {
    text-decoration: underline;
    text-underline-offset: 0.4vw;
    text-decoration-thickness: 2px;
    color: #111;
}

.new-arrival,
.menNavTag,
.womenNavTag,
.kidsNavTag,
.saleNavTag {
    padding-left: 3vw;
    background-color: rgb(231, 233, 233);

}

.add-to-bag {
    height: 2.5vw;
    width: 6vw;
    position: relative;
    top: -10%;
    left: 55%;
    border-radius: 2vw;
}

/*New Arrival Section Style */
.new-arrival h2,
.menNavTag h2,
.womenNavTag h2,
.kidsNavTag h2,
.saleNavTag h2 {
    font-size: 2vw;
    padding: 3vw 0vw 0vw 2vw;

}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20vw, 1fr));
    gap: 3vw;
    justify-items: center;
    padding: 1vw 2vw;
}

.section-card {
    background-color: #fff;
    border-radius: 1vw;
    overflow: hidden;
    text-align: left;
    width: 100%;
    height: 30vw;
    max-width: 30vw;
    transition: all 0.3s ease;
}

.section-card img {
    width: 100%;
    height: 20vw;
    border-radius: 10px;
    aspect-ratio: 1/1;
    object-fit: contain;
    padding-top: 0.5rem;
}

.section-card h4 {
    font-size: 1rem;
    margin: 1rem 0 0.2rem 0.5rem;
    color: #111;
}

.section-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0.5rem;
}

.card-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem;
}

.card-buttons button {
    flex: 1;
    padding: 1.5vw;
    border: none;
    height: 3vw;
    border-radius: 0.3vw;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.wishlist-btn {
    background-color: #fff;
    color: #ff4d6d;
    border: 1px solid #ff4d6d;
}

.wishlist-btn:hover {
    background-color: #ff4d6d;
    color: white;
}

.bag-btn {
    background-color: #222;
    color: #fff;
}

.bag-btn:hover {
    background-color: #000;
}

/*Men Section Style */

/*Home Section Style */
.heroSection {
    position: relative;
    width: 100%;
    height: 50vw;
    background-color: white;
    overflow: hidden;
    border-bottom: 0.15vw solid rgb(231, 233, 233);

}


.mainContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mainContent h1 {
    font-size: 5vw;
    font-weight: bold;
    color: #333;
    margin-bottom: 1vw;
    font-family: "Saira Stencil One", sans-serif;
    font-weight: 400;
    font-style: normal;
    transition: all 0.6s ease-in-out;
    position: relative;
    top: -10vw;
}

.mainContent img {
    height: 40vw;
    width: 50vw;
    object-fit: contain;
    transition: all 0.6s ease-in-out;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 5vw;
    width: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.arrow.left {
    left: 2vw;
}

.arrow.right {
    right: 2vw;
}

.arrow img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}


.categories,
.featured {
    padding: 2rem;
}

h2 {
    margin-bottom: 1rem;
}

.category-grid,
.product-grid {
    display: flex;
    gap: 1.5rem;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1rem;
    scroll-behavior: smooth;
}

.category-grid::-webkit-scrollbar {
    height: 8px
}

.category,
.product {
    flex: 0 0 auto;
    width: 20vw;
    min-width: 200px;
    text-align: center;
}

.product {
    padding: 0vw 1.5vw;
    
}

.category img,
.product img {
    width: 100%;
    border-radius: 10px;
}

footer {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ddd;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: #666;
}

.card img,
.category img,
.product img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    height: auto;

    border-radius: 10px;
    display: block;
}

.navbar .icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trendingNow {
    padding: 2rem;
}

.section-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.section-card p del {
    color: gray;
    font-size: 0.9rem;
}

.section-card p strong {
    color: red;
    font-weight: bold;
    font-size: 1rem;
}

.discount-badge {
    background-color: #ff4d6d;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
}

@keyframes sectionFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.home,
.new-arrival,
.menNavTag,
.womenNavTag,
.kidsNavTag,
.saleNavTag {
    animation: sectionFadeSlide 0.5s ease-out;
    animation-fill-mode: both;
}

.sale-header {
    text-align: center;
    margin: 4vw 0 2vw;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

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

.sale-main-title {
    font-size: 3vw;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.2vw;
    font-family: 'Segoe UI', sans-serif;
}

.sale-subtitle {
    font-size: 1.2vw;
    color: #666;
    font-weight: 500;
    margin-top: 0.5vw;
    font-family: 'Poppins', sans-serif;
}

/* cart css*/
.cart-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    font-family: 'Segoe UI', sans-serif;
    color: #111;
}

.cart-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cart-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.item-details h3 {
    margin: 0;
    font-size: 1rem;
}

.item-details p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #555;
}

.item-price {
    margin-left: auto;
    font-weight: 500;
    font-size: 1rem;
}

.cart-summary {
    margin-top: 2rem;
}

.cart-summary h2 {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #444;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
}

.checkout-btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.9rem;
    background-color: #111;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background-color: #000;
}

.remove-cart-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background-color: #ffe5e5;
    color: #cc0000;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-left: 1rem;
}

.remove-cart-btn:hover {
    background-color: #ffcccc;
}

.cart-qty-selector {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    background: #f2f2f2;
    border-radius: 30px;
    padding: 0.3rem 0.8rem;
    width: fit-content;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.05);
}

.cart-qty-btn {
    border: none;
    background: #fff;
    color: #111;
    font-weight: bold;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.05);
}

.cart-qty-btn:hover {
    background: #e0e0e0;
}

.cart-qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

/*toast*/
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #111;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



/*Wishlist*/
/* Wishlist container */
.wishlist-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    font-family: 'Segoe UI', sans-serif;
}

/* Section title */
.wishlist-heading {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #111;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
    position: relative;
}



.wishlist-subtext {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-top: -1.2rem;
    margin-bottom: 2rem;
}


/* Grid layout for wishlist items */
.wishlist-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 👈 4 per row */
    gap: 2rem;
}

@media (max-width: 1024px) {
    .wishlist-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wishlist-items {
        grid-template-columns: 1fr;
    }
}

/* Each wishlist card */
.wishlist-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* Product image */
.wishlist-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f4f4f4;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Product text */


.item-info h3 {
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}



.item-info p {
    font-size: 1rem;
    color: #666;
}

/* Buttons */
button.add-btn,
button.remove-wishlist-btn {
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

button.add-btn {
    background-color: #111;
    color: #fff;
}

button.add-btn:hover {
    background-color: #222;
}

button.remove-wishlist-btn {
    background-color: #f5f5f5;
    color: #c00;
}

button.remove-wishlist-btn:hover {
    background-color: #ffcccc;
}

/* ✅ MODIFIED: Buttons in a line */
.item-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

/* Add to Bag Button */
.add-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background-color: #111;
    color: white;
    transition: background 0.3s ease;
}

.add-btn:hover {
    background-color: #000;
}

/* ✅ MODIFIED: Soft red Remove Button */
.remove-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background-color: #ffe5e5;
    color: #cc0000;
    font-weight: 500;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background-color: #ffcccc;
}
/* ✅ Responsive Design Enhancements */

/* Navbar */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
  }
  .navlogo {
    width: 100%;
    height: 60px;
    background-position: center;
    background-size: contain;
  }
  .navTag {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    left: 0;
  }
  .navTag a {
    margin: 0.5rem;
    font-size: 0.9rem;
  }
  .searchbar {
    width: 250px;
    height: 40px;

    margin: 1rem 1rem ;
    left: -80px;
  }
  .searchbar input {
    font-size: 1rem;
  }
  .navWishlist{
     width: 40px;
    height: 40px;
    position: absolute;
    top: 162px;
    left: 300px;
  }
  .navCart {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 162px;
    left: 350px;
  }
  .navWishlist i,
  .navCart i {
    font-size: 1.2rem;
  }
}

/* Hero Section */
@media (max-width: 768px) {
  .heroSection {
    height: auto;
    position: relative;
    padding-top: 250px;
    
  }
  .mainContent img {
    width: 90%;
    height: auto;
  }
  .mainContent h1 {
    font-size: 2rem;
    top: 0;
    text-align: center;
  }
  .arrow {
    width: 40px;
    height: 40px;
    padding-top: 200px;
  }
}

/* Sections */
@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 100px;
  }
  .section-card {
    max-width: 100%;
    height: auto;
  }
  .section-card img {
    height: 150px;
  }
  .card-buttons button {
    height: 40px;
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  .sale-main-title {
    font-size: 1.8rem;
  }
  .sale-subtitle {
    font-size: 1rem;
  }
}

/* Wishlist & Cart */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    height: 200px;
  }
  .item-price,
  .remove-cart-btn {
    margin-left: 0;
    margin-top: 0.5rem;
    position: relative;
    left: 270px;
    top: -80px;
  }
  .wishlist-heading {
    font-size: 2rem;
  }
}

/* Footer */
@media (max-width: 768px) {
  footer {
    padding: 1rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
