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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Navigation Bar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* spreads logo, nav-links, actions */
    background-color: #141414;
    padding: 6px 17px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    padding: 10px 40px;
}


/* Logo and Name */
.logname {
    display: flex;
    align-items: center;
    /* vertically center logo and text */
    gap: 8px;
}
.logname img {
    width: 42px;
    vertical-align: middle;
    height: 42px;
    background-color: #888;
}

.logname a {
    text-decoration: none;
    font-family: "Quicksand", sans-serif;
    vertical-align: middle;
    color: white;
    font-size: 17px;
    line-height: 40px;

}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: "Inter";
    line-height: 12px;
    font-weight: 500;
    /* padding: 0px 10px; */
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
    letter-spacing: 0.15px;

}

.nav-link:hover {
    /* background-color: rgba(255, 255, 255, 0.1); */
    color: #FFF94D;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* move slightly below text */
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFF94D;
    /* matches hover color */
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-dropdown {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8a020;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px;
    overflow: hidden;
    z-index: 999;
}

.profile-menu-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.profile-menu a:hover {
    background: #f9f5f0;
}

.profile-menu a:last-child {
    color: #c0392b;
    border-top: 1px solid #f0f0f0;
}

.profile-menu.open {
    display: block;
}

.login-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #e8a020;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.login-link:hover {
    background: #c07010;
}

/* USD Selector */
.currency-selector {
    position: relative;
}

.usd-selector {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.usd-selector:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.usd-selector option {
    background: rgb(20, 20, 20);
    color: white;
}

/* Cart Button */
.cart-btn {
    background: white;
    border: none;
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* centers the icon perfectly */
    position: relative;
}

.fa-shopping-cart {
    top: 0;
    left: 0;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    background: #FF2626;
    color: white;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1px;
    text-align: center;
    line-height: 1;
    /* Add this to ensure no line-height issues */
    border: 1px solid transparent;
    /* Add temporary border to see the circle */
}

.bar {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.bar:hover {
    color: #FFF94D;
}

.mobile-nav-links {
    display: none;
}
/* Navbar ends here */


.cart-tab {
    position: fixed;
    inset: 3% -500px 0 auto;
    width: 22rem;
    background-color: #141414;
    color: white;
    padding-block: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: rgba(0, 0, 0, 0.1) -10px -10px 20px;
    transition: inset 0.5s ease-in-out;
}

.cart-tab-active {
    inset: 3% 0px 0 auto;
}

.cart-tab.logged-out .cart-list {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.cart-list {
    flex: 1;
    width: 100%;
    margin-top: .5rem;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .8rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
    transition: all .5s ease-in-out;
}

.item-slide-out {
    transform: translateX(50%);
}

.item:hover {
    background-color: #1a1a1a;
}

.cart-list .item:nth-child(even) {
    background-color: #1E1E1E;
}

.cart-list .item:nth-child(even):hover {
    background-color: #252525;
}

.item img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.item>div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.item h4 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.item .item-category {
    color: #FF007F;
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0.2rem 0 0.5rem 0;
}

.item-cost {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.item .item-total {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #4DFFA0;
    margin: 0;
}

.item .item-oldprice {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
    margin: 0;
}

.quantity-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item .quantity-btn {
    background-color: #D9D9D9;
    color: #141414;
    border: none;
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.item .quantity-btn:hover {
    background-color: #FF007F;
    color: white;
    transform: scale(1.1);
}

.item .item-value {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    min-width: 1.5rem;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.remove-btn:hover {
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
}

.total-container {
    width: 100%;
    padding: 1.5rem 2rem;
    border-top: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
}

.total-container h4 {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: white;
}

.cart-total {
    color: #4DFFA0;
    font-size: 1.4rem;
}

.btn-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-container .btn-close,
.btn-container .btn-checkout {
    width: 100%;
    background-color: #D9D9D9;
    color: #141414;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-container .btn-close:hover {
    background-color: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.btn-container .btn-checkout {
    background: linear-gradient(135deg, #FF007F, #D60088);
    color: white;
}

.btn-container .btn-checkout:hover {
    background: linear-gradient(135deg, #FF338F, #E6008E);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.4);
}

/* Cart header */
.cart-tab h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: white;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

/* Empty cart state */
.cart-list:empty::before {
    content: "Your cart is empty";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
}
/* end here */

/* footer */

/* footer Starts Here */
.footer {
    background-color: #ffdab9;
    padding: 60px 40px 20px;
    color: #1a1a1a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #1a1a1a;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1a75ff;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1a75ff;
}

.work-time p {
    font-size: 14px;
    margin-bottom: 5px;
}

.work-time p strong {
    font-weight: 600;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.payment-icons img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.footer-bottom p {
    color: #1a1a1a;
}

.terms-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #1a75ff;
}

/* Responsive Design */



@media (max-width: 1200px) {
    .navbar {
        padding: 10px 25px;
        border-radius: 30px;
    }

    /* Logo and Name */
    .logname img {
        width: 38px;
        height: 38px;
    }

    .logname a {
        font-size: 16px;
        line-height: 36px;
    }

    /* Navigation Links */
    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
        letter-spacing: 0.1px;
    }

    /* Navigation Actions */
    .nav-actions {
        gap: 0.8rem;
    }

    .usd-selector {
        padding: 7px 8px;
        font-size: 0.85rem;
    }

    /* Cart Button */
    .cart-btn {
        width: 36px;
        height: 36px;
    }

    .cart-count {
        width: 14px;
        height: 14px;
        font-size: 11px;
        top: -4px;
        right: -4px;
    }

    .cart-tab {
        width: 24rem;
    }
    
    .item {
        padding: 1rem;
    }
    
    .item img {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .btn-container .btn-close,
    .btn-container .btn-checkout {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    

    footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

}
 


@media screen and (min-width: 781px) and (max-width: 900px) {
    .navbar {
        padding: 8px 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 13px;
    }

    .logname {
        gap: 6px;
    }

    .logname img {
        width: 35px;
        height: 35px;
    }

    .logname a {
        font-size: 15px;
    }
}

@media screen and (max-width: 780px){
    /* nav-bar */
    .nav-links,
    .currency-selector{
        display: none;
    }

  #loginLink {
    display: none !important;
}

    .bar {
        display: inline-block;

    }

    .bar a {
        font-size: 1.5rem;
        color: white;
        text-decoration: none;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        background-color: #141414ea;
        backdrop-filter: blur(3px);
        position: absolute;
        justify-content: center;
        align-items: center;
        left: -100%;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        font-family: "Inter", sans-serif;
        transform: translateX(-50%);
        color: white;
        text-decoration: none;
        z-index: 1000;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.5s ease-in-out;
        gap: 1rem;
        padding: 1.8rem;
        width: 87%;
        border-radius: 16px;
        top: 0;
        bottom: 0;
        margin-top: 85px;
        height: calc(80vh - 70px);
        min-height: 300px;
    }

    .mobile-nav-links-active {
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-nav-links a {
        font-size: 1.1rem;
        transition: all 0.3s ease;
        color: white;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .mobile-nav-links a:hover {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .mobile-nav-links a i {
        width: 20px;
        text-align: center;
        font-size: 1rem;
        opacity: 0.8;
    }

    .mobile-nav-links #loginLink{
        display: block !important;
    }

    .mobile-currency-selector {
        width: 100%;
        position: relative;
    }

    .mobile-currency-selector .usd-selector {
        width: 100%;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        border: none;
        background-color: transparent;
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: relative;
        z-index: 2;
    }

    /* Add currency icon */
    .mobile-currency-selector .usd-selector::before {
        content: "💵";
        font-size: 1rem;
        opacity: 0.8;
        width: 20px;
        text-align: center;
    }

    /* Custom dropdown arrow */
    .mobile-currency-selector::after {
        content: "▾";
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        pointer-events: none;
        font-size: 1.2rem;
        z-index: 3;
        transition: transform 0.3s ease;
    }

    /* Expandable dropdown container */
    .mobile-currency-selector .dropdown-options {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #141414;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 10;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-top: none;
    }

    /* Show dropdown when focused */
    .mobile-currency-selector:focus-within .dropdown-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Rotate arrow when open */
    .mobile-currency-selector:focus-within::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Style the dropdown options */
    .dropdown-option {
        padding: 0.75rem 1.5rem;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        font-size: 1rem;
    }

    .dropdown-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-option:first-child {
        border-radius: 0;
    }

    .dropdown-option:last-child {
        border-radius: 0 0 8px 8px;
    }

    /* Highlight the nav-link when dropdown is open */
    .mobile-currency-selector:focus-within {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px 8px 0 0;
    }

    .mobile-currency-selector:focus-within .usd-selector {
        border-radius: 8px 8px 0 0;
    }

    .cart-tab {
        width: 20rem;
        padding-block: 1.5rem;
    }
    
    .item {
        padding: 0.7rem;
        gap: 0.8rem;
    }
    
    .item img {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .item h4 {
        font-size: 0.95rem;
    }
    
    .item .item-category {
        font-size: 0.8rem;
    }
    
    .item .item-total {
        font-size: 1rem;
    }
    
    .item .item-oldprice {
        font-size: 0.85rem;
    }
    
    .total-container {
        padding: 1.2rem 1.5rem;
    }
    
    .total-container h4 {
        font-size: 1.2rem;
    }
    
    .cart-total {
        font-size: 1.2rem;
    }
    
    .btn-container {
        padding: 0 1.5rem;
        gap: 0.8rem;
    }
    
    .btn-container .btn-close,
    .btn-container .btn-checkout {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .cart-tab h3 {
        font-size: 1.3rem;
        padding: 0 1.5rem;
    }

    

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .brand {
        grid-column: 1 / -1;
    }


}


/* Mobile 480 below */

@media (max-width: 480px){
    /* navrbar */
    .navbar {
        padding: 8px 15px;
    }

    .navbar .logname img {
        width: 30px;
        height: 30px;
    }

    .navbar .logname a {
        font-size: 14px;
        line-height: 30px;
    }

    .navbar .cart-btn {
        width: 32px;
        height: 32px;
    }

    .navbar .cart-count {
        width: 12px;
        height: 12px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    .navbar .bar i {
        font-size: 1.2rem;
    }

    .mobile-nav-links {
        /* top: max(calc(var(--vh, 1vh) * 14), 60px); */
        width: 90%;
        padding: 1.5rem;
        gap: 0.6rem;
        border-radius: 14px;
        min-height: 280px;
        margin-top: 75px;
        
    }

    .mobile-nav-links a {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        width: 100%;
        text-align: center;
    }

    .cart-tab {
        width: 20rem;
        padding-block: 1.5rem;
    }
    
    .item {
        padding: 0.7rem;
        gap: 0.8rem;
    }
    
    .item img {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .item h4 {
        font-size: 0.95rem;
    }
    
    .item .item-category {
        font-size: 0.8rem;
    }
    
    .item .item-total {
        font-size: 1rem;
    }
    
    .item .item-oldprice {
        font-size: 0.85rem;
    }
    
    .total-container {
        padding: 1.2rem 1.5rem;
    }
    
    .total-container h4 {
        font-size: 1.2rem;
    }
    
    .cart-total {
        font-size: 1.2rem;
    }
    
    .btn-container {
        padding: 0 1.5rem;
        gap: 0.8rem;
    }
    
    .btn-container .btn-close,
    .btn-container .btn-checkout {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .cart-tab h3 {
        font-size: 1.3rem;
        padding: 0 1.5rem;
    }

     /* footer */

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

}