@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

body {
    font-family: "Poppins", sans-serif;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

:root {
    --primary-color: #ff3c78;
    --light-black: rgba(0, 0, 0, 0.89);
    --black: #000;
    --white: #fff;
    --grey: #aaa;
}

/* Top Bar */
.top-txt {
    background-color: var(--black);
}

.head {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.945);
    padding: 10px 0;
    font-size: 14px;
}

.head a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.945);
    margin: 0 10px;
}

/* Navbar */
.navbar {
    box-shadow: 0 5px 4px rgba(146, 161, 176, 0.15);
    position: sticky;
    top: 0;
    background: var(--white);
    color: var(--black);
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.navbar h1 {
    margin-left: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}

.navbar h1 .highlight {
    color: var(--primary-color);
}

.menu-items {
    order: 2;
    display: flex;
    margin-right: 3rem;
}

.menu-items li {
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.2rem;
}

.navbar-container ul a {
    text-decoration: none;
    color: var(--black);
    font-size: 18px;
    position: relative;
}

.navbar-container ul a::after {
    content: "";
    position: absolute;
    background: var(--primary-color);
    height: 3px;
    width: 0;
    left: 0;
    bottom: -10px;
    transition: width 0.3s;
}

.navbar-container ul a:hover::after {
    width: 100%;
}

/* Search Bar */
.search-bar {
    margin: 20px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-bar input {
    padding: 12px;
    width: 350px;
    border: 1px solid var(--grey);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-bar select {
    padding: 12px;
    border: 1px solid var(--grey);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

.search-bar select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Home Section */
.home_page {
    position: relative;
}

.home_page img {
    width: 100%;
    height: auto;
    background-position: center;
    background-size: cover;
}

.home_txt {
    position: absolute;
    top: 37%;
    left: 5%;
}

.home_txt p {
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 20px;
    letter-spacing: 1.5px;
}

.home_txt h2 {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 53px;
    letter-spacing: 3px;
    color: var(--light-black);
}

.home_txt .home_label p {
    color: var(--grey);
    font-size: 14px;
    padding-top: 10px;
}

.home_txt button {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    cursor: pointer;
}

.home_txt .bx-right-arrow-alt {
    font-size: 25px;
    padding-left: 5px;
}

.home_txt .home_social_icons a {
    text-decoration: none;
    color: var(--light-black);
    margin-right: 15px;
    font-size: 18px;
}

/* Collections Section */
.collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    margin-top: 65px;
    justify-items: center;
}

.content, .content2, .content3 {
    width: 330px;
    margin: 20px;
    position: relative;
}

.content::after, .content2::after, .content3::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.871);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.content:hover::after, .content2:hover::after, .content3:hover::after {
    opacity: 1;
}

.content img, .content2 img, .content3 img {
    width: 100%;
    height: 300px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.img-content, .img-content2, .img-content3 {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-in-out;
    color: var(--white);
    text-align: center;
    font-size: 2.2rem;
    font-weight: bolder;
    z-index: 5;
    opacity: 0;
}

.content:hover .img-content, .content2:hover .img-content2, .content3:hover .img-content3 {
    opacity: 1;
    top: 50%;
}

.img-content p, .img-content2 p, .img-content3 p {
    font-size: 1.6rem;
}

.img-content button, .img-content2 button, .img-content3 button {
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.img-content a, .img-content2 a, .img-content3 a {
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--white);
    transition: color 0.3s;
}

.img-content button:hover, .img-content a:hover,
.img-content2 button:hover, .img-content2 a:hover,
.img-content3 button:hover, .img-content3 a:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Seller Section */
.best-seller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.seller h2 {
    margin: 65px 0 20px;
}

.seller .best-p1 {
    width: 250px;
    height: 400px;
    margin-bottom: 20px;
}

.seller .best-p1 img {
    height: 250px;
    width: 250px;
    cursor: pointer;
}

.seller .best-p1 .price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller .best-p1 .price .product-symbol {
    margin-left: 10px;
}

.best-seller .add-cart button {
    padding: 10px 15px;
    margin-top: 5px;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    background-color: #f05e8a;
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-weight: 500;
    border: 1px solid #f05e8a;
    transition: 0.5s;
}

.best-seller .add-cart button:hover {
    background-color: var(--white);
    color: #f05e8a;
    font-weight: 600;
}

/* Cart Section */
#cart {
    margin: 50px 0;
}

#cart h2 {
    text-align: center;
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey);
    padding: 10px;
    border-radius: 5px;
}

.cart-item img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details p {
    margin: 5px 0;
}

.cart-item-details input {
    width: 50px;
    padding: 5px;
    margin-right: 10px;
}

.cart-item-details button {
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    margin-top: 20px;
}

.cart-total button {
    padding: 10px 20px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Checkout Section */
#checkout {
    margin: 50px 0;
    display: none;
}

#checkout h2 {
    text-align: center;
    margin-bottom: 20px;
}

.checkout-form {
    max-width: 600px;
    margin: 0 auto;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--grey);
    border-radius: 5px;
}

.checkout-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* User Account Section */
#account {
    margin: 50px 0;
}

#account h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-forms {
    max-width: 400px;
    margin: 0 auto;
}

.auth-forms input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--grey);
    border-radius: 5px;
}

.auth-forms button {
    padding: 10px 20px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#profile {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

#profile button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Contact Section */
#contact {
    margin: 50px 0;
}

#contact h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--grey);
    border-radius: 5px;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Modal for Product Details */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    max-width: 500px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
}

.modal-content button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
        opacity: 0.95;
    }

    .navbar-container {
        display: block;
        position: relative;
        height: 64px;
    }

    .navbar-container input[type="checkbox"] {
        position: absolute;
        display: block;
        height: 32px;
        width: 30px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }

    .navbar-container .hamburger-lines {
        display: block;
        height: 28px;
        width: 35px;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #333;
    }

    .navbar-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar .menu-items {
        padding-top: 100px;
        background: var(--white);
        height: 100vh;
        max-width: 100%;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        text-align: center;
        transition: transform 0.5s ease-in-out;
        overflow-y: auto;
    }

    .navbar .menu-items li {
        margin-bottom: 2rem;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .navbar .menu-items li:first-child {
        margin-top: 1.5rem;
    }

    .navbar-container .logo h1 {
        position: absolute;
        top: 10px;
        right: 15px;
        margin-top: 8px;
        margin-left: 0;
        font-size: 1.2rem;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(45deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-45deg);
    }
}

/* General Responsive Styles */
@media (max-width: 768px) {
    .head,
    .home_txt h2,
    .home_txt .home_label p,
    .home_txt .home_social_icons {
        display: none;
    }

    .home_txt {
        position: absolute;
        top: 20%;
        left: 5%;
        font-size: 12px;
    }

    .home_txt button {
        padding: 7px;
        font-size: 10px;
    }

    .menu-items {
        margin-right: 0;
    }

    .best-seller,
    .cart-items {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .best-seller img {
        padding-top: 40px;
    }

    .search-bar {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar input {
        width: 100%;
    }

    .search-bar select {
        width: 100%;
    }
}

.auth-container {
  display: flex;
  width: 60%;
  margin: 80px auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.auth-left {
  flex: 1;
  background-color: #2874f0;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.auth-left h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.auth-right {
  flex: 1;
  padding: 40px 30px;
}

.auth-right h2 {
  margin-bottom: 20px;
  color: #333;
}

.auth-right form {
  display: flex;
  flex-direction: column;
}

.auth-right input {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.auth-right button {
  padding: 12px;
  background-color: #2874f0;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.auth-right button:hover {
  background-color: #0d5dc0;
}

.auth-right .redirect {
  margin-top: 15px;
  font-size: 0.9rem;
}

.auth-right .redirect a {
  color: #2874f0;
  text-decoration: none;
}

@media (orientation: landscape) and (max-height: 500px) {
    .home_page {
        height: 90vmax;
    }
}
