r/*
Theme Name: تمزی
Theme URI: https://example.com
Author: Custom Dev
Author URI: https://example.com
Description: پوسته اختصاصی و فوق‌سبک ووکامرس برای فروشگاه تمزی، مرجع فروش تم و لوازم جشن تولد.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
WC requires at least: 8.0
WC tested up to: 9.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tamzi
*/

/* معرفی فونت متغیر وزیرمتن (نسخه نقطه گرد) آپلود شده در هاست */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-RD-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --kraft-light: #fff9f3;
    --kraft-mid: #ffe3ef;
    --kraft-dark: #f6c6de;
    --carton-orange: #ff4d8d;
    --carton-orange-hover: #e0316f;
    --text-dark: #2d1b3d;
    --text-light: #7c3aed;
    --white: #ffffff;
    --tamzi-purple: #7c3aed;
    --tamzi-yellow: #ffc93c;
    --tamzi-blue: #38bdf8;
    --tamzi-green: #4ade80;
    --radius-app: 16px;
    --shadow-sm: 0 4px 15px rgba(124, 58, 237, 0.08);
    --shadow-md: 0 10px 30px rgba(255, 77, 141, 0.15);
    --transition: all 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif !important; 
    -webkit-tap-highlight-color: transparent; 
}

body { background-color: var(--kraft-light); color: var(--text-dark); padding-bottom: 80px; overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ۱. نوار ابزار و هدر دسکتاپ */
.top-bar { background-color: var(--text-dark); color: var(--white); font-size: 0.85rem; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; }
.top-bar-socials { display: flex; gap: 15px; }
.desktop-header { background-color: var(--white); border-bottom: 1px solid var(--kraft-dark); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.d-header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--kraft-light); }
.logo-wrap { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.6rem; color: var(--carton-orange); }
.search-bar { flex: 1; max-width: 500px; margin: 0 40px; position: relative; }
.search-bar input { width: 100%; padding: 12px 20px 12px 45px; border: 2px solid var(--kraft-mid); border-radius: 50px; background: var(--kraft-light); outline: none; transition: var(--transition); }
.d-actions { display: flex; gap: 12px; align-items: center; }
.action-btn { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 15px; border-radius: var(--radius-app); border: 1px solid var(--kraft-dark); background: var(--white); cursor: pointer; transition: var(--transition); }
.d-nav-menu { display: flex; gap: 24px; padding: 12px 0; }
.nav-link { font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 5px; font-size: 0.95rem; }

/* ۲. هدر موبایل */
.mobile-header { display: none; background: var(--white); padding: 15px 20px; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.mobile-header { display: none; }
@media (max-width: 768px) {
    .top-bar, .desktop-header { display: none; }
    .mobile-header { display: block; }
}

/* ۳. ووکامرس (سازگاری کامل) */
.woocommerce a.button, .woocommerce button.button { background: var(--carton-orange); color: var(--white); padding: 12px 28px; border-radius: 50px; font-weight: 900; border: none; cursor: pointer; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); overflow: hidden; margin-bottom: 30px; }
.woocommerce table.shop_table th { background: var(--kraft-light); font-weight: 900; padding: 15px; text-align: right; }
.woocommerce table.shop_table td { padding: 15px; border-top: 1px solid var(--kraft-mid); }

/* صفحه تک محصول */
.single-product .product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
.single-product .product_title { font-size: 2rem; font-weight: 900; margin-bottom: 15px; }
.single-product p.price { color: var(--carton-orange); font-weight: 900; font-size: 1.6rem; }

@media (max-width: 768px) {
    .single-product .product { grid-template-columns: 1fr; }
}

/* =========================================
   ۱. نوار ابزار و هدر دسکتاپ
========================================= */
.top-bar { background-color: var(--text-dark); color: var(--white); font-size: 0.85rem; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; }
.top-bar-socials { display: flex; gap: 15px; }

.desktop-header { background-color: var(--white); border-bottom: 1px solid var(--kraft-dark); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.d-header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--kraft-light); }

.logo-wrap { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.6rem; color: var(--carton-orange); }
.logo-wrap svg { fill: var(--carton-orange); }

.search-bar { flex: 1; max-width: 500px; margin: 0 40px; position: relative; }
.search-bar input { width: 100%; padding: 12px 20px 12px 45px; border: 2px solid var(--kraft-mid); border-radius: 50px; background: var(--kraft-light); outline: none; transition: var(--transition); }
.search-bar input:focus { border-color: var(--carton-orange); background: var(--white); }
.search-bar button { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-light); }

.d-actions { display: flex; gap: 12px; align-items: center; }
.action-btn { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 15px; border-radius: var(--radius-app); border: 1px solid var(--kraft-dark); background: var(--white); cursor: pointer; transition: var(--transition); }
.action-btn:hover { border-color: var(--carton-orange); color: var(--carton-orange); }
.btn-cart { background: var(--kraft-mid); border-color: transparent; }

.d-nav-menu { display: flex; gap: 24px; padding: 12px 0; }
.nav-item { position: relative; }
.nav-link { font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 5px; font-size: 0.95rem; }
.nav-link:hover { color: var(--carton-orange); }

.dropdown-menu { position: absolute; top: 100%; right: 0; background: var(--white); min-width: 240px; box-shadow: var(--shadow-md); border-radius: 12px; border: 1px solid var(--kraft-dark); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 100; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 20px; font-size: 0.95rem; }
.dropdown-menu li a:hover { background-color: var(--kraft-light); color: var(--carton-orange); padding-right: 25px; }

/* =========================================
   ۲. هدر موبایل (طراحی اپلیکیشنی)
========================================= */
.mobile-header { display: none; background: var(--white); padding: 15px 20px; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.mobile-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.mobile-logo-area { display: flex; align-items: center; gap: 15px; }
.mobile-logo { font-size: 1.3rem; font-weight: 900; color: var(--carton-orange); display: flex; align-items: center; gap: 8px; }

.menu-toggle-btn { background: none; border: none; color: var(--text-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 5px; }

/* =========================================
   ۳. سایدبار موبایل (منوی کشویی)
========================================= */
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10000; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(2px); }
.menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw; height: 100%; background: var(--white); z-index: 10001; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.1); }
.mobile-sidebar.active { transform: translateX(-320px); }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--kraft-mid); background: var(--kraft-light); }
.m-nav-list { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.m-nav-link { display: flex; justify-content: space-between; align-items: center; font-weight: 900; color: var(--text-dark); font-size: 1.05rem; cursor: pointer; padding: 5px 0; }

/* زیرمنوی آکاردئونی موبایل */
.m-dropdown-menu { display: none; flex-direction: column; gap: 12px; padding: 15px 20px 0 0; border-right: 2px solid var(--carton-orange); margin-top: 5px; margin-right: 5px; }
.m-dropdown-menu.active { display: flex; }
.m-dropdown-menu li a { color: var(--text-light); font-size: 0.95rem; display: block; font-weight: 700; }
.m-dropdown-toggle svg { transition: transform 0.3s ease; color: var(--carton-orange); }
.m-dropdown-toggle.active svg { transform: rotate(180deg); }

/* =========================================
   ۴. هیرو قدرتمند (Hero Section)
========================================= */
.hero-section { margin: 40px auto; }
.hero-box { background: linear-gradient(135deg, var(--white) 0%, var(--kraft-mid) 100%); border: 1px solid var(--kraft-dark); border-radius: 24px; padding: 60px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.hero-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(var(--kraft-dark) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.3; pointer-events: none; }

.hero-text { position: relative; z-index: 1; }
.hero-text h1 { font-size: 3rem; font-weight: 900; line-height: 1.3; margin-bottom: 20px; color: var(--text-dark); }
.hero-text h1 span { color: var(--carton-orange); }
.hero-text p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 30px; line-height: 1.8; max-width: 90%; }

.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary { background: var(--carton-orange); color: var(--white); padding: 14px 32px; border-radius: 50px; font-weight: 900; font-size: 1.1rem; border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-3px); background: var(--carton-orange-hover); }
.btn-outline { border: 2px solid var(--text-dark); color: var(--text-dark); padding: 12px 30px; border-radius: 50px; font-weight: 900; font-size: 1.1rem; background: transparent; transition: var(--transition); }
.btn-outline:hover { background: var(--text-dark); color: var(--white); }

.hero-image { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-image svg { width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }

/* =========================================
   ۵. دسته‌بندی‌ها و محصولات (اسکرول افقی)
========================================= */
.section-header { margin: 60px 0 30px 0; display: flex; justify-content: space-between; align-items: flex-end; }
.section-title { font-size: 1.8rem; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; display: block; width: 8px; height: 30px; background: var(--carton-orange); border-radius: 4px; }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cat-item { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); padding: 25px 15px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; transition: var(--transition); }
.cat-item:hover { border-color: var(--carton-orange); transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.cat-icon { width: 70px; height: 70px; background: var(--kraft-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--carton-orange); transition: var(--transition); }
.cat-item:hover .cat-icon { background: var(--carton-orange); color: var(--white); }
.cat-item span { font-weight: 900; font-size: 1rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.p-card { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; position: relative; }
.p-card:hover { border-color: var(--carton-orange); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.p-badge { position: absolute; top: 12px; right: 12px; background: #ef4444; color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; z-index: 2; }
.p-img { height: 220px; background: var(--kraft-mid); display: flex; align-items: center; justify-content: center; }
.p-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.p-title { font-weight: 900; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.6; flex: 1; }
.p-price { color: var(--carton-orange); font-weight: 900; font-size: 1.3rem; margin-bottom: 20px; }
.add-btn { background: var(--kraft-light); color: var(--text-dark); border: 1px solid var(--kraft-dark); width: 100%; padding: 12px; border-radius: 12px; font-weight: 900; font-size: 1rem; cursor: pointer; transition: var(--transition); }
.p-card:hover .add-btn { background: var(--carton-orange); color: var(--white); border-color: var(--carton-orange); }

/* =========================================
   ۶. توضیحات سئو و فوتر
========================================= */
.seo-banner { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: 24px; padding: 50px; margin: 60px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.seo-content h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 20px; }
.seo-content p { color: var(--text-light); line-height: 1.8; font-size: 1.05rem; margin-bottom: 15px; text-align: justify; }
.seo-list { margin-top: 25px; }
.seo-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; color: var(--text-dark); }
.seo-list li svg { color: var(--carton-orange); }
.seo-image { background: var(--kraft-mid); border-radius: 20px; height: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; }

.footer-features { background-color: var(--white); padding: 40px 0; border-top: 4px solid var(--carton-orange); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background-color: var(--kraft-light); border: 1px solid var(--kraft-dark); border-radius: 16px; padding: 24px; text-align: center; transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); border-color: var(--carton-orange); background: var(--white); box-shadow: var(--shadow-sm); }
.feature-icon { width: 60px; height: 60px; background: var(--kraft-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--carton-orange); margin: 0 auto 16px auto; transition: var(--transition); }
.feature-card:hover .feature-icon { background: var(--carton-orange); color: var(--white); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 900; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); }

.main-footer { background-color: var(--text-dark); color: var(--kraft-light); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.footer-col-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 24px; color: var(--carton-orange); }
.about-box p { color: #e8c6dd; line-height: 1.8; font-size: 0.95rem; text-align: justify; margin-top: 15px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #e8c6dd; }
.footer-links a:hover { color: var(--carton-orange); padding-right: 8px; }
.footer-slogan { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.footer-slogan-brand { font-size: 1.8rem; font-weight: 900; color: var(--carton-orange); line-height: 1.2; }
.footer-slogan-text { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.sub-footer { background-color: #2d1b3d; padding: 20px 0; color: #e8c6dd; font-size: 0.9rem; text-align: center; }

/* =========================================
   ۷. نوار اپلیکیشنی پایین (موبایل)
========================================= */
.bottom-app-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); border-top: 1px solid var(--kraft-dark); box-shadow: 0 -4px 20px rgba(0,0,0,0.05); z-index: 9999; padding-bottom: env(safe-area-inset-bottom); }
.nav-items { display: flex; justify-content: space-around; padding: 10px 0; }
.b-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-light); font-size: 0.75rem; font-weight: 700; }
.b-nav-item.active { color: var(--carton-orange); }

/* =========================================
   رسپانسیو (تبدیل به وب‌اپلیکیشن در موبایل)
========================================= */
@media (max-width: 1024px) {
    .hero-box, .seo-banner { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
    .seo-list li { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar, .desktop-header { display: none; }
    .mobile-header, .bottom-app-nav { display: block; }
    .hero-box { padding: 40px 20px; border-radius: 16px; }
    .hero-text h1 { font-size: 2.2rem; }
    .seo-banner { padding: 30px 20px; }
    
    .cat-grid, .product-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; scrollbar-width: none; gap: 15px; }
    .cat-grid::-webkit-scrollbar, .product-grid::-webkit-scrollbar { display: none; }
    .cat-item { flex: 0 0 35%; scroll-snap-align: center; }
    .p-card { flex: 0 0 80%; scroll-snap-align: center; }
    
    .features-grid, .footer-grid { grid-template-columns: 1fr; }
    body { padding-bottom: 70px; }
}

/* =========================================
   ۸. سازگاری با صفحات پویای ووکامرس
   (فروشگاه، تک‌محصول، سبد خرید، تسویه‌حساب، حساب کاربری)
========================================= */
.woocommerce-page-wrap { margin: 40px auto; min-height: 50vh; }

/* دکمه‌ها و لینک‌های عمومی ووکامرس */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .single_add_to_cart_button {
    background: var(--carton-orange); color: var(--white); padding: 12px 28px;
    border-radius: 50px; font-weight: 900; font-size: 1rem; border: none; cursor: pointer;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.single_add_to_cart_button:hover { background: var(--carton-orange-hover); color: var(--white); }
.woocommerce a.button.alt, .woocommerce #payment #place_order { background: var(--text-dark); }

/* پیام‌ها و اعلان‌ها */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
    background: var(--white); border: 1px solid var(--kraft-dark); border-right: 4px solid var(--carton-orange);
    border-radius: var(--radius-app); padding: 16px 20px; margin-bottom: 24px; list-style: none;
}
.woocommerce-error { border-right-color: #ef4444; }

/* جدول‌ها (سبد خرید و تسویه‌حساب) */
.woocommerce table.shop_table {
    width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--kraft-dark);
    border-radius: var(--radius-app); overflow: hidden; margin-bottom: 30px;
}
.woocommerce table.shop_table th { background: var(--kraft-light); font-weight: 900; padding: 15px; text-align: right; }
.woocommerce table.shop_table td { padding: 15px; border-top: 1px solid var(--kraft-mid); }
.woocommerce table.shop_table img { width: 60px; border-radius: 10px; }

/* فرم‌ها (تسویه‌حساب و حساب کاربری) */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select,
.woocommerce-page textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--kraft-mid);
    border-radius: 12px; background: var(--kraft-light); outline: none; transition: var(--transition); }
.woocommerce form .form-row input.input-text:focus { border-color: var(--carton-orange); background: var(--white); }
.woocommerce-input-wrapper { display: block; }
.quantity .qty { width: 70px; padding: 10px; border: 2px solid var(--kraft-mid); border-radius: 10px; text-align: center; }

/* =========================================================
   تسویه‌حساب - جعبه فرم به‌شکل پاکت‌نامه (Envelope checkout box)
   فقط در صفحه تسویه‌حساب فعال است (body.envelope-checkout)
   ========================================================= */

/* مخفی‌سازی کامل فیلد کشور (قفل‌شده روی ایران) */
.envelope-checkout .hidden-country-field,
.envelope-checkout p.form-row:has(#billing_country),
.envelope-checkout p.form-row:has(#shipping_country) { display: none !important; }

.envelope-checkout #customer_details { max-width: 640px; margin: 0 auto; }

.envelope-checkout .woocommerce-billing-fields,
.envelope-checkout .woocommerce-shipping-fields__field-wrapper,
.envelope-checkout .woocommerce-billing-fields__field-wrapper {
	position: relative;
	background:
		repeating-linear-gradient(135deg, rgba(213,189,166,0.06) 0 2px, transparent 2px 10px),
		var(--white);
	border: 2px dashed var(--kraft-dark);
	border-radius: 6px 6px var(--radius-app) var(--radius-app);
	box-shadow: var(--shadow-md);
	padding: 56px 28px 30px;
	margin-top: 46px;
	overflow: visible;
}

/* لبه پاکت‌نامه (Flap) - مثلث تزئینی بالای جعبه */
.envelope-checkout .envelope-flap {
	position: absolute;
	top: -46px;
	right: 0;
	left: 0;
	height: 70px;
	background: linear-gradient(160deg, var(--kraft-mid) 0%, var(--white) 100%);
	border: 2px dashed var(--kraft-dark);
	border-bottom: none;
	clip-path: polygon(0% 0%, 100% 0%, 100% 35%, 50% 100%, 0% 35%);
	box-shadow: var(--shadow-sm);
}

/* تمبر تزئینی گوشه جعبه */
.envelope-checkout .envelope-stamp {
	position: absolute;
	top: -16px;
	right: 26px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--white);
	border: 2px dashed var(--carton-orange);
	border-radius: 8px;
	color: var(--carton-orange);
	transform: rotate(6deg);
	box-shadow: var(--shadow-sm);
	z-index: 2;
}

/* عنوان «مشخصات گیرنده» شبیه سرتیتر روی پاکت */
.envelope-checkout .woocommerce-billing-fields > h3 {
	flex: 1 1 100%;
	text-align: center;
	font-size: 1.2rem;
	font-weight: 900;
	color: var(--text-dark);
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 2px dashed var(--kraft-dark);
	position: relative;
}

/* چیدمان فیلدها به‌صورت فلکس، سازگار با نسخه‌های مختلف ووکامرس */
.envelope-checkout .woocommerce-billing-fields,
.envelope-checkout .woocommerce-billing-fields__field-wrapper,
.envelope-checkout .woocommerce-shipping-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 4%;
}

.envelope-checkout .form-row-first,
.envelope-checkout .form-row-last {
	flex: 1 1 46%;
	max-width: 48%;
}

.envelope-checkout .form-row-wide {
	flex: 1 1 100%;
	max-width: 100%;
}

.envelope-checkout .address-full-field textarea,
.envelope-checkout .address-full-field input.input-text {
	min-height: 46px;
}

@media (max-width: 600px) {
	.envelope-checkout .form-row-first,
	.envelope-checkout .form-row-last { flex: 1 1 100%; max-width: 100%; }
	.envelope-checkout .envelope-stamp { right: 16px; }
}

/* =========================================================
   روش‌های ارسال به‌صورت باکس لوگو‌دار (Shipping method cards)
   ========================================================= */

ul#shipping_method {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 0;
	margin: 6px 0 4px;
	list-style: none;
}

ul#shipping_method li {
	position: relative;
	flex: 1 1 130px;
	max-width: 200px;
}

/* رادیوی اصلی مخفی می‌شود ولی از دسترس (فوکوس/کیبورد) خارج نمی‌شود */
ul#shipping_method input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

ul#shipping_method label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	min-height: 118px;
	padding: 18px 10px 14px;
	background: var(--white);
	border: 2px solid var(--kraft-mid);
	border-radius: var(--radius-app);
	cursor: pointer;
	text-align: center;
	transition: var(--transition);
}

ul#shipping_method .shipping-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
}

ul#shipping_method .shipping-card-icon-img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 10px;
}

ul#shipping_method .shipping-card-icon-svg {
	width: 44px;
	height: 44px;
	color: var(--text-light);
}

ul#shipping_method .shipping-card-text {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text-dark);
	line-height: 1.5;
}

/* حالت انتخاب‌شده: فقط تغییر رنگ حاشیه و پس‌زمینه، بدون دایره رادیو */
ul#shipping_method input[type="radio"]:checked + label {
	border-color: var(--carton-orange);
	background: var(--kraft-light);
	box-shadow: var(--shadow-sm);
}

ul#shipping_method input[type="radio"]:checked + label .shipping-card-icon-svg {
	color: var(--carton-orange);
}

ul#shipping_method input[type="radio"]:checked + label .shipping-card-text {
	color: var(--carton-orange-hover);
}

/* حالت فوکوس با کیبورد، برای دسترس‌پذیری */
ul#shipping_method input[type="radio"]:focus-visible + label {
	outline: 2px solid var(--carton-orange);
	outline-offset: 2px;
}

/* اگر فقط یک روش ارسال موجود باشد، ووکامرس به‌جای رادیو از ورودی مخفی استفاده می‌کند؛
   در این حالت چون تنها گزینه است، به‌صورت انتخاب‌شده نمایش داده شود */
ul#shipping_method input[type="hidden"] + label {
	border-color: var(--carton-orange);
	background: var(--kraft-light);
	box-shadow: var(--shadow-sm);
}

ul#shipping_method input[type="hidden"] + label .shipping-card-icon-svg {
	color: var(--carton-orange);
}

ul#shipping_method input[type="hidden"] + label .shipping-card-text {
	color: var(--carton-orange-hover);
}

@media (max-width: 480px) {
	ul#shipping_method li { flex: 1 1 45%; max-width: none; }
}

/* جمع کل سبد خرید */
.cart_totals { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app);
    padding: 25px; max-width: 420px; margin-right: auto; }
.cart_totals h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 20px; }

/* حساب کاربری - تب‌ها */
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 18px; background: var(--white);
    border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); font-weight: 700; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--carton-orange); color: var(--white); border-color: var(--carton-orange); }
.woocommerce-MyAccount-content { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); padding: 30px; }

/* فرم ورود / ثبت‌نام */
.woocommerce-form-login, .woocommerce-form-register { background: var(--white); border: 1px solid var(--kraft-dark);
    border-radius: var(--radius-app); padding: 30px; max-width: 480px; }
.woocommerce-form-row label { display: block; margin-bottom: 8px; font-weight: 700; }

/* صفحه تک‌محصول */
.single-product .product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
.single-product .woocommerce-product-gallery img { border-radius: var(--radius-app); border: 1px solid var(--kraft-dark); }
.single-product .product_title { font-size: 2rem; font-weight: 900; margin-bottom: 15px; }
.single-product p.price { color: var(--carton-orange); font-weight: 900; font-size: 1.6rem; margin-bottom: 20px; }
.single-product .woocommerce-product-details__short-description { color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }

/* صفحه‌بندی آرشیو فروشگاه */
.woocommerce-pagination ul { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--kraft-dark); font-weight: 700; }
.woocommerce-pagination .current { background: var(--carton-orange); color: var(--white); border-color: var(--carton-orange); }

@media (max-width: 768px) {
    .single-product .product { grid-template-columns: 1fr; }
    .cart_totals { max-width: 100%; margin-right: 0; }
}
/* =========================================================
   صفحه سبد خرید - طراحی جدید (کارتی، دو ستونه، شیک و حرفه‌ای)
   ========================================================= */

.cart-page-title { margin-bottom: 25px; }

.cart-page-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: flex-start; }

/* --- ستون آیتم‌های سبد خرید --- */
.cart-items-list { display: flex; flex-direction: column; gap: 16px; }

.cart-item-card {
	display: flex; gap: 18px; background: var(--white); border: 1px solid var(--kraft-dark);
	border-radius: var(--radius-app); padding: 18px; transition: var(--transition);
}
.cart-item-card:hover { box-shadow: var(--shadow-sm); }

.cart-item-thumb { flex-shrink: 0; width: 100px; height: 100px; }
.cart-item-thumb img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; border: 1px solid var(--kraft-mid); }

.cart-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.cart-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cart-item-name a { font-weight: 900; font-size: 1.05rem; color: var(--text-dark); }
.cart-item-name a:hover { color: var(--carton-orange); }

.cart-item-remove { background: none; border: none; cursor: pointer; padding: 0; }
.cart-item-remove .remove {
	display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
	border-radius: 50%; background: var(--kraft-light); color: var(--text-light); font-size: 1.3rem;
	line-height: 1; text-decoration: none; transition: var(--transition);
}
.cart-item-remove .remove:hover { background: #fee2e2; color: #ef4444; }

.cart-item-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }

.cart-item-price { color: var(--text-light); font-size: 0.95rem; }
.cart-item-price ins { color: var(--carton-orange); font-weight: 900; text-decoration: none; }

.cart-item-subtotal { font-weight: 900; color: var(--carton-orange); font-size: 1.1rem; min-width: 90px; text-align: left; }

/* استپر تعداد (+ / -) */
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--kraft-mid); border-radius: 50px; overflow: hidden; background: var(--kraft-light); }
.qty-stepper .qty {
	width: 42px; border: none !important; background: transparent !important; text-align: center;
	font-weight: 900; padding: 8px 0 !important; -moz-appearance: textfield;
}
.qty-stepper .qty::-webkit-outer-spin-button, .qty-stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn {
	width: 34px; height: 34px; border: none; background: transparent; color: var(--text-dark);
	font-size: 1.2rem; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: var(--transition);
}
.qty-btn:hover { background: var(--carton-orange); color: var(--white); }

/* ردیف اقدامات پایین لیست (ادامه خرید / کد تخفیف / به‌روزرسانی) */
.cart-actions-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }

.continue-shopping-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-dark); }
.continue-shopping-link:hover { color: var(--carton-orange); }

.coupon-box { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 360px; }
.coupon-box input#coupon_code { flex: 1; padding: 12px 16px; border: 2px solid var(--kraft-mid); border-radius: 50px; background: var(--kraft-light); outline: none; }
.coupon-box input#coupon_code:focus { border-color: var(--carton-orange); background: var(--white); }
.coupon-apply-btn { border-radius: 50px !important; white-space: nowrap; }

.update-cart-btn { background: var(--white) !important; color: var(--text-dark) !important; border: 2px solid var(--kraft-dark) !important; }
.update-cart-btn.is-dirty { background: var(--carton-orange) !important; color: var(--white) !important; border-color: var(--carton-orange) !important; }

.backorder-note { font-size: 0.8rem; color: var(--carton-orange); margin-top: 4px; }

/* --- ستون خلاصه سفارش (چسبان) --- */
.cart-summary-sticky { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }

.cart-totals-box, .cart-cross-sells {
	background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app);
	padding: 26px; box-shadow: var(--shadow-sm);
}

.cart-totals-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 18px; }

.cart-totals-rows { display: flex; flex-direction: column; }
.cart-totals-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--kraft-mid); font-size: 0.95rem; }
.cart-totals-row:last-child { border-bottom: none; }
.cart-totals-row.cart-discount span:last-child { color: #16a34a; font-weight: 700; }

.cart-total-row { padding-top: 16px; margin-top: 4px; border-top: 2px solid var(--kraft-dark); border-bottom: none !important; }
.cart-total-row span:first-child { font-weight: 900; font-size: 1.05rem; }
.cart-total-row span:last-child { font-weight: 900; font-size: 1.4rem; color: var(--carton-orange); }

.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout a.checkout-button {
	display: flex; align-items: center; justify-content: center; width: 100%;
	padding: 16px 20px !important; font-size: 1.05rem !important; border-radius: 50px !important;
	box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}

.cart-trust-badges { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--kraft-mid); }
.trust-badge { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-light); }
.trust-badge svg { flex-shrink: 0; color: var(--carton-orange); }

/* --- پیشنهاد محصولات مرتبط (Cross-sells) --- */
.cross-sells-scroll {
	display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; cursor: grab;
	scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.cross-sells-scroll:active { cursor: grabbing; }
.cross-sells-scroll .p-card { flex: 0 0 180px; scroll-snap-align: start; }
.cross-sells-scroll::-webkit-scrollbar { height: 6px; }
.cross-sells-scroll::-webkit-scrollbar-thumb { background: var(--kraft-dark); border-radius: 10px; }

/* --- حالت خالی بودن سبد خرید --- */
.cart-empty-state {
	text-align: center; max-width: 480px; margin: 40px auto; padding: 50px 30px;
	background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); box-shadow: var(--shadow-sm);
}
.cart-empty-icon { color: var(--kraft-dark); margin-bottom: 20px; }
.cart-empty-text { color: var(--text-light); margin: 15px 0 25px; line-height: 1.8; }

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
	.cart-page-wrap { grid-template-columns: 1fr; }
	.cart-summary-sticky { position: static; }
}

@media (max-width: 576px) {
	.cart-item-card { flex-wrap: wrap; }
	.cart-item-thumb { width: 80px; height: 80px; }
	.cart-item-thumb img { width: 80px; height: 80px; }
	.cart-item-bottom { justify-content: flex-start; }
	.cart-item-subtotal { text-align: right; }
	.coupon-box { max-width: 100%; }
	.cart-actions-row { flex-direction: column; align-items: stretch; }
	.coupon-box, .update-cart-btn { width: 100%; }
}

/* =========================================================
   حساب کاربری - طراحی جدید (نوار کناری آیکون‌دار + محتوای کارتی)
   ========================================================= */

.myaccount-page-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: flex-start; }

/* --- نوار کناری --- */
.account-nav-card {
	background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app);
	padding: 12px; box-shadow: var(--shadow-sm); position: sticky; top: 20px;
}
.account-nav-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.account-nav-card li a {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
	color: var(--text-dark); font-weight: 700; font-size: 0.95rem; transition: var(--transition);
}
.account-nav-icon { display: flex; color: var(--text-light); flex-shrink: 0; }
.account-nav-label { flex: 1; }
.account-nav-arrow { opacity: 0; transform: translateX(-4px); transition: var(--transition); flex-shrink: 0; }

.account-nav-card li a:hover { background: var(--kraft-light); }
.account-nav-card li a:hover .account-nav-arrow { opacity: 1; transform: translateX(0); }

.account-nav-card li.is-active a {
	background: var(--carton-orange); color: var(--white);
}
.account-nav-card li.is-active .account-nav-icon { color: var(--white); }
.account-nav-card li.is-active .account-nav-arrow { opacity: 1; transform: translateX(0); }

.account-nav-card li.woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--kraft-mid); margin-top: 6px; padding-top: 6px; }
.account-nav-card li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #b91c1c; }
.account-nav-card li.woocommerce-MyAccount-navigation-link--customer-logout .account-nav-icon { color: #b91c1c; }

/* --- داشبورد: هدر خوش‌آمدگویی --- */
.account-welcome-hero {
	display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--kraft-light), var(--white));
	border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); padding: 24px; margin-bottom: 24px;
}
.account-welcome-avatar img { border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--shadow-sm); }
.account-welcome-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.account-welcome-title strong { color: var(--carton-orange); }
.account-welcome-sub { color: var(--text-light); font-size: 0.9rem; line-height: 1.8; }

/* --- داشبورد: کارت‌های دسترسی سریع (آیکون جعبه هدیه) --- */
.account-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.account-quick-card {
	background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app);
	padding: 26px 16px 22px; text-align: center; transition: var(--transition); position: relative; overflow: hidden;
}
.account-quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--carton-orange); }

/* جعبه هدیه: بدنه + دو لبه بالا (مثل درپوش باز جعبه) + روبان عمودی */
.account-quick-icon {
	position: relative;
	width: 56px; height: 50px; margin: 14px auto 16px;
	display: flex; align-items: center; justify-content: center;
	color: var(--carton-orange);
	background:
		linear-gradient(var(--carton-orange) 0 0) center/12px 100% no-repeat,
		linear-gradient(160deg, var(--kraft-mid), var(--kraft-light));
	border: 2px solid var(--kraft-dark);
	border-radius: 6px;
	box-shadow: inset 0 -4px 6px -4px rgba(41, 19, 7, 0.18);
	transition: var(--transition);
}
/* دو لبه‌ی بالای جعبه که مثل درِ باز جعبه هدیه به بیرون خم شدن */
.account-quick-icon::before,
.account-quick-icon::after {
	content: ""; position: absolute; top: -9px; width: 24px; height: 16px;
	background: var(--kraft-dark);
	border-radius: 4px 4px 0 0;
	transition: var(--transition);
}
.account-quick-icon::before { left: -2px; transform: rotate(-22deg); transform-origin: bottom right; }
.account-quick-icon::after  { right: -2px; transform: rotate(22deg); transform-origin: bottom left; }
.account-quick-icon svg { position: relative; z-index: 1; }

.account-quick-card:hover .account-quick-icon {
	background:
		linear-gradient(rgba(255,255,255,0.55) 0 0) center/12px 100% no-repeat,
		linear-gradient(160deg, var(--carton-orange), var(--carton-orange-hover));
	color: var(--white); border-color: var(--carton-orange-hover);
}
.account-quick-card:hover .account-quick-icon::before,
.account-quick-card:hover .account-quick-icon::after { background: var(--carton-orange-hover); }

.account-quick-number { font-weight: 900; font-size: 1.15rem; color: var(--text-dark); margin-bottom: 4px; }
.account-quick-label { font-size: 0.82rem; color: var(--text-light); }

.account-quick-card--highlight { background: var(--text-dark); border-color: var(--text-dark); }
.account-quick-card--highlight .account-quick-icon {
	background:
		linear-gradient(rgba(255,255,255,0.5) 0 0) center/12px 100% no-repeat,
		linear-gradient(160deg, var(--carton-orange), var(--carton-orange-hover));
	color: var(--white); border-color: var(--carton-orange-hover);
}
.account-quick-card--highlight .account-quick-icon::before,
.account-quick-card--highlight .account-quick-icon::after { background: var(--carton-orange-hover); }
.account-quick-card--highlight .account-quick-number,
.account-quick-card--highlight .account-quick-label { color: var(--white); }

/* --- داشبورد: آخرین سفارش‌ها --- */
.account-recent-orders {
	background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); padding: 22px;
}
.account-recent-orders-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.account-see-all { font-size: 0.85rem; font-weight: 700; color: var(--carton-orange); }
.account-order-list { display: flex; flex-direction: column; gap: 8px; }
.account-order-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 14px; border-radius: 12px; background: var(--kraft-light); color: var(--text-dark); transition: var(--transition);
}
.account-order-row:hover { background: var(--kraft-mid); }
.account-order-number { font-weight: 900; }
.account-order-date, .account-order-total { color: var(--text-light); font-size: 0.85rem; }
.account-order-total { font-weight: 900; color: var(--carton-orange); }

/* --- برچسب وضعیت سفارش (رنگ‌بندی بر اساس وضعیت) --- */
.order-status-badge, .account-order-status {
	display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 900;
	background: var(--kraft-mid); color: var(--text-dark);
}
.status-completed, .status-processing { background: #dcfce7; color: #15803d; }
.status-on-hold, .status-pending { background: #fef9c3; color: #a16207; }
.status-cancelled, .status-failed, .status-refunded { background: #fee2e2; color: #b91c1c; }

/* --- صفحه سفارش‌ها: لیست کارتی --- */
.account-order-cards { display: flex; flex-direction: column; gap: 16px; }
.order-card { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); padding: 20px; transition: var(--transition); }
.order-card:hover { box-shadow: var(--shadow-sm); }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.order-card-number { display: block; font-weight: 900; font-size: 1.05rem; }
.order-card-date { display: block; color: var(--text-light); font-size: 0.82rem; margin-top: 2px; }
.order-card-body { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px dashed var(--kraft-mid); border-bottom: 1px dashed var(--kraft-mid); margin-bottom: 14px; color: var(--text-light); font-size: 0.9rem; }
.order-card-total { font-weight: 900; color: var(--carton-orange); font-size: 1.05rem; }
.order-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.order-action-btn { padding: 8px 18px; border-radius: 50px; border: 2px solid var(--kraft-dark); font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.order-action-btn:hover { border-color: var(--carton-orange); color: var(--carton-orange); }
.order-action-view, .order-action-pay { background: var(--carton-orange); color: var(--white); border-color: var(--carton-orange); }
.order-action-view:hover, .order-action-pay:hover { background: var(--carton-orange-hover); color: var(--white); }

.account-orders-empty { text-align: center; padding: 50px 20px; background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); }
.account-orders-empty .cart-empty-icon { color: var(--kraft-dark); margin-bottom: 15px; }
.account-orders-empty p { color: var(--text-light); margin-bottom: 20px; }

/* --- آدرس‌ها --- */
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.woocommerce-Address {
	background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app);
	padding: 22px; position: relative;
}
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.woocommerce-Address-title h3 { font-size: 1.05rem; font-weight: 900; }
.woocommerce-Address-title .edit {
	font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 50px;
	border: 2px solid var(--kraft-dark); color: var(--text-dark);
}
.woocommerce-Address-title .edit:hover { border-color: var(--carton-orange); color: var(--carton-orange); }
.woocommerce-Address address { line-height: 2; color: var(--text-light); font-style: normal; }

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
	.myaccount-page-wrap { grid-template-columns: 1fr; }
	.account-nav-card { position: static; }
	.account-quick-grid { grid-template-columns: repeat(2, 1fr); }
	.woocommerce-Addresses { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
	.account-welcome-hero { flex-direction: column; text-align: center; }
	.account-order-row { flex-direction: column; align-items: flex-start; }
}

/* --- لوگو تصویر --- */
.logo-wrap a,
.logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
}
.site-logo-img,
.logo-wrap img,
.mobile-logo img {
	height: 48px !important;
	width: auto !important;
	max-height: 48px !important;
	max-width: 140px !important;
	display: block;
	object-fit: contain !important;
}
.mobile-logo .site-logo-img,
.mobile-logo img {
	height: 36px !important;
	max-height: 36px !important;
	max-width: 110px !important;
}
.site-logo-img--sm {
	height: 32px !important;
	max-height: 32px !important;
	max-width: 100px !important;
}
.d-header-top {
	padding-top: 10px;
	padding-bottom: 10px;
}
.mobile-top-row {
	min-height: 44px;
}

/* --- صحنه انیمیشنی جعبه هدیه با بادکنک و کانفتی --- */
.gift-box-hero { position: relative; width: 100%; max-width: 340px; height: 340px; margin: 0 auto; }

.hb-box { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); width: 210px; height: 130px; z-index: 3; }
.hb-box-front {
	position: absolute; inset: 0; top: 20px;
	background: linear-gradient(135deg, var(--carton-orange), var(--tamzi-purple));
	border-radius: 10px;
	box-shadow: 0 20px 30px rgba(124, 58, 237, 0.25), inset 0 -10px 15px -8px rgba(0,0,0,0.2);
}
.hb-ribbon-v { position: absolute; top: 0; bottom: 0; right: 50%; transform: translateX(50%); width: 26px; background: var(--tamzi-yellow); }
.hb-ribbon-h { position: absolute; right: 0; left: 0; top: 14px; height: 22px; background: var(--tamzi-yellow); }

.hb-lid {
	position: absolute; top: -6px; width: 108px; height: 34px;
	background: linear-gradient(135deg, var(--carton-orange-hover), var(--tamzi-purple));
	border-radius: 6px;
	box-shadow: 0 8px 14px rgba(0,0,0,0.18);
	animation: hbLidWiggle 3.2s ease-in-out infinite;
}
.hb-lid-left { right: 50%; transform-origin: bottom right; transform: rotate(-18deg) translateX(4px); }
.hb-lid-right { left: 50%; transform-origin: bottom left; transform: rotate(18deg) translateX(-4px); animation-delay: 0.3s; animation-name: hbLidWiggleRight; }

@keyframes hbLidWiggle {
	0%, 100% { transform: rotate(-18deg) translateX(4px); }
	50% { transform: rotate(-28deg) translateX(6px); }
}
@keyframes hbLidWiggleRight {
	0%, 100% { transform: rotate(18deg) translateX(-4px); }
	50% { transform: rotate(28deg) translateX(-6px); }
}

.hb-balloon {
	position: absolute; width: 52px; height: 62px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	animation: hbBalloonFloat 4s ease-in-out infinite; z-index: 4;
}
.hb-balloon-knot { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid; filter: brightness(0.85); border-top-color: inherit; }
.hb-balloon-string { position: absolute; top: 100%; right: 50%; width: 2px; height: 70px; background: var(--kraft-dark); transform-origin: top center; }

.hb-balloon-1 { right: 18%; bottom: 165px; background: var(--carton-orange); color: var(--carton-orange); animation-delay: 0s; }
.hb-balloon-2 { left: 20%; bottom: 190px; background: var(--tamzi-purple); color: var(--tamzi-purple); width: 46px; height: 56px; animation-delay: 0.8s; animation-duration: 4.6s; }
.hb-balloon-3 { right: 38%; bottom: 225px; background: var(--tamzi-blue); color: var(--tamzi-blue); width: 40px; height: 48px; animation-delay: 1.4s; animation-duration: 3.6s; }

@keyframes hbBalloonFloat {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-18px) rotate(2deg); }
}

.hb-star { position: absolute; color: var(--tamzi-yellow); font-size: 1.4rem; animation: hbTwinkle 2.4s ease-in-out infinite; z-index: 2; }
.hb-star-1 { top: 18%; right: 15%; animation-delay: 0.2s; }
.hb-star-2 { top: 35%; left: 12%; font-size: 1.1rem; animation-delay: 1.1s; }
@keyframes hbTwinkle {
	0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
	50% { opacity: 1; transform: scale(1.15) rotate(15deg); }
}

.hb-confetti { position: absolute; width: 10px; height: 10px; z-index: 2; animation: hbConfettiPop 3.5s ease-in-out infinite; }
.hb-c1 { top: 20%; left: 30%; background: var(--carton-orange); border-radius: 2px; animation-delay: 0s; }
.hb-c2 { top: 12%; right: 30%; background: var(--tamzi-blue); border-radius: 50%; animation-delay: 0.5s; }
.hb-c3 { top: 30%; right: 12%; background: var(--tamzi-green); border-radius: 2px; animation-delay: 1s; }
.hb-c4 { top: 10%; left: 45%; background: var(--tamzi-purple); border-radius: 50%; animation-delay: 1.6s; }
.hb-c5 { top: 40%; left: 8%; background: var(--tamzi-yellow); border-radius: 2px; animation-delay: 0.9s; }
.hb-c6 { top: 22%; left: 55%; background: var(--carton-orange-hover); border-radius: 50%; animation-delay: 2.1s; }

@keyframes hbConfettiPop {
	0% { transform: translateY(40px) rotate(0deg); opacity: 0; }
	30% { opacity: 1; }
	100% { transform: translateY(-60px) rotate(220deg); opacity: 0; }
}

@media (max-width: 768px) {
	.gift-box-hero { max-width: 260px; height: 260px; margin: 0 auto; }
	.hb-box { width: 160px; height: 100px; }
	.hb-box-front { top: 16px; }
	.hb-lid { width: 82px; height: 26px; }
	.hb-balloon-1, .hb-balloon-2, .hb-balloon-3 { transform: scale(0.8); }
}

/* --- وبلاگ تمزی --- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 20px; }
.blog-card { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius-app); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; color: var(--text-dark); }
.blog-card:hover { border-color: var(--carton-orange); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img { height: 180px; background: var(--kraft-mid); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--carton-orange); }
.blog-card-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.blog-card-date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; }
.blog-card-title { font-weight: 900; font-size: 1.05rem; margin-bottom: 10px; line-height: 1.6; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; flex: 1; }

@media (max-width: 768px) {
	.blog-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; scrollbar-width: none; gap: 15px; grid-template-columns: unset; }
	.blog-grid::-webkit-scrollbar { display: none; }
	.blog-card { flex: 0 0 80%; scroll-snap-align: center; }
}
