/* ============ Public store styles ============ */
* {
    box-sizing: border-box;
}

body,
input,
button,
select,
textarea {
    font-family: Lato, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    background: #fafafa;
    color: #1f2933;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

.muted {
    color: #8892a5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ── Notice bar ── */
.notice-bar {
    color: #fff;
    background: #1EA36C;
    padding: 8px 0;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.notice-bar p {
    margin: 0;
}

/* ── Header ── */
.header-container {
    border-bottom: 1px solid #eee;
}


.main-bar {
    background: #fff;
    padding: 14px 0;
}

.main-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand / logo */
.header-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    max-width: 150px;
}

.site-logo-text {
    font-weight: 900;
    font-size: 22px;
    color: #000;
    letter-spacing: -.3px;
}

/* Desktop nav */
.header-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-list a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.header-list a:hover {
    color: #F5A623;
}

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-cod-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}

/* Mobile / desktop visibility */
.mobile-bar {
    display: none;
}

@media (max-width: 900px) {
    .header-list {
        display: none;
    }

    .desktop-bar {
        display: none;
    }

    .mobile-bar {
        display: flex;
        padding: 12px 0;
    }

    .mobile-bar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* ── Main wrap & footer ── */
.main-wrap {
    min-height: 60vh;
    padding: 0;
}

.public-footer {
    border-top: 1px solid #eee;
    padding: 22px 0;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    background: #fff;
}

/* Category nav */
.cat-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.cat-nav a {
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    font-size: 13px;
    background: #fff;
}

.cat-nav a.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: block;
    color: inherit;
    transition: box-shadow .15s;
}

.product-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    text-decoration: none;
}

.card-img {
    height: 210px;
    background: #f3f4f6;
    overflow: hidden;
}

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

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.card-desc {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

.card-price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 16px;
}

.card-price del {
    color: #9ca3af;
    font-size: 13px;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #6b7280;
}

/* Product page layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 820px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

.main-image {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.main-image img {
    width: 100%;
    display: block;
}

.thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: 64px;
    height: 64px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #fff;
}

.thumb.active {
    border-color: #1a73e8;
}

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

.product-name {
    margin: 0 0 10px;
    font-size: 24px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

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

.price-new {
    color: #dc2626;
    font-weight: 800;
    font-size: 26px;
}

.badge-disc {
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.short-desc {
    color: #4b5563;
}

.meta-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 14px;
    margin: 14px 0;
    font-size: 14px;
}

.meta-list dt {
    color: #6b7280;
    font-weight: 600;
}

.meta-list dd {
    margin: 0;
}

.full-desc {
    margin-top: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
}

.rich h2,
.rich h3 {
    margin-top: 0;
}

.rich img {
    border-radius: 8px;
}

/* Order form */
.order-form-wrap {
    margin-top: 18px;
}

.order-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.order-form-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.form-field {
    margin-bottom: 12px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .grow {
    flex: 1;
}

.order-summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

.os-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 14px;
    color: #4b5563;
}

.os-row.final {
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    color: #1f2933;
}

.os-total {
    color: #dc2626;
}

.btn-order {
    width: 100%;
    padding: 13px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

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

.cod-note {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}

.form-errors {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* Landing page */
.lp-hero {
    text-align: center;
    margin-bottom: 18px;
}

.lp-hero img {
    max-height: 420px;
    border-radius: 12px;
}

.lp-title {
    font-size: 28px;
    margin: 0 0 16px;
}

.lp-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
}

.lp-price {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 18px 0;
}

.lp-price .price-new {
    font-size: 32px;
}

.lp-cod {
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.not-found {
    text-align: center;
    padding: 60px 0;
}

.not-found .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #1a73e8;
    border-radius: 8px;
    color: #fff;
}

/* ===== REDESIGN STYLES (HOMEPAGE) ===== */
.hero-section {
    background: linear-gradient(135deg, #ff7200 0%, #ff9d2e 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 42px;
    margin: 0 0 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 18px;
    color: #eff6ff;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

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

.category-nav-wrapper {
    margin-bottom: 30px;
}

.cat-nav-modern {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cat-nav-modern::-webkit-scrollbar {
    display: none;
}

.cat-nav-modern a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cat-nav-modern a:hover {
    border-color: #cbd5e1;
    color: #1f2933;
    transform: translateY(-1px);
}

.cat-nav-modern a.active {
    background: #ff7200;
    color: #fff;
    border-color: #ff7200;
    box-shadow: 0 4px 12px rgba(255, 114, 0, 0.2);
}

.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 675px) {
    .product-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

.product-card-modern {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-link {
    display: block;
    overflow: hidden;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .card-img-wrap img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff0055 0%, #ff5000 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.product-card-modern:hover .discount-badge {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.6);
}

.discount-badge i {
    font-size: 12px;
    animation: pulseFire 1.5s infinite alternate;
}

@keyframes pulseFire {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px #fff);
    }

    100% {
        transform: scale(1.25);
        filter: drop-shadow(0 0 6px #ffeb3b);
    }
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-link {
    text-decoration: none;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
    overflow: hidden;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title-link:hover .card-title {
    color: #ff7200;
}

.card-price-row {
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.new-price {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
}

.old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    white-space: nowrap;
}

.btn-buy-now {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    color: #ff7200;
    border: 2px solid #ff7200;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #ff7200 0%, #ff9d2e 100%);
    border-color: transparent;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 114, 0, 0.3);
}

/* Flashes */
.flash-bar {
    position: sticky;
    top: 0;
    z-index: 10;
}