
/* ================= RESET & VARIABLES ================= */
:root {
    --primary-color: #ff6b00; 
    --text-dark: #fff;
    --text-gray: #888;
    --bg-light: #fff;
    --bg-off-white: #f8f9fa;
    --border-color: #eee;
    --header-height: 30px;
    --bottom-nav-height: 65px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
   
    display: flex;
    justify-content: center;
    height: 100vh;
    
    /* --- New Background Styles --- */
    background-color: black; 
    background-image: url('img/double-bubble-dark.webp'); 
    background-repeat: repeat; 
    background-size: 400px; 
    background-attachment: fixed; 

   
    margin: 0;
    padding: 0;
}


.mobile-wrapper {
    width: 100%;
    flex-direction: column;
    /* max-width: 420px; */
    overflow: hidden;
    /* background-color: var(--bg-light); */
    height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 5px;
   
}


.app-header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    /*height: var(--header-height);*/
    background-color: var(--bg-light);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px 20px;
}

.icon-btn {
    padding: 5px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}
.logo-img {
  width: 150px;
     height: 40px;
}
.logo-highlight {
    color: var(--primary-color);
}

.cart-btn {
    position: relative;
}



/* Row 2: Search & Scanner */
.header-search {
    padding: 0 20px 15px 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #393939;
    border-radius: 12px;
    padding: 0 10px;
    /*border: 1px solid #facfe0;*/
}

.search-container svg {
    margin-right: 8px;
    margin-left: 5px;
}

.search-container input {
    border: none;
    background: none; 
    padding: 12px 0;
    flex-grow: 1;
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}

.scanner-btn {
    color: var(--primary-color);
    padding: 8px;
    border-left: 1px solid var(--border-color);
}

/* ================= MAIN CONTENT ================= */
.content-area {
    height: 100%;
    overflow-y: auto;
    /* Push content down by header height and not hide behind bottom nav */
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    margin-top: -35px !important;
    max-width: 1355px;
    margin: 0 auto;
}

.content-area::-webkit-scrollbar {
    display: none;
}

/* Banner */
.hero-banner {
  margin: 20px;
  /*height: 140px;*/
  /* background: linear-gradient(45deg, #ff6b00, #ff9e4f); */
  border-radius: 6px !important;
  display: flex;
  align-items: center;
  justify-content: space-between; /* space between text and image */
  /* padding: 20px; */
  color: white;
  overflow: hidden;
}

.banner-content h2 {
  font-size: 24px;
  margin: 0;
}

.banner-content p {
  font-size: 18px;
  margin: 5px 0 0;
}

.banner-img {
  height: 100%;
  max-height: 135px;
  border-radius: 12px;
  object-fit: cover;
}


.banner-content h2 { font-size: 24px; margin-bottom: 5px; }
.banner-content p { font-size: 14px; opacity: 0.9; }

/* General Sections */
.section-container {
     /*padding: 20px 0;*/
    /* background-color: var(--bg-light); */
    margin-bottom: 10px;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 30px;
}

.section-header {
    padding: 0px 19px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 { font-size: 16px; color: var(--text-dark) !important; }
.see-all { text-decoration: none; color: var(--primary-color); font-size: 13px; font-weight: 600;}

/* Categories Horizontal Scroll */
.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 20px;
    gap: 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.cat-item span {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.product-info h4 {
   font-size: 14px;
    margin-bottom: 1px;
    font-weight: 500;
}

.product-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ================= BOTTOM NAVIGATION ================= */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /*border-top: 1px solid var(--border-color);*/
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 10px;
    font-weight: 500;
}

.nav-item svg {
    margin-bottom: 4px;
}

.nav-item.active {
    color: white;
}

/*header style*/

#universal-search {
    color: #fff !important;
}

#universal-search::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

.search-icon {
    stroke: #fff !important;
}

    /* --- HEADER STRUCTURE --- */
    .app-header {
        background: #000000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    .header-inner {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        width: 100%;
        margin: auto;
        max-width: 100%; 
    }

    /* Common Button Styles */
    .nav-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        flex-shrink: 0; 
        color: white;
    }

    /* --- SEARCH BAR (Responsive Logic) --- */
    .search-container {
        flex: 1; 
        position: relative;
        margin: 0 10px; 
    }

    .search-input-wrapper {
        position: relative;
        background: #393939;
        border-radius: 16px;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .search-icon {
        position: absolute;
        left: 16px;
        pointer-events: none;
    }

    #universal-search {
        flex: 1;
        width: 100%;
        padding: 13px 50px 13px 45px;
        font-size: 16px;
        border: none;
        background: #393939;
        outline: none;
        /*border-radius: 16px;*/
    }

    /* --- SCANNER BUTTON --- */
    .scanner-btn {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    /* --- SEARCH DROPDOWN --- */
    #search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.18);
        max-height: 65vh;
        overflow-y: auto;
        display: none;
        margin-top: 5px;
        border: 1px solid #eee;
    }
    #results-inner { padding: 10px 0; }

    /* --- CART --- */
    .cart-btn { position: relative; }
    .cart-badge {
        position: absolute;
        top: -2px;
        right: -2px;
       background: #ffffff;
        color: #1f1c1c;
        font-size: 10px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* --- RESULTS STYLING --- */
    .item {
        display: flex; align-items: center; padding: 14px 18px; 
        text-decoration: none; color: #333; border-bottom: 1px solid #f0f0f0;
        transition: 0.2s;
    }
    .item:hover { background: #f8f9fa; }
    .item img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; margin-right: 16px; }
    .item h4 { margin: 0; font-size: 16px; font-weight: 600; }
    .item p { margin: 5px 0 0; font-size: 13px; color: #666; }
    .section-title {
        padding: 12px 18px; background: #fff3e0; font-weight: bold; 
        color: #d84315; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
    }

    @media (min-width: 992px) {
        .header-inner {
            padding: 15px 30px; 
            max-width: 1600px; 
        }
        
        .search-container {
            margin: 0 25px; 
        }

        #universal-search {
            font-size: 17px; 
            padding: 15px 60px 15px 50px;
        }
    }

#scanner-container{
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
}
#qr-reader{
    width: 90%; 
    max-width: 500px; 
    background-color: #1c1c1c; 
    border: 1px solid #444;
    border-radius: 8px; overflow: hidden;
}
#close-scanner-btn{
    margin-top: 20px;
    padding: 10px 20px; 
    background-color: #e74c3c; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    font-size: 16px; 
    cursor: pointer;
}



/*index.php style*/
@media screen and (min-width: 1024px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 20px;
        padding: 20px 0;
    }
    .product-card {
        transition: transform 0.2s;
    }
    .product-card:hover {
        transform: translateY(-5px); 
    }
}

 /* Default Grid (Mobile - 2 columns) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    margin-bottom: 60px !important;
    max-width: 1360px;
        margin: 0 auto;
}
.product-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    aspect-ratio: 3 / 4;
    width: 100%;
    flex-direction: column;
}
.product-img {
    width: 100%;
    height: 100%;         
    object-fit: cover;   
    object-position: top;  
    display: block;
}
.product-info {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0;
    text-align: center;
    background: white;
}




/*subcategory.php style*/

main.content-area {
    flex-grow: 1;
    overflow-y: auto;
     padding-top: 20px !important;
     padding-bottom: 70px;
      width: 100%;
 }
 
 .category-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }
.category-card {
            position: relative; 
            border-radius: 6px; 
            overflow: hidden; 
            /*border: 1px solid #f0f0f0;*/
           
            aspect-ratio: 3 / 4; 
            width: 100%;
            
            display: block; 
            box-shadow: 0 1px 4px rgba(0,0,0,0.1); 
            transition: transform 0.2s ease;
            height: 240px;
        }
.category-card:hover {
                    transform: translateY(-3px);
                    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
                }
.category-image {
            width: 100%; 
            height: 100%;         
            object-fit: cover;    
            object-position: top;  
            display: block;
        }
.card-info { 
            position: absolute;   
            bottom: 0;            
            left: 0;
            width: 100%;
            z-index: 10;
            
            padding: 10px 10px 10px 10px; 
            text-align: center; 
            
           
             background: #ffffff; 
        }
        
.product-name {
           color: #000;
    margin: 0;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
        }
        
     
     
        
/*product.php style */
#catename {
            text-decoration: none;
            color: white;
        }
        .product-link {
            text-decoration: none;
            color: inherit;
        }
 .product-card:hover {
            transform: translateY(-3px);
        }  
        
  .product-image {
            width: 100%;
    position: relative;
    height: 100%;
    padding-top: 0;
    border: none;
    margin: 0;
        }
.discount-badge {
            position: absolute;
            top: 8px; 
            left: 8px; 
            background-color: #000; 
            color: white;
            padding: 4px 10px; 
            border-radius: 5px; 
            font-size: 12px;
            font-weight: 700;
            z-index: 2; 
        }
.product-image img {
            width: 100%;
    top: 0;
    height: 100%;
    object-fit: cover;
    object-position: top;
    position: absolute;
    transition: transform 0.3s ease;
        }
.product-info-inner {
            padding: 8px 8px 5px 8px; 
            background: #fff;
        }
.price-row {
            display: flex;
    align-items: center;
    justify-content: left;
    gap: 10px;
    flex-wrap: wrap;
        }
.discount-price {
            color: #000; 
            font-size: 14px;
            font-weight: 700; 
        }
        
        .real-price {
            color: #888; 
            font-size: 13px;
            text-decoration: line-through; 
        }
.btn-add-to-cart {
            background-color: #0866ff;
            color: white;
            font-size: 14px;
            font-weight: 700;
            text-align: center;
            padding: 8px 0;
            width: 100%;
            cursor: pointer;
            text-transform: uppercase;
            transition: background-color 0.2s;
            border-top: 1px solid #eee;
        }

        .btn-add-to-cart:active {
            background-color: #0000cc;
        }
        #subcatename {
        text-decoration: none;
        color: white;
    }
        
        
/*productdetails page style*/
main.product-detail-page {
            flex-grow: 1;
            overflow-y: scroll;
            -webkit-overflow-scrolling: touch; 
            padding-top: 70px; 
            padding-bottom: 70px; 
            box-sizing: border-box;
        }
@media screen and (min-width: 992px) {
    #subcatename {
        text-decoration: none;
        color: white;
    }
    .desktop-flex-container {
                    display: flex;
                    max-width: 1350px;
                    margin: 0 auto;
                    padding-top: 10px;
                    gap: 30px;
                    align-items: flex-start;
                }
                .sidebar-left {
                    width: 48%;
                    min-height: 500px;
                }
                .sidebar-list {
                display: grid; 
                grid-template-columns: repeat(3, 1fr); 
                gap: 15px;
                list-style: none;
                padding: 0;
                margin: 0;
            }
            .sidebar-item {
                margin: 0;
            }
            .sidebar-link {
                display: flex;
                flex-direction: column;
                text-decoration: none;
                background-color: #fff; /* White background */
                border-radius: 6px;     /* Rounded corners */
                overflow: hidden;       /* Clip image to corners */
                transition: transform 0.2s ease;
                height: 100%;
                box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow */
            }
            
            .sidebar-link:hover {
                transform: translateY(-5px); /* Lift up effect on hover */
            }
            .sidebar-thumb {
                width: 100%;
                height: 220px;          
                object-fit: cover;
                object-position: top;
                margin: 0;
                display: block;
            }
               .sidebar-text-wrap {
                padding: 8px 8px;
                text-align: center;
                background: #fff;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                flex-grow: 1;
            }
                        .sidebar-name {
                font-size: 14px;
                font-weight: 700;
                color: #000;            /* Black Text */
                text-transform: uppercase;
                margin-bottom: 5px;
                line-height: 1.2;
            }

            .sidebar-count {
                font-size: 13px;
                color: #888;            /* Grey Text */
                font-weight: 400;
            }
            .product-content-right {
                flex-grow: 1;
                display: flex;
                gap: 30px;
                flex-direction: column; 
                max-width: 50%; 
            }
              .gallery-container {
                flex: 1;
                display: flex;
                gap: 15px;
                max-width: 100%;
            }
            .main-image-wrapper {
                flex-grow: 1;
            }
            .product-main-image {
                width: 100%;
                height: 600px !important;
                object-fit: cover; 
            }
            .image-dots, .mobile-only {
                display: none !important;
            }
            .thumbnail-strip {
                width: 80px;
                display: flex;
                flex-direction: column;
                gap: 10px;
                height: 600px;
                overflow-y: auto;
            }

            .thumb-img-box {
                width: 100%;
                height: 100px;
                border: 1px solid #ccc;
                cursor: pointer;
                border-radius: 4px;
                overflow: hidden;
                opacity: 0.7;
                transition: all 0.2s;
            }
            .thumb-img-box.active, .thumb-img-box:hover {
                border: 2px solid #ff3388;
                opacity: 1;
            }
            .thumb-img-box img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            .product-info-section { background: transparent; margin-top: 0; padding: 0; }
            .product-code { color: #fff !important; margin-top: 15px;}
            .current-price { color: #fff !important; }
            .mrp-price { color: #666 !important; text-decoration: line-through; }
}
.product-header{
    display: flex;
    gap: 35%;
}
.product-info-section { padding: 10px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    margin-top: 0px;
    position: relative;
    z-index: 1; }
.product-image-section { position: relative;  min-height: 300px; user-select: none; }
.image-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: #ccc; cursor: pointer; transition: background-color 0.2s; }
.dot.active { background-color: #333; }
.product-title-group h1 { font-size: 1.5rem; font-weight: 600; color: #fff; margin: 0; }
.code-box { background-color: #ff9966; color: white; padding: 3px 8px; border-radius: 5px; font-weight: bold; }
 .action-buttons { display: flex; gap: 10px; width: 100%; margin-top: 20px;}
        .action-buttons button { flex: 1; padding: 14px; font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .add-to-cart-btn { background-color: #ff3388; border: none; color: #fff; }
        .trypick-btn { background-color: #fff; border: 1px solid #bdbdbd; color: #212121; }
        .price-row-similar { display: flex; align-items: center; justify-content: left; gap: 6px; flex-wrap: wrap; }
        .real-price-similar { color: #888; font-size: 13px; text-decoration: line-through; }
        .discount-price-similar { color: #4a4949; font-size: 14px; font-weight: 700; }
@keyframes slideUp { from { transform: translateX(-50%) translateY(100px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
        @keyframes slideDown { to { transform: translateX(-50%) translateY(100px); opacity: 0; } }
        #cart-snackbar {
            position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
            background: #ff3388; color: white; padding: 16px 24px; border-radius: 10px;
            display: flex; align-items: center; gap: 16px; box-shadow: 0 10px 30px rgba(0,102,255,0.4);
            z-index: 10000; font-weight: 600; animation: slideUp 0.5s ease; max-width: 90%; justify-content: center;
        }
        #cart-snackbar button { background: white; color: #ff3388; border: none; padding: 8px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; }
        #cart-snackbar button:last-child { background: none; font-size: 24px; padding: 0 5px; }
         .btn-add-to-cart-similar {
            background-color: #006aff; 
            color: white;
            font-size: 14px;
            font-weight: 700;
            text-align: center;
            padding: 12px 0;
            width: 100%;
            cursor: pointer;
            text-transform: uppercase;
            border: none;
            transition: background-color 0.2s;
            letter-spacing: 0.5px;
        }

        .btn-add-to-cart-similar:hover {
            background-color: #0056d0; 
        }

        /* NEW: Disabled/Added State Style */
        .btn-add-to-cart-similar.disabled {
            background-color: #28a745 !important;
            opacity: 1;
            cursor: default;
            pointer-events: none;
        }
@media screen and (max-width: 991px) {
            .sidebar-left, .thumbnail-strip {
                display: none !important;
            }
            .product-content-right {
                flex-direction: column;
            }
            .gallery-container {
                display: block;
                width: 100%;
                max-width: 100%;
            }
            .product-main-image {
                height: 70vh;
                width: 100%;
            }
        }
        
        
        
/*cart.php style*/
@keyframes s{to{transform:rotate(360deg)}}
@media (min-width: 992px) {
    .scrollable-content {
        padding: 30px 40px;
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
    }
    .cart-layout-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px}
    .cart-sidebar-column{position:sticky;top:20px}
}

.scrollable-content{flex:1;overflow-y:auto;padding:15px;padding-bottom:100px;-webkit-overflow-scrolling:touch}
.card{background:#fff;border-radius:8px;margin-bottom:12px;padding:15px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
 .cart-item-card{display:flex;gap:15px;position:relative}
 .item-image img{width:80px;height:100px;object-fit:cover;border-radius:6px;border:1px solid #eee}
  .item-name{font-size:16px;font-weight:600;margin:0 0 8px}
.item-quantity{display:inline-flex;align-items:center;border:1px solid #ddd;border-radius:6px;padding:4px}
.remove-item-btn{position:absolute;top:10px;right:10px;font-size:24px;background:none;border:none;cursor:pointer;color:#888}
.qty-btn{background:none;border:none;width:36px;font-size:18px;cursor:pointer color: black;color: black;}
.qty-input {
    width: 50px;
    text-align: center;
    border: none;
}
.price-total-row{border-top:1px dashed #ccc;padding-top:12px;font-weight:700;font-size:16px}
.spinner{border:4px solid #f0f0f0;border-top:4px solid #e91e63;border-radius:50%;width:36px;height:36px;animation:s 1s linear infinite;margin:20px auto}
#otpBox{display:none;margin-top:15px}
#otpBox input{width:100%;padding:12px;font-size:18px;text-align:center;letter-spacing:8px;border:1px solid #ddd;border-radius:6px}
#otpBox button{width:100%;padding:12px;margin-top:10px;background:#e91e63;color:white;border:none;border-radius:6px;font-weight:600}
.checkout-footer{position:fixed;bottom:60px;left:0;right:0;background:#fff;padding:12px 15px;box-shadow:0 -2px 10px rgba(0,0,0,.1);display:flex;justify-content:space-between;align-items:center;z-index:100}
.checkout-footer .proceed-btn{background:#e91e63;color:#fff;padding:12px 24px;border:none;border-radius:8px;font-weight:600}
.empty-cart-message{text-align:center;padding:60px 20px;color:#777;font-size:1.2rem}
        .msg{padding:10px;border-radius:6px;margin:8px 0;font-size:14px}
        .success{background:#d4edda;color:#155724}
        .error{background:#f8d7da;color:#721c24}
.desktop-checkout-btn{display: block; /* Changed from 'none' so it shows on mobile */
    width: 100%;
    background: #e91e63;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
}
.price-row{display:flex;font-size:14px;color: black;}
.green-text{color:#00875a}




/*profile.php style*/

@media (min-width: 1024px) {
    .profile-page {
        /* max-width: 1355px; */
        /* margin: 0 auto; */
        padding: 10px 91px !important;
    }
    .profile-header .title {
            font-size: 25px;
            margin-bottom: 0px;
            color: white;
        }
        .profile-header .title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #212121;
        margin: 0;
        color: white;
    }
    .user-info-card {
            padding: 20px !important;
        gap: 24px !important;
        border-radius: 7px !important;
        background: #fafafa;
        }

        .user-info-card .avatar {
            width: 100px; /* Larger Avatar */
            height: 100px;
        }
        .user-details h2 {
            font-size: 1.3rem;
            margin-bottom: 8px;
        }
        .user-details .edit-profile-link {
            font-size: 1rem;
        }
         .profile-nav-grid {
            grid-template-columns: repeat(5, 1fr) !important; 
            gap: 24px !important;
        }
        .nav-item-card {
            flex-direction: column; /* Stack icon and text vertically */
            justify-content: center;
            padding: 20px 10px;
            text-align: center;
            height: 100%;
            background: #fff;
        }
        .nav-item-card .item-content {
            flex-direction: column;
            gap: 16px;
        }

        .nav-item-card .item-content svg {
            width: 40px !important;
        height: 40px !important;
        stroke: #e73c7e !important;
        }

        .nav-item-card .item-content span {
            font-size: 1.2rem;
        }
         .nav-item-card .arrow-icon {
            display: none;
        }
        .logout-section {
            display: flex;
            justify-content: flex-end;
            margin-top: 30px;
            border-top: 1px solid #eee;
            padding-top: 20px;
        }
        .logout-link:hover {
            
            background-color: #fff0f5; 
        }
        .nav-item-card:hover {
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
            transform: translateY(-5px);
            border-color: #e73c7e;
        }
        .profile-header .back-btn {
            display: none; 
        }


}

.profile-page {
    padding: 16px;
    min-height: 82vh;
}

 .profile-header {
        display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-bottom: 10px;
    }
    
.user-info-card .avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(to top, #ff8a80, #ffe0b2);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .user-info-card .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .user-info-card {
        display: flex;
    align-items: center;
    gap: 16px !important;
    padding: 20px !important;
    border-radius: 7px !important;
    margin-bottom: 24px;
    background: white;
    }
     .user-details h2 {
        margin: 0 0 4px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #212121;
        text-transform: capitalize;
    }
    .user-details .edit-profile-link {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.9rem;
        color: #e73c7e;
        text-decoration: none;
        font-weight: 500;
    }
    
     .profile-nav-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
      .nav-item-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        text-decoration: none;
        color: #212121;
        transition: all 0.2s ease;
        background: white;
    }
    .nav-item-card .item-content {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
    }
    
    .nav-item-card .item-content svg {
        width: 22px;
        height: 22px;
        stroke: #424242;
    }
    .nav-item-card .arrow-icon svg {
       width: 18px;
       height: 18px;
       stroke: #757575;
    }
     
    .logout-section {
        margin-top: 40px;
        text-align: center;
        margin-bottom: 40px;
    }
    .logout-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #e73c7e;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px 20px;
        border-radius: 8px;
        transition: background 0.2s;
    }
    .profile-header .back-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
    }
    
    
    
/*order.php style*/
@media screen and (min-width: 769px) {
    .container {
        max-width: 100% !important;
        width: 100%;
        margin: 0;
        box-shadow: none;
    }
        .header {
        padding: 20px;
        margin-bottom: 8px;
        border-bottom: none;
        position: relative;
        top: auto;
        height: 60px;
        background: #000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .main-content {
                width: 93% !important;       
                margin: 0 55px;    
            }
     .order-table-header {
                font-size: 16px;
                padding: 7px;
                border-radius: 8px 8px 0px 0px;
                top: 0; 
            }
            .order-table-header .table-cell:nth-child(1), .order-item .table-cell:nth-child(1) { flex-basis: 15%; text-align: left; padding-left: 20px;color: white; }
            .order-table-header .table-cell:nth-child(2), .order-item .table-cell:nth-child(2) { flex-basis: 15%; color: white;}
            .order-table-header .table-cell:nth-child(3), .order-item .table-cell:nth-child(3) { flex-basis: 20%; }
            .order-table-header .table-cell:nth-child(4), .order-item .table-cell:nth-child(4) { flex-basis: 15%; color: white;}
            .order-table-header .table-cell:nth-child(5), .order-item .table-cell:nth-child(5) { flex-basis: 15%; }
.order-item {
                font-size: 15px;
                padding: 6px 15px;
                border-left: 1px solid #eee; 
                border-right: 1px solid #eee;
            }
            .status-badge {
                padding: 6px 12px !important;
                font-size: 13px !important;
            }
            .view-button {
                padding: 8px 20px !important;
                font-size: 13px !important;
            }
            .order-item:last-child {
                border-bottom: 1px solid #eee;
                border-radius: 0 0 8px 8px;
            }
}


.container {
            /*background-color: #fff;*/
            width: 100%;
            max-width: 410px;
           
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
        }
.header i {
    font-size: 24px;
    color: #fff;
    margin-right: 15px;
    cursor: pointer;
}
.main-content {
            display: flex;
            flex-direction: column;
            flex: 1; 
            width: 100%;
            overflow-y: auto;
        }
.order-table-header {
             display: flex;
    background-color: #e91e63;
    color: #fff;
    font-weight: bold;
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    position: sticky;
   
    top: 0px; 
    z-index: 99;    
        }
.order-table-header .table-cell:nth-child(1), .order-item .table-cell:nth-child(1) { flex-basis: 15%; }
        .order-table-header .table-cell:nth-child(2), .order-item .table-cell:nth-child(2) { flex-basis: 20%; }
        .order-table-header .table-cell:nth-child(3), .order-item .table-cell:nth-child(3) { flex-basis: 25%; }
        .order-table-header .table-cell:nth-child(4), .order-item .table-cell:nth-child(4) { flex-basis: 20%; }
        .order-table-header .table-cell:nth-child(5), .order-item .table-cell:nth-child(5) { flex-basis: 20%; }
 #ordersContainer {
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
        }
.order-item {
            display: flex;
            padding: 6px 6px;
            border-bottom: 1px solid #eee;
            align-items: center;
            font-size: 12px;
            color: #fff;
            transition: background-color 0.2s;
        }
.status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 8px;
            font-weight: 600;
            display: inline-block;
        }
.status-pending { background-color: #fff3cd; color: #856404; }
        .status-processing { background-color: #cfe2ff; color: #084298; }
        .status-delivered { background-color: #d1e7dd; color: #0f5132; }
        .status-cancelled { background-color: #f8d7da; color: #842029; }
.view-button {
            background-color: #e91e63; 
            color: #fff;
            border: none;
            border-radius: 20px; 
            padding: 6px 12px;
            font-size: 11px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-button:hover {
            background-color: #d81b60;
            transform: scale(1.05);
        }
 .loading-container {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 50px 20px;
            flex-direction: column;
            flex: 1;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #e91e63;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
.empty-orders {
            text-align: center;
            padding: 50px 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .empty-orders i {
            font-size: 60px;
            color: #ccc;
            margin-bottom: 20px;
        }
.shop-now-btn {
            background-color: #e91e63;
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            margin-top: 10px;
        }

        .error-message {
            text-align: center;
            padding: 30px 20px;
            color: #dc3545;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
.table-cell {
            flex: 1;
            text-align: center;
            word-break: break-word;
            padding: 0 5px;
        }
        
 
 
 /*ADDRESS.PHP STYLE*/
 
         .main-content::-webkit-scrollbar {
            display: none;
        }

       

        .back-arrow {
            font-size: 20px;
            cursor: pointer;
            color: white;
        }

        .header h2 {
            font-size: 16px;
            font-weight: 600;
            color: white;
        }

        /* Top Bar */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            margin-top: 10px;
        }

        .default-label {
            font-size: 13px;
            font-weight: 600;
            color: #fff;
        }

        .add-address-btn {
            display: inline-block;
            text-decoration: none;
            background: #fff;
            border: 1px solid #007bff;
            color: #007bff;
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
        }

        /* Address Card */
        .address-card {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 15px;
            margin-bottom: 15px;
        }

        .address-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .status-dot {
            width: 12px;
            height: 12px;
            background: #00c853;
            border-radius: 50%;
        }

        .status-dot.default {
            background: #7c3aed;
        }

        .type-badge {
            font-size: 12px;
            color: #444;
            border: 1px solid #ccc;
            padding: 4px 8px;
            border-radius: 20px;
            font-weight: 500;
            text-transform: uppercase;
        }

        .address-content {
            margin-top: 10px;
        }

        .address-content h3 {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .address-content p {
            font-size: 13px;
            line-height: 1.4;
            color: #555;
        }

        hr {
            border: none;
            border-top: 1px solid #eee;
            margin: 10px 0;
        }

        /* Buttons */
        .card-actions {
            display: flex;
            justify-content: space-between;
        }

        .edit-btn,
        .remove-btn,
        .set-default-btn { 
            background: none;
            border: none;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            padding: 5px 10px; 
        }

        .edit-btn { color: #007bff; }
        .remove-btn { color: #ff3b30; }
        .set-default-btn { color: #7c3aed; }

        /* Loading States */
        .loading {
            text-align: center;
            padding: 20px;
            color: #666;
            font-size: 13px;
        }

       
        @media screen and (min-width: 769px) {
           
      
            #address-list {
                display: grid;
                grid-template-columns: 1fr 1fr; 
                gap: 20px;
                width: 100%;
            }
            
            .address-card {
                margin-bottom: 0;
                height: 100%;
                display: flex;
                flex-direction: column;
            }
            
            .card-actions {
                margin-top: auto;
            }
        }
        
        
/*addnewaddress.php style*/

.address-container {
  width: 100%;
  max-width: 400px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
  margin-bottom: 20px;
  background-color: black;
}

.header h2 {
  font-size: 16px;
  font-weight: 600;
}

.icon {
  width: 20px;
  height: 20px;
  margin-left: 5px;
}

.back-arrow {
  font-size: 20px;
  cursor: pointer;
}

.address-form input,
.address-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.address-form textarea {
  resize: none;
  height: 60px;
}

.row {
  display: flex;
  gap: 10px;
}

.row input {
  flex: 1;
}

.type-label {
  font-size: 14px;
  margin: 5px 0;
  display: block;
  color: #fff;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.radio-group input[type="radio"] {
  accent-color: #7c3aed; /* Purple tone */
}

.checkbox-group {
  display: flex;
  align-items: center;
    margin-top: 10px; /* Added margin-top for better spacing */
  margin-bottom: 20px;
}

.checkbox-group input {
  margin-right: 8px;
  width: 15px !important;
}

.button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cancel {
 border: none;
    color: #ff3b30;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: #ffffff;
    padding: 10px 28px;
    border-radius: 15px;
}

.save {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
