* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #ffffff;
    color: #1e1e2f;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header / nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #eaeef2;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(145deg, #0b2b40, #1d5a7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    color: #1d5a7a;
    margin-right: 4px;
}

.nav-cart {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cart-icon {
    position: relative;
    font-size: 1.6rem;
    color: #1d5a7a;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #d33;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 40px;
    min-width: 22px;
    text-align: center;
}

.btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #1d5a7a;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: #1d5a7a;
}

.btn-primary {
    background: #1d5a7a;
    color: white;
    border: 2px solid #1d5a7a;
}

.btn-primary:hover {
    background: #0f3e55;
    border-color: #0f3e55;
}

.btn-outline:hover {
    background: #e7f0f7;
}

/* hero */
.hero {
    background: linear-gradient(112deg, #f6fbfe 0%, #eaf3fa 100%);
    border-radius: 0 0 60px 60px;
    padding: 50px 0;
}

.hero-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-content {
    flex: 1 1 400px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0b2b40;
}

.hero p {
    font-size: 1.2rem;
    color: #2f4858;
    margin-bottom: 30px;
}

.hero-badge {
    background: white;
    border-radius: 60px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0, 40, 60, 0.08);
    margin-top: 20px;
}

.hero-badge i {
    color: #e05a3a;
    font-size: 1.5rem;
}

.live-counter {
    color: #b13e22;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 30px 0;
}

/* about */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0b2b40;
    text-align: center;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #2d4b63;
    text-align: center;
}

/* categories */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.cat-item {
    background: white;
    border: 1px solid #dae5ed;
    border-radius: 60px;
    padding: 12px 30px;
    font-weight: 500;
    color: #1d5a7a;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.cat-item i {
    margin-right: 8px;
    color: #70b9e0;
}

.cat-item:hover {
    background: #1d5a7a;
    color: white;
    border-color: #1d5a7a;
}

.cat-item:hover i {
    color: white;
}

/* top reason & top category banner */
.top-reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.reason-card {
    background: #f6fbfe;
    padding: 20px 16px;
    border-radius: 24px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.reason-card i {
    color: #1d5a7a;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.top-category-badge {
    background: #fee9d1;
    border-radius: 60px;
    padding: 12px 32px;
    display: inline-block;
    font-weight: 700;
    font-size: 1.4rem;
    color: #a34e1c;
    margin: 20px 0;
}

/* product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 20, 30, 0.06);
    overflow: hidden;
    transition: 0.2s;
    border: 1px solid #eef4f9;
    padding: 16px;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    background: #f0f5fa;
}

.product-card h3 {
    font-size: 1.25rem;
    margin: 12px 0 6px;
}

.product-desc {
    color: #4f6579;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-price {
    font-weight: 700;
    font-size: 1.5rem;
    color: #134b66;
    margin: 8px 0;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 40px;
    border: 1px solid #1d5a7a;
    background: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-small i {
    margin-right: 4px;
}

.btn-small-primary {
    background: #1d5a7a;
    color: white;
    border: none;
}

/* cart sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: 420px;
    max-width: 96%;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-cart {
    font-size: 2rem;
    cursor: pointer;
    color: #555;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eaeef2;
    padding-bottom: 12px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-price {
    font-weight: 700;
}

.cart-summary {
    margin: 30px 0;
    padding-top: 16px;
    border-top: 2px dashed #bcd3e0;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
}

/* modal popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    padding: 32px;
    border-radius: 32px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    float: right;
    font-size: 2rem;
    cursor: pointer;
}

/* contact / newsletter */
.form-group {
    margin-bottom: 18px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbdae6;
    border-radius: 40px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input {
    width: auto;
}

footer {
    background: #0e293b;
    color: white;
    padding: 50px 0 30px;
    border-radius: 48px 48px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
}

.footer-grid a {
    color: #bcd8ed;
    display: block;
    margin: 8px 0;
    text-decoration: none;
}

.social i {
    font-size: 1.6rem;
    margin-right: 16px;
    color: #d2e9ff;
}

.copyright {
    margin-top: 40px;
    text-align: center;
    color: #99bdd4;
}

/* quick view mini */
.quick-view-modal .product-detail {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* Modal heading */
.modal h2 {
    margin-top: 0;
}

/* Modal paragraphs */
.modal p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Email link styling */
.modal a {
    color: #007bff;
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}