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

body {
    font-family: Arial, sans-serif;
    background: #f4f8fb;
    color: #1f2937;
    line-height: 1.6;
    padding-bottom: 72px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    min-height: 70px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    flex: 0 0 auto;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.logo .site-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    border-radius: 12px;
    filter: drop-shadow(0 3px 7px rgba(15, 23, 42, 0.12));
}

.logo .site-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    transform: scale(1.28);
}

.menu-btn {
    border: none;
    background: #e6f7fa;
    color: #007c91;
    font-size: 24px;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
}

nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    padding: 12px;
}

nav.show {
    display: block;
}

nav a {
    display: block;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
}

nav a:hover,
.cart-link {
    background: #e6f7fa;
    color: #007c91;
}

.hero {
    padding: 42px 18px 34px;
    background: linear-gradient(135deg, #e6f7fa, #ffffff 58%, #eef2ff);
}

.hero-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.tag {
    display: inline-block;
    background: #dff6f9;
    color: #007c91;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 31px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero p {
    color: #526173;
    font-size: 17px;
    margin-bottom: 25px;
}

.hero-buttons {
    display: grid;
    gap: 12px;
}

.btn {
    display: inline-block;
    border: none;
    text-align: center;
    min-height: 46px;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

.btn.primary {
    background: #007c91;
    color: #ffffff;
}

.btn.secondary {
    background: #ffffff;
    color: #007c91;
    border: 2px solid #007c91;
}

.btn.whatsapp {
    background: #25d366;
    color: #ffffff;
}

.btn.small {
    background: #007c91;
    color: #ffffff;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
}

.btn.full {
    width: 100%;
}

.features,
.product-grid,
.brand-grid,
.cart-container,
.checkout-container,
.content-card,
.filters,
.admin-list {
    padding: 20px 12px;
    max-width: 1100px;
    margin: auto;
}

.features {
    display: grid;
    gap: 14px;
}

.feature-card,
.product-card,
.brand-card,
.cart-item,
.empty-box,
.checkout-form,
.cart-summary,
.content-card,
.admin-row {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.feature-card {
    padding: 20px;
}

.page-header {
    padding: 35px 18px 12px;
    text-align: center;
}

.page-header h1 {
    font-size: 30px;
    color: #007c91;
}

.page-header p {
    color: #526173;
}

.product-grid,
.brand-grid {
    display: grid;
    gap: 18px;
}

.product-card {
    overflow: hidden;
}

.product-card img {
    height: 190px;
    object-fit: cover;
    background: #e6f7fa;
}

.product-info {
    padding: 16px;
}

.brand-name {
    color: #007c91;
    font-weight: 900;
    font-size: 14px;
}

.product-info h3,
.brand-card h3 {
    margin: 5px 0;
}

.product-info p,
.brand-card p {
    color: #526173;
}

.product-bottom {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.product-bottom strong {
    font-size: 20px;
    color: #111827;
}

.brand-card {
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s;
}

.brand-card:hover {
    transform: translateY(-4px);
}

.brand-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 12px;
    background: #e6f7fa;
    border-radius: 50%;
}

.filter-form {
    display: grid;
    gap: 10px;
}

.filter-form input,
.filter-form select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 13px;
    font-size: 16px;
    background: #ffffff;
}

.cart-container {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 14px;
    align-items: center;
}

.cart-item img {
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    background: #e6f7fa;
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cart-actions a,
.cart-actions button,
.admin-actions a,
.admin-actions button {
    background: #e6f7fa;
    color: #007c91;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 12px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    font: inherit;
}

.cart-actions .danger,
.cart-actions button.danger,
.admin-actions .danger,
.admin-actions button.danger,
.error-message {
    background: #fee2e2;
    color: #b91c1c;
}

.cart-summary,
.checkout-form,
.content-card {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.checkout-form label {
    font-weight: 900;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-label input {
    width: auto;
}

.checkout-total {
    background: #e6f7fa;
    color: #007c91;
    padding: 14px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.empty-box {
    padding: 24px;
    text-align: center;
    display: grid;
    gap: 16px;
}

.success-message,
.error-message {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 900;
}

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

.empty-message {
    text-align: center;
    color: #526173;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
}

.site-footer {
    text-align: center;
    padding: 24px 18px;
    color: #526173;
}

.bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 99;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    padding: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.bottom-nav a {
    text-align: center;
    font-size: 13px;
    padding: 8px 4px;
    border-radius: 12px;
    color: #007c91;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-row {
    padding: 16px;
    display: grid;
    gap: 12px;
    border: 1px solid #e5eef2;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cart-actions form,
.admin-actions form,
.product-actions form {
    display: flex;
}

.admin-actions a,
.admin-actions button {
    width: 100%;
    text-align: center;
}

.order-items {
    margin-left: 18px;
    margin-top: 10px;
}

.admin-login {
    margin-top: 50px;
}

@media (min-width: 700px) {
    body {
        padding-bottom: 0;
    }

    .bottom-nav {
        display: none;
    }

    .menu-btn {
        display: none;
    }

    nav {
        display: flex;
        position: static;
        box-shadow: none;
        padding: 0;
        gap: 8px;
        background: transparent;
    }

    nav a {
        padding: 9px 13px;
    }

    .site-header {
        min-height: 74px;
        padding: 8px 22px;
    }

    .logo .site-logo-mark {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .logo:hover {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 10px 22px rgba(0, 124, 145, 0.10);
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
    }

    .features {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout-container {
        max-width: 650px;
    }

    .filter-form {
        grid-template-columns: 2fr 1fr 1fr auto;
        align-items: center;
    }

    .admin-row {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}


.admin-preview {
    max-width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    background: #e6f7fa;
    border: 1px solid #d1d5db;
}

input[type="file"] {
    background: #ffffff;
    border: 1px dashed #9ca3af;
    padding: 14px;
    border-radius: 12px;
}


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

.view-btn {
    background: #ffffff;
    color: #007c91;
    border: 2px solid #007c91;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.product-image-link {
    display: block;
}

.product-details {
    max-width: 1100px;
    margin: auto;
    padding: 24px 18px;
    display: grid;
    gap: 20px;
}

.product-details-image,
.product-details-info {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    overflow: hidden;
}

.product-details-image img {
    height: 320px;
    object-fit: cover;
    background: #e6f7fa;
}

.product-details-info {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.product-details-info h1 {
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
}

.details-description {
    color: #526173;
    font-size: 16px;
}

.details-price {
    font-size: 30px;
    font-weight: 900;
    color: #007c91;
}

.stock-box {
    background: #f6fbfc;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px;
}

.in-stock,
.out-stock {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 6px;
}

.in-stock {
    background: #dcfce7;
    color: #166534;
}

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

.details-actions {
    display: grid;
    gap: 10px;
}

@media (min-width: 800px) {
    .product-details {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        padding-top: 40px;
    }

    .product-details-image img {
        height: 520px;
    }
}

/* Publish-ready additions */
:root{--primary:#007c91;--primary-dark:#005f70;--soft:#e6f7fa;--bg:#f6fbfc;--text:#1f2937;--muted:#526173;--white:#fff;--danger:#b91c1c;--success:#166534;--shadow:0 10px 30px rgba(0,0,0,.08)}
.section-title,.dashboard-grid,.admin-two-col,.reviews-section{padding:24px 18px;max-width:1100px;margin:auto}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title a{color:var(--primary);font-weight:900}.dashboard-grid{display:grid;gap:14px}.stat-card{background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:20px}.stat-card span{color:var(--muted);font-weight:700}.stat-card strong{display:block;font-size:28px;color:var(--primary);margin-top:4px}.mini-row{border-top:1px solid #e5e7eb;padding-top:12px;margin-top:12px;display:flex;justify-content:space-between;gap:12px}.warning-row strong{color:var(--danger)}.rating-line,.stars{color:#f59e0b;font-weight:900}.review-card{border-top:1px solid #e5e7eb;padding-top:12px;margin-top:12px}.embedded-form{box-shadow:none;padding:0}.social-links{display:flex;gap:8px;flex-wrap:wrap}.social-links a{background:var(--soft);color:var(--primary);padding:7px 12px;border-radius:10px;font-weight:900}.stock-pill.out{background:#fee2e2;color:var(--danger);padding:6px 12px;border-radius:999px;font-weight:900}.admin-product-info{display:flex;gap:12px;align-items:center}.admin-product-info img{width:70px;height:70px;object-fit:cover;border-radius:14px;background:var(--soft)}
@media(min-width:700px){.dashboard-grid{grid-template-columns:repeat(3,1fr)}.admin-two-col,.reviews-section{display:grid;grid-template-columns:1fr 1fr;gap:18px}.single-search{grid-template-columns:1fr auto}}


/* Update: compact mobile grids, offers, nicer categories */
.floating-message {
    position: sticky;
    top: 76px;
    z-index: 90;
    margin: 12px auto 0;
    max-width: 540px;
    width: calc(100% - 32px);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 900;
    box-shadow: var(--shadow);
    text-align: center;
}

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

.error-float {
    background: #fee2e2;
    color: #b91c1c;
}

.product-grid,
.brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    position: relative;
}

.product-card img {
    height: 145px;
}

.product-info {
    padding: 12px;
}

.product-info h3 {
    font-size: 15px;
    line-height: 1.25;
}

.product-info p {
    font-size: 13px;
}

.product-bottom {
    gap: 8px;
}

.product-actions {
    gap: 6px;
}

.btn.small,
.view-btn {
    padding: 8px 10px;
    font-size: 13px;
}

.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

.price-box {
    display: grid;
    gap: 0;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 800;
}

.new-price {
    color: var(--primary);
    font-size: 19px;
    font-weight: 900;
}

.stock-line {
    margin-top: 8px;
}

.stock-pill.in {
    background: #dcfce7;
    color: #166534;
}

.delivery-note {
    color: var(--muted);
    font-weight: 800;
    background: var(--soft);
    padding: 10px 12px;
    border-radius: 12px;
}

.category-modern-grid {
    align-items: stretch;
}

.modern-category {
    position: relative;
    overflow: hidden;
    min-height: 155px;
    border: none;
    color: #fff;
    text-align: left;
    display: grid;
    align-content: space-between;
}

.modern-category h3,
.modern-category p {
    color: #fff;
    position: relative;
    z-index: 1;
}

.modern-category p {
    opacity: 0.92;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.22);
    border-radius: 18px;
    font-size: 24px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.modern-category::after {
    content: "";
    position: absolute;
    width: 115px;
    height: 115px;
    right: -35px;
    top: -35px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
}

.category-style-1 { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.category-style-2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.category-style-3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.category-style-4 { background: linear-gradient(135deg, #f97316, #ef4444); }
.category-style-5 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.category-style-6 { background: linear-gradient(135deg, #84cc16, #22c55e); }

.product-details-image {
    position: relative;
}

.details-offer {
    top: 16px;
    left: 16px;
}

.details-price {
    display: grid;
    gap: 2px;
}

.details-price .old-price {
    font-size: 18px;
}

.details-price .new-price {
    font-size: 34px;
}

@media (max-width: 380px) {
    .product-grid,
    .brand-grid {
        gap: 9px;
    }

    .product-card img {
        height: 125px;
    }

    .product-info {
        padding: 10px;
    }

    .btn.small,
    .view-btn {
        padding: 7px 8px;
        font-size: 12px;
    }
}

@media (min-width: 700px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .product-card img {
        height: 190px;
    }

    .product-info {
        padding: 16px;
    }

    .product-info h3 {
        font-size: 18px;
    }

    .product-info p {
        font-size: 15px;
    }
}

/* Mobile-first business UI */
.section-title {
    padding: 22px 12px 10px;
    gap: 14px;
}

.section-title h2 {
    line-height: 1.1;
}

.section-title a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #e6f7fa;
    border-radius: 12px;
}

.offers-title h2 {
    color: #b45309;
}

.center-action {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px 24px;
}

.center-action .btn {
    width: 100%;
}

.product-grid,
.brand-grid {
    padding-left: 10px;
    padding-right: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card img {
    height: 132px;
    border-bottom: 1px solid #edf2f7;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    min-height: 38px;
}

.product-info > p:not(.brand-name) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    margin-top: auto;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.product-actions .btn,
.product-actions button {
    width: 100%;
    min-height: 44px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stock-pill.in,
.stock-pill.out {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
}

.brand-card {
    min-height: 168px;
    display: grid;
    align-content: start;
}

.brand-card img {
    width: 74px;
    height: 74px;
}

.brand-card h3 {
    font-size: 16px;
    line-height: 1.2;
}

.brand-card p {
    font-size: 13px;
    line-height: 1.35;
}

.modern-category {
    min-height: 168px;
    border-radius: 16px;
    padding: 16px;
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 25px;
}

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

.toggle-chip {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
}

.toggle-chip input {
    width: 18px;
    height: 18px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.active-filters a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    background: #e6f7fa;
    color: #007c91;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.active-filters .clear-filter {
    background: #111827;
    color: #fff;
}

.cart-summary .btn {
    min-height: 48px;
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 12px;
    padding-right: 12px;
}

.stat-card {
    border-radius: 16px;
    min-height: 118px;
}

.stat-card strong {
    font-size: 25px;
}

.admin-list {
    padding-left: 12px;
    padding-right: 12px;
}

.admin-row-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-row-main strong,
.admin-row-main p,
.mini-row span {
    overflow-wrap: anywhere;
}

.admin-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-meta-line span,
.status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e6f7fa;
    color: #007c91;
    font-size: 12px;
    font-weight: 900;
}

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

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

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

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

.order-row .admin-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-admin-row .admin-actions {
    grid-template-columns: 1fr 1fr;
}

.mini-row {
    align-items: start;
}

@media (max-width: 380px) {
    .product-grid,
    .brand-grid {
        gap: 8px;
    }

    .product-card img {
        height: 118px;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 700px) {
    .center-action .btn {
        width: auto;
        min-width: 220px;
    }

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

    .enhanced-filter-form {
        grid-template-columns: 1.4fr 1fr 1fr 1fr auto auto auto;
    }

    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-actions {
        display: flex;
        justify-content: flex-end;
    }

    .admin-actions a,
    .admin-actions button {
        width: auto;
    }
}
