* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: Arial, sans-serif;
}

/* ===== Reviews Tap Switching ===== */
.rev-tab.active {
    border-bottom: 2px solid #e62e04;
    color: #e62e04;
    font-weight: 600;
}

/* ===== Address switch ===== */

.acct-panel {
    display: none;
}

.acct-panel.active {
    display: block;
}


.acct-panel {
    display: none;
}

.acct-panel.active {
    display: block;
}





/* ===== TOP BAR ===== */
.top-bar {
    background: #333;
    color: #ccc;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #444;
}

.top-bar .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar a,
.top-bar span {
    color: #ccc;
    font-size: 12px;
    padding: 0 10px;
    line-height: 28px;
    border-right: 1px solid #555;
    display: inline-block;
}

.top-bar a:first-child,
.top-bar span:first-child {
    border-left: 1px solid #555;
}

.top-bar-right a:last-child {
    border-right: 1px solid #555;
}

.top-bar a:hover {
    color: #fff;
}

/* ===== HEADER ===== */
header {
    background: #e62e04;
    position: sticky;
    top: 0;
    z-index: 300;
}

.header-main {
    max-width: 1200px;
    margin: auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    padding: 4px 8px;
    flex-shrink: 0;
    line-height: 1;
    cursor: pointer;
}

.logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-text span {
    color: #ffcc00;
}

.logo-sub {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1px;
}

.search-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-bar {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.search-cat-select {
    border: none;
    border-right: 1px solid #ddd;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    background: #f5f5f5;
    outline: none;
    cursor: pointer;
    min-width: 110px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
    min-width: 0;
}

.search-btn {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.search-btn:hover {
    background: #e67a00;
}

.search-tags {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.search-tags a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.search-tags a:hover {
    color: #fff;
    text-decoration: underline;
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

/* Mobile search */
.mobile-search-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 8px;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 4px;
}

.mobile-search-drop {
    display: none;
    background: #c72600;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-search-drop.open {
    display: block;
}

.mobile-search-inner {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.mobile-search-inner input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.mobile-search-inner button {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* HDR Buttons */
.hdr-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    background: transparent;
    border: none;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
}

.hdr-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.hdr-btn .icon {
    font-size: 20px;
    line-height: 1;
}

.hdr-btn .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.hdr-btn .sublabel {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #ffcc00;
    color: #c00;
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hdr-dropdown-wrap {
    position: relative;
}

.hdr-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 9999;
    padding: 12px 0;
}

.hdr-dropdown-wrap:hover .hdr-dropdown {
    display: block;
}

.hdr-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

.acct-dropdown-header {
    padding: 10px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.acct-dropdown-header p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.acct-sign-btn {
    display: block;
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.acct-sign-btn:hover {
    background: #c72600;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
}

.dropdown-menu-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.dropdown-menu-item .dm-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 0;
}

/* ===== NAV BAR ===== */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 200;
}

.nav-bar .inner {
    max-width: 1200px;
    margin: auto;
    padding-left: 16px;
    display: flex;
    align-items: stretch;
}

.nav-cat-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.nav-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 42px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #e62e04;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    line-height: 1;
}

.nav-cat-btn:hover,
.nav-cat-btn.active {
    background: #c72600;
}

.nav-cat-btn .cat-burger {
    font-size: 16px;
    line-height: 1;
}

.quick-nav {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.quick-nav a {
    font-size: 13px;
    padding: 0 14px;
    line-height: 42px;
    white-space: nowrap;
    color: #333;
    border-bottom: 2px solid transparent;
    display: block;
}

.quick-nav a:hover {
    color: #e62e04;
    border-bottom-color: #e62e04;
}

.quick-nav a.hot {
    color: #e62e04;
    font-weight: 600;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #e62e04;
    text-decoration: underline;
}

.breadcrumb .sep {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* ===== ACCOUNT LAYOUT ===== */
.account-layout {
    max-width: 1200px;
    margin: 12px auto 24px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.acct-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.acct-profile-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.acct-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.acct-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ccc;
}

.acct-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #e62e04;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.acct-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.acct-email {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.acct-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #f57c00;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 30px;
}

.acct-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.acct-stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

.acct-stat:last-child {
    border-right: none;
}

.acct-stat .val {
    font-size: 18px;
    font-weight: 700;
    color: #e62e04;
}

.acct-stat .lbl {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.acct-nav {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    overflow: hidden;
}

.acct-nav-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 16px 4px;
    background: #fafafa;
    border-bottom: 1px solid #f5f5f5;
}

.acct-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.12s, color 0.12s;
    text-decoration: none;
}

.acct-nav-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.acct-nav-item.active {
    background: #fff4f2;
    color: #e62e04;
    font-weight: 600;
    border-left: 3px solid #e62e04;
}

.acct-nav-item .nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.acct-nav-item .nav-badge {
    margin-left: auto;
    background: #e62e04;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 30px;
}

.acct-nav-item .nav-arr {
    margin-left: auto;
    font-size: 10px;
    color: #ccc;
}

.acct-nav-item:last-child {
    border-bottom: none;
}

/* ===== MAIN CONTENT ===== */
.acct-main {
    flex: 1;
    min-width: 0;
}

/* Mobile-only "‹ Back to Account" link shown above a full-page panel.
   Hidden on desktop, where the sidebar and panel sit side by side. */
.acct-back-link {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #e62e04;
    margin-bottom: 14px;
    cursor: pointer;
}

.acct-back-link:hover {
    text-decoration: underline;
}

.acct-back-arrow {
    font-size: 16px;
    line-height: 1;
}

/* Tabs */
.acct-tabs {
    display: flex;
    background: #fff;
    border-radius: 6px 6px 0 0;
    border: 1px solid #eee;
    border-bottom: none;
    overflow: hidden;
}

.acct-tab {
    flex: 1;
    padding: 13px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    text-align: center;
}

.acct-tab:hover {
    color: #e62e04;
}

.acct-tab.active {
    color: #e62e04;
    border-bottom-color: #e62e04;
    background: #fff;
}

/* Panels */
.acct-panel {
    display: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 6px 6px;
    padding: 24px;
}

.acct-panel.active {
    display: block;
}

/* Form styles */
.form-section {
    margin-bottom: 28px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title .sec-icon {
    font-size: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-grid.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group.span-2 {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.form-group label .req {
    color: #e62e04;
    margin-left: 2px;
}

.form-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color 0.15s;
    font-family: Arial, sans-serif;
    background: #fff;
}

.form-input:focus {
    border-color: #e62e04;
    box-shadow: 0 0 0 2px rgba(230, 46, 4, 0.08);
}

.form-input:disabled {
    background: #fafafa;
    color: #999;
    cursor: not-allowed;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.form-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.btn-primary {
    background: #e62e04;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #c72600;
}

.btn-secondary {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-secondary:hover {
    border-color: #bbb;
    color: #333;
}

.btn-danger {
    background: #fff;
    color: #e62e04;
    border: 1px solid #e62e04;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-danger:hover {
    background: #fff4f2;
}

/* Avatar upload area */
.avatar-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px dashed #e0e0e0;
    margin-bottom: 20px;
}

.big-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ccc;
    flex-shrink: 0;
}

.big-avatar img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.avatar-upload-info p {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.avatar-btns {
    display: flex;
    gap: 8px;
}

.btn-upload {
    background: #e62e04;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-upload:hover {
    background: #c72600;
}

.btn-remove-photo {
    background: #fff;
    color: #999;
    border: 1px solid #ddd;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.btn-remove-photo:hover {
    color: #e62e04;
    border-color: #e62e04;
}

/* ===== ADDRESS PANEL ===== */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.address-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    position: relative;
    transition: border-color 0.15s;
}

.address-card:hover {
    border-color: #e62e04;
}

.address-card.default {
    border-color: #e62e04;
    border-width: 2px;
}

.address-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fff4f2;
    color: #e62e04;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 30px;
    margin-bottom: 8px;
}

.address-name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.address-phone {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.address-text {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}

.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.addr-btn {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    transition: all 0.12s;
}

.addr-btn:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.addr-btn.del {
    color: #e62e04;
    border-color: #f5c2b8;
}

.addr-btn.del:hover {
    background: #fff4f2;
}

.addr-btn.default-btn {
    color: #888;
}

.add-address-card {
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    min-height: 150px;
    transition: all 0.15s;
    color: #999;
}

.add-address-card:hover {
    border-color: #e62e04;
    color: #e62e04;
    background: #fff8f7;
}

.add-address-card .plus {
    font-size: 28px;
    line-height: 1;
}

.add-address-card span {
    font-size: 13px;
    font-weight: 600;
}

/* ===== ADDRESS FORM MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 8px;
    width: 560px;
    max-width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== MODAL ENTRANCE ANIMATION ===== */
@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalBoxPopIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-overlay.open {
    animation: modalOverlayFadeIn 0.18s ease-out;
}

.modal-overlay.open .modal-box {
    animation: modalBoxPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== CONFIRM MODAL (delete address, etc.) ===== */
.confirm-modal-box {
    width: 380px;
}

.confirm-modal-body {
    text-align: center;
    padding: 30px 26px 6px;
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff1ee;
    color: #e62e04;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.confirm-modal-text {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.confirm-modal-box .modal-footer {
    justify-content: center;
}

/* ===== SECURITY PANEL ===== */
.security-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

.sec-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sec-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff4f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid #fde0d8;
}

.sec-item-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.sec-item-info p {
    font-size: 12px;
    color: #999;
}

.sec-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 30px;
}

.sec-status.on {
    background: #e8f5e9;
    color: #2e7d32;
}

.sec-status.off {
    background: #ffeee9;
    color: #c62800;
}

.sec-status.set {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-sec {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-sec:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.security-activity {
    margin-top: 24px;
}

.security-activity h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #f5f5f5;
    margin-bottom: 6px;
}

.act-icon {
    font-size: 20px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.act-info {
    flex: 1;
}

.act-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.act-info p {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.act-time {
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
}

.act-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.act-status-dot.green {
    background: #4caf50;
}

.act-status-dot.red {
    background: #e62e04;
}

.act-status-dot.yellow {
    background: #ff9800;
}

/* ===== NOTIFICATIONS PANEL ===== */
.notif-section {
    margin-bottom: 24px;
}

.notif-section:last-child {
    margin-bottom: 0;
}

.notif-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #fafafa;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notif-item-icon {
    font-size: 18px;
    margin-top: 1px;
}

.notif-item-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.notif-item-info p {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: #e62e04;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(18px);
}

/* ===== WALLET / VOUCHERS PANEL ===== */
.wallet-balance-card {
    background: linear-gradient(135deg, #e62e04, #ff6a00);
    border-radius: 10px;
    padding: 24px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.wallet-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.wallet-amount {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
}

.wallet-amount .currency {
    font-size: 18px;
    font-weight: 600;
    margin-right: 4px;
}

.wallet-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.wallet-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wallet-transactions h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.txn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.txn-item:last-child {
    border-bottom: none;
}

.txn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.txn-icon.credit {
    background: #e8f5e9;
}

.txn-icon.debit {
    background: #ffeee9;
}

.txn-info {
    flex: 1;
}

.txn-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.txn-info p {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.txn-amount {
    font-size: 14px;
    font-weight: 700;
}

.txn-amount.credit {
    color: #2e7d32;
}

.txn-amount.debit {
    color: #e62e04;
}

.voucher-section {
    margin-top: 20px;
}

.voucher-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.voucher-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.voucher-input-row input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
}

.voucher-input-row input:focus {
    border-color: #e62e04;
}

.voucher-input-row button {
    background: #e62e04;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.voucher-input-row button:hover {
    background: #c72600;
}

.voucher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.voucher-card {
    border: 1.5px dashed #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s;
}

.voucher-card:hover {
    border-color: #e62e04;
}

.voucher-card.used {
    opacity: 0.5;
    cursor: default;
}

.voucher-discount {
    font-size: 22px;
    font-weight: 900;
    color: #e62e04;
    margin-bottom: 4px;
}

.voucher-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.voucher-desc {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.voucher-code {
    display: inline-block;
    background: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    font-family: monospace;
    letter-spacing: 1px;
}

.voucher-expiry {
    font-size: 10px;
    color: #bbb;
    margin-top: 6px;
}

.voucher-used-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    color: #999;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 30px;
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: #aaa;
    margin-top: 20px;
}

.footer-top {
    background: #1a1a1a;
    padding: 14px 0;
    border-bottom: 1px solid #333;
}

.footer-top .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-top h3 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}

.footer-top p {
    font-size: 12px;
    color: #888;
}

.app-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.app-btn {
    background: #fff;
    color: #333;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.app-btn:hover {
    background: #f0f0f0;
}

.footer-links {
    max-width: 1200px;
    margin: auto;
    padding: 28px 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.f-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.f-col a {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 7px;
}

.f-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 14px 16px;
}

.footer-bottom .inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 11px;
    color: #555;
}

.payment-icons {
    display: flex;
    gap: 6px;
}

.pay-icon {
    background: #333;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 10px;
    color: #aaa;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-main {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
    }

    .search-wrap {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
        align-items: center;
    }

    .hdr-btn .label,
    .hdr-btn .sublabel {
        display: none;
    }

    .hdr-btn {
        padding: 6px 6px;
    }

    .hdr-btn .icon {
        font-size: 22px;
    }

    .search-tags {
        display: none;
    }

    .account-layout {
        flex-direction: column;
    }

    .acct-sidebar {
        width: 100%;
    }

    .acct-main {
        width: 100%;
        /* Only the sidebar shows on first visit; a panel is revealed
           full-page once a sidebar link is clicked (see .show-panel below). */
        display: none;
    }

    .account-layout.show-panel .acct-sidebar {
        display: none;
    }

    .account-layout.show-panel .acct-main {
        display: block;
    }

    .acct-back-link {
        display: inline-flex;
    }

    .acct-stats {
        gap: 0;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .voucher-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.three {
        grid-template-columns: 1fr;
    }

    .form-group.span-2 {
        grid-column: span 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: Arial, sans-serif;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #333;
    color: #ccc;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #444;
}

.top-bar .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar a,
.top-bar span {
    color: #ccc;
    font-size: 12px;
    padding: 0 10px;
    line-height: 28px;
    border-right: 1px solid #555;
    display: inline-block;
}

.top-bar a:first-child,
.top-bar span:first-child {
    border-left: 1px solid #555;
}

.top-bar-right a:last-child {
    border-right: 1px solid #555;
}

.top-bar a:hover {
    color: #fff;
}

/* ===== HEADER ===== */
header {
    background: #e62e04;
    position: sticky;
    top: 0;
    z-index: 300;
}

.header-main {
    max-width: 1200px;
    margin: auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    padding: 4px 8px;
    flex-shrink: 0;
    line-height: 1;
}

.logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-text span {
    color: #ffcc00;
}

.logo-sub {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1px;
}

.search-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-bar {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.search-cat-select {
    border: none;
    border-right: 1px solid #ddd;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    background: #f5f5f5;
    outline: none;
    cursor: pointer;
    min-width: 110px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
    min-width: 0;
}

.search-btn {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.search-btn:hover {
    background: #e67a00;
}

.search-tags {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.search-tags a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.search-tags a:hover {
    color: #fff;
    text-decoration: underline;
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.mobile-search-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 8px;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 4px;
}

.mobile-search-drop {
    display: none;
    background: #c72600;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-search-drop.open {
    display: block;
}

.mobile-search-inner {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.mobile-search-inner input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
    min-width: 0;
}

.mobile-search-inner button {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.hdr-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    background: transparent;
    border: none;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
}

.hdr-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.hdr-btn .icon {
    font-size: 20px;
    line-height: 1;
}

.hdr-btn .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.hdr-btn .sublabel {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #ffcc00;
    color: #c00;
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hdr-dropdown-wrap {
    position: relative;
}

.hdr-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 9999;
    padding: 12px 0;
}

.hdr-dropdown-wrap:hover .hdr-dropdown {
    display: block;
}

.hdr-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

.acct-dropdown-header {
    padding: 10px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.acct-dropdown-header p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.acct-sign-btn {
    display: block;
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.acct-sign-btn:hover {
    background: #c72600;
}

.acct-register {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #e62e04;
    margin-top: 6px;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
}

.dropdown-menu-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.dropdown-menu-item .dm-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 0;
}

.locale-dropdown {
    min-width: 280px;
    padding: 16px;
}

.locale-group {
    margin-bottom: 14px;
}

.locale-group:last-child {
    margin-bottom: 0;
}

.locale-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.locale-select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.locale-select:focus {
    border-color: #e62e04;
}

.locale-save-btn {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
}

.locale-save-btn:hover {
    background: #c72600;
}

/* ===== NAV BAR ===== */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 200;
}

.nav-bar .inner {
    max-width: 1200px;
    margin: auto;
    padding-left: 16px;
    display: flex;
    align-items: stretch;
}

.nav-cat-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.nav-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 42px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #e62e04;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    line-height: 1;
}

.nav-cat-btn:hover,
.nav-cat-btn.active {
    background: #c72600;
}

.nav-cat-btn .cat-burger {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-cat-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    z-index: 500;
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
    overflow: visible;
}

.nav-cat-dropdown.open {
    display: block;
}



.nav-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
    border-left: 2px solid transparent;
}

.nav-cat-item:hover,
.nav-cat-item.nav-cat-item-hover {
    background: #fff4f2;
    color: #e62e04;
}

.nav-cat-item .nci-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cat-item .nci-icon {
    font-size: 15px;
}

.nav-cat-item .nci-arr {
    font-size: 10px;
    color: #bbb;
}

.nav-cat-item:hover .nci-arr,
.nav-cat-item.nav-cat-item-hover .nci-arr {
    color: #e62e04;
}

.nav-cat-sub {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 580px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #e62e04;
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 600;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
    border-radius: 0 6px 6px 0;
    min-height: 100%;
}

.nav-cat-item-hover .nav-cat-sub {
    display: flex;
}

.nav-cat-sub-col {
    min-width: 120px;
}

.nav-cat-sub-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-cat-sub-col a {
    display: block;
    font-size: 12px;
    color: #555;
    padding: 3px 0;
}

.nav-cat-sub-col a:hover {
    color: #e62e04;
}

.quick-nav {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.quick-nav a {
    font-size: 13px;
    padding: 0 14px;
    line-height: 42px;
    white-space: nowrap;
    color: #333;
    border-bottom: 2px solid transparent;
    display: block;
}

.quick-nav a:hover {
    color: #e62e04;
    border-bottom-color: #e62e04;
}

.quick-nav a.hot {
    color: #e62e04;
    font-weight: 600;
}

.quick-nav-more {
    position: relative;
    display: flex;
    align-items: stretch;
}

.quick-nav-more-btn {
    font-size: 13px;
    padding: 0 14px;
    white-space: nowrap;
    color: #333;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 42px;
    font-family: Arial, sans-serif;
}

.quick-nav-more:hover .quick-nav-more-btn {
    color: #e62e04;
    border-bottom-color: #e62e04;
}

.more-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    min-width: 200px;
    z-index: 400;
    padding: 8px 0;
}

.quick-nav-more:hover .more-dropdown {
    display: block;
}

.more-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    transition: background 0.12s;
}

.more-dropdown a:hover {
    background: #fff4f2;
    color: #e62e04;
}

.more-dropdown .md-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ===== MOBILE DRAWER ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 800;
}

.mobile-overlay.open {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 285px;
    height: 100vh;
    background: #fff;
    z-index: 900;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
}

.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-header {
    background: #e62e04;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-logo {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.mobile-drawer-logo span {
    color: #ffcc00;
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}

.mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-user-section {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff8f7;
}

.mobile-user-section p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.mobile-sign-btn {
    display: block;
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.mobile-sign-btn:hover {
    background: #c72600;
}

.mobile-drawer-section {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-drawer-section-title {
    font-size: 11px;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px 4px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid #f8f8f8;
}

.mobile-nav-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.mn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mn-icon {
    font-size: 16px;
}

.mn-arr {
    font-size: 11px;
    color: #ccc;
    transition: transform 0.2s;
}

.mobile-nav-item.open .mn-arr {
    transform: rotate(90deg);
    color: #e62e04;
}

.mobile-cat-sub {
    display: none;
    background: #fafafa;
}

.mobile-cat-sub.open {
    display: block;
}

.mobile-cat-sub a {
    display: block;
    padding: 9px 16px 9px 48px;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-cat-sub a:hover {
    color: #e62e04;
    background: #fff4f2;
}

.mobile-quick-link {
    display: block;
    padding: 11px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f8f8f8;
}

.mobile-quick-link:hover {
    color: #e62e04;
    background: #fff4f2;
}

.mobile-quick-link.hot {
    color: #e62e04;
    font-weight: 700;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #e62e04;
    text-decoration: underline;
}

.breadcrumb .sep {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
    width: 210px;
    flex-shrink: 0;
}

.filter-box {
    background: #fff;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 10px;
}

.filter-box h3 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-category-list {
    list-style: none;
}

.filter-category-list li {
    padding: 5px 0;
}

.filter-category-list li a {
    font-size: 12px;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.filter-category-list li a:hover {
    color: #e62e04;
}

.filter-category-list li a.active {
    color: #e62e04;
    font-weight: 700;
}

.filter-category-list li a span {
    color: #bbb;
    font-size: 11px;
}

.filter-section {
    margin-bottom: 14px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section h4 .toggle-icon {
    font-size: 10px;
    color: #bbb;
}

.filter-check-list {
    list-style: none;
}

.filter-check-list li {
    padding: 4px 0;
}

.filter-check-list label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.filter-check-list label:hover {
    color: #e62e04;
}

.filter-check-list input[type="checkbox"] {
    accent-color: #e62e04;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-check-list label span.count {
    color: #bbb;
    font-size: 11px;
    margin-left: auto;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-inputs input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 12px;
    color: #333;
    outline: none;
    min-width: 0;
}

.price-inputs input:focus {
    border-color: #e62e04;
}

.price-inputs span {
    font-size: 12px;
    color: #bbb;
    flex-shrink: 0;
}

.price-go-btn {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.price-go-btn:hover {
    background: #c72600;
}

.rating-list {
    list-style: none;
}

.rating-list li {
    padding: 4px 0;
}

.rating-list label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.rating-list label:hover {
    color: #e62e04;
}

.rating-stars {
    color: #ff8c00;
    font-size: 12px;
    letter-spacing: 1px;
}

.rating-list input[type="radio"] {
    accent-color: #e62e04;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-clear-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #e62e04;
    color: #e62e04;
    border-radius: 3px;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

.filter-clear-btn:hover {
    background: #fff4f2;
}

/* ===== MAIN CONTENT ===== */
.products-main {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.products-toolbar {
    background: #fff;
    border-radius: 4px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.toolbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.toolbar-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.toolbar-results {
    font-size: 12px;
    color: #999;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sort-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.sort-select {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 24px 5px 8px;
    font-size: 12px;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
}

.sort-select:focus {
    border-color: #e62e04;
}

.view-btns {
    display: flex;
    gap: 2px;
}

.view-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.view-btn.active {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
}

.view-btn:hover:not(.active) {
    background: #eee;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.active-filters-label {
    font-size: 12px;
    color: #666;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff4f2;
    border: 1px solid #ffd6cc;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 11px;
    color: #e62e04;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: #e62e04;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.clear-all-filters {
    font-size: 11px;
    color: #e62e04;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.p-img {
    position: relative;
    overflow: hidden;
}

/* Product card image fallback background */
.p-img {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');

}

.p-img img.img-broken {
    opacity: 0;
}


.p-img img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.product-card:hover .p-img img {
    transform: scale(1.05);
}

.p-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e62e04;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
}

.p-tag.yellow {
    background: #ff8c00;
}

.p-tag.green {
    background: #20a010;
}

.p-wish {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .p-wish {
    opacity: 1;
}

.p-info {
    padding: 8px;
}

.p-name {
    font-size: 12px;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    color: #333;
    margin-bottom: 5px;
}

.p-price {
    font-size: 17px;
    font-weight: 700;
    color: #e62e04;
}

.p-orig {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 4px;
}

.p-disc {
    font-size: 11px;
    color: #20a010;
    margin-left: 4px;
    font-weight: 600;
}

.p-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.p-stars {
    color: #ff8c00;
    font-size: 11px;
}

.p-reviews {
    font-size: 10px;
    color: #999;
    margin-left: 2px;
}

.p-ship {
    font-size: 10px;
    color: #20a010;
    font-weight: 600;
}

.p-add-cart {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    display: none;
    transition: background 0.15s;
}

.p-add-cart:hover {
    background: #c72600;
}

.product-card:hover .p-add-cart {
    display: block;
}

/* List View */
.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.product-grid.list-view .p-img {
    width: 180px;
    flex-shrink: 0;
}

.product-grid.list-view .p-img img {
    width: 100%;
    height: 180px;
}

.product-grid.list-view .p-info {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.product-grid.list-view .p-name {
    height: auto;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-grid.list-view .p-add-cart {
    display: block;
    max-width: 180px;
    margin-top: auto;
}

.product-grid.list-view .product-card:hover .p-add-cart {
    display: block;
}

.p-list-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 6px;
    display: none;
}

.product-grid.list-view .p-list-desc {
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.page-btn:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.page-btn.active {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
    font-weight: 700;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 12px;
    font-size: 12px;
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: #aaa;
    margin-top: 20px;
}

.footer-top {
    background: #1a1a1a;
    padding: 14px 0;
    border-bottom: 1px solid #333;
}

.footer-top .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-top h3 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}

.footer-top p {
    font-size: 12px;
    color: #888;
}

.app-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.app-btn {
    background: #fff;
    color: #333;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.app-btn:hover {
    background: #f0f0f0;
}

.footer-links {
    max-width: 1200px;
    margin: auto;
    padding: 28px 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.f-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.f-col a {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 7px;
}

.f-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 14px 16px;
}

.footer-bottom .inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 11px;
    color: #555;
}

.payment-icons {
    display: flex;
    gap: 6px;
}

.pay-icon {
    background: #333;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 10px;
    color: #aaa;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .filter-sidebar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions .hdr-dropdown-wrap {
        display: none;
    }

    .search-tags {
        display: none;
    }

    .search-wrap {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-main {
        justify-content: space-between;
    }

    .nav-bar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top .inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-right {
        align-self: flex-end;
    }

    .product-grid.list-view .p-img {
        width: 120px;
    }

    .product-grid.list-view .p-img img {
        height: 120px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 20px 12px;
    }


}

/* ── Newsletter Section ── */
.footer-newsletter {
    background: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 0;
}

.newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.newsletter-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.newsletter-text p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 460px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    background: #2d2d2d;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
    color: #666;
}

.newsletter-form input[type="email"]:focus {
    border-color: #ff8c00;
}

.newsletter-form button {
    padding: 9px 20px;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: Arial, sans-serif;
}

.newsletter-form button:hover {
    background: #c72600;
}

.newsletter-msg {
    font-size: 11px;
    margin-top: 6px;
    min-height: 16px;
}

.newsletter-msg.success {
    color: #66bb6a;
}

.newsletter-msg.error {
    color: #ef5350;
}

@media (max-width: 640px) {
    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form button {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ===== WISHLIST PANEL ===== */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.wish-card {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    position: relative;
    transition: box-shadow 0.2s;
}

.wish-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.wish-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
}

.wish-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-remove:hover {
    background: #fff4f2;
    color: #e62e04;
}

.wish-info {
    padding: 10px;
}

.wish-name {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    margin-bottom: 6px;
}

.wish-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.wish-price-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.wish-price {
    font-size: 16px;
    font-weight: 700;
    color: #e62e04;
}

.wish-orig {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 4px;
}

.wish-disc {
    font-size: 11px;
    color: #20a010;
    margin-left: 4px;
    font-weight: 600;
}

.wish-stock {
    font-size: 11px;
    color: #ff8c00;
    text-align: right;
    white-space: nowrap;
}

.wish-add-btn {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

.wish-add-btn:hover {
    background: #c72600;
}

.wish-empty {
    text-align: center;
    padding: 48px 20px;
    color: #bbb;
}

.wish-empty .wish-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.wish-empty p {
    font-size: 14px;
    margin-bottom: 16px;
}

@media(max-width:768px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MY REVIEWS PANEL ===== */
.reviews-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
}

.rev-tab {
    flex: 1;
    padding: 9px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #fafafa;
    border: none;
    cursor: pointer;
    border-right: 1px solid #e8e8e8;
}

.rev-tab:last-child {
    border-right: none;
}

.rev-tab.active {
    background: #fff;
    color: #e62e04;
    border-bottom: 2px solid #e62e04;
}

.review-card {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
}

.review-prod-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
    flex-shrink: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-prod-img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.review-content {
    flex: 1;
    min-width: 0;
}

.review-prod-name {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-stars {
    color: #ff8c00;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.review-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.review-body {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-meta {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-helpful {
    font-size: 11px;
    color: #888;
}

.review-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.rev-btn {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-weight: 600;
}

.rev-btn:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.pending-review-card {
    border: 1px dashed #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pending-review-card .review-prod-img {
    font-size: 26px;
}

.pending-info {
    flex: 1;
}

.pending-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.pending-info p {
    font-size: 11px;
    color: #999;
}

.btn-write-review {
    background: #e62e04;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-write-review:hover {
    background: #c72600;
}

/* ===== REFER & EARN PANEL ===== */
.refer-hero {
    background: linear-gradient(135deg, #e62e04, #ff8c00);
    border-radius: 10px;
    padding: 28px 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.refer-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.refer-hero h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 6px;
}

.refer-hero p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.refer-reward-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.reward-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
}

.refer-code-box {
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 auto;
}

.refer-code-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.refer-code-val {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
}

.refer-copy-btn {
    background: #fff;
    color: #e62e04;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.refer-copy-btn:hover {
    background: #f5f5f5;
}

.refer-share-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.refer-how {
    margin-bottom: 24px;
}

.refer-how h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.how-steps {
    display: flex;
    gap: 0;
    counter-reset: steps;
}

.how-step {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    position: relative;
}

.how-step:not(:last-child)::after {
    content: '›';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #ddd;
}

.how-step-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.how-step h4 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.how-step p {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

.refer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.refer-stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.refer-stat-card .r-val {
    font-size: 26px;
    font-weight: 900;
    color: #e62e04;
}

.refer-stat-card .r-lbl {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.refer-history h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.ref-hist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #fafafa;
}

.ref-hist-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.ref-hist-info {
    flex: 1;
}

.ref-hist-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.ref-hist-info p {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.ref-hist-reward {
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
    white-space: nowrap;
}

.ref-hist-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 30px;
}

.ref-hist-status.paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.ref-hist-status.pending {
    background: #fff8e1;
    color: #f57c00;
}

@media(max-width:768px) {
    .how-steps {
        flex-direction: column;
    }

    .how-step:not(:last-child)::after {
        display: none;
    }

    .refer-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* //account css */

/* ===== ORDERS PANEL ===== */
.orders-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.orders-header-row h1 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.orders-count {
    font-size: 12px;
    color: #999;
    margin-left: 6px;
}

.orders-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    min-width: 200px;
    background: #fff;
}

.filter-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #333;
}

.filter-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12px;
    color: #333;
    background: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.filter-select:focus {
    border-color: #e62e04;
}

.status-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.status-tab {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.status-tab:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.status-tab.active {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
}

.status-tab .tab-count {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    padding: 1px 7px;
    font-size: 10px;
}

.status-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.order-id-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-id {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}

.order-date,
.order-seller {
    font-size: 11px;
    color: #999;
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    white-space: nowrap;
    height: fit-content;
}

.status-badge.shipped {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.processing {
    background: #fff8e1;
    color: #f57c00;
}

.status-badge.pending {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.delivered {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.cancelled {
    background: #ffeee9;
    color: #c62800;
}

/* Tracking bar */
.tracking-bar {
    margin-bottom: 16px;
    padding: 12px 4px 4px;
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #eee;
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 12px;
    left: 12px;
    height: 2px;
    background: #e62e04;
    z-index: 1;
    transition: width 0.3s;
}

.tracking-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ccc;
}

.step-dot.done {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
}

.step-dot.active {
    border-color: #e62e04;
    background: #fff4f2;
    font-size: 13px;
}

.step-label {
    font-size: 10px;
    color: #bbb;
    text-align: center;
}

.step-label.done,
.step-label.active {
    color: #e62e04;
    font-weight: 600;
}

/* Order items */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
}

.order-item-variant {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.order-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #e62e04;
}

.order-item-qty {
    font-size: 11px;
    color: #999;
    margin-left: 6px;
}

.order-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.item-action-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.item-action-btn:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.item-action-btn.primary {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
}

.item-action-btn.primary:hover {
    background: #c72600;
}

.more-items-note {
    font-size: 11px;
    color: #999;
    font-style: italic;
    padding-left: 68px;
}

/* Order footer */
.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
}

.order-total-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-total-label {
    font-size: 12px;
    color: #666;
}

.order-total-amount {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.order-total-items {
    font-size: 11px;
    color: #999;
}

.order-footer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.footer-btn:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.footer-btn.primary {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
}

.footer-btn.primary:hover {
    background: #c72600;
}

/* Empty state */
.orders-empty {
    text-align: center;
    padding: 48px 20px;
    color: #bbb;
}

.orders-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.orders-empty h3 {
    font-size: 15px;
    color: #666;
    margin-bottom: 6px;
}

.orders-empty p {
    font-size: 13px;
    margin-bottom: 16px;
}

.orders-empty a {
    display: inline-block;
    background: #e62e04;
    color: #fff;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

/* ===== ORDER DETAIL MODAL ===== */
.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-field label {
    font-size: 11px;
    color: #999;
}

.detail-field span {
    font-size: 13px;
    color: #333;
}

.detail-field span.bold {
    font-weight: 700;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cost-table td {
    padding: 8px 0;
    color: #555;
}

.cost-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.cost-table tr.divider td {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.cost-table tr.total td {
    font-weight: 700;
    font-size: 14px;
}

.cost-table td.red {
    color: #e62e04;
}

/* ===== REVIEW MODAL STARS ===== */
.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.star-btn.active {
    color: #ff8c00;
}

.review-textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    resize: vertical;
    outline: none;
}

.review-textarea:focus {
    border-color: #e62e04;
}

@media (max-width: 768px) {
    .orders-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-card-header {
        flex-direction: column;
    }

    .order-item {
        flex-wrap: wrap;
    }

    .order-item-actions {
        flex-direction: row;
        width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-main {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
    }

    .search-wrap {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
        align-items: center;
    }

    .hdr-btn .label,
    .hdr-btn .sublabel {
        display: none;
    }

    .hdr-btn {
        padding: 6px 6px;
    }

    .hdr-btn .icon {
        font-size: 22px;
    }

    .search-tags {
        display: none;
    }

    .account-layout {
        flex-direction: column;
    }

    .acct-sidebar {
        width: 100%;
    }

    .acct-main {
        width: 100%;
    }

    .acct-stats {
        gap: 0;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .voucher-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.three {
        grid-template-columns: 1fr;
    }

    .form-group.span-2 {
        grid-column: span 1;
    }

    .acct-tabs {
        display: none;
    }

    .acct-panel {
        padding: 16px;
    }
}