*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
}

@keyframes heart {
    0% {
        transform: scale(0);
    }

    25% {
        transform: scale(0.5);
        color: red;
    }

    50% {
        transform: scale(1);
        color: red;
    }
}
body{
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a{
    color: inherit;
    text-decoration: none !important;
}
ul{
    list-style: none;
}
main{
    width: 100%;
    min-height: 100vh;
    /* margin-top: 150px; */
}
.product-name{
    cursor: pointer;
}
.product-name:hover{
    color: var(--color-primary);
}
/* Subtle transitions for all interactive elements for smoother micro-interactions. */
button,
a {
    transition:
        color var(--transition-base),
        background-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base),
        border-color var(--transition-base),
        opacity var(--transition-base);
}

/* -------------------- scroll button -------------------- */
#scrollBtn {
    display: none; 
    position: fixed;
    bottom: 40px;
    right: 40px;
    height: 50px;
    width: 50px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
    transition: all .4s;
}
#scrollBtn:hover{
    color: var(--color-primary);
    background-color: #ffffff;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}
#scrollBtn #btn-up{
    padding-top: 4px;
    font-size: 20px;
}
/* --------------------------- header -------------------------------  */
:root {
    --header-height: 140px;
}

header{
    width: 100%;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition: transform 0.25s ease-out, box-shadow var(--transition-base), background-color var(--transition-base);
    will-change: transform;
}

body {
    padding-top: var(--header-height);
}

.header_top{
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    height: 90px;
}
.header_top ion-icon{
    font-size: 22px;
    color: rgba(15, 23, 42, 0.9);
    margin-right: 10px;
}
.header_top img{
    width: 110px;
}
nav{
    position: relative;
    background-color: transparent;
}

/* Hide header when scrolling down (no layout reflow – uses transform only) */
.scroll-down {
    transform: translateY(-100%);
}

/* Show header when scrolling up */
.scroll-up {
    transform: translateY(0);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
#display_login{
    display: none;
    align-items: center;
    justify-content: center;
}
.header_actions{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}
#signout,
.header_actions #user_name{
    font-size: 12px;
    font-weight: 500;
    margin-right: 4px;
}
.header_actions #logout{
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Keep header action hit areas comfortable without visual clutter. */
nav ul{
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
nav ul li{
    padding: 10px 14px;
    margin: 0 2px;
    position: relative;
}
nav ul li a{
   font-size: 15px;
   font-weight: 500;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   color: rgba(15, 23, 42, 0.84);
}
header nav li::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    left: 18px;
    bottom: -4px;
    transition: .4s ease-in-out;
}

header nav li:hover::after {
    width: calc(100% - 36px);
}
.icon-cart{
    position: relative;
}
.icon-cart #cart-counter{
    position: absolute;
    background-color: red;
    color: #fff;
    width: 17px;
    height: 17px;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 10px;
    line-height: 17px;
    box-shadow: 1px 1px 3px #0000004d;
    opacity: 1;
    transition: .3s ease-in-out;
    text-align: center;
    border-radius: 50%;
    top: -12px;
    right: -10px;
}
/* ------------------------ cart section ----------------- */
.cart-section{
    width: 400px;
    background-color:#fff;
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    z-index: 9999;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}
body.showCart .cart-section{
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.cart-header h2{
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 37px;
}
.cart_products{
    flex-grow: 1;
    overflow-x: auto;
}
.cart_products.empty{
    display: flex;
    justify-content: center;
    align-items: center;
}
.cart_products {
    flex-grow: 1;
    overflow-x: auto;
    padding-right: 16px ;
    scrollbar-color: #097a6e;  
}

.cart_products::-webkit-scrollbar {
    width: 8px; 
}

.cart_products::-webkit-scrollbar-track {
    background: #097a6f15;
}

.cart_products::-webkit-scrollbar-thumb {
    background-color: #097a6f93; 
    border-radius: 5px;
}

.cart_products::-webkit-scrollbar-thumb:hover {
    background-color: #097a6e;
}

.cart_product{
    display: flex;
    margin-bottom: 25px;
    position: relative;
}
.cart_product::after{
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #868686;
}
.cart_product .cart_product_img{
   width: 100px;
   margin-right: 24px;
}
.cart_product .cart_product_img img{
    width: 100%;
}
.cart_product_info{
    width: 80%;
}
.cart_product .top_card{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 0;
}
.cart_product .top_card h4{
    font-size: 13px;
    font-weight: 400;
}
.cart_product .top_card .product_price{
    font-size: 12px;
    color: #010101;
}
/* Delete button: red trash icon for removing cart items. */
.remove_product{
    width: 28px;
    height: 28px;
    border: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease;
}
.remove_product:hover{
    opacity: 0.7;
}
.remove_product ion-icon{
    color: #dc2626;
    font-size: 16px;
    position: relative;
    z-index: 1;
}
/* Cart total row: keep label and amount on one line (no rupee/amount wrap on mobile). */
.cart_total{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 0;
}
.cart_total h3{
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}
.cart_total #total_price{
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
    display: inline-block;
}
.buttom_card{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
/* Modern quantity selector for cart: compact, clean design matching product details. */
.buttom_card .counts{
    width: 90px;
    height: 36px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-right: 20px;
    touch-action: manipulation;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.buttom_card .counts_btns{
    position: absolute;
    padding: 0;
    top: 0;
    width: 30px;
    height: 36px;
    border: 0;
    background-color: transparent;
    color: var(--color-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: var(--radius-md);
}
.buttom_card .counts_btns:hover{
    color: #000;
    background-color: rgba(15, 23, 42, 0.04);
}
.buttom_card .minus{
    left: 0;
}
.buttom_card .plus{
    right: 0;
}
.buttom_card .product_count{
    width: 30px;
    border: 0;
    height: 36px;
    background: transparent;
    padding: 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    text-align: center;
    flex: 1;
    margin: 0 auto;
}
.buttom_card .product_count:focus{
    outline: none;
}
.closeCart{
    background-color:rgb(134 134 134 / 14%);
    width: 37px;
    height: 37px;
    line-height: 37px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.closeCart ion-icon{
    font-size: 18px;
    font-weight: 400;
}
.btn_control{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.btn_control .checkout,
.btn_control .viewCart{
    text-transform: uppercase;
    font-size: 12px;
    transition: .25s ease-in-out !important;
    font-weight: 500;
    height: 48px;
    padding: 0 25px;
    min-width: 120px;
    width: calc(50% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}
.btn_control .viewCart{
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
}
.btn_control .checkout:hover,
.btn_control .viewCart:hover{
    background-color: var(--color-primary);
    color: #ffffff;
    border: 1px solid transparent;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}
.btn_control .checkout{
    background-color: #111827;
    color: #ffffff;
    border: none;
}
/* ------------------------ footer ----------------------- */
.footer{
    background-color: #fff;
    padding: 4% 8%;
}
.black-footer{
    background-color: #000000;
    color: #fff;
}
.footer .footer-top{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.footer-top .footer-logo{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.footer-top .footer-logo p{
    font-size: 16px;
    color: #868686;
    margin: 12px 0;
} 
.footer-top .footer-list{
    display: flex;
    justify-content: space-between;
    gap: 80px;
}
.footer-list h4{
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 8px;
}
.footer-list ul li{
   margin: 20px 0;
   color: #868686;
}
.footer-bottom{
    margin-top: 20px;
    text-align: center;
}
.footer-company-name ion-icon {
    color: red;
    transition: all 0.4s;
    animation: heart 1s infinite;
    -webkit-animation: heart 1s infinite;
}
.footer-bottom #author{
    font-size: 18px;
    color: #097a6e;
    transition: 0.4s;
}
.footer-bottom #author:hover{
    color: #696969;
}

/* Large screens */
@media (min-width: 1200px) {
    .information {
        flex-wrap: nowrap;
    }
    /* for home page section top product */
    .products {
        grid-template-columns: repeat(4, 1fr);
    }
    /* for products page */
    .products .content{
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .slide .text h2{
        font-size: 40px;
        font-weight: 400;
    }
    .information {
        flex-wrap: wrap;
    }
    .info {
        width: 50%;
        justify-content: flex-start;
    }
     /* for home page section top product */
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
    /* for products page */
    .products .content{
        grid-template-columns: repeat(2, 1fr);
    }
    .productDetails .details .buttons{
        flex-wrap: wrap;
    }
    .productDetails .details #btn_add{
        width: 100%;
        margin-top: 20px;
    }
    .collection-list {
        grid-template-columns: repeat(2,1fr);
    }
    .news.hight{
        height: 300px;
        flex-wrap: wrap;
        gap: 20px;
    }
    .footer .footer-top{
        flex-wrap: wrap;
    }
}

/* Small screens */
@media (max-width: 767px) {
    /* Reduce horizontal padding so trending/product cards are not overly narrow (elongated). */
    main{
        padding: 1.5rem 1rem;
    }
    .header_top ion-icon{
        font-size: 20px;
    }
    .header_top img{
        width: 80px;
    }
    .slider{
        display: none;
    }
    .hero_for_phone{
        display: block;
        width: 100%;
        height: 350px;
    }
    .hero_for_phone .hero-content{
        width: 100%;
        height: 350px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 100px;
        position: relative;
    }
    .hero_for_phone .hero-content img{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        object-fit: cover;
        object-position: center center;
    }
    .hero_for_phone .text{
        position: absolute;
        left: 20px;
        top: 100px;
    }
    .hero_for_phone .text h2{
        font-size: 24px;
        font-weight: 400;
    }
    .hero_for_phone p{
        width: 200px;
        font-size: 10px;
        font-weight: 300;
        color: #868686;
    }
    .hero_for_phone .shop-btn{
        margin-top: 20px;
        background-color: transparent;
        color: #000;
        border: 1px solid #000;
        padding: 10px;
        width: 120px;
    }
    .information {
        flex-direction: column;
    }

    .info {
        width: 100%;
        justify-content: flex-start;
    }

    .info .info-icon img {
        width: 60px;
    }

    .info .info-text h3 {
        font-size: 14px;
    }  
    /* for home page section top product – minimal horizontal padding on mobile */
    .top_products .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .top_products .products {
        grid-template-columns: repeat(2,1fr);
        padding: 0 0.25rem;
        gap: 0.5rem;
    }
    /* for products page */
    .products .content{
        grid-template-columns: repeat(2,1fr);
        padding: 0;
    }
    .productDetails {
        gap: 40px;
    }
    .collection-list {
        grid-template-columns: 1fr;
        gap:20px;
    }
    .cart-section{
        width: 95%;
    }
    .btn_control{
        flex-direction: column;
    }
    .btn_control .viewCart{
        margin-bottom: 12px;
        color: #000;
    }
    .btn_control .checkout,
     .btn_control .viewCart{
        width: 100%;
     }
    .news.hight{
        height: 300px;
        flex-wrap: wrap;
        gap: 20px;
    }
    .news .Subscribe-form{
        width: 100%;
        margin-bottom: 20px;
    }
    .news .Subscribe-form input{
        width: 100%;
    }
    .footer .footer-top{
        flex-wrap: wrap;
    }
    .footer .footer-top .footer-list{
        flex-wrap: wrap;
        gap: 20px;
    }
    .productDetails .details .buttons{
        flex-wrap: wrap;
    }
    .productDetails .details #btn_add{
        width: 100%;
        margin-top: 20px;
    }
    .productDetails {
        grid-template-columns: 1fr;
    }
    .productDetails .details .price_wrapper{
        gap: 8px;
    }
    .productDetails .details .product_price{
        font-size: 18px;
    }
    .productDetails .details .original_price{
        font-size: 14px;
    }
    .productDetails .details .discount_chip{
        font-size: 11px;
        padding: 3px 8px;
    }
    .productDetails .details .sizes_section{
        gap: 12px;
    }
    .productDetails .details .size_btn{
        min-width: 40px;
        height: 40px;
        font-size: 13px;
        padding: 0 10px;
    }
    .toast-overlay{
        top: -1000px;
    }
    .toast-overlay.show{
        top: 300px;
    }
    .cart_page .content{
        display: grid;
        grid-template-columns: 1fr;
        gap: 50px;
     }
     .cart_products {
        padding-right: 0;
     }
    .collection-card { 
        min-height: 450px;
    }
}

/* to remove updown from input number */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
   margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* ---------- Design tokens (appended)
   These custom properties power the modern color system, spacing and radii. */
:root {
    --color-bg: #f7f4f1;
    --color-surface: #ffffff;
    --color-primary: #0b7265;
    --color-primary-soft: #e2f0ed;
    --color-accent: #d38b6d;
    --color-text: #1f2933;
    --color-muted: #6b7280;
    --border-subtle: rgba(148, 163, 184, 0.35);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-pill: 999px;

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.06);

    --transition-base: 220ms ease-out;
    --container-width: min(1120px, 100% - 3rem);

    /* Used to offset the fixed header height across pages */
    --header-height: 140px;
}