/* -------------------------
   Base & Reset (global setup)
------------------------- */
* {
    box-sizing: border-box;
    /* Include padding + border in element size */
    margin: 0;
    padding: 0;
}
html,body{
    height:100%;
    margin:0;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
  flex: 1; /* This pushes the footer to the bottom */
}
a {
    text-decoration: none;
    /* Remove underlines */
    color: inherit;
    /* Use parent text color */
}

/* -------------------------
   Header (top navigation bar)
------------------------- */
.main-header {
    display: flex;
    justify-content: space-between;
    /* Space between logo, nav, and right section */
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    position: fixed;
    /* Stays at top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 2002;
}

/* Logo text */
.header-left .logo {
    font-size: 28px;
    font-weight: 700;
}

/* Desktop nav links */
.header-center {
    display: flex;
    gap: 20px;
    /* space between links */
}

.header-center a {
    font-size: 16px;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header-center a:hover {
    color: #000;
    text-shadow: #555 0px 0px 0.2px;
}

/* Right side (profile, cart, menu) */
.header-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Cart icon */
.cart-icon {
    font-size: 1.4rem;
    color: #333;
    text-decoration: none;
}

/* ------------------------------- */
/* Cart + Wishlist icons styling   */
/* ------------------------------- */

/* Common style for both icons */
.header-right .cart-icon,
.header-right .wishlist-icon {
    font-size: 1.5rem;
    /* make the icons bigger */
    margin: 0 10px;
    /* spacing between icons */
    color: #555;
    /* default dark gray (better than black) */
    text-decoration: none;
    /* remove underline */
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

/* Hover effect (both icons) */
.header-right .cart-icon:hover,
.header-right .wishlist-icon:hover {
    color: #545455;
    /* blue highlight on hover */
    transform: scale(1.1);
    /* slight zoom */
}

/* Wishlist-specific styles */
.header-right .wishlist-icon i {
    color: #737373;
    /* gray by default */
}


/* If you want an "active wishlist" state (e.g., saved items) */
.header-right .wishlist-icon.active i {
    color: #ffffff;
    /* solid red when active */
}

.mobile-profile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size:18px;
    font-weight: bold;
    z-index: 3000;
    margin-bottom: 4px;
    color:white;
}

/* Profile dropdown wrapper */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

/* Profile button */
.profile-icon {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #ececec;
}

.profile-icon:hover {
    color: #ffffff;
}

/* Dropdown menu (hidden by default) */
/* Dropdown menu (hidden by default) */
.dropdown-menu {
    position: absolute;
    top: 45px; /* below the button */
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 12px;
    text-align: left;
    z-index: 1000;
    
    display: none; /* hide by default */
}

/* Show dropdown when active */
.dropdown-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown-menu p {
    margin: 6px 0;
    font-size: 15px;
    color: #333;
    width: 100%;
    text-align: center;
}

.logout {
    width: 100%;
    display: block;
    margin-top: 10px;
    color: rgb(197, 11, 11);
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    border-radius: 4px;
}

.dropdown-menu a:hover {
    background-color: #b3b3b3a6;
}

/* Buttons (signup/login/logout) */
.signup-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.signup-button:hover,
.logout:hover {
    background-color: #333;
}

.mobile-logout {
    color: rgb(197, 11, 11) !important;
    font-weight: bold;
    font-size: 18px;
}

/* Hamburger menu (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* -------------------------
   Mobile menu
------------------------- */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 50%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 2001;
    display: flex;
}

.mobile-menu.active {
    right: 0;
}

/* Removed duplicate .main-header selector; merged z-index into the main definition above */

/* Links inside mobile menu */
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
hr{
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}
.mobile-menu a {
    font-size: 1rem;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px;
}

/* Close button for mobile menu */
.mobile-menu .close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    align-self: flex-end;
    cursor: pointer;
    color: white;
}


/* -------------------------
   Banner / Carousel
------------------------- */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 50px;
    margin-top: 50px;
}

.banner-section {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 20px;
}
.banner-section h1{
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-style: italic !important;
}

.banner-container {
    display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.banner-item {
    flex: 0 0 50%;
    height: 400px;
    background-color: #e0e0e0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

.banner-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* makes the video fill like a background */
    border-radius: 10px;
    /* match banner rounding */
    display: block;
}

.controls-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
    position: relative;
}

.shop-now-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.shop-now-button:hover {
    background-color: #333;
}

/* Dots for carousel */
.carousel-dots {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #000;
}

.carousel-dots .dot.video {
    background-color: #ff5722;
    /* e.g., orange for video */
}

/* -------------------------
   Footer
------------------------- */

/* ========== FOOTER ========== */
footer {
    background: #111;
    color: #fff;
    padding: 8px 20px;
    flex-shrink: 0;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}
/* Newsletter signup */
.newsletter {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #666;
    max-width: 300px;
}

.newsletter input {
    flex: 1;
    padding: 6px;
    border: none;
    outline: none;
    background: transparent;
    color: #eee;
    width: 230px;
}

.newsletter input::placeholder {
    color: #b7b7b7;
}

.newsletter button {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #eee;
    border-radius: 6px;
    max-width: 50px;
}

.newsletter button:hover {
    color: #ffffff;
    background-color: #434343;
}
.email_subscription{
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Arrow animation inside newsletter button */
.arrow {
    display: inline-block;
    animation: moveArrow 1.4s infinite;
    margin-left: 2px;
}

.arrow:nth-child(1) {
    animation-delay: 0s;
}

.arrow:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes moveArrow {
    0% {
        transform: translateX(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(1px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 0.6;
    }
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto 20px;
    text-align: left;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-section a:hover {
    color: #bdbdbd;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    color: #bdbdbd;
    font-size: 13px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {

    .icons button {
        display: inline-block;
    }

    .footer {
        padding: 10px 5px;
    }
    .footer-logo{
        font-size: 20px;
        margin-bottom: 10px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-section h3{
        margin: 0;
        font-size: 14px;
    }
    .footer-section p{
        font-size: 12px;
    }
    .footer-container a {
        font-size: 12px;
        margin-top: 0;
    }

    .newsletter {
        flex-direction: row;
        gap: 4px;
    }

    .newsletter input {
        text-align: center;
        width: 230px;
        /* smaller input field */
        margin: 0 auto;
        margin-right: 0 !important;
        border-radius: 30px;
    }

    .newsletter button {
        width: 120px;
        border-radius: 30px;
        margin: 0 auto;
        margin-left: 0 !important;
    }
}


/* -------------------------
   Mobile profile dropdown (inside menu)
------------------------- */

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    margin-top: 5px;
    gap: 5px;
}

.mobile-dropdown-menu.active {
    display: flex;
    align-items: center;
}

/* -------------------------
   Responsive (tablet & mobile)
------------------------- */
@media (max-width: 768px) {

    /* Hide desktop-only elements */
    .header-center,
    .signup-button,
    .logout,
    .profile-icon,
    .dropdown-menu {
        display: none;
    }

    .cart-icon,
    .wishlist-icon {
        font-size: 16px;
    }

    /* Adjust header */
    .header-right {
        flex-direction: row;
        gap: 7px;
    }


    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Mobile menu style */
    .mobile-menu {
        display: flex;
        right: -100%;
        height: max-content;
        border-radius: 8px;
        box-shadow: #555 0px 0px 20px;
        margin-top: 10px;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Adjust main content */
    .main-content {
        padding: 20px;
        margin-top: 100px;
    }

    /* Banner as single slide */
    .banner-container {
        flex-direction: row;
        overflow: hidden;
        width: 100%;
    }

    .banner-item {
        min-width: 100%;
        height: 460px;
        flex-shrink: 0;
    }
    .banner-section h1{
        font-size: 1.6rem;
        text-align: center;
    }
    .controls-wrapper {
        justify-content: center;
        flex-direction: column;
        gap: 20px;
    }

    .carousel-dots {

        position: static;
        transform: none;
    }

    /* Footer layout */
    .footer-shop-links{
        display: none !important;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .footer-links {
        order: 1;
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .footer-links div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        min-width: auto;
    }

    .footer-links a {
        padding-left: 15px;
    }

    .footer-left {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin-top: 0.5rem;
        flex: none;
    }

    .social-icons {
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .social-icons a {
        font-size: 15px;
        padding-left: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-bottom-links a {
        margin: 0 0.5rem;
    }

    .modal {
        max-width: 95%;
        padding: 20px 15px;
        border-radius: 12px;
    }

    .modal h2 {
        font-size: 1.4rem;
    }

    .modal-form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal input {
        padding: 12px;
        font-size: 0.95rem;
        max-width: 400px;
    }

    .modal button[type="submit"] {
        padding: 12px;
        font-size: 0.95rem;
    }
}