* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #071a2f;
    --secondary: #0077b6;
    --accent: #00d4ff;
    --success: #00a651;
    --danger: #dc3545;
    --pink: #ff4081;
    --light-bg: #f4f7fb;
    --white: #ffffff;
    --text: #222;
    --muted: #666;
    --shadow: 0 8px 25px rgba(0,0,0,0.08);
    --radius: 18px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--muted);
    margin-top: 10px;
}

/* NAVBAR */

.navbar {
    background: var(--primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-inner {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* HERO */

.hero {
    background: linear-gradient(rgba(7,26,47,0.88), rgba(0,119,182,0.85)),
    url("../images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--white);
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: 55px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* BUTTONS */

.btn,
.view-btn,
.wishlist-btn,
.cart-btn,
.whatsapp-btn,
.checkout-btn,
.update-btn,
.remove-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn {
    background: var(--accent);
    color: var(--primary);
}

.btn:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.btn-primary,
.view-btn {
    background: var(--secondary);
    color: var(--white);
}

.btn-dark,
.cart-btn {
    background: var(--primary);
    color: var(--white);
}

.btn-success,
.checkout-btn,
.update-btn {
    background: var(--success);
    color: var(--white);
}

.btn-danger,
.remove-btn {
    background: var(--danger);
    color: var(--white);
}

.wishlist-btn {
    background: var(--pink);
    color: var(--white);
}

.whatsapp-btn {
    background: #25d366;
    color: var(--white);
}

.view-btn:hover,
.wishlist-btn:hover,
.cart-btn:hover,
.whatsapp-btn:hover,
.checkout-btn:hover,
.update-btn:hover,
.remove-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* GENERAL GRID / CARDS */

.grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card,
.service-card,
.dashboard-box,
.checkout-box,
.form-box,
.login-box,
.register-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.card:hover,
.service-card:hover {
    transform: translateY(-8px);
}

.card h3,
.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.card p,
.service-card p {
    color: #555;
    line-height: 1.7;
}

.service-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

/* PRODUCTS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.badge,
.category {
    background: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

.product-content h3 {
    margin: 15px 0 10px;
    color: var(--primary);
}

.product-content p {
    color: #555;
    line-height: 1.6;
}

.price {
    color: var(--success);
    font-size: 24px;
    font-weight: 800;
    margin: 15px 0;
}

.no-products,
.empty-message {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: var(--radius);
    grid-column: 1 / -1;
    box-shadow: var(--shadow);
}

/* PRODUCT VIEW */

.product-container {
    padding: 60px 0;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.product-details .product-image {
    height: 450px;
    border-radius: 15px;
}

.product-info h1 {
    color: var(--primary);
    margin: 15px 0;
    font-size: 36px;
}

.stock {
    color: var(--muted);
    margin-bottom: 20px;
}

.description {
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* PRODUCT GALLERY */

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
}

.thumb:hover {
    transform: scale(1.05);
}

.active-thumb {
    border-color: var(--secondary);
}

/* RELATED PRODUCTS */

.related-title {
    margin-top: 70px;
    margin-bottom: 30px;
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.related-card:hover {
    transform: translateY(-6px);
}

.related-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.related-content {
    padding: 18px;
}

.related-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.related-price {
    color: var(--success);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

/* SEARCH + FILTER */

.search-filter-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 35px;
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-form input {
    flex: 1;
    min-width: 250px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.search-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.search-btn:hover {
    background: var(--primary);
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar a {
    padding: 10px 18px;
    border-radius: 25px;
    background: #eef4fa;
    color: var(--primary);
    font-weight: 700;
}

.filter-bar a.active,
.filter-bar a:hover {
    background: var(--secondary);
    color: var(--white);
}

/* PAGINATION */

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 4px;
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pagination a.active,
.pagination a:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ABOUT / CONTACT SECTIONS */

.about-section {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.about-section p {
    line-height: 1.8;
    color: #555;
}

.contact-banner {
    background: linear-gradient(135deg, var(--secondary), #00b4d8);
    color: var(--white);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.contact-banner h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-banner p {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* FORMS */

.form-group {
    margin-bottom: 20px;
}

.form-group label,
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select,
input,
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

textarea {
    resize: vertical;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message,
.error {
    background: #ffe5e5;
    color: #d8000c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-note {
    background: #e7f5ff;
    color: var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-note a {
    color: var(--secondary);
    font-weight: 700;
}

/* CART / CHECKOUT */

.cart-section {
    padding: 60px 0;
}

.cart-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    text-align: left;
}

.cart-table td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
}

.qty-input {
    width: 80px;
    padding: 8px;
}

.cart-actions {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.total-box {
    text-align: right;
    font-size: 24px;
    font-weight: 800;
    margin-top: 25px;
    color: var(--primary);
}

.empty-cart {
    text-align: center;
    padding: 60px;
}

/* CUSTOMER DASHBOARD / WISHLIST */

.customer-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.logout-btn {
    display: inline-block;
    background: var(--danger);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.wishlist-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.wishlist-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wishlist-content {
    padding: 18px;
}



/* TABLES */

.table-box {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    text-align: left;
}

td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
}

.status {
    background: var(--secondary);
    color: var(--white);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* FOOTER */

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.footer h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.footer p,
.footer a {
    color: #dce7f3;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    color: #bbb;
}

/* RESPONSIVE */

@media(max-width: 1100px) {
    .product-grid,
    .related-grid,
    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 900px) {
    .nav-inner {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .related-grid,
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-details {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 650px) {
    .container {
        width: 94%;
    }

    .hero {
        padding: 85px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .product-grid,
    .related-grid,
    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .product-details {
        padding: 22px;
    }

    .product-details .product-image {
        height: 300px;
    }

    .search-form {
        flex-direction: column;
    }

    .contact-banner,
    .about-section {
        padding: 30px;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

/* ==========================================
   PRODUCT VARIANTS - MULTI SELECT WITH QTY
========================================== */

.variant-box{
    background:#f4f7fb;
    padding:18px;
    border-radius:14px;
    margin:20px 0;
    border-left:5px solid #0077b6;
}

.variant-box > label{
    display:block;
    font-weight:700;
    color:#071a2f;
    margin-bottom:12px;
}

.variant-options{
    display:grid;
    gap:12px;
}

.variant-option{
    display:grid;
    grid-template-columns:40px 1fr 120px;
    gap:15px;
    align-items:center;
    background:#fff;
    border:1px solid #dbe4ef;
    border-radius:12px;
    padding:14px;
    transition:0.3s;
}

.variant-option:hover{
    border-color:#0077b6;
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.variant-check input{
    width:22px;
    height:22px;
    cursor:pointer;
}

.variant-info strong{
    display:block;
    color:#071a2f;
    font-size:15px;
    margin-bottom:4px;
}

.variant-price{
    color:#00a651;
    font-weight:700;
    margin-bottom:4px;
}

.variant-stock{
    color:#666;
    font-size:13px;
}

.variant-qty label{
    display:block;
    font-size:12px;
    font-weight:700;
    color:#071a2f;
    margin-bottom:5px;
}

.variant-qty input{
    width:100px;
    padding:10px;
    border:1px solid #ccc;
    border-radius:8px;
    text-align:center;
}

/* PRODUCT SUPPORT BOX */

.product-support-box{
    background:#fff8e1;
    border-left:5px solid #ff9800;
    padding:18px;
    border-radius:12px;
    margin:20px 0;
}

.product-support-box h4{
    color:#071a2f;
    margin-bottom:8px;
}

.product-support-box p{
    color:#555;
    line-height:1.6;
}

/* PRODUCT ACTION BUTTONS */

.action-buttons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:20px;
}

.action-buttons .action-btn{
    display:inline-block;
    padding:13px 22px;
    border-radius:8px;
    color:#fff;
    font-weight:700;
    text-align:center;
    border:none;
    cursor:pointer;
    transition:0.3s;
}

.action-buttons .cart-btn{
    background:#0077b6;
}

.action-buttons .wishlist-btn{
    background:#ff4081;
}

.action-buttons .whatsapp-btn{
    background:#25d366;
}

.action-buttons .action-btn:hover{
    opacity:0.9;
    transform:translateY(-2px);
}

/* MOBILE VARIANT RESPONSIVE */

@media(max-width:768px){

    .variant-option{
        grid-template-columns:40px 1fr;
    }

    .variant-qty{
        grid-column:2;
    }

    .variant-qty input{
        width:100%;
    }

    .action-buttons{
        flex-direction:column;
    }

    .action-buttons .action-btn{
        width:100%;
    }
}



/* ==========================================
   SERVICES SECTION
========================================== */

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.service-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    transition:0.3s;
    padding:0;
}

.service-card:hover{
    transform:translateY(-8px);
}

.service-image{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

.service-content{
    padding:25px;
}

.service-card h3{
    color:#071a2f;
    font-size:28px;
    margin-bottom:15px;
    font-weight:700;
}

.service-card p{
    color:#555;
    line-height:1.8;
    font-size:16px;
    margin-bottom:0;
}

.service-icon{
    display:none;
}

/* Tablet */

@media(max-width:1000px){

    .services-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* Mobile */

@media(max-width:768px){

    .services-grid{
        grid-template-columns:1fr;
    }

    .service-image{
        height:220px;
    }

    .service-card h3{
        font-size:24px;
    }

}







/* ==========================================
   CUSTOMER DASHBOARD TRACK ORDER BUTTON
========================================== */

.dashboard-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:20px;
}

.dashboard-actions a{
    text-decoration:none;
}

.track-btn{
    background:#9c27b0;
    color:#fff !important;
    display:inline-block;
    padding:12px 22px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    transition:0.3s;
}

.track-btn:hover{
    background:#7b1fa2;
    transform:translateY(-2px);
}

.track-btn:active{
    transform:translateY(0);
}



.map-placeholder{
    padding:0;
    border:none;
    background:none;
    min-height:auto;
}






.product-description{
    color:#555;
    line-height:1.8;
    font-size:15px;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6{
    color:#071a2f;
    margin-bottom:12px;
}

.product-description p{
    margin-bottom:12px;
}

.product-description ul,
.product-description ol{
    margin-left:25px;
    margin-bottom:15px;
}

.product-description table{
    width:100%;
    border-collapse:collapse;
    margin:15px 0;
}

.product-description table,
.product-description th,
.product-description td{
    border:1px solid #ddd;
}

.product-description th,
.product-description td{
    padding:10px;
}

.product-description img{
    max-width:100%;
    height:auto;
    border-radius:10px;
}

.product-description strong{
    font-weight:700;
}