/* =========================
   GLOBAL
========================= */

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

body{
    font-family: Arial, sans-serif;
    background:#f4f6f9;
    color:#1f2937;
    line-height:1.5;
}

a{
    text-decoration:none;
}

.container{
    width:92%;
    max-width:1300px;
    margin:auto;
}

/* =========================
   HEADER
========================= */

.header{
    background:#0f172a;
    color:#ffffff;
    padding:18px 25px;
    text-align:center;
    font-size:32px;
    font-weight:bold;
    letter-spacing:0.5px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

/* =========================
   SEARCH BAR
========================= */

.search-container{
    background:#ffffff;
    padding:18px 20px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    border-bottom:1px solid #e5e7eb;
    position:sticky;
    top:0;
    z-index:100;
}

.search-box{
    width:420px;
    max-width:100%;
    padding:12px 15px;
    border:1px solid #d1d5db;
    border-radius:10px;
    font-size:15px;
    outline:none;
    transition:0.2s;
    background:#f9fafb;
}

.search-box:focus{
    border-color:#16a34a;
    background:#ffffff;
}

/* =========================
   NAV BUTTONS
========================= */

.link-btn,
.btn,
.nav-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    border:none;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:0.2s;
    background:#16a34a;
    color:white;
}

.link-btn:hover,
.btn:hover,
.nav-btn:hover{
    background:#15803d;
}

.logout{
    background:#dc2626;
}

.logout:hover{
    background:#b91c1c;
}

/* =========================
   PRODUCT GRID
========================= */

.products{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 280px));
    gap:25px;
    margin-top:30px;
    margin-bottom:40px;
    justify-content:center;
}

/* =========================
   PRODUCT CARD
========================= */
.card .qty-box button{
    background:#f3f4f6;
    color:#2563eb;
    border:1px solid #dbeafe;
}
.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
}
.card .qty-box button:hover{
    background:#dbeafe;
}
.card,
.product-card{
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
    transition:0.25s ease;
    display:flex;
    flex-direction:column;
    width:280px;
}

.card:hover,
.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 22px rgba(0,0,0,0.12);
}

.card img,
.product-card img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}
.card h3{
    padding:12px 16px 0;
    font-size:18px;
    font-weight:700;
    color:#111827;
}

.card p{
    padding:0 16px 12px;
    font-size:18px;
    color:#111827;
}
.card-content{
    padding:18px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.product-name{
    font-size:20px;
    font-weight:700;
    margin-bottom:10px;
    color:#111827;
}

.product-price{
    font-size:22px;
    font-weight:bold;
    color:#111827;
    margin-bottom:18px;
}

.out-label{
    color:#dc2626;
    font-weight:bold;
    margin-bottom:12px;
}

/* =========================
   ADD TO CART BUTTON
========================= */

.add-btn {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 16px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #16a34a;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.add-btn:hover{
    background:#15803d;
}

/* =========================
   QUANTITY CONTROLS
========================= */

.qty-box{
    margin-top:auto;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    border-top:1px solid #e5e7eb;
}

.qty-box button{
    width:38px;
    height:38px;
    border:1px solid #d1d5db;
    border-radius:10px;
    background:#ffffff;
    color:#111827;
    font-size:20px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
}

.qty-box button:hover{
    background:#f3f4f6;
}

.qty{
    min-width:40px;
    text-align:center;
    font-size:20px;
    font-weight:700;
    color:#111827;
}
/* =========================
   CART
========================= */
.cart-summary{
    background:#f8fafc;
    padding:20px;
    border-radius:14px;
    border:1px solid #e5e7eb;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:12px 0;
    font-size:16px;
    color:#111827;
}

.summary-divider{
    border-top:1px solid #d1d5db;
    margin:14px 0;
}

.free-delivery{
    color:#16a34a;
    font-weight:800;
}

.grand-total{
    font-size:22px;
    font-weight:800;
}

.cart-actions{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:25px;
}

.checkout-btn{
    padding:12px 20px;
    border:none;
    border-radius:10px;
    background:#16a34a;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.checkout-btn:hover{
    background:#15803d;
}

.checkout-btn.disabled{
    background:#cbd5e1;
    cursor:not-allowed;
}

.btn-cancel{
    padding:12px 20px;
    border:1px solid #dc2626;
    border-radius:10px;
    background:#ffffff;
    color:#dc2626;
    font-weight:700;
    cursor:pointer;
}

.btn-cancel:hover{
    background:#fee2e2;
}
.cart-box{
    background:#ffffff;
    padding:25px;
    border-radius:18px;
    margin-top:25px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

.cart-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid #e5e7eb;
    gap:15px;
}

.cart-col{
    flex:1;
}

.cart-col.name{
    font-weight:600;
    font-size:16px;
}

.cart-col.price{
    text-align:right;
    font-weight:bold;
}

.cart-col.action{
    text-align:center;
}

.item-total{
    font-weight:700;
    color:#111827;
}

.remove-btn{
    background:#dc2626;
    color:white;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    transition:0.2s;
}

.remove-btn:hover{
    background:#b91c1c;
}

.oos-text{
    color:#dc2626;
    font-weight:bold;
}

/* =========================
   CHECKOUT
========================= */

.checkout-wrapper{
    max-width:950px;
    margin:30px auto;
    padding:0 20px;
}

.checkout-card{
    background:#ffffff;
    padding:26px;
    border-radius:18px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
    margin-bottom:22px;
}

.section-title{
    font-size:22px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:22px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.input-group{
    display:flex;
    flex-direction:column;
}

.input-group label{
    margin-bottom:8px;
    font-weight:700;
    color:#111827;
}

.input-group input,
textarea,
select{
    width:100%;
    padding:14px 15px;
    border:1px solid #d1d5db;
    border-radius:12px;
    font-size:15px;
    outline:none;
    background:#ffffff;
}

.input-group input:focus,
textarea:focus,
select:focus{
    border-color:#16a34a;
    box-shadow:0 0 0 3px rgba(22,163,74,0.12);
}

.address-card{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:16px;
    margin-bottom:12px;
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    background:#fafafa;
    transition:0.2s;
}

.address-card:hover{
    border-color:#16a34a;
    background:#f0fdf4;
}

.button-row{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:20px;
}

.btn-green{
    background:#16a34a;
    color:white;
}

.btn-green:hover{
    background:#15803d;
}

.btn-outline{
    background:#ffffff;
    color:#16a34a;
    border:1px solid #16a34a;
}

.btn-outline:hover{
    background:#f0fdf4;
}

.pay-btn{
    width:100%;
    padding:16px;
    border:none;
    border-radius:12px;
    background:#16a34a;
    color:white;
    font-size:18px;
    font-weight:800;
    cursor:pointer;
    margin-top:10px;
}

.pay-btn:hover{
    background:#15803d;
}

.pay-btn:disabled{
    background:#cbd5e1;
    cursor:not-allowed;
}

#pincode-msg{
    margin-top:8px;
    font-size:14px;
    font-weight:700;
}

#pincode-msg.success{
    color:#15803d;
}

#pincode-msg.error{
    color:#dc2626;
}

/* =========================
   STATUS / ALERTS
========================= */

.success,
.success-text{
    color:#15803d;
    font-weight:600;
}

.error,
.error-text{
    color:#dc2626;
    font-weight:600;
}

#payment-message{
    display:none;
    padding:14px;
    border-radius:10px;
    margin-bottom:15px;
    font-size:14px;
}

#payment-message.success{
    background:#dcfce7;
    color:#166534;
}

#payment-message.error{
    background:#fee2e2;
    color:#991b1b;
}

/* =========================
   TABLES
========================= */

.orders-table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:#ffffff;
    border-radius:12px;
    overflow:hidden;
}

.orders-table th{
    background:#f3f4f6;
    padding:14px;
    text-align:center;
    font-size:14px;
}

.orders-table td{
    padding:14px;
    border-top:1px solid #e5e7eb;
    text-align:center;
}

.status{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:bold;
}

.status.pending{
    background:#fef3c7;
    color:#92400e;
}

.status.confirmed{
    background:#ede9fe;
    color:#6d28d9;
}

.status.out-for-delivery{
    background:#dbeafe;
    color:#1d4ed8;
}

.status.completed{
    background:#dcfce7;
    color:#166534;
}

.status.cancelled{
    background:#fee2e2;
    color:#991b1b;
}

/* =========================
   LOGIN
/* =========================
   LOGIN
========================= */

.login-wrapper{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:#f4f6f9;
}

.login-card{
    width:420px;
    max-width:95%;
    background:#ffffff;
    padding:38px 30px;
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,0.10);
}

.login-card .brand{
    text-align:center;
    font-size:32px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:24px;
}

.login-card h2{
    text-align:center;
    font-size:22px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:28px;
}

.login-card input[type="text"],
.login-card input[type="tel"],
.login-card input[type="number"]{
    width:100%;
    padding:14px 16px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    font-size:16px;
    margin-bottom:16px;
    outline:none;
    transition:0.2s;
    background:#ffffff;
}

.login-card input:focus{
    border-color:#16a34a;
    box-shadow:0 0 0 3px rgba(22,163,74,0.12);
}

.login-card button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#16a34a;
    color:white;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
}

.login-card button:hover{
    background:#15803d;
}

.otp-box{
    display:none;
    margin-top:26px;
}

.otp-inputs{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:12px;
    margin-bottom:26px;
}

.otp-input{
    width:100%;
    height:55px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    text-align:center;
    font-size:22px;
    font-weight:700;
    outline:none;
    transition:0.2s;
}

.otp-input:focus{
    border-color:#16a34a;
    box-shadow:0 0 0 3px rgba(22,163,74,0.12);
}

.msg,
.error-text,
.invalid-otp,
.success-text{
    margin-top:14px;
    font-size:15px;
    font-weight:600;
    text-align:left;
}

.error-text,
.invalid-otp{
    color:#dc2626 !important;
}

.success-text{
    color:#15803d !important;
}
/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .header{
        font-size:24px;
        padding:15px;
    }

    .products{
        grid-template-columns:1fr;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .cart-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .search-container{
        flex-direction:column;
    }

    .search-box{
        width:100%;
    }

    .button-row{
        flex-direction:column;
    }

    .login-card{
        width:100%;
    }
}
.location-help{
    margin-top:10px;
    font-size:14px;
    color:#64748b;
    font-weight:600;
}
.location-popup{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.55);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.popup-content{
    width:420px;
    max-width:92%;
    background:#ffffff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 20px 45px rgba(0,0,0,0.25);
    text-align:center;
}

.popup-content h2{
    font-size:24px;
    color:#0f172a;
    margin-bottom:20px;
}

.popup-content input{
    width:100%;
    padding:14px 15px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    font-size:15px;
    outline:none;
    margin-bottom:15px;
}

.popup-content input:focus{
    border-color:#16a34a;
    box-shadow:0 0 0 3px rgba(22,163,74,0.12);
}

.popup-content button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#16a34a;
    color:white;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.popup-content button:hover{
    background:#15803d;
}

#pin-status{
    margin-top:14px;
    font-size:15px;
    font-weight:600;
}

#pin-status.success{
    color:#15803d;
}

#pin-status.error{
    color:#dc2626;
}
html,
body{
    min-height:100%;
}

body.sea-bg{
    min-height:100vh;
    background:
        linear-gradient(
            rgba(255,255,255,0.15),
            rgba(255,255,255,0.15)
        ),
        url("/static/img/login-bg.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.login-wrapper{
    background:transparent !important;
}

.login-card{
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(10px);
}
.popup-content{
    position:relative;
}

.popup-close{
    position:absolute;
    top:12px;
    right:12px;

    width:35px;
    height:35px;

    border:none;
    border-radius:50%;

    background:#f1f5f9;
    color:#334155;

    font-size:24px;
    font-weight:bold;

    cursor:pointer;
    transition:0.3s;
}

/* Override popup button styles */
.popup-close{
    padding:0 !important;
    min-width:35px !important;
    width:35px !important;
}

.popup-close:hover{
    background:#fee2e2;
    color:#dc2626;
    transform:rotate(90deg);
}
/* =========================
   NEW HOME HEADER + HERO
========================= */

.top-header{
    height:75px;

    background:linear-gradient(
        90deg,
        #fff7ed 0%,
        #fffbeb 50%,
        #ffffff 100%
    );

    display:flex;
    align-items:center;
    gap:32px;
    padding:0 55px;

    box-shadow:0 2px 12px rgba(0,0,0,0.08);
    border-bottom:1px solid #dbeafe;

    position:sticky;
    top:0;
    z-index:100;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:190px;
}

.logo{
    font-size:32px;
}

.brand h2{
    margin:0;
    color:#0b2d5c;
    font-size:22px;
    font-weight:800;
}

.brand h2 span{
    color:#1da9ff;
}

.brand p{
    margin:2px 0 0;
    font-size:11px;
    color:#5b6b84;
}

.search-area{
    flex:1;
    display:flex;
    max-width:560px;
}

.search-area .search-box{
    width:100%;
    height:42px;
    border-radius:10px 0 0 10px;
    background:#ffffff;
}

.search-btn{
    width:52px;
    border:none;
    background:#2563eb;
    color:white;
    font-size:18px;
    border-radius:0 10px 10px 0;
    cursor:pointer;
}

.nav-buttons{
    display:flex;
    gap:14px;
}

.outline-btn{
    padding:11px 17px;
    border-radius:8px;
    border:1px solid #3b82f6;
    color:#2563eb;
    background:#ffffff;
    font-weight:700;
}

.outline-btn.green{
    border-color:#22c55e;
    color:#16a34a;
}

.outline-btn.red{
    border-color:#ef4444;
    color:#dc2626;
}

.hero{
    height:210px;

    background:
        linear-gradient(
            90deg,
            rgba(248,251,255,0.95) 0%,
            rgba(248,251,255,0.80) 30%,
            rgba(248,251,255,0.20) 55%,
            rgba(248,251,255,0.00) 70%
        ),
        url("/static/img/fish-banner.png");

    background-size:52%;
    background-repeat:no-repeat;
    background-position:right center;

    display:flex;
    align-items:center;
    padding-left:65px;
}
.hero-content h1{
    font-size:30px;
}

.hero-content h2{
    font-size:20px;
}

.hero-content p{
    font-size:15px;
}

.hero-features{
    display:flex;
    gap:35px;
    margin-top:22px;
    color:#102a56;
}

.hero-features div{
    font-size:13px;
}

.hero-features span{
    color:#64748b;
}

/* Mobile */
@media(max-width:768px){
    .top-header{
        height:auto;
        padding:15px;
        flex-direction:column;
        gap:14px;
    }

    .search-area{
        width:100%;
    }

    .nav-buttons{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }

    .hero{
        height:auto;
        padding:40px 20px;
        background-position:center;
    }

    .hero-content h1{
        font-size:34px;
    }

    .hero-content h2{
        font-size:24px;
    }

    .hero-features{
        flex-direction:column;
        gap:12px;
    }
}
.outline-btn.profile{
    border-color:#6366f1;
    color:#4f46e5;
}

.profile-wrapper{
    width:92%;
    max-width:1000px;
    margin:30px auto;
}

.profile-card{
    background:#ffffff;
    padding:24px;
    border-radius:18px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
    margin-bottom:22px;
}

.profile-card h2{
    margin-bottom:18px;
    color:#0f172a;
}

.profile-info p,
.saved-item p{
    margin:6px 0;
    color:#334155;
}

.saved-item{
    padding:15px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    margin-bottom:12px;
    background:#f8fafc;
}

.muted{
    color:#64748b;
}

.small-note{
    font-size:13px;
    color:#64748b;
    margin-top:8px;
}

.profile-action-btn{
    display:inline-block;
    margin-top:12px;
    background:#16a34a;
    color:white;
    padding:11px 18px;
    border-radius:10px;
    font-weight:700;
}

.profile-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.profile-links a{
    padding:12px 16px;
    border-radius:10px;
    background:#f1f5f9;
    color:#0f172a;
    font-weight:700;
}

.profile-links a.danger{
    color:#dc2626;
}
.profile-edit-form{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:12px;
}

.profile-edit-form input{
    padding:10px 12px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    min-width:250px;
}

.profile-edit-form button{
    padding:10px 16px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.delete-address-btn{
    margin-top:10px;
    padding:9px 14px;
    border:none;
    border-radius:8px;
    background:#dc2626;
    color:white;
    font-weight:700;
    cursor:pointer;
}
.small-edit-btn{
    margin-left:10px;
    padding:5px 10px;
    border:none;
    border-radius:6px;
    background:#2563eb;
    color:white;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

#nameEditForm{
    align-items:center;
    gap:10px;
    margin:10px 0;
    flex-wrap:wrap;
}

#nameEditForm input{
    padding:10px 12px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    min-width:250px;
}

#nameEditForm button{
    padding:9px 14px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:white;
    font-weight:700;
    cursor:pointer;
}

#nameEditForm .cancel-btn{
    background:#64748b;
}
.cart-btn{
    position:relative;
}

.cart-badge{
    position:absolute;
    top:-8px;
    right:-8px;

    min-width:22px;
    height:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#16a34a;
    color:white;

    border-radius:50%;

    font-size:12px;
    font-weight:bold;

    padding:0 6px;
}
.price-tag{
    font-size:22px;
    font-weight:700;
    color:#16a34a;
}

.unit{
    font-size:14px;
    color:#64748b;
    font-weight:600;
}
/* WHY US */

.why-us{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding:50px 8%;
    background:#ffffff;
}

.feature-box{
    background:#fff;
    border-radius:16px;
    padding:25px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

.feature-box h3{
    margin-bottom:10px;
}

.feature-box p{
    color:#666;
}

/* FOOTER */

.footer{
    background:#111827;
    color:white;
    margin-top:40px;
}

.footer-container{
    padding:60px 8%;
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
}

.footer-company p{
    color:#cbd5e1;
    line-height:1.8;
}

.footer-column{
    display:flex;
    flex-direction:column;
}

.footer-column h3{
    margin-bottom:20px;
}

.footer-column a{
    color:#cbd5e1;
    text-decoration:none;
    margin-bottom:12px;
}

.footer-column a:hover{
    color:#22c55e;
}

.footer-social{
    display:flex;
    gap:15px;
    margin-top:20px;
    font-size:24px;
}

.footer-bottom{
    border-top:1px solid #374151;
    text-align:center;
    padding:20px;
    color:#94a3b8;
}

@media(max-width:768px){
    .footer-container{
        grid-template-columns:1fr;
    }
}
/* FIX: Align Add To Cart buttons equally */
.card {
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.card h3 {
    min-height: 50px;
    line-height: 1.3;
}

.price-tag {
    margin-bottom: 18px;
}

.add-btn,
.qty-box,
.out-stock-label {
    margin-top: auto;
}
.out-stock-card {
    opacity: 0.75;
    position: relative;
}

.out-stock-card img {
    filter: grayscale(60%);
}

.out-stock-label {
    width: calc(100% - 32px);
    margin: auto 16px 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    border: 1px solid #fecaca;
}

.out-stock-card::after {
    content: "Currently Unavailable";
    position: absolute;
    top: 14px;
    right: 14px;
    background: #dc2626;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.footer-contact {
    margin: 8px 0;
    color: #fff;
    font-size: 15px;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #4CAF50;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    font-size: 24px;
}

.footer-social span {
    cursor: pointer;
    transition: 0.3s;
}

.footer-social span:hover {
    transform: scale(1.15);
}
.admin-body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #111827;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #071225, #17294a);
    color: white;
    padding: 22px 16px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.fish-logo {
    font-size: 34px;
}

.admin-brand h2 {
    font-size: 17px;
    margin: 0;
}

.admin-brand p {
    margin: 4px 0 0;
    color: #cbd5e1;
    font-size: 13px;
}

.admin-menu a {
    display: block;
    padding: 13px 16px;
    margin-bottom: 10px;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
}

.admin-menu a.active,
.admin-menu a:hover {
    background: #4357ff;
    color: white;
}

.logout-link {
    color: #ff6b6b !important;
}

.summary-box {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 25px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 15px;
}

.summary-box h4 {
    margin: 0 0 6px;
}

.summary-box p {
    margin: 0 0 15px;
    color: #cbd5e1;
    font-size: 13px;
}

.summary-box div {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
    font-size: 14px;
}

.admin-main {
    margin-left: 260px;
    width: calc(100% - 260px);
}

.admin-topbar {
    height: 76px;
    background: #071225;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
}

.admin-topbar h1 {
    font-size: 24px;
    margin: 0;
}

.admin-user {
    width: 40px;
    height: 40px;
    background: #6d5dfc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orders-card {
    margin: 24px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.status-tabs {
    display: flex;
    gap: 25px;
    padding: 22px 28px 0;
    border-bottom: 1px solid #e5e7eb;
}

.status-tabs a {
    padding: 0 0 16px;
    text-decoration: none;
    color: #111827;
    font-size: 15px;
}

.status-tabs a.active {
    color: #304ffe;
    border-bottom: 3px solid #304ffe;
}

.status-tabs span {
    background: #eef2ff;
    color: #304ffe;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 5px;
}

.admin-search-row {
    padding: 22px 28px;
}

.admin-search-row input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.table-wrap {
    padding: 0 16px 24px;
    overflow-x: auto;
}

.modern-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modern-orders-table th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    color: #111827;
    font-weight: 700;
    white-space: nowrap;
}

.modern-orders-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.modern-orders-table tr:hover {
    background: #f9fbff;
}

.order-id {
    color: #2563eb;
    font-weight: 700;
}

.status {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status.pending {
    background: #fff1c2;
    color: #a15c00;
}

.status.confirmed {
    background: #dbeafe;
    color: #1d4ed8;
}

.status.out-for-delivery {
    background: #ede9fe;
    color: #6d28d9;
}

.status.completed {
    background: #dcfce7;
    color: #15803d;
}

.status.cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.view-btn {
    border: 1px solid #4357ff;
    color: #304ffe;
    padding: 8px 15px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
}

.view-btn:hover {
    background: #304ffe;
    color: white;
}

.nav-btn {
    color: #16a34a;
    font-weight: 700;
    text-decoration: none;
}

.na-text {
    color: #9ca3af;
}

@media (max-width: 900px) {
    .admin-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .summary-box {
        position: static;
        margin-top: 30px;
    }

    .status-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}
.details-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 22px;
    padding: 24px;
}

.details-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.details-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
    color: #111827;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row span {
    color: #64748b;
    font-weight: 600;
}

.info-row b {
    color: #111827;
    font-weight: 600;
}

.full-width {
    grid-column: 1 / -1;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form label {
    font-weight: 700;
    color: #374151;
}

.admin-form input,
.admin-form select {
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.full-btn {
    margin-top: 10px;
    background: #304ffe;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.full-btn:hover {
    background: #1e40ff;
}

.full-btn.green {
    display: block;
    background: #16a34a;
    margin-top: 20px;
}

.full-btn.green:hover {
    background: #15803d;
}

.total-box {
    margin-top: 18px;
    text-align: right;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.back-link {
    display: inline-block;
    margin: 0 24px 30px;
    text-decoration: none;
    color: #304ffe;
    font-weight: 700;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.products-admin-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.admin-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

.admin-product-card:hover {
    transform: translateY(-3px);
}

.product-img-box {
    height: 190px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #111827;
}

.stock-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.stock-badge.in {
    background: #dcfce7;
    color: #15803d;
}

.stock-badge.out {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-product-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-product-form label {
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}

.admin-product-form input,
.admin-product-form select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.weight-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
}
/* ===========================
   ADMIN LOGIN
=========================== */

.admin-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;

    background: linear-gradient(
        135deg,
        #071225 0%,
        #12284d 50%,
        #1e3a8a 100%
    );

    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.admin-login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.2);

    text-align: center;
}

.admin-login-logo {
    width: 90px;
    height: 90px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #304ffe,
        #6d5dfc
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;
}

.admin-login-card h1 {
    margin: 0;
    color: #111827;
    font-size: 32px;
}

.admin-login-card p {
    margin-top: 8px;
    margin-bottom: 30px;

    color: #64748b;
}

.admin-login-form {
    text-align: left;
}

.admin-login-form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 16px;

    font-weight: 700;
    color: #374151;
}

.admin-login-form input {
    width: 100%;
    box-sizing: border-box;

    padding: 14px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    font-size: 15px;
}

.admin-login-form input:focus {
    outline: none;

    border-color: #304ffe;

    box-shadow:
        0 0 0 3px rgba(48,79,254,0.15);
}

.admin-login-form button {
    width: 100%;

    margin-top: 25px;

    padding: 14px;

    border: none;
    border-radius: 10px;

    background: #304ffe;
    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

.admin-login-form button:hover {
    background: #1e40ff;
}

.admin-error {
    background: #fee2e2;
    color: #b91c1c;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 20px;
}
.dashboard-content {
    padding: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.dashboard-card p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

.dashboard-card h2 {
    margin: 12px 0 0;
    font-size: 30px;
    color: #111827;
}

.status-overview {
    background: white;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.status-overview h3 {
    margin-top: 0;
}

.status-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.status-overview-grid div {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.status-overview-grid span {
    color: #64748b;
}

/* BETTER ADMIN DASHBOARD */

.dashboard-content {
    padding: 28px;
    background: #f3f6fb;
    min-height: calc(100vh - 76px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-bottom: 26px;
}

.dashboard-card {
    position: relative;
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid #eef2f7;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 100px;
    height: 100px;
    background: #eef2ff;
    border-radius: 50%;
}

.dashboard-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-card h2 {
    margin: 18px 0 0;
    font-size: 32px;
    color: #020617;
}

.status-overview {
    background: white;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
}

.status-overview h3 {
    margin: 0 0 18px;
    font-size: 21px;
}

.status-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.status-overview-grid div {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-overview-grid span {
    color: #64748b;
    font-weight: 800;
}

.status-overview-grid b {
    font-size: 20px;
    color: #020617;
}

.orders-card {
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-section-title {
    padding: 24px 28px;
}

.dashboard-section-title h3 {
    font-size: 22px;
}

.dashboard-section-title a {
    background: #eef2ff;
    padding: 9px 14px;
    border-radius: 8px;
}
.price-line{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    margin:8px 0 20px;
}

.price-line .price-tag{
    margin:0;
    padding:0;
}

.yield-inline{
    font-size:12px;
    color:#15803d;
    font-weight:700;
}
.coupon-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px dashed #cfd8dc;
    border-radius: 12px;
    background: #fafafa;
}

.coupon-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.coupon-input-row {
    display: flex;
    gap: 10px;
}

.coupon-input-row input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
}

.coupon-input-row button {
    padding: 11px 22px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.coupon-msg {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

.coupon-msg.success {
    color: #16a34a;
}

.coupon-msg.error {
    color: #dc2626;
}

.discount-row {
    color: #16a34a;
    font-weight: 600;
}
.coupon-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 15px;
    margin-top: 15px;
}

.coupon-form input,
.coupon-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.coupon-active {
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
}

.coupon-form-card,
.coupon-table-card {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.coupon-applied {
    background: #16a34a !important;
    cursor: default;
    opacity: 0.9;
}
.success-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
    font-family: Arial, sans-serif;
}

.success-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.success-card {
    width: 100%;
    max-width: 780px;
    background: #ffffff;
    border-radius: 24px;
    padding: 42px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.success-card h1 {
    margin: 0;
    font-size: 34px;
    color: #0f172a;
}

.success-subtitle {
    max-width: 590px;
    margin: 14px auto 26px;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
}

.order-id-box {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 16px;
    padding: 18px;
    margin: 20px auto 30px;
    max-width: 420px;
}

.order-id-box span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.order-id-box strong {
    color: #0f172a;
    font-size: 30px;
    letter-spacing: 1px;
}

.success-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.success-info div {
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
    text-align: left;
}

.success-info b {
    color: #0f172a;
}

.success-info p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.success-btn {
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
}

.success-btn.primary {
    background: #16a34a;
    color: white;
}

.success-btn.secondary {
    background: #eef2ff;
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .success-card {
        padding: 28px 20px;
    }

    .success-info {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }
}
.coupon-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coupon-input-row input {
    flex: 1;
}

.remove-coupon-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    height: 42px;
}
#payment-message {
    display: none;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

#payment-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#payment-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.update-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.update-btn:hover {
    background: #16a34a;
}
.qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.remove-item-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    background: #ef4444;
    color: white;
}
#resendOtpBtn{
    margin-top:12px;
    background:#f1f5f9;
    color:#16a34a;
    border:1px solid #16a34a;
}

#resendOtpBtn:hover{
    background:#dcfce7;
}

#resendOtpBtn:disabled{
    opacity:0.7;
    cursor:not-allowed;
}

#sendOtpBtn.hidden{
    display:none;
}
.order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.view-action {
    background: #eef2ff;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.invoice-action {
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #86efac;
}
.action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.map-icon-btn {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.map-icon-btn:hover {
    background: #16a34a;
    color: #ffffff;
}
.order-time {
    white-space: nowrap;
    line-height: 1.35;
}
.icon-action,
.map-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
}
.icon-action:hover,
.map-icon-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.modern-orders-table td {
    padding: 9px 14px;
}
.header-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.header-link:hover {
    color: #38bdf8;
}
.manual-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.manual-item-row select,
.manual-item-row input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.forgot-password{
    text-align:center;
    margin-top:15px;
}

.forgot-password a{
    color:#0077cc;
    text-decoration:none;
    font-size:14px;
}

.forgot-password a:hover{
    text-decoration:underline;
}
.inline-edit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-edit input {
    width: 90px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-actions form {
    margin: 0;
}

.update-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.weight-notice {
    margin: 20px 0;
    padding: 16px 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #7c2d12;
}

.weight-notice b {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.weight-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}