/* ============================================================
قالب سفارشی رستوران – طراحی مدرن الهام‌گرفته از فیگما
پالت سبز ارگانیک | سایه‌های نرم | فاصله‌های هوایی
(بدون علاقه‌مندی، انتخاب وزن و مشاهده سریع)
============================================================ */
@font-face {
font-family: "VazirCustom";
src: url("/wp-content/uploads/2026/04/Vazir-Thin.ttf") format("truetype");
font-display: swap;
}

:root {
--bg: #F9F6F0;
--surface: #FFFFFF;
--text-primary: #2C2A26;
--text-secondary: #5F5B55;
--text-muted: #8B8680;

--accent: #518302;
--accent-hover: #3E6300;
--accent-light: rgba(81, 131, 2, 0.1);
--accent-glow: rgba(81, 131, 2, 0.3);
--accent-shadow: rgba(81, 131, 2, 0.15);
--accent-shadow-light: rgba(81, 131, 2, 0.2);

--star-color: #F59E0B;
--badge-sale-bg: #E53E3E;
--footer-text: #D1CDC8;
--skeleton-base: #F0EDE6;
--skeleton-shine: #E5E1D8;

--border: #E5E1D8;
--border-light: #F0EDE6;
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
--shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
--radius-xl: 20px;
--radius-lg: 16px;
--radius-md: 12px;
--radius-sm: 8px;
--container: 1200px;
--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body, button, input, select, textarea {
font-family: "VazirCustom", sans-serif;
}

.rm-section, .rm-section *,
.hc-header, .hc-header *,
.fc-footer, .fc-footer * {
box-sizing: border-box;
}

.rm-section, .hc-header, .fc-footer {
direction: rtl;
}

/* ===================== HEADER ===================== */
.hc-header {
position: sticky;
top: 0;
z-index: 9999;
width: 100%;
padding: 12px 24px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
box-shadow: var(--shadow-sm);
}
.hc-inner {
max-width: var(--container);
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.hc-brand {
display: flex;
align-items: center;
min-width: 0;
}
.hc-brand .custom-logo {
max-height: 44px;
width: auto;
}
.hc-site-title {
display: inline-block;
max-width: 220px;
color: var(--text-primary);
text-decoration: none;
font-size: 22px;
font-weight: 900;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hc-nav { display: flex; align-items: center; }
.hc-menu {
display: flex;
align-items: center;
gap: 32px;
list-style: none;
margin: 0;
padding: 0;
}
.hc-menu li a {
position: relative;
color: var(--text-primary);
text-decoration: none;
font-size: 14px;
font-weight: 600;
transition: color var(--transition);
padding: 6px 0;
}
.hc-menu li a::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--accent);
border-radius: 2px;
transition: width var(--transition);
}
.hc-menu li a:hover,
.hc-menu li.current-menu-item > a {
color: var(--accent);
}
.hc-menu li a:hover::after,
.hc-menu li.current-menu-item > a::after {
width: 100%;
}
.hc-actions { display: flex; align-items: center; gap: 12px; }
.hc-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 130px;
height: 44px;
padding: 0 24px;
border: none;
border-radius: var(--radius-sm);
background: var(--accent);
color: #fff;
text-decoration: none;
font-size: 14px;
font-weight: 700;
transition: background var(--transition), box-shadow var(--transition);
white-space: nowrap;
}
.hc-btn:hover {
background: var(--accent-hover);
box-shadow: 0 6px 18px var(--accent-glow);
}
.hc-toggle {
display: none;
width: 44px;
height: 44px;
border: 1px solid var(--border);
background: transparent;
border-radius: var(--radius-sm);
cursor: pointer;
}
.hc-toggle span {
display: block;
width: 22px;
height: 2px;
background: var(--text-primary);
margin: 5px auto;
border-radius: 2px;
transition: var(--transition);
}
.hc-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hc-toggle.is-active span:nth-child(2) { opacity: 0; }
.hc-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hc-menu-fallback { color: var(--text-secondary); font-size: 14px; }

/* ===================== PRODUCTS SECTION ===================== */
.rm-section {
max-width: var(--container);
width: calc(100% - 32px);
margin: 40px auto;
padding: 48px 32px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-sm);
color: var(--text-primary);
position: relative;
overflow: hidden;
}

.rm-scroll-progress {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 3px;
background: transparent;
z-index: 10;
}
.rm-scroll-progress span {
display: block;
height: 100%;
width: 0%;
background: var(--accent);
box-shadow: 0 0 8px var(--accent-glow);
transition: width 0.2s linear;
}

/* Toolbar */
.rm-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 28px;
flex-wrap: wrap;
}
.rm-search-wrap {
display: flex;
align-items: center;
gap: 8px;
flex: 1 1 auto;
max-width: 400px;
}
.rm-search-input {
flex: 1;
padding: 10px 20px;
border-radius: 40px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-primary);
font-size: 14px;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition);
}
.rm-search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-shadow);
}
.rm-random-btn {
width: 40px;
height: 40px;
border-radius: 50%;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-primary);
font-size: 18px;
cursor: pointer;
transition: all var(--transition);
display: flex;
align-items: center;
justify-content: center;
}
.rm-random-btn:hover {
background: var(--accent);
color: #fff;
border-color: var(--accent);
transform: rotate(20deg);
}

.rm-compare-badge {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 8px 16px;
border: 1px solid var(--border);
border-radius: 40px;
background: var(--surface);
color: var(--text-primary);
transition: all var(--transition);
position: relative;
}
.rm-compare-badge:hover {
border-color: var(--accent);
box-shadow: var(--shadow-sm);
}
.rm-compare-count {
font-weight: 700;
color: var(--accent);
}
.rm-compare-clear {
background: none;
border: none;
color: var(--text-secondary);
font-size: 18px;
cursor: pointer;
margin-right: 4px;
}

.rm-head { text-align: center; margin-bottom: 36px; }
.rm-kicker {
display: inline-block;
padding: 8px 24px;
border: 1px solid var(--border);
border-radius: 40px;
color: var(--text-secondary);
font-size: 13px;
margin-bottom: 16px;
background: var(--surface);
letter-spacing: 0.5px;
}
.rm-title {
margin: 0 0 12px;
font-size: clamp(32px, 5vw, 48px);
font-weight: 900;
color: var(--text-primary);
line-height: 1.2;
}
.rm-subtitle {
color: var(--text-secondary);
font-size: 16px;
max-width: 600px;
margin: 0 auto;
line-height: 1.8;
}

.rm-filter-wrap { margin-bottom: 28px; }
.rm-scroll-hint {
text-align: center;
color: var(--text-muted);
font-size: 12px;
margin-bottom: 10px;
opacity: 0.9;
}
.rm-filters {
display: flex;
gap: 10px;
overflow-x: auto;
padding: 4px 2px 12px;
scrollbar-width: thin;
scrollbar-color: var(--accent) transparent;
cursor: grab;
}
.rm-filters::-webkit-scrollbar { height: 4px; }
.rm-filters::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
.rm-filters::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.rm-filter-btn {
flex: 0 0 auto;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-primary);
border-radius: 40px;
padding: 10px 24px;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
cursor: pointer;
transition: all var(--transition);
position: relative;
overflow: hidden;
}
.rm-filter-btn:hover {
border-color: var(--accent);
color: var(--accent);
transform: translateY(-2px);
box-shadow: var(--shadow-sm);
}
.rm-filter-btn.is-active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
font-weight: 700;
box-shadow: 0 4px 12px var(--accent-glow);
}

/* ======================== */
/* کارت محصولات */
/* ======================== */
.rm-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}

.rm-card {
display: flex;
flex-direction: column;
background: var(--surface);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-sm);
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
position: relative;
min-height: 420px;
}
.rm-card.is-visible { opacity: 1; transform: translateY(0); }
.rm-card:hover {
border-color: var(--accent);
box-shadow: var(--shadow-md), 0 0 0 1px var(--accent);
transform: translateY(-4px);
}
.rm-card:hover .rm-card-img-wrap img { transform: scale(1.05); }

.rm-particles { display: none; }

.rm-skeleton-card { pointer-events: none; opacity: 1 !important; transform: none !important; min-height: auto; }
.rm-skeleton-img, .rm-skeleton-text, .rm-skeleton-btn {
background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
background-size: 200% 100%;
animation: shimmer 1.8s infinite;
border-radius: 4px;
}
.rm-skeleton-img { height: 180px; width: 100%; }
.rm-skeleton-text { height: 16px; margin: 16px 16px 8px; width: 60%; }
.rm-skeleton-btn { height: 36px; margin: 0 16px 16px; width: 90px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.rm-card-media {
position: relative;
display: block;
width: 100%;
height: 220px;
overflow: hidden;
background: #f6f3ed;
}
.rm-card-img-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
}

.rm-card-badge {
position: absolute;
top: 12px;
left: 12px;
padding: 5px 14px;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
z-index: 2;
backdrop-filter: blur(4px);
}
.rm-badge-sale {
background: var(--badge-sale-bg);
color: #fff;
animation: pulse-badge 2s infinite;
}
.rm-badge-featured {
background: var(--accent);
color: #fff;
}
@keyframes pulse-badge { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.04); } }

.rm-card-body {
display: flex;
flex-direction: column;
flex: 1;
padding: 20px;
}
.rm-card-content { margin-bottom: 16px; flex: 1; }
.rm-card-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.rm-card-rating { margin-bottom: 8px; font-size: 12px; }
.rm-card-rating .star-rating { float: none; display: inline-block; color: var(--star-color); }
.rm-card-rating .star-rating span::before { color: var(--star-color); }
.rm-card-excerpt { color: var(--text-secondary); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.rm-price {
font-size: 18px;
font-weight: 800;
color: var(--accent);
text-align: left;
margin-bottom: 16px;
}
.rm-price del { color: var(--text-muted); margin-left: 6px; font-size: 14px; }
.rm-price ins { text-decoration: none; }

.rm-actions-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: auto;
}

.rm-qty-selector {
display: flex;
align-items: center;
gap: 2px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 2px;
flex-shrink: 0;
}
.rm-qty-selector button {
background: transparent;
border: none;
color: var(--text-primary);
width: 32px;
height: 32px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 6px;
transition: background var(--transition);
}
.rm-qty-selector button:hover { background: var(--accent-light); }
.rm-qty-selector input {
width: 40px;
text-align: center;
background: transparent;
border: none;
color: var(--text-primary);
height: 32px;
font-size: 14px;
font-weight: 600;
-moz-appearance: textfield;
}
.rm-qty-selector input::-webkit-outer-spin-button,
.rm-qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rm-compare-check {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 40px;
padding: 6px 14px;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition);
user-select: none;
white-space: nowrap;
flex-shrink: 0;
}
.rm-compare-check:hover { border-color: var(--accent); color: var(--accent); }
.rm-compare-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rm-compare-icon { display: flex; align-items: center; }
.rm-compare-text { font-size: 11px; }

.rm-compare-check.is-checked {
background: var(--accent-light);
border-color: var(--accent);
color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-shadow-light);
}
.rm-compare-check.is-checked .rm-compare-icon { color: var(--accent); }
.rm-compare-check.is-checked .rm-compare-icon svg { stroke: var(--accent); }

.rm-cart-box {
width: 100%;
}

.add_to_cart_button,
.rm-grouped-add,
.rm-cart-box .added_to_cart {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
padding: 10px 24px !important;
border: 1px solid var(--border) !important;
border-radius: 40px !important;
background: var(--surface) !important;
color: var(--text-primary) !important;
font-size: 14px !important;
font-weight: 600 !important;
text-decoration: none !important;
transition: all var(--transition) !important;
white-space: nowrap;
cursor: pointer;
height: auto !important;
}

.add_to_cart_button:hover,
.rm-grouped-add:hover,
.rm-cart-box .added_to_cart:hover {
border-color: var(--accent) !important;
color: var(--accent) !important;
background: var(--surface) !important;
box-shadow: var(--shadow-sm);
transform: translateY(-2px);
}

.rm-out-of-stock {
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100%;
height: auto;
padding: 10px 24px;
border-radius: 40px;
background: var(--border-light) !important;
color: var(--text-muted) !important;
border: 1px solid var(--border) !important;
font-size: 14px;
font-weight: 600;
cursor: not-allowed;
}

.rm-loader {
display: block;
width: 36px;
height: 36px;
margin: 0 auto;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: rm-spin 0.8s linear infinite;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s;
}
.rm-loader.is-visible { opacity: 1; visibility: visible; }
@keyframes rm-spin { to { transform: rotate(360deg); } }

/* مودال مقایسه */
.rm-compare-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(8px);
z-index: 10001;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.2s ease;
}
.rm-compare-modal {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
width: 90%;
max-width: 900px;
max-height: 85vh;
overflow-y: auto;
padding: 32px;
position: relative;
box-shadow: var(--shadow-lg);
}
.rm-cmp-close {
position: absolute;
top: 16px;
left: 16px;
background: none;
border: none;
color: var(--text-secondary);
font-size: 28px;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
}
.rm-cmp-close:hover { background: rgba(0,0,0,0.04); }
.rm-compare-table { margin-top: 20px; overflow-x: auto; }
.rm-compare-table table { width: 100%; border-collapse: collapse; color: var(--text-primary); }
.rm-compare-table th, .rm-compare-table td { border: 1px solid var(--border); padding: 12px; text-align: center; }
.rm-compare-table th { background: var(--bg); color: var(--text-primary); font-weight: 600; }

.rm-cart-notify {
position: fixed;
bottom: 24px;
left: 24px;
z-index: 999;
transform: translateX(-120%);
transition: transform 0.4s ease;
}
.rm-cart-notify.show { transform: translateX(0); }
.rm-cart-notify-inner {
background: var(--text-primary);
color: #fff;
border-radius: 40px;
padding: 12px 24px;
display: flex;
align-items: center;
gap: 10px;
box-shadow: var(--shadow-md);
}
.rm-cart-notify-icon { color: var(--accent); font-weight: bold; }

.rm-back-to-top {
position: fixed;
bottom: 32px;
right: 32px;
width: 48px;
height: 48px;
background: var(--accent);
border: none;
border-radius: 50%;
color: #fff;
font-size: 22px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 998;
opacity: 0;
transform: translateY(20px);
transition: all var(--transition);
box-shadow: var(--shadow-md);
}
.rm-back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.rm-back-to-top:hover { background: var(--accent-hover); transform: scale(1.1); }

/* ===================== FOOTER ===================== */
.fc-footer {
max-width: var(--container);
width: calc(100% - 32px);
margin: 60px auto 32px;
background: var(--text-primary);
color: #fff;
border-radius: var(--radius-xl);
overflow: hidden;
}
.fc-inner {
display: grid;
grid-template-columns: 1.2fr 0.8fr 1.2fr;
gap: 40px;
max-width: var(--container);
margin: 0 auto;
padding: 60px 32px 50px;
}
.fc-col { min-width: 0; }
.fc-title {
margin: 0 0 20px;
padding-bottom: 12px;
font-size: 18px;
font-weight: 700;
color: #fff;
position: relative;
}
.fc-title::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
width: 32px;
height: 2px;
background: var(--accent);
}
.fc-text, .fc-links a, .fc-contact li { color: var(--footer-text); font-size: 14px; line-height: 2; }
.fc-text { margin: 0; text-align: justify; }
.fc-links, .fc-contact { list-style: none; padding: 0; margin: 0; }
.fc-links li { margin-bottom: 8px; }
.fc-links a { text-decoration: none; display: inline-block; transition: color var(--transition), transform var(--transition); color: var(--footer-text); }
.fc-links a:hover { color: var(--accent); transform: translateX(-4px); }
.fc-contact li { display: flex; gap: 8px; margin-bottom: 12px; }
.fc-contact strong { color: #fff; min-width: 70px; }
.fc-socials { display: flex; gap: 12px; margin-top: 24px; }
.fc-socials a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: 1px solid rgba(255,255,255,0.2);
border-radius: 50%;
color: #fff;
text-decoration: none;
font-size: 13px;
font-weight: 700;
transition: all var(--transition);
}
.fc-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.fc-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px; text-align: center; }
.fc-bottom p { margin: 0; color: #999; font-size: 13px; }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.ripple {
position: absolute;
border-radius: 50%;
background: rgba(255,255,255,0.4);
transform: scale(0);
animation: ripple-anim 0.6s linear;
pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 768px) {
.rm-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rm-card-media { height: 200px; }
}
@media (min-width: 1024px) {
.rm-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.rm-card-media { height: 230px; }
.rm-card-body { padding: 24px; }
}
@media (max-width: 1200px) {
.hc-inner, .rm-section, .fc-footer { max-width: 100%; }
}
@media (max-width: 991px) {
.hc-inner { flex-wrap: wrap; }
.hc-toggle { display: inline-block; }
.hc-nav {
position: absolute;
top: 100%;
left: 0; right: 0;
display: none;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
padding: 16px;
box-shadow: var(--shadow-md);
}
.hc-nav.is-open { display: block; }
.hc-menu { flex-direction: column; gap: 4px; }
.hc-menu li a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); background: transparent; }
.hc-menu li a:hover { background: var(--accent-light); }
.rm-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rm-card-media { height: 180px; }
.fc-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
.rm-section, .fc-footer { width: calc(100% - 24px); margin-top: 24px; border-radius: 16px; padding: 32px 20px; }
.fc-inner { grid-template-columns: 1fr; padding: 40px 24px 30px; }
}
@media (max-width: 640px) {
.hc-btn { display: none; }
.rm-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rm-card { min-height: auto; }
.rm-card-media { height: 160px; }
.rm-card-body { padding: 14px; }
.rm-actions-row { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
}
@media (max-width: 480px) {
.rm-section, .fc-footer { width: calc(100% - 16px); padding: 24px 14px; }
.rm-grid { gap: 12px; }
.rm-card-media { height: 140px; }
.rm-card-body { padding: 12px; }
}