* {
    box-sizing: border-box;
}

:root {
    --primary: #2A1710;
    --secondary: #7A4A2E;
    --accent: #C99663;
    --bg: #F7F1EA;
    --surface: #FFFFFF;
    --text: #1E1714;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #efe3d8;
    color: var(--text);
    direction: rtl;
}

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

.app-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    overflow-x: hidden;
    padding-bottom: 96px;
    box-shadow: 0 0 45px rgba(42, 23, 16, 0.08);
}

.home-header {
    background: #fff;
    padding: 12px 18px 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(42, 23, 16, 0.06);
}

.logo-wrap {
    height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrap img {
    width: 118px;
    max-height: 78px;
    object-fit: contain;
    display: block;
}

.top-tabs {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.top-tabs a {
    color: rgba(30, 23, 20, 0.45);
}

.top-tabs a.active {
    color: var(--secondary);
}

.search-card {
    margin-top: 14px;
    height: 56px;
    border-radius: 17px;
    background: #f3f0ed;
    color: rgba(30, 23, 20, 0.52);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
}

.search-icon {
    font-size: 24px;
}

.hero-scroll {
    display: flex;
    direction: ltr;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 16px 16px 4px;
}

.hero-scroll::-webkit-scrollbar {
    display: none;
}

.hero-card {
    direction: rtl;
    min-width: calc(100vw - 44px);
    max-width: 430px;
    height: 285px;
    border-radius: 0;
    padding: 24px;
    overflow: hidden;
    background-color: #5d4034;
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-shadow: 0 14px 34px rgba(42, 23, 16, 0.22);
}

.hero-card h1 {
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
    max-width: 320px;
    letter-spacing: -0.5px;
}

.hero-card p {
    margin: 10px 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 300px;
}

.hero-card .btn {
    align-self: flex-start;
    background: #fff;
    color: var(--primary);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    font-size: 13px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 4px;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(42, 23, 16, 0.18);
}

.slider-dots span:first-child {
    width: 20px;
    background: var(--secondary);
}

.section-head {
    padding: 20px 18px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.section-head span {
    background: #161616;
    color: #fff;
    padding: 5px 9px;
    transform: rotate(-2deg);
    display: inline-block;
    margin-left: 5px;
}

.section-head a {
    font-size: 13px;
    color: rgba(30,23,20,0.72);
    font-weight: 800;
}

.tiles-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 12px;
    padding: 0 16px 20px;
    direction: ltr;
}

.tile {
    direction: rtl;
    min-height: 145px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #eee8e2;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 24px rgba(42, 23, 16, 0.10);
}

.tile:first-child {
    grid-row: span 2;
    min-height: 302px;
}

.tile-content {
    position: absolute;
    inset: auto 10px 10px 10px;
    background: rgba(255,255,255,0.94);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(8px);
}

.tile-content strong {
    display: block;
    font-size: 16px;
    color: var(--primary);
}

.tile-content small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: rgba(30,23,20,0.62);
}

.how-card {
    margin: 4px 16px 24px;
    border: 1px solid rgba(122,74,46,0.13);
    border-radius: 24px;
    padding: 18px;
    background: #fffaf5;
}

.how-card h2 {
    margin: 0 0 14px;
    font-size: 21px;
}

.steps {
    display: grid;
    gap: 10px;
}

.step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: rgba(30,23,20,0.78);
}

.step b {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.footer-credit {
    text-align: center;
    padding: 24px 14px 8px;
    color: rgba(30,23,20,0.45);
    font-size: 12px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 450px);
    height: 70px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(122,74,46,0.14);
    border-radius: 28px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    box-shadow: 0 14px 40px rgba(42, 23, 16, 0.18);
    backdrop-filter: blur(12px);
    z-index: 50;
}

.bottom-nav a {
    text-align: center;
    font-size: 10px;
    color: rgba(30,23,20,0.58);
    font-weight: 900;
}

.bottom-nav a b {
    display: block;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 4px;
    color: rgba(30,23,20,0.68);
}

.bottom-nav a.active,
.bottom-nav a.active b {
    color: var(--secondary);
}

.coming-soon {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    text-align: center;
}

.coming-soon-card {
    max-width: 360px;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 55px rgba(42,23,16,0.12);
}

.coming-soon-card img {
    width: 115px;
    object-fit: contain;
}

.coming-soon-card h1 {
    margin: 20px 0 14px;
    font-size: 26px;
}

.loader {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(122,74,46,0.16);
    border-top-color: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 1s linear infinite;
}

.back-home {
    display: inline-flex;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
}

.terms-page {
    padding: 20px 18px 110px;
}

.terms-logo {
    display: block;
    width: 112px;
    margin: 0 auto 20px;
}

.terms-page h1 {
    font-size: 27px;
    margin: 0 0 16px;
}

.terms-block {
    background: #fffaf5;
    border: 1px solid rgba(122,74,46,0.12);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
}

.terms-block h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.terms-block p {
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
    color: rgba(30,23,20,0.72);
}

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

@media (min-width: 520px) {
    .hero-card {
        min-width: 430px;
    }
}

/* V5 Explore refinement */
.tiles-grid {
    align-items: stretch;
}

.tile:nth-child(4),
.tile:nth-child(5) {
    min-height: 145px;
}

.tile:nth-child(5) {
    grid-column: span 1;
}

@media (max-width: 360px) {
    .tiles-grid {
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .tile {
        min-height: 132px;
    }

    .tile:first-child {
        min-height: 280px;
    }
}

/* IT inline edit keys */
.editable-home {
    position: relative;
}

.it-edit-key {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 8;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    color: #7A4A2E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(42,23,16,.18);
    border: 1px solid rgba(122,74,46,.18);
}

.logo-edit-key {
    top: 8px;
    left: 18px;
}

.hero-link,
.tile-link {
    display: block;
    color: inherit;
}

.hero-link {
    min-width: calc(100vw - 44px);
    max-width: 430px;
    scroll-snap-align: center;
}

.hero-link .hero-card {
    min-width: 100%;
    max-width: 100%;
}

@media (min-width: 520px) {
    .hero-link {
        min-width: 430px;
    }
}

/* IT edit overlay fixes */
.editable-home {
    position: relative;
}

.it-edit-key {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    color: #7A4A2E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(42,23,16,.18);
    border: 1px solid rgba(122,74,46,.18);
}

.logo-edit-key {
    top: 10px;
    left: 18px;
}

.hero-item {
    min-width: calc(100vw - 44px);
    max-width: 430px;
    scroll-snap-align: center;
    position: relative;
}

.hero-link {
    display: block;
    color: inherit;
}

.hero-item .hero-card {
    min-width: 100%;
    max-width: 100%;
}

.tile-slot {
    position: relative;
    min-height: 145px;
}

.tile-slot:first-child {
    grid-row: span 2;
    min-height: 302px;
}

.tile-slot .tile {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.tile-slot:first-child .tile {
    min-height: 302px;
}

.tiles-grid > .tile {
    display: none;
}

@media (min-width: 520px) {
    .hero-item {
        min-width: 430px;
    }
}

/* Freak-like full width hero slider */
.hero-scroll {
    width: 100%;
    display: flex;
    direction: ltr;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    padding: 14px 0 0;
    -webkit-overflow-scrolling: touch;
}

.hero-scroll::-webkit-scrollbar {
    display: none;
}

.hero-item {
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.hero-link {
    display: block;
    width: 100%;
    color: inherit;
}

.hero-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: clamp(220px, 60vw, 300px);
    border-radius: 0;
    padding: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: none;
}

.hero-card h1 {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.15;
    max-width: 330px;
    text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.hero-card p {
    max-width: 320px;
    font-size: 13px;
    text-shadow: 0 2px 10px rgba(0,0,0,.22);
}

.hero-card .btn {
    padding: 10px 18px;
    border-radius: 999px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 6px;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(42, 23, 16, 0.20);
    transition: .25s ease;
}

.slider-dots span.active {
    width: 22px;
    background: var(--secondary);
}

@media (min-width: 520px) {
    .hero-card {
        height: 300px;
    }
}

/* Remove white box from Explore text */
.tile-content {
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    inset: auto 14px 14px 14px !important;
}

.tile-content strong {
    color: #fff !important;
    font-size: 18px !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.tile-content small {
    color: rgba(255,255,255,.88) !important;
    font-size: 12px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* Side menu */
.menu-button {
    border: 0;
    background: transparent;
    font-family: Tahoma, Arial, sans-serif;
    text-align: center;
    font-size: 10px;
    color: rgba(30,23,20,0.58);
    font-weight: 900;
    cursor: pointer;
}

.menu-button b {
    display: block;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 4px;
    color: rgba(30,23,20,0.68);
}

.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82%, 340px);
    height: 100vh;
    background: #fff;
    z-index: 90;
    transform: translateX(105%);
    transition: .25s ease;
    box-shadow: -18px 0 45px rgba(42,23,16,.18);
    padding: 22px 18px;
    overflow-y: auto;
}

.side-menu.open {
    transform: translateX(0);
}

.side-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-logo {
    width: 110px;
    display: block;
    margin: 0 auto 18px;
}

.side-menu h3 {
    margin: 0 0 18px;
    text-align: center;
    color: var(--primary);
    font-size: 22px;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    min-height: 48px;
    border-radius: 16px;
    background: #fffaf5;
    border: 1px solid rgba(122,74,46,.13);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 900;
    color: var(--primary);
}

.side-links a span {
    color: var(--secondary);
}

.close-menu {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 16px;
    margin-top: 14px;
    background: var(--primary);
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 900;
}

.home-products {
    padding: 8px 14px 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.product-card-home {
    background: #fff;
    border: 1px solid rgba(122,74,46,.13);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(42,23,16,.06);
    color: var(--primary);
}

.product-card-home img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    background: #eadfd5;
}

.product-card-home strong {
    display: block;
    padding: 10px 10px 4px;
    font-size: 13px;
    line-height: 1.45;
}

.product-card-home span {
    display: block;
    padding: 0 10px 11px;
    color: var(--secondary);
    font-weight: 900;
    font-size: 14px;
}

/* FINAL FIX - Home top header and logo */
.app-shell {
    width: min(480px, 100%) !important;
    margin: 0 auto !important;
    min-height: 100vh !important;
    background: #fff !important;
    overflow-x: hidden !important;
}

.top-header {
    position: relative !important;
    background: #fff !important;
    padding: 12px 14px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 0 !important;
}

.logo-link {
    width: 100% !important;
    height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-decoration: none !important;
    background: transparent !important;
}

.logo-link img,
.top-header img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 155px !important;
    max-height: 68px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.top-header .it-edit-key {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    z-index: 20 !important;
}

.top-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    background: #f7f1ea !important;
    padding: 5px !important;
    border-radius: 999px !important;
    margin: 0 !important;
}

.top-tabs a {
    height: 36px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(30,23,20,.62) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.top-tabs a.active {
    background: #fff !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 18px rgba(42,23,16,.08) !important;
}

.search-pill {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    background: #fffaf5 !important;
    border: 1px solid rgba(122,74,46,.13) !important;
    color: rgba(30,23,20,.48) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Keep hero directly under header */
.hero-scroll {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* Compact filters for Dory page */
.dory-filter {
    padding: 10px !important;
    border-radius: 20px !important;
}

.dory-filter .filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

.dory-filter .search-wide {
    grid-column: span 2 !important;
}

.dory-filter input,
.dory-filter select {
    height: 39px !important;
    border-radius: 12px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.dory-filter select {
    background-position: left 8px center !important;
}

.dory-filter .more-filters-btn {
    height: 39px !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    font-size: 12px !important;
}

.dory-filter .filter-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 7px !important;
    margin-top: 8px !important;
}

.dory-filter .filter-actions button,
.dory-filter .filter-actions a {
    height: 39px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

@media (min-width: 780px) {
    .dory-filter .filter-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .dory-filter .search-wide {
        grid-column: span 2 !important;
    }
}

/* IT link editor */
.link-edit-key {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #2A1710;
    color: #fff;
    font-size: 12px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    margin-inline-start: 5px;
    vertical-align: middle;
    box-shadow: 0 6px 14px rgba(42,23,16,.22);
    z-index: 40;
}

.top-tabs .link-edit-key,
.bottom-nav .link-edit-key {
    position: relative;
    margin-inline-start: -4px;
}

.side-links .link-edit-key {
    margin-top: -38px;
    margin-inline-start: auto;
    margin-inline-end: 12px;
    display: grid;
}

.link-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.34);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.link-editor-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.link-editor-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(92%, 420px);
    transform: translate(-50%, -50%) scale(.96);
    background: #fff;
    border-radius: 24px;
    padding: 18px;
    z-index: 210;
    box-shadow: 0 28px 70px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.link-editor-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.link-editor-modal h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 22px;
}

.link-editor-modal p {
    margin: 0 0 14px;
    color: rgba(30,23,20,.62);
    font-size: 13px;
    font-weight: 800;
}

.link-editor-modal label {
    display: block;
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 7px;
}

.link-editor-modal input {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(122,74,46,.18);
    padding: 0 12px;
    direction: ltr;
    font-family: Tahoma, Arial, sans-serif;
}

.link-editor-help {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    color: rgba(30,23,20,.55);
    font-size: 12px;
    font-weight: 900;
}

.link-editor-help button {
    border: 1px solid rgba(122,74,46,.15);
    background: #fffaf5;
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 900;
    cursor: pointer;
}

.link-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.link-editor-actions button {
    height: 46px;
    border: 0;
    border-radius: 15px;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 900;
    cursor: pointer;
}

.link-editor-actions button:first-child {
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    color: #fff;
}

.link-editor-actions button:last-child {
    background: #fff1e8;
    color: var(--primary);
}

/* Flexible Explore layout */
.explore-section .tiles-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
    grid-auto-rows: 104px !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.explore-section .tile-slot {
    min-height: 104px !important;
    position: relative !important;
}

.explore-section .tile-slot:first-child {
    grid-row: span 2 !important;
    min-height: 218px !important;
}

.explore-section .tile-slot:first-child .tile,
.explore-section .tile-slot:first-child .tile-link {
    min-height: 218px !important;
    height: 218px !important;
}

.explore-section .tile-slot:not(:first-child) .tile,
.explore-section .tile-slot:not(:first-child) .tile-link {
    min-height: 104px !important;
    height: 104px !important;
}

.explore-section .tile,
.explore-section .tile-link {
    width: 100% !important;
    border-radius: 18px !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    position: relative !important;
}

.explore-section .tile-content {
    width: auto !important;
    max-width: 84% !important;
    margin: 8px !important;
    border-radius: 14px !important;
    padding: 8px 10px !important;
    }

.explore-section .tile-content strong {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.explore-section .tile-content small {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
}

@media (max-width: 390px) {
    .explore-section .tiles-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) !important;
        grid-auto-rows: 96px !important;
        gap: 8px !important;
    }

    .explore-section .tile-slot {
        min-height: 96px !important;
    }

    .explore-section .tile-slot:first-child {
        min-height: 200px !important;
    }

    .explore-section .tile-slot:first-child .tile,
    .explore-section .tile-slot:first-child .tile-link {
        min-height: 200px !important;
        height: 200px !important;
    }

    .explore-section .tile-slot:not(:first-child) .tile,
    .explore-section .tile-slot:not(:first-child) .tile-link {
        min-height: 96px !important;
        height: 96px !important;
    }
}
}

/* Remove white box from Explore text */
.explore-section .tile-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 10px !important;
    border-radius: 0 !important;
    max-width: 90% !important;
}

.explore-section .tile-content strong,
.explore-section .tile-content small {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.65) !important;
}

.explore-section .tile-content strong {
    font-size: 14px !important;
    font-weight: 900 !important;
}

.explore-section .tile-content small {
    font-size: 11px !important;
    font-weight: 800 !important;
}


/* FINAL Explore text overlay without white box */
.explore-section .tile-content,
.explore-section .tile-content *,
.explore-section .tile-content strong,
.explore-section .tile-content small {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.explore-section .tile-content {
    padding: 0 !important;
    margin: 10px !important;
    border-radius: 0 !important;
}

.explore-section .tile-content strong,
.explore-section .tile-content small {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.75) !important;
}

/* Fixed Customer Bottom Navigation */
body {
    padding-bottom: 88px !important;
}

.customer-bottom-nav {
    position: fixed !important;
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    width: min(430px, calc(100% - 18px)) !important;
    height: 68px !important;
    background: rgba(255, 250, 245, .96) !important;
    border: 1px solid rgba(122, 74, 46, .16) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 40px rgba(42, 23, 16, .20) !important;
    z-index: 9999 !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    padding: 7px 8px !important;
    backdrop-filter: blur(14px) !important;
}

.customer-bottom-nav a {
    text-decoration: none !important;
    color: rgba(42, 23, 16, .62) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border-radius: 18px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    min-width: 0 !important;
}

.customer-bottom-nav .bn-icon {
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.customer-bottom-nav a.is-active {
    background: rgba(122, 74, 46, .10) !important;
    color: var(--primary) !important;
}

.customer-bottom-nav a.bn-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    transform: translateY(-10px) !important;
    min-height: 62px !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 26px rgba(122, 74, 46, .28) !important;
}

.customer-bottom-nav a.bn-main .bn-icon {
    font-size: 23px !important;
}

@media (min-width: 900px) {
    .customer-bottom-nav {
        bottom: 16px !important;
    }
}

/* Use old bottom nav style globally, disable the new one */
.customer-bottom-nav {
    display: none !important;
}

.bottom-nav,
.global-bottom-nav {
    display: grid !important;
}

body {
    padding-bottom: 86px !important;
}

/* Product buy now sticky button */
.buy-now-sticky {
    position: fixed !important;
    left: 50% !important;
    bottom: 92px !important;
    transform: translateX(-50%) !important;
    width: min(430px, calc(100% - 24px)) !important;
    z-index: 9998 !important;
    pointer-events: none !important;
}

.buy-now-sticky a {
    pointer-events: auto !important;
    width: 100% !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 16px 32px rgba(42,23,16,.28) !important;
}

body:has(.buy-now-sticky) {
    padding-bottom: 155px !important;
}

/* Disable duplicated new buy now button */
.buy-now-sticky {
    display: none !important;
}

/* Global side menu for inner pages */
.bottom-nav button.bottom-menu-btn {
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: Tahoma, Arial, sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.bottom-nav button.bottom-menu-btn b {
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.global-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(42, 23, 16, .38) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: .2s ease !important;
}

.global-side-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(335px, 88vw) !important;
    height: 100vh !important;
    background: #fffaf5 !important;
    z-index: 10001 !important;
    transform: translateX(105%) !important;
    transition: .25s ease !important;
    padding: 18px 14px 100px !important;
    box-shadow: -20px 0 40px rgba(42,23,16,.22) !important;
    overflow-y: auto !important;
}

body.global-menu-open .global-menu-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.global-menu-open .global-side-menu {
    transform: translateX(0) !important;
}

.global-menu-close {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(122,74,46,.15) !important;
    background: #fff !important;
    color: var(--primary) !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    margin-bottom: 12px !important;
}

.global-menu-user {
    background: #fff !important;
    border: 1px solid rgba(122,74,46,.13) !important;
    border-radius: 22px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

.global-menu-user strong {
    display: block !important;
    color: var(--primary) !important;
    font-size: 20px !important;
    margin-bottom: 4px !important;
}

.global-menu-user small {
    display: block !important;
    color: rgba(30,23,20,.58) !important;
    font-size: 11px !important;
    margin-top: 3px !important;
}

.global-menu-user span {
    display: inline-flex !important;
    margin-top: 8px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

.global-side-menu a {
    height: 48px !important;
    border-radius: 17px !important;
    background: #fff !important;
    border: 1px solid rgba(122,74,46,.14) !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    margin-bottom: 9px !important;
}

.global-side-menu a.logout-link {
    background: var(--primary) !important;
    color: #fff !important;
    justify-content: center !important;
}

/* Unified Admin Navigation */
.admin-fixed-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    padding: 10px 0 16px !important;
    margin: 0 0 18px !important;
    scrollbar-width: none !important;
}

.admin-fixed-nav::-webkit-scrollbar {
    display: none !important;
}

.admin-fixed-nav a {
    flex: 0 0 auto !important;
    min-width: 104px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #fffaf5 !important;
    border: 1px solid rgba(122, 74, 46, .18) !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.admin-fixed-nav a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

@media (max-width: 520px) {
    .admin-fixed-nav a {
        min-width: 96px !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }
}

/* FINAL Unified Admin Navigation */
.admin-fixed-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    padding: 10px 0 16px !important;
    margin: 0 0 18px !important;
    scrollbar-width: none !important;
    direction: rtl !important;
}

.admin-fixed-nav::-webkit-scrollbar {
    display: none !important;
}

.admin-fixed-nav a {
    flex: 0 0 auto !important;
    min-width: 118px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #fffaf5 !important;
    border: 1px solid rgba(122, 74, 46, .18) !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.admin-fixed-nav a[href="/admin/profile-settings.php"] {
    min-width: 170px !important;
}

.admin-fixed-nav a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

@media (max-width: 520px) {
    .admin-fixed-nav a {
        min-width: 108px !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    .admin-fixed-nav a[href="/admin/profile-settings.php"] {
        min-width: 155px !important;
    }
}


/* IT edit buttons inside global side menu */
.global-side-menu .link-edit-key {
    display: grid !important;
    margin: -43px 12px 13px auto !important;
    position: relative !important;
    z-index: 10002 !important;
}
