@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* ================= VARIABLES ================= */
:root {
    --bg-color: #ffffff;
    --text-color: #111;
    --accent-color: #f4ead5;
    --border-color: #111;
    --font-main: 'Estedad', system-ui, sans-serif;
    --doodle-border: 2px solid var(--border-color);
    --radius-1: 255px 15px 225px 15px/15px 225px 15px 255px;
    --radius-2: 15px 225px 15px 255px/255px 15px 225px 15px;
    --radius-3: 15px 15px 225px 15px/15px 15px 15px 255px;
    --shadow-doodle: 4px 4px 0px 0px #111;
    --shadow-doodle-hover: 2px 2px 0px 0px #111;
    --transition: all 0.2s ease;
}

/* ================= RESET & GLOBAL SAFETY ================= */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }
main, section, .container, .view, .hero-container, .shop-layout, .product-grid, .categories-grid, .footer, .footer-grid { max-width: 100%; min-width: 0; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
body, button, input, textarea, select { font-family: var(--font-main); color: var(--text-color); }
body { background-color: var(--bg-color); line-height: 1.6; font-size: 15px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; background: none; border: none; outline: none; }
h1, h2, h3, h4, p { overflow-wrap: break-word; word-wrap: break-word; margin: 0; }

/* SCROLLBAR HIDING */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { width: 0; height: 0; display: none; }
.mobile-menu, .moqa-select-menu { scrollbar-width: none; -ms-overflow-style: none; }
.mobile-menu::-webkit-scrollbar, .moqa-select-menu::-webkit-scrollbar { display: none; }

/* ================= HEADER ADJUSTMENTS ================= */
.header .logo-area, .header .brand-logo, .mobile-menu .brand-logo { display: none !important; }
.logo-area { width: 0 !important; height: 0 !important; overflow: hidden !important; flex: 0 0 0 !important; }

/* ================= UI UTILITIES ================= */
.text-highlight {
    display: inline-block;
    background: var(--accent-color);
    color: inherit;
    padding: 0 0.35em;
    border-radius: var(--radius-2);
    transform: rotate(-1deg);
}

/* State Illustrations */
.state-illustration {
    width: 100%;
    max-width: 760px;
    margin: 24px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.state-illustration img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 0;
    box-shadow: none;
    background: transparent;
}
.state-illustration.compact { max-width: 520px; }
.state-illustration.small { max-width: 420px; }

/* About Page Layout */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: center;
    max-width: 980px;
    margin-inline: auto;
}
.about-copy { min-width: 0; }
.about-copy h2, .about-copy h3 { line-height: 1.35; }
.about-copy p { line-height: 1.9; margin-bottom: 14px; }
.about-visual { display: flex; align-items: center; justify-content: center; min-width: 0; }
.about-visual img { width: 100%; max-width: 340px; height: auto; object-fit: contain; border: 0; box-shadow: none; }

/* Skeleton Loaders */
.image-skeleton-wrap {
    position: relative;
    overflow: hidden;
    background: #fff;
    width: 100%;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-skeleton {
    position: absolute;
    inset: 0;
    background: #f5f5f5;
    border-radius: inherit;
    overflow: hidden;
    z-index: 1;
}
.image-skeleton::after, .skeleton-field::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
    animation: skeletonMove 1.1s infinite;
}
@keyframes skeletonMove {
    to { transform: translateX(-100%); }
}
.image-skeleton-wrap.loaded .image-skeleton {
    display: none;
}
.image-skeleton-wrap img {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-skeleton-wrap.loaded img {
    opacity: 1;
}
.skeleton-field {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border: 2px solid #111;
    border-radius: var(--radius-3);
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #666;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Real Product Images Adjustments */
.product-img-wrap img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    margin: auto;
    border: 0;
    box-shadow: none;
}
.product-img-wrap.image-failed { display: flex; align-items: center; justify-content: center; }
.product-img-wrap.image-failed::after {
    content: "☕";
    font-size: 34px;
    opacity: .35;
    display: block;
}
.pd-image.image-failed { display: flex; align-items: center; justify-content: center; }
.pd-image.image-failed::after {
    content: "☕";
    font-size: 60px;
    opacity: .35;
    display: block;
}
.pd-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    box-shadow: none;
}

/* Custom Select */
.moqa-select { position: relative; width: 100%; z-index: 5; }
.moqa-select-trigger {
    width: 100%; min-height: 42px; background: #fff; color: #111; border: 2px solid #111; border-radius: var(--radius-3);
    padding: 8px 14px 8px 42px; font-family: var(--font-main); font-weight: 700; text-align: right; cursor: pointer;
    position: relative; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.moqa-select-trigger::after {
    content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px;
    border-left: 2px solid #111; border-bottom: 2px solid #111; transform: translateY(-65%) rotate(-45deg); transition: transform 0.2s ease;
}
.moqa-select.open .moqa-select-trigger::after { transform: translateY(-30%) rotate(135deg); }
.moqa-select-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0; left: 0; max-height: 260px; overflow-y: auto;
    background: #fff; border: 2px solid #111; border-radius: var(--radius-2); padding: 6px; z-index: 999; box-shadow: 4px 4px 0 #111;
}
.moqa-select.open .moqa-select-menu { display: grid; gap: 4px; }
.moqa-select-menu button {
    width: 100%; padding: 8px 10px; background: #fff; color: #111; border: 0; border-radius: 10px; text-align: right;
    font-family: var(--font-main); font-weight: 600; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.moqa-select-menu button:hover, .moqa-select-menu button.active { background: #111; color: #fff; }
.moqa-select.disabled { opacity: 0.5; pointer-events: none; }

/* Forms & Validation */
.form-field { position: relative; margin-bottom: 0.75rem; }
.field-error, .doodle-input.field-error, .moqa-select.field-error .moqa-select-trigger {
    border-color: #111 !important; box-shadow: 4px 4px 0 #111 !important; background: #fff; outline: 2px dashed #111; outline-offset: 3px;
}
.form-error-text { margin-top: 6px; font-size: 12px; font-weight: 700; color: #111; }

input[type="radio"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 2px solid #111; border-radius: 50%; background: #fff; display: inline-grid; place-content: center; margin: 0; flex: 0 0 auto; cursor: pointer; }
input[type="radio"]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #111; transform: scale(0); transition: transform 0.12s ease; }
input[type="radio"]:checked::before { transform: scale(1); }
.doodle-input { width: 100%; max-width: 100%; padding: 0.6rem; border: var(--doodle-border); border-radius: var(--radius-3); background: transparent; font-family: var(--font-main); outline: none; transition: var(--transition); font-size: 0.9rem; }
.doodle-input:focus { background: #fff; box-shadow: var(--shadow-doodle-hover); }

/* Layouts & Grids */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(12px, 4vw, 48px); }
.section { padding: 3rem 0; width: 100%; max-width: 100%; margin-inline: auto; }
.section-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin: 0 auto 1.5rem; position: relative; display: block; width: fit-content; max-width: 100%; }
.section-title::after { content: ''; position: absolute; bottom: -3px; right: 0; width: 100%; height: 6px; background-color: var(--accent-color); z-index: -1; transform: rotate(-1deg); border-radius: var(--radius-2); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 2rem; justify-content: center; width: 100%; }
.brewing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; width: 100%; }

/* Doodle Elements */
.doodle-box { border: var(--doodle-border); border-radius: var(--radius-1); background: #fff; padding: 1.25rem; transition: var(--transition); width: 100%; max-width: 100%; }
.doodle-box:hover { border-radius: var(--radius-2); }
.doodle-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1.2rem; border: var(--doodle-border); border-radius: var(--radius-1); background-color: #fff; color: var(--text-color); font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-doodle); transition: var(--transition); text-align: center; max-width: 100%; overflow-wrap: break-word; }
.doodle-btn:hover { transform: translate(2px, 2px); box-shadow: var(--shadow-doodle-hover); background-color: #f5f5f5; }
.doodle-btn.primary { background-color: var(--text-color); color: #fff; border-color: var(--text-color); }
.doodle-btn.primary:hover { background-color: #333; color: #fff; }
.doodle-btn:disabled, .doodle-btn.disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.badge { position: absolute; top: -8px; right: -8px; background: var(--text-color); color: #fff; border: var(--doodle-border); padding: 0.2rem 0.6rem; border-radius: var(--radius-2); font-size: 0.75rem; font-weight: 700; transform: rotate(5deg); z-index: 2; }
.badge.warranty { background: #fff; color: var(--text-color); transform: rotate(-3deg); right: auto; left: -8px; top: 15px; }
.svg-icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ================= TOAST NOTIFICATIONS ================= */
.toast-root {
    position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: grid; gap: 10px;
    width: min(320px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
    pointer-events: auto; background: #fff; color: #111; border: 2px solid #111; border-radius: var(--radius-2);
    box-shadow: 4px 4px 0 #111; padding: 10px 12px; display: flex; align-items: center; gap: 10px;
    font-family: var(--font-main); font-size: 13px; font-weight: 700; line-height: 1.5; animation: toastIn .22s ease both;
}
.toast-icon {
    width: 24px; height: 24px; border: 2px solid #111; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; flex: 0 0 auto; font-size: 13px; background: #111; color: #fff;
}
.toast.success .toast-icon::before { content: "✓"; }
.toast.error .toast-icon::before { content: "!"; }
.toast.info .toast-icon::before { content: "i"; }
.toast.hide { animation: toastOut .18s ease both; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(8px) scale(.98); }
}

/* ================= HEADER ================= */
.header { position: sticky; top: 0; background-color: var(--bg-color); z-index: 100; width: 100%; max-width: 100%; }
.header-top { background: var(--text-color); color: var(--bg-color); text-align: center; padding: 3px 8px !important; font-size: 11px !important; line-height: 1.4 !important; font-weight: 500; width: 100%; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; gap: 0.5rem; width: 100%; }
.main-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.main-nav a { font-weight: 600; font-size: 0.8rem; position: relative; padding: 0.2rem 0.25rem; transition: var(--transition); white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #555; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--text-color); transition: width 0.3s; border-radius: 10px; z-index: -1; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cart-btn { position: relative; display: none; align-items: center; gap: 0.25rem; cursor: pointer; padding: 0.2rem; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--text-color); color: #fff; font-size: 0.6rem; font-weight: 700; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 0.2rem; flex-shrink: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-color); border-radius: 2px; transition: var(--transition); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 260px; max-width: 80%; height: 100vh; background: var(--bg-color); border-left: var(--doodle-border); padding: 1.5rem 1rem; z-index: 1000; transition: right 0.3s ease; overflow-y: auto; }
.mobile-menu.open { right: 0; box-shadow: -10px 0 20px rgba(0,0,0,0.1); }
.mobile-menu .close-btn { position: absolute; top: 0.5rem; left: 1rem; font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.mobile-nav a { font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; display: none; backdrop-filter: blur(2px); }

/* ================= SPA VIEWS ================= */
.view { display: none; animation: fadeIn 0.2s ease; width: 100%; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ================= HOME HERO ================= */
.hero-container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding: 56px 32px 48px;
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
}
.hero-image { display: flex; justify-content: center; align-items: center; min-width: 0; }
.hero-image img { width: 100%; max-width: 460px; height: auto; object-fit: contain; border: 0; box-shadow: none; background: transparent; }
.hero-content { min-width: 0; text-align: right; }
.hero-title { font-size: clamp(36px, 4.2vw, 56px); font-weight: 800; line-height: 1.35; margin-bottom: 16px; }
.hero-title .text-highlight, .hero-title span { display: inline-block; background: var(--accent-color); padding: 0 0.35em; border-radius: var(--radius-2); transform: rotate(-1deg); }
.hero-desc { max-width: 620px; font-size: 16px; line-height: 1.9; font-weight: 500; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #111; border-radius: var(--radius-3); background: #fff; color: #111; padding: 8px 12px; font-size: 13px; font-weight: 700; }

/* ================= OTHER SECTIONS & GRIDS ================= */
.categories-grid { width: 100%; max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; justify-content: center; }
.category-card { text-align: center; display: block; padding: 1rem 0.5rem; background: #fff; border: var(--doodle-border); border-radius: var(--radius-1); transition: var(--transition); cursor: pointer; min-width: 0; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-doodle); background: #fff; }
.category-icon { width: 40px; height: 40px; margin: 0 auto 0.75rem; border: 2px solid #111; border-radius: 50%; padding: 8px; display: flex; align-items: center; justify-content: center; }
.category-card h3 { font-size: 0.9rem; }

.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; width: 100%; justify-content: center; }
.sidebar { background: #fff; padding: 1.25rem; border: var(--doodle-border); border-radius: var(--radius-3); height: fit-content; position: sticky; top: 80px; width: 100%; }
.filter-group { margin-bottom: 1.25rem; }
.filter-title { font-weight: 700; margin-bottom: 0.6rem; padding-bottom: 0.4rem; font-size: 0.95rem; }
.filter-label { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; cursor: pointer; font-size: 0.85rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; width: 100%; }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: var(--doodle-border); border-radius: var(--radius-1); padding: 0.85rem; transition: var(--transition); height: 100%; min-width: 0; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-doodle); }
.product-img-wrap { width: 100%; aspect-ratio: 1; border: 2px solid #111; border-radius: var(--radius-2); margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; position: relative; }
.product-img-wrap svg { width: 50%; height: 50%; opacity: 0.5; }
.product-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-desc-short { font-size: 0.75rem; color: #555; margin-bottom: 0.4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-price { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.75rem; }
.product-price del { font-size: 0.8rem; color: #888; font-weight: 400; margin-right: 0.4rem; }
.product-price .unavailable { font-size: 0.9rem; color: #d32f2f; }
.empty-state { text-align: center; padding: 3rem 1rem; grid-column: 1 / -1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-inline: auto; }
.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; width: 100%; justify-content: center; align-items: center; }
#shop-search { width: 100%; max-width: 500px; }

.pd-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; width: 100%; }
.pd-image { border: var(--doodle-border); border-radius: var(--radius-1); background: #fff; padding: 1.5rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; position: relative; }
.pd-image svg { width: 45%; opacity: 0.8; }
.pd-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1.3; }
.pd-price { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.pd-meta { margin-bottom: 1.5rem; padding: 0.75rem; border: 2px dashed #111; border-radius: var(--radius-3); }
.pd-meta-item { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-bottom: 0.4rem; padding-bottom: 0.4rem; font-size: 0.85rem; }
.grind-options { margin-bottom: 1.5rem; }
.grind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0.4rem; margin-top: 0.4rem; }
.grind-btn { padding: 0.4rem; border: var(--doodle-border); border-radius: var(--radius-2); background: #fff; font-size: 0.8rem; transition: var(--transition); }
.grind-btn.selected { background: var(--text-color); color: #fff; }
.action-row { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: var(--doodle-border); border-radius: var(--radius-1); background: #fff; padding: 0.2rem; }
.qty-btn { width: 30px; height: 30px; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; flex-shrink: 0; }
.qty-btn:hover { background: #eee; }
.qty-input { width: 35px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 1rem; pointer-events: none; }

.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; width: 100%; }
.cart-items { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.cart-item { display: flex; align-items: center; gap: 0.75rem; background: #fff; padding: 0.75rem; border: var(--doodle-border); border-radius: var(--radius-3); flex-wrap: wrap; }
.cart-item-img { display: none !important; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.cart-item-meta { font-size: 0.75rem; color: #666; margin-top: 0.2rem; }
.cart-summary { background: #fff; padding: 1.25rem; border: var(--doodle-border); border-radius: var(--radius-1); height: fit-content; position: sticky; top: 80px; width: 100%; }
.summary-row { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 0.75rem; font-weight: 600; font-size: 0.9rem; }
.summary-total { font-size: 1.15rem; font-weight: 800; padding-top: 0.75rem; margin-top: 0.75rem; }

.checkout-form { display: grid; gap: 1.25rem; width: 100%; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.checkout-section { background: #fff; padding: 1.25rem; border: var(--doodle-border); border-radius: var(--radius-1); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; width: 100%; }
.blog-card { border: var(--doodle-border); border-radius: var(--radius-2); background: #fff; overflow: hidden; display: block; transition: var(--transition); min-width: 0; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-doodle); }
.blog-img { height: 160px; background: #fff; border-bottom: var(--doodle-border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-img svg { width: 60px; opacity: 0.3; }
.blog-content { padding: 1.25rem; }
.blog-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1.4; }
.blog-excerpt { font-size: 0.85rem; color: #555; }

.faq-item { background: #fff; border: var(--doodle-border); border-radius: var(--radius-3); margin-bottom: 0.75rem; overflow: hidden; width: 100%; }
.faq-question { padding: 0.85rem 1.25rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 0.85rem; color: #444; }
.faq-item.active .faq-answer { padding-bottom: 0.85rem; max-height: 800px; }
.faq-item.active .faq-question::after { content: '-'; font-size: 1.2rem; }
.faq-question::after { content: '+'; font-size: 1.2rem; }

/* Login Layout */
@media (min-width: 769px) {
    .login-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; max-width: 900px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .login-layout { display: flex; flex-direction: column; gap: 1rem; }
}

/* ================= ABOVE FOOTER IMAGE ================= */
.above-footer-illustration { width: 100%; overflow: hidden; border: 0; padding: 16px 0 0; display: flex; justify-content: center; margin: 0 auto; }
.above-footer-illustration img { width: min(100%, 1440px); max-width: 1440px; height: auto; border: 0; box-shadow: none; display: block; }

/* ================= FOOTER ================= */
.footer { background: var(--bg-color); color: var(--text-color); padding: 2rem 0; margin-top: 0; border: 0; border-radius: 0; width: 100%; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; width: 100%; justify-content: center; }
.footer-col { min-width: 0; }
.footer-brand-wrap { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-logo { height: 50px; width: auto; }
.footer-col h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-color); padding-bottom: 0; border: none; display: inline-block; }
.footer-col ul li { margin-bottom: 0.6rem; font-size: 0.85rem; }
.footer-col ul li a { opacity: 0.8; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; padding-right: 4px; }
.footer-credit { margin-top: 18px; text-align: center; font-size: 11px; font-weight: 500; color: #555; opacity: 0.75; }

/* ================= BACK TO TOP ================= */
.back-to-top {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px);
    z-index: 9998; width: 44px; height: 44px; border: 2px solid #111; border-radius: var(--radius-2);
    background: #fff; color: #111; box-shadow: 4px 4px 0 #111; font-size: 22px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.back-to-top:hover { box-shadow: 2px 2px 0 #111; transform: translateX(-50%) translateY(2px); }

/* ================= DESKTOP OPTIMIZATIONS ================= */
@media (min-width: 1024px) {
    .container { max-width: 1180px; padding-inline: 32px; margin-inline: auto; }
    .section { padding: 42px 0; margin-inline: auto; }
    .section-title { font-size: 28px; margin-bottom: 20px; }

    .shop-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; max-width: 1180px; margin-inline: auto; }
    .sidebar { padding: 14px; font-size: 13px; }
    .filter-title { font-size: 13px; }
    .filter-label { font-size: 12px; margin-bottom: 6px; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; max-width: 980px; margin-inline: auto; }
    .product-card { padding: 10px; }
    .product-img-wrap { aspect-ratio: 1; margin-bottom: 8px; }
    .product-title { font-size: 13px; line-height: 1.45; }
    .product-desc-short { font-size: 11px; line-height: 1.5; }
    .product-price { font-size: 14px; margin-bottom: 8px; }
    .product-card .doodle-btn { padding: 6px 10px; font-size: 12px; }

    .categories-grid, .features-grid { max-width: 760px; margin-inline: auto; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
    .category-card, .feature-card, .doodle-box { padding: 12px; }
    .category-icon, .feature-icon { width: 30px; height: 30px; padding: 6px; margin-bottom: 6px; }
    .category-card h3, .feature-card h3, .doodle-box h4 { font-size: 13px; }

    .pd-layout { max-width: 1040px; margin-inline: auto; grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1fr); gap: 36px; align-items: center; }
    .pd-image { padding: 20px; max-height: 520px; }
    .pd-title { font-size: 30px; }
    .pd-price { font-size: 26px; }
    .pd-meta, .checkout-section, .doodle-box { padding: 16px; }

    .contact-layout, .checkout-form, .cart-layout { max-width: 1050px; margin-inline: auto; }
    .doodle-input, input, textarea, select { padding: 8px 12px; font-size: 13px; }
    textarea { min-height: 120px; }

    .brewing-grid, .guide-grid { max-width: 1100px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .brewing-card, .guide-card { padding: 18px; font-size: 14px; }
    .brewing-card h3, .guide-card h3 { font-size: 18px; }

    .blog-grid { max-width: 980px; margin-inline: auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .blog-card { padding: 0; }
    .blog-img { height: 130px; }
    .blog-content { padding: 12px; }
    .blog-title { font-size: 14px; }
    .blog-excerpt { font-size: 12px; }
}

/* ================= GENERAL DESKTOP NAV / OVERRIDES ================= */
@media (min-width: 769px) {
    .header-main { position: relative; justify-content: center; gap: 32px; padding-top: 12px !important; padding-bottom: 10px !important; min-height: 58px !important; align-items: center !important; }
    .main-nav { margin-inline: auto; align-items: center !important; }
    .main-nav a { font-size: 12px !important; padding: 2px 5px !important; }
    .header-actions { position: absolute; left: 32px; top: 50% !important; transform: translateY(-50%) !important; }
    .header-login-btn { padding: 5px 14px !important; font-size: 12px !important; min-height: 34px !important; box-shadow: 3px 3px 0 #111 !important; }
}

@media (max-width: 1200px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    @media (min-width: 769px) { .header-actions { position: static; transform: none; margin-right: auto; margin-left: 0; left: auto; } .header-main { justify-content: flex-end; } }
}

/* ================= AGGRESSIVE MOBILE COMPACTING ================= */
@media (max-width: 768px) {
    body { font-size: 11px !important; line-height: 1.55 !important; }
    p, li, input, textarea, select, button, .doodle-btn, .doodle-input, .moqa-select-trigger, .filter-label, .product-desc-short, .blog-excerpt, .faq-answer, .cart-item-meta, .footer-col li { font-size: 10.5px !important; line-height: 1.55 !important; }
    
    h1, .hero-title { font-size: clamp(20px, 6.2vw, 28px) !important; line-height: 1.35 !important; margin-bottom: 10px !important; }
    h2, .section-title { font-size: clamp(17px, 5.4vw, 23px) !important; line-height: 1.35 !important; margin-bottom: 8px !important; }
    h3, .pd-title, .blog-title, .category-card h3, .feature-card h3, .doodle-box h3 { font-size: clamp(13px, 4.5vw, 18px) !important; line-height: 1.35 !important; }

    .container, .shop-layout, .pd-layout, .cart-layout, .contact-layout, .blog-grid { padding-inline: 10px !important; width: 100%; max-width: 100%; }
    .section { padding: 12px 0 !important; margin-inline: auto; }
    
    .doodle-box, .product-card, .category-card, .feature-card, .blog-card, .faq-item, .checkout-section, .cart-summary, .sidebar, .cart-item { padding: 7px !important; min-height: auto !important; }
    
    .categories-grid, .features-grid, .product-grid, .blog-grid, .brewing-grid, .guide-grid { gap: 7px !important; }
    
    .category-card, .feature-card { min-height: 58px !important; }
    .category-icon, .feature-icon { width: 20px !important; height: 20px !important; padding: 3px !important; margin-bottom: 3px !important; }
    .category-card h3, .feature-card h3, .doodle-box h4 { font-size: 11px !important; line-height: 1.4 !important; }
    .category-card svg, .feature-card svg, .product-img-wrap svg, .blog-img svg { width: 14px !important; height: 14px !important; }
    
    .doodle-btn { padding: 5px 8px !important; min-height: 28px !important; font-size: 10px !important; box-shadow: 2px 2px 0 #111 !important; }
    .doodle-input, .moqa-select-trigger, input, textarea, select { min-height: 30px !important; padding: 5px 8px !important; font-size: 10.5px !important; }
    textarea { min-height: 72px !important; }

    /* Header Compacting */
    .header-top { font-size: 10.5px !important; padding: 3px 6px !important; }
    .header-main { min-height: 42px !important; padding: 4px 10px !important; justify-content: space-between !important; align-items: center !important; flex-wrap: nowrap; gap: 0; }
    .hamburger { order: 1; margin: 0 !important; }
    .hamburger span { width: 18px !important; height: 2px !important; }
    .header-actions { order: 2; margin: 0 !important; display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: static; transform: none; left: auto; top: auto; }
    .header-login-btn { display: none !important; }
    .cart-btn .svg-icon { width: 18px !important; height: 18px !important; }

    /* Hero adjustments */
    .hero-container { display: flex; flex-direction: column-reverse; padding: 12px 10px 18px; gap: 14px; text-align: center; }
    .hero-content { text-align: center; width: 100%; }
    .hero-desc { font-size: 11.5px !important; line-height: 1.8; margin: 0 auto 10px; max-width: 92vw; }
    .hero-image img { max-width: 260px; width: 75vw; margin: 0 auto; }
    .hero-btns { justify-content: center; gap: 8px; margin-bottom: 10px; }
    .hero-badges { justify-content: center; gap: 6px; }
    .hero-badge { font-size: 9px; padding: 4px 6px; }

    /* Product & Cart Grids */
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .product-img-wrap { aspect-ratio: 1 / 0.82 !important; margin-bottom: 5px !important; }
    .product-title { font-size: 10.5px !important; line-height: 1.35 !important; margin-bottom: 4px !important; }
    .product-desc-short { font-size: 9.5px !important; line-height: 1.4 !important; -webkit-line-clamp: 2 !important; }
    .product-price { font-size: 11.5px !important; margin-bottom: 5px !important; }
    
    .shop-layout, .cart-layout, .contact-layout, .pd-layout { grid-template-columns: 1fr; gap: 0.75rem; }
    .sidebar { position: static; margin-bottom: 0.75rem; }
    
    .cart-item { flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; gap: 8px; }
    .cart-item-info { width: 100%; min-width: 100% !important; padding: 0; margin: 0; }
    .cart-item-title { font-size: 12px !important; }
    .cart-qty-wrap { margin: 0 auto !important; }
    .cart-del-btn { position: absolute; top: 8px; left: 8px; margin: 0 !important; }
    .summary-row, .summary-total { font-size: 12px !important; }
    .cart-summary h3, .cart-summary h2 { font-size: 16px !important; margin-bottom: 8px !important; }

    /* Blog Grid Compacting */
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
    .blog-card { min-height: auto !important; padding: 0 !important; }
    .blog-img { height: 70px !important; min-height: 70px !important; border-bottom: 2px solid #111 !important; }
    .blog-content { padding: 7px !important; }
    .blog-title { font-size: 12px !important; line-height: 1.35 !important; margin-bottom: 5px !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
    .blog-excerpt { font-size: 9.8px !important; line-height: 1.45 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
    
    /* Hide Likes on Mobile Blog List */
    .blog-card .blog-meta, .blog-card .like-count, .blog-card .blog-like, .blog-card .blog-actions, .blog-card [data-like], .blog-card .likes, .blog-card .post-likes { display: none !important; }
    .blog-card .read-more, .blog-card .doodle-btn { margin-top: 6px !important; font-size: 10px !important; padding: 4px 6px !important; }

    /* About Page Compacting */
    .about-layout { display: flex !important; flex-direction: column !important; gap: 12px !important; max-width: 100% !important; text-align: center !important; padding-inline: 4px !important; }
    .about-copy { width: 100% !important; text-align: center !important; }
    .about-copy h2, .about-copy h3 { font-size: clamp(18px, 5.5vw, 24px) !important; line-height: 1.35 !important; margin-bottom: 8px !important; }
    .about-copy p { font-size: 11px !important; line-height: 1.75 !important; margin-bottom: 10px !important; max-width: 92vw !important; margin-inline: auto !important; }
    .about-visual img { max-width: 240px !important; width: 70vw !important; }
    .about-layout .text-highlight { padding: 0 0.25em !important; }

    /* Brewing Guide Compacting */
    .brewing-grid, .guide-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
    .brewing-card, .guide-card { padding: 10px !important; }
    .brewing-card h3, .guide-card h3 { font-size: 15px !important; margin-bottom: 6px !important; }
    .brewing-card p, .guide-card p { font-size: 11px !important; line-height: 1.7 !important; }

    /* Form Layouts */
    .form-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .moqa-select-menu { max-height: 180px; }
    .moqa-select-menu button { font-size: 10.5px; padding: 6px 8px; }

    /* Footer & Misc */
    .footer { padding: 1.5rem 0; margin-top: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
    .footer-col { min-width: 0 !important; }
    .footer-brand-text { display: none !important; }
    .footer-brand-wrap { justify-content: center !important; text-align: center; }
    .footer .footer-logo, .footer img[src*="moqalogo.png"] { display: none !important; }
    .footer-col:first-child p { text-align: center; }
    .footer-credit { font-size: 10px; margin-top: 12px; }
    .back-to-top { width: 34px; height: 34px; bottom: 12px; font-size: 16px; box-shadow: 2px 2px 0 #111; }
}

@media (max-width: 600px) {
    .above-footer-illustration img { width: 125vw; max-width: none; transform: translateX(0); }
}

@media (max-width: 360px) {
    .blog-grid { grid-template-columns: 1fr !important; }
    .product-grid { grid-template-columns: 1fr !important; }
    .categories-grid, .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
}

/* ================= LOADING SKELETON PLACEHOLDERS ================= */
.skeleton-text {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 4px;
    display: block;
}
.skeleton-text::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
    animation: skeletonMove 1.2s infinite;
}
.skeleton-active {
    pointer-events: none;
    user-select: none;
}


.blog-article-content {
    color: #333;
    font-size: 1rem;
    line-height: 2.15;
    text-align: right;
}

.blog-article-excerpt {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 2;
    margin-bottom: 2rem;
}

.blog-article-content p {
    margin: 0 0 1.6rem;
}

@media (max-width: 768px) {
    .blog-article-content {
        font-size: 0.98rem;
        line-height: 2.05;
    }

    .blog-article-content p {
        margin-bottom: 1.35rem;
    }
}
@media (min-width: 769px) {
    /* زيادة التباعد وجعل حجم خط الروابط العلوية أكثر وضوحاً وتنفسًا */
    .main-nav { 
        gap: 1.25rem !important; 
    }
    .main-nav a { 
        font-size: 13.5px !important; 
        padding: 4px 8px !important; 
        font-weight: 700 !important;
    }
    .header-actions {
        gap: 1rem !important;
    }
    .header-login-btn {
        font-size: 13px !important;
        padding: 6px 16px !important;
    }
}

