:root {
    --logo_color: green;
    --text_color: black;
}

/* --------------------- */
/* Global Styles */
/* --------------------- */


li {
    list-style: none;
}

/* --------------------- */
/* Header Styles */
/* --------------------- */
/*header {*/
/*    text-align: center;*/
/*    background-color: #000;*/
/*    color: white;*/
    /* padding: 2px; */
/*}*/

header marquee span {
    color: var(--logo_color);
}

.head_main {
    background-color: #fff;
    padding: 15px ;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header_sec {
    position: sticky;
    top: 0;
}

#logo {
    height: 28px;
}

/* --------------------- */
/* Navigation */
/* --------------------- */
.head_nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    white-space: nowrap;
    color: var(--text_color);
}

.head_nav li {
    position: relative;
    cursor: pointer;
}

.head_nav a {
    text-decoration: none;
    color: black;
}

.head_nav hr {
    margin: 0;
    border: none;
    border-top: 1px solid #000;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    
}

.head_nav div:hover hr {
    transform: scaleX(1);
}

/* --------------------- */
/* Icons & Others Section */
/* --------------------- */
.others {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart_icon_sec {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
    color: #410A70;
}

.cart_icon_sec p {
    background-color: #410A70;
    color: #fff;
    width: 25px;
    height: 25px;
    text-align: center;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    line-height: 25px;
}

/* --------------------- */
/* Hamburger Menu */
/* --------------------- */
.hamburger {
    display: none;
    font-size: 1.7rem;
    cursor: pointer;
    z-index: 50;
}

/* --------------------- */
/* Product Dropdown */
/* --------------------- */
.product-container {
    position: relative;
}

.profile-initial {
    width: 45px;
    height: 45px;
    background-color: #410A70;
    color: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

#down_arrow {
    margin-left: 0.3rem;
    font-size: 1.1rem;
    transition: transform 0.6s ease;
}

/* Dropdown card */
.our_pro_card {
    display: grid;
    grid-template-columns: auto;
    row-gap: 1.2rem;
    background-color: #fff;
    width: auto;
    border-radius: 0.8rem;
    position: absolute;
    top: 80%;
    left: 0;
    opacity: 0;
    transform: translateY(30px);
    padding: 20px;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 4;
}

.product-container:hover .our_pro_card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product-container:hover #down_arrow {
    transform: rotate(180deg);
}

/* Dropdown inner grid */
.pro_sec {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1.5rem;
    padding: 1rem;
}

/* --------------------- */
/* Hamburger Dropdown (Mobile) */
/* --------------------- */
.hamburger-nav {
    display: none; /* hidden by default */
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.3s ease;
}


.hamburger-nav.show {
    display: flex;
}
.hamburger-nav.show-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align links to left */
    width: 90%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #fff;
}

.hamburger-nav a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 0.8rem 0;
    width: 100%;
    transition: background 0.2s;
}

.hamburger-nav a:hover {
    background-color: #f3f3f3;
    padding-left: 0.5rem; /* small shift effect */
}

/* Mobile sub-dropdown */
.mobile-dropdown p {
    font-weight: 500;
    cursor: pointer;
    padding: 0.8rem 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-dropdown {
    width: 100%;
}


.mobile-sub {
    display: none;
    flex-direction: column;
    margin-left: 1rem;
    gap: 0.5rem;
    background-color: #f5f5f5;
    border-left: 2px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
}

.mobile-sub a {
    color: #333;
    padding: 0.5rem 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
}

.mobile-dropdown.open .mobile-sub {
    display: flex;
}

.mobile-sub a:hover {
    color: var(--logo_color);
    padding-left: 0.3rem;
}

/* --------------------- */
/* User Dropdown */
/* --------------------- */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown p {
    font-weight: bolder;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 10px 0;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #410A70;
    color: white;
}

/* --------------------- */
/* Search Box */
/* --------------------- */
.search_Sec {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #410A70;

}

.search_box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 43%;
    display: flex;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.3s ease;
    background: #fff;
    margin-top: 0.1rem;
    justify-self: center;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}


.search_box form input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    height: 40px;
    width: 100%;
}
.search_box form{
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}

.search_box button {
    padding: 5px 10px;
    border: none;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    width: 100px;
    cursor: pointer;
    transition: 0.3s;
}

.search_box button:hover {
    background-color: #333;
}

.search_box.active {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
}


/* --------------------- */
/* Cart Panel */
/* --------------------- */
.cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 90%;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.cart.active {
    right: 0;
}

/* Cart header */
.cart_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cart_head h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Cart items */
.cart_Sec {
    display: grid;
    grid-template-columns: 80px 180px;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    gap: 30px;
}

.cart_Sec img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart_Sec .title {
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 20ch; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.cart_Sec .price {
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
}

/* Quantity controls */
.qty_container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.qty_container button {
    width: 28px;
    height: 28px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.2s;
}

.qty_container button:hover {
    background-color: #ddd;
}

.qty_container input.qty {
    width: 36px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    border-radius: 4px;
    padding: 3px 0;
    font-size: 0.9rem;
    background-color: #fafafa;
}

/* Order summary */
.ord_sum {
    flex-shrink: 0;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    padding-bottom: 10px;
    background-color: #fff;
    margin-top: auto;
}

.ord_sum h1 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ord_sum p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.ord_sum strong {
    font-size: 1.05rem;
}

.ord_sum .chk_out {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    background-color: #410A70;
    color: #fff;
    transition: 0.2s;
}

.ord_sum .chk_out:hover {
    background-color: #653C92;
}

#save_for_later_btn {
    background-color: #6c757d;
}

#save_for_later_btn:hover {
    background-color: #5a6268;
}

/* --------------------- */
/* Responsive Styles */
/* --------------------- */

/* Tablets & below */
@media (max-width: 991px) {
    .head_nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .our_pro_card {
        width: fit-content;
        height: auto;
        top: 100%;
        left: -140px;
        transform: translateX(-50%) translateY(0);
    }

    .pro_sec {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .search_box {
        min-width: 150px;
    }
}

/* Small devices */
@media (max-width: 576px) {
    .head_main {
        padding: 12px 1rem !important;
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .others {
        gap: 0.5rem;
    }

    .hamburger {
        order: 2;
    }

    #logo {
        height: 24px;
    }

    .search_box {
        width: 90% !important;
        left: 50% !important;
        transform: translateX(-50%) scaleY(0) !important;
    }

    .search_box.active {
        transform: translateX(-5%) scaleY(1) !important;
    }

    .our_pro_card {
        left: 0 !important;
        transform: translateX(0) !important;
        width: 90% !important;
    }
}
