/* =============================================
   GearNest — E-Commerce CSS
   Star Tech (startech.com.bd) inspired • Light theme
============================================= */

:root {
    --primary: #00237e;
    --primary-2: #3749bb;
    --cyan: #0bc1e9;
    --cyan-2: #04b5db;
    --navy: #01132d;
    --red: #ef4a23;
    --green: #15b579;
    --bg: #f1f3f5;
    --bg-2: #f7f9fc;
    --card: #ffffff;
    --border: #e6e9ef;
    --border-soft: #f0f2f6;
    --text: #333333;
    --heading: #01132d;
    --muted: #666666;
    --muted-2: #9aa0ab;
    --warn: #ffb300;
    --danger: #e5330b;
    --primary-grad: linear-gradient(45deg, #00237e, #3749bb, #0bc1e9);
    --primary-grad-2: linear-gradient(90deg, #00237e, #3749bb);
    --navy-grad: linear-gradient(90deg, #01132d, #00237e 60%, #0a2f9e);
    --shadow: 0 18px 45px rgba(1, 19, 45, .12);
    --shadow-sm: 0 6px 18px rgba(1, 19, 45, .07);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

h1, h2, h3, h4 {
    color: var(--heading);
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 22px;
    width: 100%;
}

.section-pad {
    padding: 60px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-head.center {
    justify-content: center;
    text-align: center;
}

.section-head h2 {
    font-size: 27px;
    font-weight: 700;
    position: relative;
    padding-bottom: 11px;
}

.section-head h2::after {
    content: "";
    width: 52px;
    height: 4px;
    border-radius: 50px;
    background: var(--primary-grad);
    position: absolute;
    left: 0;
    bottom: 0;
}

.section-head.center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-head p {
    color: var(--muted);
    font-size: 14px;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover {
    color: var(--cyan);
    letter-spacing: .5px;
}

/* ============ Buttons ============ */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-grad-2);
    color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 8px 22px rgba(2, 35, 126, .22);
    border: none;
    cursor: pointer;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(2, 35, 126, .3);
}

.shop-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
    cursor: pointer;
}

.explore-btn:hover {
    background: var(--primary);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: .3s;
}

.btn.primary {
    background: var(--primary-grad-2);
    color: #fff;
    box-shadow: 0 6px 16px rgba(2, 35, 126, .2);
}

.btn.primary:hover {
    transform: translateY(-2px);
}

.btn.ghost {
    background: #fff;
    border-color: var(--border);
    color: var(--heading);
}

.btn.ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.danger {
    background: var(--danger);
    color: #fff;
}

.btn.danger:hover {
    background: #c21f00;
}

.btn.small {
    padding: 7px 13px;
    font-size: 13px;
}

.btn.big {
    padding: 14px 30px;
    font-size: 15px;
}

/* ============ Loader ============ */
#pageLoader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
    transition: opacity .45s, visibility .45s;
}

#pageLoader span {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    animation: loaderPulse 1.1s ease-in-out infinite;
}

.loader-logo {
    width: 90px;
    height: auto;
    display: block;
    animation: loaderPulse 1.1s ease-in-out infinite;
}

#pageLoader::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #e8ecf5;
    border-top-color: var(--primary);
    animation: loaderSpin .8s linear infinite;
}

#pageLoader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* ============ Toast ============ */
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    background: var(--navy);
    color: #fff;
    padding: 13px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 9999;
    max-width: 92vw;
    border-left: 5px solid var(--cyan);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--danger); }
.toast-warn { border-left-color: var(--warn); }

.toast-close {
    background: none;
    color: rgba(255, 255, 255, .65);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* ============ Scroll Top ============ */
.scroll-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 35, 126, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .3s;
    z-index: 800;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============ Ripple ============ */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transform: scale(0);
    animation: rippleAnim .6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ============ Header ============ */
#site-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow .3s;
}

#site-header.scrolled {
    box-shadow: 0 12px 30px rgba(1, 19, 45, .1);
}

.topbar {
    background: var(--navy);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .75);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
}

.topbar-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-hotline i {
    color: var(--cyan);
}

.topbar-hotline b {
    color: #fff;
    font-weight: 600;
}

.topbar-links {
    display: flex;
    gap: 22px;
}

.topbar-links a {
    color: rgba(255, 255, 255, .72);
    transition: .3s;
}

.topbar-links a:hover {
    color: var(--cyan);
}

.mainbar {
    background: #fff;
}

.mainbar-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 76px;
    padding: 8px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
}

@media (max-width: 576px) {
    .logo-img {
        height: 46px;
    }
}

.logo-ic {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 21px;
    box-shadow: 0 8px 18px rgba(2, 35, 126, .3);
}

.logo-text {
    font-size: 25px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.logo-text strong {
    color: var(--cyan);
    font-weight: 800;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-2);
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 620px;
    transition: .3s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 35, 126, .08);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--heading);
    padding: 12px 18px;
    font-size: 14px;
    min-width: 0;
}

.search-bar input::placeholder {
    color: var(--muted-2);
}

.search-bar button {
    background: var(--primary);
    color: #fff;
    width: 52px;
    height: 44px;
    font-size: 16px;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background: var(--primary-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
    color: var(--heading);
    cursor: pointer;
    padding: 6px 4px;
    transition: .25s;
}

.header-action:hover {
    color: var(--primary);
}

.header-action > i {
    font-size: 23px;
    color: var(--primary);
}

.header-action.deals > i,
.header-action.deals b {
    color: var(--red);
}

.ha-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ha-text span {
    font-size: 11px;
    color: var(--muted);
}

.ha-text b {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}

.header-action.cart .cart-badge {
    position: absolute;
    top: -4px;
    right: 18px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 3px 8px rgba(229, 51, 11, .4);
}

.account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .25s;
    z-index: 950;
    box-shadow: var(--shadow);
}

.account-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    transition: .25s;
}

.account-menu a:hover {
    background: var(--bg-2);
    color: var(--primary);
}

.account-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

/* ============ Category Bar ============ */
.catbar {
    background: var(--navy-grad);
    position: relative;
    z-index: 950;
    transition: box-shadow .3s;
}

.catbar.stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(1, 19, 45, .18);
}

.catbar-spacer {
    display: block;
    height: 0;
}

.catbar-inner {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 26px;
    position: relative;
}

.cat-dropdown-wrap {
    position: relative;
    height: 100%;
}

.all-cat-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    background: linear-gradient(45deg, #00237e, #3749bb, #0bc1e9);
    color: #fff;
    height: 100%;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.all-cat-btn:hover {
    filter: brightness(1.12);
}

.cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .25s;
    z-index: 950;
    box-shadow: var(--shadow);
}

.cat-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-dd-title {
    padding: 14px 18px 9px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.cat-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: .2s;
}

.cat-dropdown a:hover {
    background: var(--bg-2);
    color: var(--primary);
    padding-left: 22px;
}

.cat-dropdown a i {
    color: var(--primary);
    font-size: 13px;
}

.cat-dropdown a .cat-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
    background: var(--bg-2);
    padding: 1px 8px;
    border-radius: 50px;
}

.cat-dropdown .cat-dd-all {
    margin-top: 8px;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-2);
    color: var(--primary);
    font-weight: 600;
    padding: 13px 18px;
}

.cat-dropdown .cat-dd-all:hover {
    background: var(--primary);
    color: #fff;
    padding-left: 18px;
}

.cat-dropdown .cat-dd-all .cat-dd-arrow {
    margin-left: auto;
    color: inherit;
}

.catbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.catbar-links li {
    height: 100%;
}

.catbar-links li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 17px;
    color: rgba(255, 255, 255, .92);
    font-size: 14.5px;
    font-weight: 500;
    position: relative;
    transition: .25s;
}

.catbar-links li a::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--cyan);
    border-radius: 3px 3px 0 0;
    transition: .25s;
}

.catbar-links li a:hover {
    color: var(--cyan);
}

.catbar-links li a:hover::after {
    width: 60%;
}

.mobile-menu {
    display: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 1002;
    padding: 8px 6px;
    border-radius: 8px;
    transition: .2s;
}

.mobile-menu:hover {
    color: var(--cyan);
    background: rgba(255, 255, 255, .08);
}

.catbar-mobile-only {
    display: none;
}

.catbar-mobile-only a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.catbar-mobile-only a i {
    width: 18px;
    text-align: center;
    color: var(--cyan);
}

.catbar-mobile-sep {
    display: block;
    padding: 12px 16px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

/* ============ Mobile Bottom Nav ============ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(2, 35, 126, .08);
    box-shadow: 0 -8px 24px rgba(2, 35, 126, .12);
    z-index: 1001;
    animation: navSlideUp .45s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes navSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 0 9px;
    color: #8492b8;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color .2s;
}

.mobile-bottom-nav a i {
    font-size: 19px;
    transition: transform .2s;
}

.mobile-bottom-nav a.active {
    color: var(--primary);
}

.mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--primary-grad);
}

.mobile-bottom-nav a.active i {
    transform: translateY(-2px);
}

.mb-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ Contact Hub (Assistant + Social) ============ */
.social-hub {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.social-hub.hidden {
    display: none;
}

.hub-main {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), #003399);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 24px rgba(1, 38, 130, .4);
    transition: transform .25s;
}

.hub-main:hover {
    transform: scale(1.1);
}

.hub-main .chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #ff5252;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.hub-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.97);
    transform-origin: top center;
    transition: opacity .22s, transform .22s, visibility .22s;
}

.social-hub.open .hub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hub-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: transform .2s;
}

.hub-btn:hover {
    transform: translateX(-3px);
    color: #fff;
}

.hub-btn i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.hub-chat { background: linear-gradient(135deg, var(--primary), #003399); }
.soc-wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.soc-telegram { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.soc-facebook { background: linear-gradient(135deg, #1877F2, #0d5fc2); }
.soc-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* ============ Footer ============ */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .75);
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 52px 0 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-logo i {
    color: var(--cyan);
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 9px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    border-radius: 50px;
    background: var(--cyan);
}

.footer-col ul li {
    margin-bottom: 9px;
    font-size: 13.5px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, .72);
    transition: .25s;
}

.footer-col ul li a:hover {
    color: var(--cyan);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 13.5px;
}

.footer-contact li i {
    color: var(--cyan);
    margin-top: 4px;
    width: 16px;
}

.footer-col.brand p {
    font-size: 13.5px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .65);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: .3s;
}

.social-icons a:hover {
    background: var(--primary-grad);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 17px 0;
    font-size: 12.5px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom i {
    font-size: 15px;
    color: var(--cyan);
}

/* ============ Hero ============ */
.hero {
    background: var(--navy-grad);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 64px 0;
}

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 193, 233, .22), transparent 65%);
    top: -180px;
    right: -120px;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 73, 187, .3), transparent 65%);
    bottom: -160px;
    left: -120px;
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-left {
    max-width: 560px;
}

.hero-tag {
    display: inline-block;
    background: rgba(11, 193, 233, .14);
    color: var(--cyan);
    border: 1px solid rgba(11, 193, 233, .4);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero-left h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-left h1 span {
    color: var(--cyan);
}

.hero-left > p {
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    max-width: 470px;
    margin-bottom: 26px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-cta .shop-btn {
    background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
    color: var(--navy);
    box-shadow: 0 10px 26px rgba(11, 193, 233, .35);
}

.hero-cta .shop-btn:hover {
    box-shadow: 0 14px 32px rgba(11, 193, 233, .45);
}

.hero-cta .explore-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.hero-cta .explore-btn:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.hero-stats {
    display: flex;
    gap: 34px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats b {
    font-size: 26px;
    font-weight: 700;
    color: var(--cyan);
}

.hero-stats span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .65);
}

.hero-right {
    position: relative;
    flex-shrink: 0;
}

.hero-right img {
    max-width: 470px;
    width: 100%;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .4));
    animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero-float {
    position: absolute;
    background: #fff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hero-float i {
    color: var(--primary);
}

.float-1 {
    top: 8%;
    right: -8%;
}

.float-2 {
    bottom: 10%;
    left: -6%;
}

/* ============ Category Cards ============ */
.category-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    transition: .3s;
    cursor: pointer;
    min-height: 150px;
    justify-content: center;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.card i {
    font-size: 30px;
    color: var(--primary);
    background: #eef2ff;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.card:hover i {
    background: var(--primary-grad);
    color: #fff;
}

.card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}

.card .card-count {
    font-size: 12px;
    color: var(--muted);
}

/* ============ Flash Sale / Deals ============ */
.flash-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.flash-top .section-head {
    margin-bottom: 0;
}

.flash-top .section-head h2 {
    color: var(--red);
}

.flash-top .section-head h2::after {
    background: var(--red);
}

.countdown {
    display: flex;
    gap: 10px;
}

.countdown div {
    background: var(--navy);
    color: #fff;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 66px;
}

.countdown b {
    display: block;
    font-size: 21px;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1.1;
}

.countdown span {
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
}

/* ============ Product Grid & Card ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 16px;
}

.product {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(1, 19, 45, .12);
}

.product-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 190px;
    padding: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .35s;
}

.product:hover .product-thumb img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(229, 51, 11, .35);
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warn);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    z-index: 2;
}

.product-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-cat {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 500;
}

.product-body h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--heading);
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-body h3 a:hover {
    color: var(--primary);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: auto;
}

.product-price-row .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-price-row del {
    color: var(--muted-2);
    font-size: 13px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.stock {
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stock.in {
    color: var(--green);
}

.stock.out {
    color: var(--danger);
}

.add-cart-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--primary-grad-2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 6px;
    transition: .3s;
    max-width: 128px;
}

.add-cart-btn:hover {
    background: var(--primary-grad);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(2, 35, 126, .25);
}

.add-cart-btn:disabled {
    background: #cdd3de;
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============ Features ============ */
.features {
    background: #fff;
    border-block: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    transition: .3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.feature-card i {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary);
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: .3s;
}

.feature-card:hover i {
    background: var(--primary-grad);
    color: #fff;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--muted);
}

/* ============ Brands ============ */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}

.brand-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-2);
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.brand-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

/* ============ Reviews ============ */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: .3s;
}

.review-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.stars {
    color: #f5a623;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}

.review-card p {
    font-size: 14px;
    color: var(--text);
    font-style: italic;
    margin-bottom: 14px;
}

.review-card h3 {
    font-size: 15px;
    font-weight: 600;
}

.review-loc {
    font-size: 12px;
    color: var(--muted);
}

/* ============ Newsletter ============ */
.newsletter .container {
    background: var(--navy-grad);
    border-radius: 18px;
    padding: 48px 34px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.newsletter .container::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 193, 233, .25), transparent 65%);
    top: -120px;
    right: -80px;
}

.newsletter h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 8px;
    position: relative;
}

.newsletter p {
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    margin-bottom: 22px;
    position: relative;
}

.news-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.news-form input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--heading);
    min-width: 0;
}

.news-form button {
    background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    transition: .3s;
}

.news-form button:hover {
    filter: brightness(1.08);
}

/* ============ Page Banner ============ */
.page-banner {
    background: linear-gradient(135deg, #eef1f8, #e3eaf7);
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
}

.page-banner h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 11px;
    color: var(--muted-2);
}

/* ============ Catalog / Products Page ============ */
.catalog-inner {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.catalog-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.filter-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}

.filter-box h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-box h3 i {
    color: var(--primary);
    font-size: 14px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    transition: .2s;
}

.filter-list a:hover {
    background: var(--bg-2);
    color: var(--primary);
}

.filter-list a.active {
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
}

.filter-list a i {
    color: var(--primary);
    width: 14px;
    text-align: center;
}

.filter-list a .cat-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
    background: var(--bg-2);
    padding: 1px 8px;
    border-radius: 50px;
}

.catalog-content {
    flex: 1;
    min-width: 0;
}

.catalog-toolbar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.result-count {
    font-size: 13px;
    color: var(--muted);
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.sort-wrap select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--heading);
    font-size: 13px;
    cursor: pointer;
}

.sort-wrap select:focus {
    border-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 56px;
    color: #c8cdd8;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    margin-bottom: 18px;
}

.empty-cart-msg {
    text-align: center;
    padding: 30px 10px;
    color: var(--muted);
    font-size: 14px;
}

.empty-cart-msg a {
    color: var(--primary);
    font-weight: 600;
}

.empty-icon {
    font-size: 54px;
    color: #c8cdd8;
    margin-bottom: 12px;
}

/* ============ Product Details ============ */
.details-container {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
}

.gallery-main {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.gallery-main img {
    max-height: 330px;
    object-fit: contain;
}

.details-info .brand {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.details-info h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.detail-rating {
    color: #f5a623;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.detail-rating span {
    color: var(--muted);
    font-size: 13px;
}

.details-info .price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.details-info .price h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
}

.details-info .price del {
    color: var(--muted-2);
    font-size: 16px;
}

.details-info .price .discount {
    background: #ffe8e3;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
}

.detail-desc {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 20px;
}

.detail-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quantity-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.quantity-box button {
    width: 38px;
    height: 40px;
    background: var(--bg-2);
    font-size: 17px;
    color: var(--heading);
    transition: .25s;
}

.quantity-box button:hover {
    background: var(--primary);
    color: #fff;
}

.quantity-box input {
    width: 48px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading);
    background: #fff;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gw-phone,
.gw-instructions {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--heading);
    transition: .25s;
    background: #fff;
}

.gw-phone:focus,
.gw-instructions:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 35, 126, .08);
}

.buy-buttons {
    display: flex;
    gap: 12px;
}

.buy-buttons .shop-btn,
.buy-buttons .explore-btn {
    flex: 1;
}

.product-extra {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-extra div {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text);
}

.product-extra i {
    color: var(--green);
}

.detail-specs {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.detail-specs div {
    display: flex;
    padding: 11px 15px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13.5px;
}

.detail-specs div:last-child {
    border-bottom: none;
}

.detail-specs span {
    color: var(--muted);
    width: 110px;
    flex-shrink: 0;
}

.detail-specs b {
    color: var(--heading);
    font-weight: 600;
}

.details-skel {
    min-height: 360px;
    border: none;
}

/* ============ Cart ============ */
.cart-container {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.cart-table-wrap {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    max-width: 100%;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.cart-table th {
    background: var(--bg-2);
    color: var(--heading);
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.cart-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
    font-size: 13.5px;
    color: var(--text);
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    background: #fff;
    flex-shrink: 0;
}

.cart-product b {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
    display: block;
    line-height: 1.35;
}

.cart-product a {
    font-size: 12px;
    color: var(--primary);
}

.td-price {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.td-price.total {
    font-weight: 700;
}

.remove-cart-item {
    color: #b6bcc8;
    font-size: 16px;
    cursor: pointer;
    transition: .25s;
}

.remove-cart-item:hover {
    color: var(--danger);
}

.cart-summary {
    width: 330px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
}

.summary-item span:last-child {
    font-weight: 600;
    color: var(--heading);
}

.free-ship-note {
    background: #e8f8f1;
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    margin: 6px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary hr {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 10px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.summary-total h3 {
    font-size: 16px;
    font-weight: 700;
}

.summary-total h3:last-child {
    color: var(--primary);
    font-size: 21px;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 14px;
}

.continue-link {
    display: block;
    text-align: center;
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    transition: .25s;
}

.continue-link:hover {
    color: var(--primary);
}

.secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 13px;
}

.secure-note i {
    color: var(--green);
}

/* ============ Checkout ============ */
.checkout-container {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.checkout-form {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    min-width: 0;
}

.checkout-form > h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.checkout-form > h3 i {
    color: var(--primary);
    margin-right: 6px;
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 6px;
}

.input-group label small {
    font-weight: 400;
    color: var(--muted);
}

.input-group input,
.input-group select,
.input-group textarea,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--heading);
    background: #fff;
    transition: .25s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 35, 126, .08);
}

.input-group textarea,
.form-group textarea {
    resize: vertical;
    min-height: 76px;
}

.input-group input::placeholder,
.form-group input::placeholder {
    color: var(--muted-2);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkout-side {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.checkout-summary,
.payment-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
}

.checkout-summary > h3,
.payment-box > h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
}

.checkout-summary > h3 i,
.payment-box > h3 i {
    color: var(--primary);
    margin-right: 6px;
}

.checkout-summary .summary-item {
    padding: 6px 0;
    font-size: 13.5px;
}

.checkout-summary hr {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 10px 0;
}

.checkout-summary .summary-total h2 {
    font-size: 20px;
    font-weight: 700;
}

.checkout-summary .summary-total h2:last-child {
    color: var(--primary);
}

.payment-methods {
    margin-bottom: 12px;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: .2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--heading);
}

.pay-option:hover {
    border-color: var(--primary);
}

.pay-option.selected {
    border-color: var(--primary);
    background: #eef2ff;
    box-shadow: 0 4px 12px rgba(2, 35, 126, .08);
}

.pay-option input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pay-option i {
    color: var(--primary);
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.payment-info {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 13px;
    color: var(--text);
}

.payment-info p {
    margin-bottom: 4px;
}

.payment-info p b {
    color: var(--heading);
}

.place-order-btn {
    width: 100%;
    font-size: 16px;
    padding: 15px;
}

/* ============ Auth ============ */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 54px 22px;
}

.auth-box {
    width: 430px;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 34px 32px;
    box-shadow: 0 22px 60px rgba(1, 19, 45, .08);
}

.auth-head {
    text-align: center;
    margin-bottom: 22px;
}

.auth-head i {
    font-size: 40px;
    color: var(--primary);
    background: #eef2ff;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.auth-head h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-head p {
    font-size: 13px;
    color: var(--muted);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.login-options input {
    accent-color: var(--primary);
}

.login-options a {
    color: var(--primary);
    font-weight: 500;
}

.login-options a:hover {
    text-decoration: underline;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 44px;
}

.toggle-pass {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    transition: .2s;
}

.toggle-pass:hover {
    color: var(--primary);
}

.auth-btn {
    width: 100%;
    margin-top: 4px;
}

.demo-hint {
    background: #fff8e6;
    border: 1px dashed #eecb6f;
    color: #8a6d1a;
    font-size: 12.5px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-top: 18px;
    text-align: left;
}

.demo-hint p {
    margin: 0;
}

.register-link {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 18px;
}

.register-link a {
    color: var(--primary);
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ============ Profile / Orders ============ */
.account-wrap {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.account-card {
    width: 290px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    position: sticky;
    top: 20px;
}

.account-card .avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
    box-shadow: 0 10px 22px rgba(2, 35, 126, .3);
}

.account-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 3px;
}

.account-card .account-email {
    font-size: 13px;
    color: var(--muted);
    word-break: break-all;
}

.orders-box {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    min-width: 0;
}

.orders-box > h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.orders-box > h2 i {
    color: var(--primary);
    margin-right: 6px;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.order-head {
    background: var(--bg-2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.order-head b {
    color: var(--heading);
    font-size: 14px;
}

.order-head small {
    color: var(--muted);
    font-size: 12px;
}

.order-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 50px;
}

.order-items {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
}

.order-items .oi-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-soft);
}

.order-items .oi-row:last-child {
    border-bottom: none;
}

.order-foot {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.order-foot b {
    color: var(--primary);
    font-size: 15px;
}

/* ============ Contact ============ */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    transition: .3s;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.contact-card i {
    font-size: 26px;
    color: var(--primary);
    background: #eef2ff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}

.contact-card span {
    font-size: 12px;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 30px;
}

.contact-form-box,
.contact-info-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.contact-form-box h2,
.contact-info-box h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form-box > p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.contact-form-box .shop-btn {
    margin-top: 6px;
}

.faq-item {
    padding: 13px 0;
    border-bottom: 1px dashed var(--border-soft);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
}

.faq-item h3 i {
    color: var(--primary);
    font-size: 14px;
}

.faq-item p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px;
    padding-left: 23px;
}

/* ============ Skeleton & Fade ============ */
.skeleton-card {
    background: linear-gradient(90deg, #eef0f4 25%, #f7f9fc 50%, #eef0f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius);
    height: 240px;
    border: 1px solid var(--border-soft);
}

.card.skeleton-card {
    height: 150px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: none;
}

/* ============ Admin ============ */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

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

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #01132d, #03205a);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 950;
    transition: transform .3s;
}

.admin-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.admin-logo-img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 8px;
    flex-shrink: 0;
}

.admin-logo i {
    font-size: 25px;
    color: var(--cyan);
    background: rgba(11, 193, 233, .12);
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-logo h2 {
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
}

.admin-logo p {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-nav {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
}

.admin-nav-bottom {
    flex: 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.admin-nav-label {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 14px 12px 6px;
    font-weight: 500;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 500;
    transition: .25s;
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-nav-item.active {
    background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
    color: var(--navy);
    font-weight: 600;
}

.admin-nav-item.logout:hover {
    background: rgba(229, 51, 11, .18);
    color: #ff9c85;
}

.nav-count {
    margin-left: auto;
    background: rgba(255, 255, 255, .14);
    font-size: 11px;
    font-weight: 600;
    padding: 1px 9px;
    border-radius: 50px;
}

.nav-count.warn {
    background: var(--warn);
    color: var(--navy);
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.admin-topbar h1 {
    font-size: 19px;
    font-weight: 700;
    flex: 1;
    margin: 0;
}

.menu-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    font-size: 17px;
    color: var(--heading);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.au-text {
    text-align: right;
    line-height: 1.3;
}

.au-text small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.au-text b {
    font-size: 13px;
    color: var(--heading);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar.small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.admin-content {
    padding: 24px;
    flex: 1;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 19px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.stat-icon.orange { background: linear-gradient(135deg, #f58220, #ef9919); }
.stat-icon.blue { background: linear-gradient(135deg, #00237e, #3749bb); }
.stat-icon.green { background: linear-gradient(135deg, #15b579, #2fd99b); }
.stat-icon.purple { background: linear-gradient(135deg, #6e2594, #9a4fd0); }
.stat-icon.amber { background: linear-gradient(135deg, #f0a500, #ffc940); }

.stat-card small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.stat-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.admin-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.view-all {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
}

.view-all:hover {
    color: var(--cyan);
}

.status-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px 15px;
    font-size: 12.5px;
}

.status-chip .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.status-chip b {
    color: var(--heading);
}

.status-chip small {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.admin-table th {
    background: var(--bg-2);
    color: var(--heading);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover td {
    background: #fafcff;
}

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 30px !important;
    font-size: 13px;
}

.mono {
    font-family: "SF Mono", Consolas, monospace;
    font-size: 12.5px;
}

.sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.old {
    display: block;
    color: var(--muted-2);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 400;
}

.prod-thumb {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
    background: #fff;
}

.stock-chip {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.stock-chip.in {
    background: #e8f8f1;
    color: var(--green);
}

.stock-chip.out {
    background: #fdecea;
    color: var(--danger);
}

.row-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    transition: .25s;
}

.icon-btn:hover {
    transform: translateY(-1px);
}

.icon-btn.edit:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #eef2ff;
}

.icon-btn.danger:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: #fdecea;
}

.cust-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.cust-cell b {
    display: block;
    font-size: 13.5px;
    color: var(--heading);
    line-height: 1.3;
}

.cust-cell small {
    font-size: 12px;
    color: var(--muted);
}

.role-chip {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    background: #eef2ff;
    color: var(--primary);
    text-transform: uppercase;
}

.role-chip.admin {
    background: #fff0e3;
    color: #f58220;
}

.status-select {
    padding: 6px 11px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.status-pending { color: #b28704; border-color: #ffc940; background: #fff8e6; }
.status-processing { color: #0277bd; border-color: #4fc3f7; background: #e8f5fd; }
.status-shipped { color: #0f7b5a; border-color: #15b579; background: #e8f8f1; }
.status-delivered { color: #e06a00; border-color: #f58220; background: #fff0e3; }
.status-cancelled { color: #c62828; border-color: #ef5350; background: #fdecea; }

.card-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.product-form {
    margin-bottom: 20px;
}

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

.form-group {
    margin-bottom: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 6px;
}

.form-group label small {
    font-weight: 400;
    color: var(--muted);
}

.form-group input[type="file"] {
    padding: 8px;
    font-size: 13px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.admin-search {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 220px;
    font-size: 13px;
    color: var(--heading);
    transition: .25s;
}

.admin-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 35, 126, .08);
}

.sub-count {
    background: #eef2ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    vertical-align: middle;
}

.section-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    width: 170px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 180px;
    padding-top: 10px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
}

.bar-col .bar {
    width: 100%;
    max-width: 46px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #00b0f0, #00237e);
    min-height: 3px;
    position: relative;
    transition: height .5s cubic-bezier(.22, .61, .36, 1);
}

.bar-col .bar:hover {
    filter: brightness(1.1);
}

.bar-col .bar-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
}

.bar-col .bar-day {
    font-size: 11px;
    color: #8492b8;
    font-weight: 600;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.donut {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#ffb300 0 0, #e8edf7 0 100%);
    position: relative;
    flex-shrink: 0;
}

.donut-hole {
    position: absolute;
    inset: 22px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-hole b {
    font-size: 24px;
    color: var(--text);
}

.donut-hole small {
    font-size: 11px;
    color: #8492b8;
}

.donut-legend {
    list-style: none;
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donut-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6789;
}

.donut-legend li .dl-dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}

.donut-legend li b {
    margin-left: auto;
    color: var(--text);
}

.top-prod-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 2px;
}

.top-prod-row + .top-prod-row {
    border-top: 1px solid var(--border);
}

.top-prod-rank {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-prod-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #fff;
}

.top-prod-info {
    flex: 1;
    min-width: 0;
}

.top-prod-info b {
    display: block;
    font-size: 13.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-prod-info small {
    color: #8492b8;
    font-size: 12px;
}

.top-prod-qty {
    font-size: 12.5px;
    font-weight: 700;
    color: #5a6789;
    flex-shrink: 0;
}

.low-stock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
}

.low-stock-item + .low-stock-item {
    border-top: 1px solid var(--border);
}

.low-stock-item .ls-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.low-stock-item .ls-count {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    background: #fde8e8;
    color: #d93025;
}

.stock-chip.low {
    background: #fff4e5;
    color: #e8710a;
}

.stock-chip.out {
    background: #fde8e8;
}

.spinner-row {
    text-align: center;
    padding: 26px 0;
    color: #8492b8;
}

.spinner {
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 3px solid #dbe1f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.badge-pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: #eef2ff;
    color: var(--primary);
}

.badge-pay.cod {
    background: #e8f7ee;
    color: #1e8e4e;
}

.badge-pay.card {
    background: #f3efff;
    color: #6a3de8;
}

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

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.settings-grid .full-col {
    grid-column: 1 / -1;
}

.gateway-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gateway-row {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: #fff;
    transition: .25s;
}

.gateway-row:hover {
    border-color: var(--primary);
}

.gw-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gw-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.gw-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 120px;
    transition: .25s;
}

.gw-name:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 35, 126, .08);
}

.gw-type {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--heading);
    font-size: 13px;
    width: 150px;
}

.gw-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    margin-left: auto;
    user-select: none;
}

.gw-toggle input {
    display: none;
}

.switch {
    position: relative;
    width: 42px;
    height: 23px;
    border-radius: 50px;
    background: #cdd3de;
    transition: .3s;
    display: inline-block;
    flex-shrink: 0;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    transition: .3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

.gw-toggle input:checked + .switch {
    background: var(--green);
}

.gw-toggle input:checked + .switch::after {
    transform: translateX(19px);
}

.gw-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.gw-body .form-group {
    margin-bottom: 0;
}

.gw-remove {
    align-self: center;
}

.settings-note {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 16px;
    padding: 11px 14px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
}

.settings-note i {
    color: var(--primary);
    margin-right: 5px;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
    .hero-left h1 {
        font-size: 34px;
    }

    .hero-right img {
        max-width: 380px;
    }

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

    .details-container {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        min-height: 300px;
    }
}

@media (max-width: 992px) {
    .catbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 8px;
        gap: 2px;
        box-shadow: var(--shadow);
        border-top: 1px solid rgba(255, 255, 255, .1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: .25s;
        z-index: 900;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .catbar-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .catbar-links .catbar-mobile-only {
        display: block;
    }

    .catbar-links li a {
        height: 44px;
        padding: 0 16px;
        border-radius: 8px;
    }

    .catbar-links li a::after {
        display: none;
    }

    .catbar-links li a:hover {
        background: rgba(255, 255, 255, .08);
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 62px;
    }

    .scroll-top {
        bottom: 80px;
    }

    .social-hub {
        right: 14px;
        bottom: 84px;
    }

    .hub-main {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .ha-text {
        display: none;
    }

    .header-action {
        padding: 6px;
    }

    .mainbar-inner {
        gap: 16px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-left > p {
        margin-inline: auto;
    }

    .hero-cta,
    .hero-stats {
        justify-content: center;
    }

    .hero-right img {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-float {
        font-size: 12px;
        padding: 8px 13px;
    }

    .float-1 {
        right: 4%;
    }

    .float-2 {
        left: 4%;
    }

    .catalog-inner,
    .cart-container,
    .checkout-container,
    .account-wrap {
        flex-direction: column;
    }

    .catalog-sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .filter-box {
        margin-bottom: 0;
    }

    .cart-summary,
    .checkout-side {
        width: 100%;
        position: static;
    }

    .account-card {
        width: 100%;
        position: static;
    }

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

    .admin-sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, .3);
    }

    .admin-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .topbar-links {
        gap: 12px;
        font-size: 11.5px;
    }

    .topbar-track i {
        display: none;
    }

    .section-pad {
        padding: 44px 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-ic {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .mainbar-inner {
        min-height: 66px;
        padding: 6px 0;
        gap: 12px;
    }

    .search-bar input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-bar button {
        width: 44px;
        height: 40px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action.deals {
        display: none;
    }

    .hero-left h1 {
        font-size: 28px;
    }

    .hero-stats b {
        font-size: 21px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 12px;
    }

    .product-thumb {
        height: 150px;
    }

    .add-cart-btn {
        max-width: none;
        flex: 1;
        padding: 9px 8px;
        font-size: 11px;
    }

    .product-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .product-body h3 {
        min-height: 0;
    }

    .flash-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .countdown div {
        min-width: 56px;
        padding: 7px 10px;
    }

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

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

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

    .two-col {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 38px 0 30px;
    }

    .newsletter .container {
        padding: 36px 20px;
    }

    .news-form {
        flex-direction: column;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-topbar {
        padding: 0 16px;
    }

    .au-text {
        display: none;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .admin-search {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .topbar-links {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .topbar-links {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .catalog-sidebar {
        grid-template-columns: 1fr;
    }

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

    .product-thumb {
        height: 130px;
    }

    .product-body {
        padding: 11px 11px 13px;
    }

    .product-price-row .price {
        font-size: 16px;
    }

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

    .buy-buttons {
        flex-direction: column;
    }

    .auth-box {
        padding: 26px 20px;
    }

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

    .hero-float {
        display: none;
    }
}

/* ==========================================================
   ANIMATIONS & EFFECTS  (appended)
========================================================== */

/* ---------- Scroll Reveal Base ---------- */
.fade-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
    opacity: 0;
}

.fade-up.show {
    animation: revealUp .75s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: var(--delay, 0s);
}

.reveal-left.show {
    animation: revealLeft .75s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: var(--delay, 0s);
}

.reveal-right.show {
    animation: revealRight .75s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: var(--delay, 0s);
}

.reveal-zoom.show {
    animation: revealZoom .7s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: var(--delay, 0s);
}

.fade-up.done,
.reveal-left.done,
.reveal-right.done,
.reveal-zoom.done {
    opacity: 1;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-48px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
    from { opacity: 0; transform: translateX(48px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealZoom {
    from { opacity: 0; transform: scale(.85); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- Stagger helpers (grids) ---------- */
.product-grid .fade-up:nth-child(2) { --delay: .06s; }
.product-grid .fade-up:nth-child(3) { --delay: .12s; }
.product-grid .fade-up:nth-child(4) { --delay: .18s; }
.product-grid .fade-up:nth-child(5) { --delay: .24s; }
.product-grid .fade-up:nth-child(6) { --delay: .30s; }
.product-grid .fade-up:nth-child(7) { --delay: .36s; }
.product-grid .fade-up:nth-child(8) { --delay: .42s; }

.category-box .fade-up:nth-child(2) { --delay: .05s; }
.category-box .fade-up:nth-child(3) { --delay: .10s; }
.category-box .fade-up:nth-child(4) { --delay: .15s; }
.category-box .fade-up:nth-child(5) { --delay: .20s; }
.category-box .fade-up:nth-child(6) { --delay: .25s; }
.category-box .fade-up:nth-child(7) { --delay: .30s; }
.category-box .fade-up:nth-child(8) { --delay: .35s; }

/* ---------- Hero Entrance ---------- */
.hero {
    background: linear-gradient(115deg, #01132d, #00237e, #2a3aa8, #00237e, #01132d);
    background-size: 300% 100%;
    animation: heroBgShift 18s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
    from { background-position: 0% 0; }
    to { background-position: 100% 0; }
}

.hero::before {
    animation: heroCircle1 9s ease-in-out infinite alternate;
}

.hero::after {
    animation: heroCircle2 11s ease-in-out infinite alternate;
}

@keyframes heroCircle1 {
    to { transform: translate(-28px, 24px) scale(1.12); }
}

@keyframes heroCircle2 {
    to { transform: translate(28px, -24px) scale(1.1); }
}

.hero-tag,
.hero-left h1,
.hero-left > p,
.hero-cta,
.hero-stats {
    animation: heroIn .85s cubic-bezier(.22, .61, .36, 1) backwards;
}

.hero-tag { animation-delay: .05s; }
.hero-left h1 { animation-delay: .16s; }
.hero-left > p { animation-delay: .30s; }
.hero-cta { animation-delay: .44s; }
.hero-stats { animation-delay: .58s; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-right img {
    animation: heroIn .9s cubic-bezier(.22, .61, .36, 1) .25s backwards, heroFloat 5s ease-in-out 1.4s infinite;
}

.hero-float {
    animation: floatPulse 2.6s ease-in-out infinite;
}

.hero-float.float-2 {
    animation-delay: 1.3s;
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Product Card Effects ---------- */
.product {
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.product:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 22px 48px rgba(1, 19, 45, .16);
}

.product:hover .discount-badge {
    animation: badgePop .5s ease;
}

@keyframes badgePop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

/* ---------- Button Shine Sweep ---------- */
.shop-btn,
.explore-btn,
.btn,
.add-cart-btn {
    position: relative;
    overflow: hidden;
}

.shop-btn::after,
.explore-btn::after,
.btn::after,
.add-cart-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
    pointer-events: none;
}

.shop-btn:hover::after,
.explore-btn:hover::after,
.btn:hover::after,
.add-cart-btn:hover::after {
    left: 130%;
}

.shop-btn,
.explore-btn,
.btn {
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

/* ---------- Category Card Icon Bounce ---------- */
.card:hover i {
    animation: iconBounce .55s ease;
}

.feature-card:hover i {
    animation: iconBounce .55s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-9px); }
}

/* ---------- Brand Marquee ---------- */
.brand-grid.brand-marquee {
    display: block;
    overflow: hidden;
    width: 100%;
}

.brand-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.brand-marquee:hover .brand-track {
    animation-play-state: paused;
}

.brand-track .brand-card {
    min-width: 150px;
}

@keyframes marqueeScroll {
    to { transform: translateX(calc(-50% - 7px)); }
}

/* ---------- Newsletter Shine ---------- */
.newsletter .container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .16) 50%, transparent 68%);
    transform: translateX(-110%);
    animation: newsShine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes newsShine {
    0%, 55% { transform: translateX(-110%); }
    100% { transform: translateX(110%); }
}

/* ---------- Cart Badge Bump ---------- */
.cart-badge.bump {
    animation: badgeBump .45s ease;
}

@keyframes badgeBump {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.4); }
}

/* ---------- Header Slide In ---------- */
#site-header {
    transition: box-shadow .35s ease;
}

/* ---------- Scroll Top Hover ---------- */
.scroll-top {
    transition: transform .3s ease, background .3s ease;
}

.scroll-top:hover {
    transform: translateY(-4px) scale(1.06);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .reveal-left,
    .reveal-right,
    .reveal-zoom {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero,
    .hero-tag,
    .hero-left h1,
    .hero-left > p,
    .hero-cta,
    .hero-stats,
    .hero-right img,
    .hero-float,
    .hero::before,
    .hero::after,
    .brand-track,
    .newsletter .container::after {
        animation: none !important;
    }
}

/* ============ Homepage Hero Slider / Promotional Banner Carousel ============ */
.hero-slider {
    background: var(--bg);
    padding: 20px 0 0;
}

.hero-slider__frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(1, 19, 45, .16);
    background: #0b1633;
    aspect-ratio: 8 / 3;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.hero-slider__track {
    display: flex;
    height: 100%;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .95);
    color: var(--primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.hero-slider__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }

.hero-slider__frame:hover .hero-slider__arrow {
    opacity: 1;
}

.hero-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.hero-slider__dots button {
    width: 26px;
    height: 6px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
    transition: width .3s, background .3s;
}

.hero-slider__dots button.active {
    background: #fff;
    width: 42px;
}

@media (max-width: 992px) {
    .hero-slider__frame {
        aspect-ratio: 16 / 6;
    }
}

@media (max-width: 576px) {
    .mainbar-inner {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .hero-slider {
        padding-top: 14px;
    }

    .hero-slider__frame {
        aspect-ratio: 12 / 5;
        border-radius: 12px;
    }

    .hero-slider__arrow {
        opacity: 1;
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .hero-slider__arrow--prev { left: 10px; }
    .hero-slider__arrow--next { right: 10px; }
}

/* ============ Admin: Homepage Hero Banners ============ */
.banner-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.banner-row {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: #fff;
    transition: .25s;
    align-items: start;
}

.banner-row:hover {
    border-color: var(--primary);
}

.banner-preview-wrap {
    width: 190px;
    height: 84px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #eef2ff;
    flex-shrink: 0;
}

.banner-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9c3dd;
    font-size: 22px;
}

.banner-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.banner-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.banner-url-row .b-input {
    flex: 1;
    min-width: 0;
}

.banner-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.banner-side .form-group {
    width: 100%;
}

.banner-side .b-input {
    width: 200px;
}

.b-input {
    width: 100%;
    font-size: 13.5px;
    color: var(--heading);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    transition: .25s;
    box-sizing: border-box;
}

.b-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.b-enable {
    font-weight: 600;
}

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

    .banner-preview-wrap {
        width: 100%;
        height: 120px;
    }

    .banner-side {
        align-items: flex-start;
    }

    .banner-side .b-input {
        width: 100%;
    }
}

/* ============ Chat Assistant Widget ============ */
.chat-widget {
    position: fixed;
    right: 86px;
    bottom: 20px;
    z-index: 1002;
    font-family: inherit;
}

.chat-toggle {
    display: none;
}

.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 84px;
    width: 360px;
    max-width: calc(100vw - 24px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(1, 19, 45, .28);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.97);
    transition: opacity .28s, transform .28s, visibility .28s;
    z-index: 1001;
}

.chat-widget.open .chat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-widget.open .chat-toggle {
    display: none;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), #00287a);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-head-info {
    flex: 1;
    min-width: 0;
}

.chat-head-info b {
    font-size: 15px;
    display: block;
}

.chat-head-info small {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .85);
}

.chat-head-info small i {
    font-size: 8px;
    color: #4cff88;
    margin-right: 4px;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-close:hover {
    background: rgba(255, 255, 255, .15);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f2f5fb;
}

.chat-body::-webkit-scrollbar {
    width: 5px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #c3cce4;
    border-radius: 4px;
}

.msg {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: msgIn .25s ease;
    white-space: pre-wrap;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
    background: #fff;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(1, 19, 45, .06);
}

.msg-user {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.msg .msg-name {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}

.msg-bot .msg-name {
    color: #6b7aa6;
}

.msg b {
    color: var(--primary);
}

.msg .msg-price {
    color: #e21e70;
    font-weight: 700;
}

.chat-chips {
    display: flex;
    gap: 7px;
    padding: 8px 12px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #eef1f8;
    flex-shrink: 0;
}

.chat-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--primary);
    background: #eef2ff;
    border: 1px solid #dbe3ff;
    border-radius: 50px;
    padding: 6px 13px;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #eef1f8;
    flex-shrink: 0;
}

.chat-input-row input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px 15px;
    font-size: 13.5px;
    background: #f7f9fe;
    outline: none;
    transition: .2s;
    min-width: 0;
}

.chat-input-row input:focus {
    border-color: var(--primary);
    background: #fff;
}

.chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: .2s;
}

.chat-send:hover {
    background: #003399;
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(1, 19, 45, .06);
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b6c2e0;
    animation: blink 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: .3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .chat-widget {
        right: 14px;
        bottom: 142px;
    }

    .chat-panel {
        right: 12px;
        bottom: 80px;
        width: calc(100vw - 24px);
        height: min(520px, calc(100vh - 100px));
    }
}
