/* -------------------------
   COLOR PALETTES - دو تم رنگی
-------------------------- */
:root {
    --primary: #2d5a4a;
    --primary-light: #4a6b5a;
    --primary-dark: #1e3f34;
    --accent: #FFB347;
    --accent-light: #FFE5B4;
    --accent-dark: #FFA01E;

    --bg-primary: #f7f7f7;
    --bg-secondary: #E6D8C3;
    --bg-card: #ffffff;
    --bg-header: #f7f7f7;
    --bg-footer: #E6D8C3;
    --bg-promo-primary: linear-gradient(145deg, #E6D8C3 0%, #d4b89c 100%);
    --bg-promo-secondary: linear-gradient(145deg, #4a6b5a 0%, #2d5a4a 100%);

    --text-primary: #333333;
    --text-secondary: #4a5a4a;
    --text-light: #666666;
    --text-white: #f0f0f0;
    --text-accent: #FFE5B4;

    --shadow: rgba(45, 90, 74, 0.15);
    --shadow-strong: rgba(45, 90, 74, 0.25);

    --green: var(--primary);
    --bg: var(--bg-primary);
    --bg-secandry: var(--bg-secondary);
    --text-header: var(--primary-light);
    --button: var(--primary);
    --discount: #db5748;
}

body.dark {
    --primary: #6ab04c;
    --primary-light: #8ecf6b;
    --primary-dark: #4a8c5a;
    --accent: #c69a00;
    --accent-light: #f6e58d;
    --accent-dark: #f0932b;

    --bg-primary: #1e2b22;
    --bg-secondary: #2d4a3a;
    --bg-card: #2d3f32;
    --bg-header: #1a2a1f;
    --bg-footer: #2d4a3a;
    --bg-promo-primary: linear-gradient(145deg, #2d4a3a 0%, #1e2b22 100%);
    --bg-promo-secondary: linear-gradient(145deg, #3a5e4a 0%, #2d4a3a 100%);

    --text-primary: #f0f0f0;
    --text-secondary: #d4d4d4;
    --text-light: #a0b8a8;
    --text-white: #ffffff;
    --text-accent: #f9ca24;

    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-strong: rgba(0, 0, 0, 0.5);

    --green: var(--primary);
    --bg: var(--bg-primary);
    --bg-secandry: var(--bg-secondary);
    --text-header: var(--primary-light);
    --button: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f0f0;
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: kalameh, sans-serif;
    overflow: auto;
    height: 100vh;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
    background: #121212;
}

.bi, i[class^="bi-"] {
    font-family: "bootstrap-icons" !important;
}

.mobile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f0f0f0;
    padding: 20px;
    position: relative;
    width: 100%;
}

body.dark .mobile-container {
    background: #121212;
}

.app-container {
    max-width: 480px;
    width: 100%;
    background: var(--bg-primary);
    min-height: 90vh;
    max-height: 95vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 32px;
    -webkit-overflow-scrolling: touch;
}

body.dark .app-container {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.app-container::-webkit-scrollbar {
    width: 4px;
}
.app-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.app-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 10px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-header);
    color: var(--primary);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header.hide {
    transform: translateY(-100%);
}

.header-text h2 {
    font-size: 25px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary);
}

.header-text p {
    font-size: 14px;
    opacity: 0.8;
    color: var(--text-secondary);
    font-weight: 600;
}

body.dark .header-text p {
    color: var(--text-light);
}

.header-icons {
    display: flex;
    gap: 12px;
    font-size: 22px;
}

.icon-note {
    position: relative;
    background-color: var(--primary) !important;
    color: white;
    padding: 6px 10px;
    border-radius: 20%;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.dark .icon-note {
    background-color: var(--accent) !important;
    color: var(--bg-primary);
}

.hamburger-btn {
    color: white;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    transition: background-color 0.3s ease;
}

body.dark .hamburger-btn {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.mini-sidebar {
    position: absolute;
    top: 80px;
    bottom: 80px;
    right: -80px;
    width: 70px;
    background: var(--primary);
    box-shadow: -4px 0 12px var(--shadow);
    padding-top: 40px;
    border-radius: 16px 0 0 16px;
    transition: right 0.35s ease, background-color 0.3s ease;
    z-index: 99999;
}

body.dark .mini-sidebar {
    background: var(--accent);
}

.mini-sidebar.open {
    right: 0;
}

.mini-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-icon {
    padding: 12px;
    border-radius: 14px;
    color: var(--accent-light);
    display: flex;
    justify-content: center;
    font-size: 26px;
    transition: transform 0.25s ease, background-color 0.2s ease;
}

body.dark .mini-icon {
    color: var(--bg-primary);
}

.mini-icon:active {
    transform: scale(0.9);
    background: var(--accent-light);
    color: var(--primary);
}

body.dark .mini-icon:active {
    background: var(--accent-dark);
    color: var(--bg-primary);
}

.promo-box {
    margin: 15px;
    background: var(--bg-promo-primary);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px;
    box-shadow: 0 10px 25px var(--shadow-strong);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px var(--shadow-strong);
}

.promo-box::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.promo-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.promo-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
    text-align: right;
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

body.dark .promo-box h3 {
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.promo-box p {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

body.dark .promo-box p {
    color: var(--text-white);
    opacity: 0.9;
}

.promo-box .promo-btn {
    background: var(--primary);
    color: var(--accent-light);
    border: none;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

body.dark .promo-box .promo-btn {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
}

.promo-box .promo-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

body.dark .promo-box .promo-btn:hover {
    background: var(--accent-dark);
}

.promo-box .promo-img {
    width: 95px;
    transform: translateY(5px) scale(1.02);
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 18px var(--shadow);
    transition: all 0.3s ease;
}

.promo-box .promo-img:hover {
    transform: translateY(0px) scale(1.05);
    border-color: var(--primary);
}

body.dark .promo-box .promo-img:hover {
    border-color: var(--accent);
}

.promo-box-secondary {
    margin: 15px 15px 20px;
    background: var(--bg-promo-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px;
    box-shadow: 0 10px 25px var(--shadow-strong);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-box-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px var(--shadow-strong);
}

.promo-box-secondary::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.promo-box-secondary::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.promo-box-secondary h3 {
    font-size: 18px;
    margin-bottom: 8px;
    text-align: right;
    color: var(--accent-light);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark .promo-box-secondary h3 {
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.promo-box-secondary p {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.promo-box-secondary .promo-btn {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 180, 70, 0.4);
    transition: all 0.3s ease;
}

body.dark .promo-box-secondary .promo-btn {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
}

.promo-box-secondary .promo-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.5);
}

.promo-box-secondary .promo-img {
    width: 95px;
    transform: translateY(5px) scale(1.05);
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.promo-box-secondary .promo-img:hover {
    transform: translateY(0px) scale(1.08);
    border-color: var(--accent);
}

.search-box {
    margin: 15px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px var(--shadow);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-family: kalameh, sans-serif;
    background: transparent;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-light);
}

body.dark .search-box input::placeholder {
    color: #a0b8a8;
}

.categories {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 12px 15px;
    margin-top: 10px;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-item {
    min-width: 80px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 3px 10px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.category-item.active {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: scale(1.05);
}

body.dark .category-item.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.category-item span {
    font-size: 24px;
}

.category-item p {
    font-size: 12px;
    margin-top: 4px;
    color: var(--text-secondary);
}

body.dark .category-item p {
    color: var(--text-light);
}

.category-item[data-id="0"] {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.category-item[data-id="0"] span {
    color: var(--primary) !important;
}

.category-item[data-id="0"].active {
    background: var(--primary);
    color: white !important;
}

.category-item[data-id="0"].active span {
    color: white !important;
}

.category-item[data-id="0"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 15px;
    margin-top: 10px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 3px 12px var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

body.dark .product-card {
    border: 1px solid rgba(106, 176, 76, 0.2);
}

.product-card.sold-out {
    opacity: 0.55;
}

.product-card.sold-out img {
    filter: grayscale(100%);
}

.product-card img {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--primary);
    font-weight: 600;
}

body.dark .product-info h4 {
    color: var(--accent);
}

.product-info p {
    font-size: 11.8px;
    opacity: 0.7;
    line-height: 1.45;
    margin-bottom: 12px;
    flex-grow: 1;
    color: var(--text-secondary);
}

body.dark .product-info p {
    color: var(--text-light);
    opacity: 0.9;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: bold;
    font-size: 15px;
    color: var(--discount);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    flex-direction: column;
}

.farsi-num {
    font-family: KalamehWebFaNum !important;
    color: var(--green);
}

.price-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

body.dark .price-number {
    color: var(--accent);
}

.price-currency {
    font-size: 11px;
    opacity: 0.7;
}

.old-price {
    text-decoration: line-through;
    font-size: 12px;
    opacity: 0.5;
}

.new-price {
    font-size: 17px;
    font-weight: bold;
    color: var(--primary);
}

body.dark .new-price {
    color: var(--accent);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--discount);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 10px;
    z-index: 2;
}

.sold-badge {
    display: inline-block;
    background: #555;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 10px;
    margin: 8px auto 4px auto;
    text-align: center;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--primary);
    border-radius: 10px;
    overflow: hidden;
    height: 38px;
    box-shadow: 0 2px 8px var(--shadow);
}

body.dark .quantity-controls {
    background: var(--accent);
}

.total-box .farsi-num {
    color: var(--bg-primary);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--bg-primary);
    width: 38px;
    height: 38px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.qty-btn:active {
    background: rgba(255,255,255,0.2);
}

.qty {
    max-width: 5px;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.notes-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    display: none;
}

body.dark .notes-badge {
    background: var(--accent-light);
    color: var(--bg-primary);
    font-weight: bold;
}

.notes-badge.show {
    display: block;
}

#notesBadge {
    font-family: KalamehWebFaNum !important;
    font-weight: bold;
}

.notes-drawer {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    box-shadow: -6px 0 12px var(--shadow);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.35s ease;
    z-index: 99999;
    border-radius: 32px;
}

.notes-drawer.open {
    right: 0;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px var(--shadow);
    transition: all 0.2s ease;
}

body.dark .note-item {
    background: white;
    border: 1px solid var(--accent);
}

.note-item:hover {
    background: var(--accent-light);
}

body.dark .note-item:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.delNote {
    background: var(--discount) !important;
    color: white !important;
    border: none !important;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 10px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.delNote:hover {
    background: #c0392b !important;
    transform: scale(1.1);
}

.close-notes-btn {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .close-notes-btn {
    background: var(--accent);
    color: var(--bg-primary);
}

#notesList {
    max-height: calc(100% - 180px);
    overflow-y: auto;
    padding: 10px 0;
}

.total-box {
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 16px;
    border-radius: 14px;
    font-size: 18px;
    text-align: center;
}

body.dark .total-box {
    background: var(--accent);
    color: var(--bg-primary);
}

.order-policy {
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    margin: 20px 0 10px;
    color: var(--text-secondary);
}

.bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-footer);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 12px var(--shadow);
    z-index: 1000;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    transition: background-color 0.3s ease;
}

body.dark .bottom-nav {
    background: var(--bg-secondary);
}

.bottom-nav a {
    position: relative;
    font-size: 22px;
    opacity: 0.5;
    transition: all 0.2s ease;
    padding-top: 8px;
    display: flex;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
}

body.dark .bottom-nav a {
    color: var(--text-white);
}

.bottom-nav a.active {
    opacity: 1;
    color: var(--primary);
    font-size: 26px;
}

body.dark .bottom-nav a.active {
    color: var(--accent);
}

.bottom-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    width: 26px;
    height: 4px;
    background: var(--accent);
    border-radius: 10px;
}

body.dark .bottom-nav a.active::after {
    background: var(--accent-light);
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.6s ease;
    border-radius: 32px;
}

body.dark #preloader {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.loader-box {
    text-align: center;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.gallery-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    width: max-content;
}

.gallery-track img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 20px var(--shadow);
    flex-shrink: 0;
}

.review-card.full {
    margin: 15px 0;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 4px 20px var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.review-avatar-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

body.dark .review-avatar-icon {
    background: var(--accent);
    color: var(--bg-primary);
}

.stars {
    color: #f39c12;
    font-size: 19px;
    letter-spacing: 2px;
}

.review-form-card {
    margin: 25px 15px 15px;
    background: var(--bg-card);
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 8px 25px var(--shadow);
}

.review-form-card input,
.review-form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--bg-secondary);
    font-size: 15px;
    margin-bottom: 12px;
    font-family: kalameh, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.dark .review-form-card input,
body.dark .review-form-card textarea {
    background: var(--bg-secondary);
    color: var(--text-white);
    border: 1px solid var(--accent);
}

.social-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 6px 20px var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.social-big i {
    font-size: 32px;
}

.social-big.instagram { color: #E4405F; }
.social-big.whatsapp { color: #25D366; }
.social-big.telegram { color: #0088cc; }

.social-big:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

body.page-enter:not(.static-page) .header,
body.page-enter:not(.static-page) .promo-box,
body.page-enter:not(.static-page) .promo-box-secondary,
body.page-enter:not(.static-page) .categories,
body.page-enter:not(.static-page) .products,
body.page-enter:not(.static-page) .bottom-nav {
    opacity: 0;
    transform: translateY(20px);
}

.header,
.promo-box,
.promo-box-secondary,
.categories,
.products,
.bottom-nav {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.header { transition-delay: 0.1s; }
.promo-box { transition-delay: 0.2s; }
.categories { transition-delay: 0.3s; }
.promo-box-secondary { transition-delay: 0.4s; }
.products { transition-delay: 0.55s; }
.bottom-nav { transition-delay: 0.7s; }

body.page-enter-active:not(.static-page) .header,
body.page-enter-active:not(.static-page) .promo-box,
body.page-enter-active:not(.static-page) .promo-box-secondary,
body.page-enter-active:not(.static-page) .categories,
body.page-enter-active:not(.static-page) .products,
body.page-enter-active:not(.static-page) .bottom-nav {
    opacity: 1;
    transform: translateY(0);
}

@keyframes vibrate {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.12) rotate(3deg); }
    40% { transform: scale(1.08) rotate(-3deg); }
    60% { transform: scale(1.1) rotate(2deg); }
    80% { transform: scale(1.05) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.icon-note.vibrate,
.quantity-controls .qty-btn.vibrate {
    animation: vibrate 0.35s ease-in-out;
}

.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.back-to-top-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.brands-section {
    margin: 10px 15px;
    overflow: hidden;
}

.brands-section::-webkit-scrollbar {
    display: none;
}

.brands-section > div {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.brand-item {
    min-width: 70px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 10px 8px;
    box-shadow: 0 3px 10px var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-strong);
}

.brand-item.active {
    background: var(--primary);
    color: white;
}

.brand-item.active p {
    color: white;
}

.brand-item.active .brand-placeholder {
    background: white;
}

.brand-item.active .brand-placeholder span {
    color: var(--primary);
}

.brand-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    border: 2px solid var(--primary);
}

.brand-item.active img {
    border-color: white;
}

.brand-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 2px solid var(--primary);
}

.brand-placeholder i {
    font-size: 24px;
    color: var(--primary);
}

.brand-placeholder span {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
}

.brand-item p {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.brand-item:not(:has(img)) p {
    font-size: 13px;
    font-weight: 600;
}

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.product-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 25px;
    z-index: 100001;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    left: 15px;
    top: 15px;
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

body.dark .modal-close {
    background: var(--accent);
    color: var(--bg-primary);
}

.modal-header-content {
    margin-bottom: 15px;
    text-align: center;
}

.modal-header-content h3 {
    font-size: 20px;
    color: var(--accent-light);
    margin: 0;
}

body.dark .modal-header-content h3 {
    color: var(--accent);
}

.modal-image-container {
    text-align: center;
    margin-bottom: 15px;
}

.modal-image-container img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
}

.modal-description {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 14px;
    text-align: justify;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--primary-light);
}

body.dark .modal-description {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--text-white);
}

.modal-description i.fa-star,
.modal-description .bi-star,
.modal-description .bi-star-fill {
    display: none;
}

.modal-description p:has(> i.bi-star) {
    display: none;
}

.share-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-secondary);
}

.share-title {
    text-align: center;
    color: var(--accent-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.share-btn i {
    font-size: 16px;
}

.share-btn.copy-link {
    background: var(--primary);
    color: white;
}

.share-btn.copy-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.telegram:hover {
    background: #006699;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

body.dark .share-btn {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.product-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.9;
    transition: all 0.2s ease;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-info-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

body.dark .product-info-btn {
    background: var(--accent);
    color: var(--bg-primary);
}

.sub-hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero-label {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.hero-title.small {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 300px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.secondary-content {
    padding: 20px;
}

.about-panel {
    margin-bottom: 40px;
}

.about-panel h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.about-panel h2.center {
    text-align: center;
}

.image-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
}

.slider-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

.slider-image {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 20px var(--shadow);
}

.story-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow);
}

.story-text {
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.highlights-section {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-card));
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 2px 8px var(--shadow);
}

.highlight-icon {
    color: var(--accent);
    font-size: 22px;
    min-width: 30px;
}

.highlight-text {
    color: var(--text-primary);
    font-size: 15px;
}

.contact-info {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    color: var(--accent);
    font-size: 22px;
    min-width: 30px;
}

.contact-text {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

.contact-text.ltr {
    direction: ltr;
}

.map-container {
    margin-bottom: 30px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

.map-frame {
    width: 100%;
    height: 250px;
    border: 0;
}

.social-section {
    margin-bottom: 40px;
}

.social-title {
    font-size: 22px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 25px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    color: white;
}

.social-btn.whatsapp {
    background: #25D366;
    color: white;
}

.social-btn.telegram {
    background: #0088cc;
    color: white;
}

.social-btn.bale {
    background: #00b894;
    color: white;
}

.social-btn.bale:hover {
    background: #218838;
}

.text-muted {
    color: var(--text-secondary);
}

.text-muted.center {
    text-align: center;
}

.copyright-footer {
    text-align: center;
    padding: 20px 15px;
    margin: 20px 15px 10px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    font-size: 13px;
    color: var(--text-secondary);
}

.copyright-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 5px;
}

.toast-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100002;
    animation: toastFade 2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid white;
}

@keyframes toastFade {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

@media (max-width: 480px) {
    .mobile-container {
        padding: 0;
        background: var(--bg-primary);
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .app-container {
        max-width: 100%;
        width: 100%;
        min-height: 100dvh;
        height: auto;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        position: relative;
    }

    .main-content {
        flex: 1;
        overflow-y: visible;
        padding-bottom: 30px;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        border-radius: 0;
        background: var(--bg-header);
        box-shadow: 0 2px 10px var(--shadow);
        flex-shrink: 0;
    }

    .bottom-nav {
        position: sticky;
        bottom: 0;
        z-index: 1000;
        border-radius: 0;
        background: var(--bg-footer);
        flex-shrink: 0;
        height: 65px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        direction: rtl;
        padding: 0 15px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .bottom-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-secondary);
        width: 45px;
        height: 45px;
        position: relative;
    }

    .bottom-nav a i {
        font-size: 24px;
    }

    .bottom-nav a.active {
        color: var(--primary);
    }

    .bottom-nav a.active::after {
        content: "";
        position: absolute;
        bottom: 0px;
        width: 20px;
        height: 3px;
        background: var(--accent);
        border-radius: 3px;
    }

    .promo-box,
    .search-box,
    .categories,
    .products,
    .promo-box-secondary {
        margin-left: 10px;
        margin-right: 10px;
    }

    .mini-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1001;
        right: -80px;
        transition: right 0.35s ease;
    }

    .mini-sidebar.open {
        right: 0;
    }

    .notes-drawer {
        position: fixed;
        width: 85%;
        z-index: 1002;
        right: -100%;
        transition: right 0.35s ease;
    }

    .notes-drawer.open {
        right: 0;
    }

    .modal,
    #preloader {
        position: fixed;
        border-radius: 0;
        z-index: 1003;
    }

    body {
        overflow: hidden;
        height: 100vh;
    }

    .header.hide {
        transform: none;
    }

    .back-to-top-btn {
        bottom: 15px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .copyright-footer {
        margin-bottom: 20px;
    }
}
