/* =========================================================
   GRIMMEN CENTER — WHITE + SOFT GREEN
   Clean / calm / responsive theme
========================================================= */

:root {
    --green-900: #244f37;
    --green-800: #2f6546;
    --green-700: #3d7b57;
    --green-600: #4f9569;
    --green-500: #6bb486;
    --green-400: #8bc9a0;
    --green-300: #b7dfc3;
    --green-200: #d8eddf;
    --green-100: #eaf6ee;
    --green-50: #f5fbf7;

    --white: #ffffff;
    --page: #fbfdfb;
    --text: #1f2c24;
    --muted: #66756c;
    --border: #dce9e0;

    --shadow-sm: 0 8px 24px rgba(38, 86, 56, 0.06);
    --shadow-md: 0 16px 45px rgba(38, 86, 56, 0.09);
    --shadow-lg: 0 28px 70px rgba(38, 86, 56, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1220px;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    direction: rtl;
    background: var(--page);
    color: var(--text);
    font-family:
        "Vazirmatn",
        "IRANSansX",
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* G بسیار کم‌رنگ در بک‌گراند کل سایت */
body::before {
    content: "M";
    position: fixed;
    left: -4vw;
    top: 12vh;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    font-family: Arial, sans-serif;
    font-size: min(52vw, 720px);
    font-weight: 900;
    line-height: 1;
    color: rgba(79, 149, 105, 0.035);
    transform: rotate(-8deg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

main,
.topbar,
.header,
.footer,
.messages {
    position: relative;
    z-index: 1;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 84px 0;
}

/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    background: var(--green-900);
    color: var(--white);
    font-size: 13px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-inner p,
.topbar-inner span {
    margin: 0;
}

.topbar-brand {
    font-weight: 800;
    letter-spacing: 1.4px;
}

/* =========================================================
   HEADER / NAV
========================================================= */

.header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(61, 123, 87, 0.10);
    backdrop-filter: blur(14px);
    box-shadow: 0 5px 24px rgba(32, 69, 45, 0.035);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.grimmen-brand {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
}

.brand-mark,
.gm-emblem {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--green-100);
    border: 1px solid var(--green-200);
    color: var(--green-800);
    box-shadow: var(--shadow-sm);
}

.brand-mark {
    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 900;
}

.gm-emblem__m {
    font-size: 25px;
    font-weight: 950;
}

.grimmen-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.grimmen-wordmark,
.brand-logo {
    color: var(--green-900);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 23px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 1.4px;
    white-space: nowrap;
}

.grimmen-wordmark__accent,
.gold {
    color: var(--green-600);
}

.grimmen-subtitle,
.brand-logo-subtitle,
.brand-tagline {
    color: var(--green-600);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2.6px;
    white-space: nowrap;
}

.nav,
.main-nav,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.nav a,
.main-nav a,
.nav-links a {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    position: relative;
    transition: color 0.2s ease;
}

.nav a::after,
.main-nav a::after,
.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--green-500);
    transition: width 0.22s ease;
}

.nav a:hover,
.main-nav a:hover,
.nav-links a:hover {
    color: var(--green-700);
}

.nav a:hover::after,
.main-nav a:hover::after,
.nav-links a:hover::after {
    width: 100%;
}


/* ورود همکاران در منوی اصلی */
.nav .partner-login-nav,
.main-nav .partner-login-nav,
.nav-links .partner-login-nav {
    padding: 8px 14px;
    border: 1px solid var(--green-300);
    border-radius: 999px;
    background: var(--green-50);
    color: var(--green-800);
    font-weight: 900;
}

.nav .partner-login-nav::after,
.main-nav .partner-login-nav::after,
.nav-links .partner-login-nav::after {
    display: none;
}

.nav .partner-login-nav:hover,
.main-nav .partner-login-nav:hover,
.nav-links .partner-login-nav:hover {
    background: var(--green-100);
    border-color: var(--green-400);
    color: var(--green-900);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-link {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    color: var(--green-900);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    transition: 0.2s ease;
}

.cart-link:hover {
    border-color: var(--green-300);
    background: var(--green-50);
    transform: translateY(-1px);
}

.cart-link__icon {
    display: inline-flex;
}

.cart-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--green-600);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--green-900);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

/* =========================================================
   GENERIC BUTTONS
========================================================= */

.button,
.button-gold,
.main-button,
.checkout-button,
.cart-checkout-button {
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid var(--green-600);
    border-radius: 13px;
    background: var(--green-600);
    color: var(--white);
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(79, 149, 105, 0.18);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover,
.button-gold:hover,
.main-button:hover,
.checkout-button:hover,
.cart-checkout-button:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(79, 149, 105, 0.22);
}

.button-outline {
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid var(--green-300);
    border-radius: 13px;
    background: var(--white);
    color: var(--green-800);
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.button-outline:hover {
    background: var(--green-100);
    border-color: var(--green-400);
}

/* =========================================================
   HOME HERO
========================================================= */

.home-hero {
    position: relative;
    width: min(calc(100% - 32px), 1320px);
    margin: 28px auto 0;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(234, 246, 238, 0.95), rgba(255, 255, 255, 0.97));
    box-shadow: var(--shadow-md);
}

/* G سبز کمرنگ داخل هیرو */
.home-hero::after {
    content: "M";
    position: absolute;
    right: -38px;
    bottom: -150px;
    z-index: 0;
    pointer-events: none;
    font-family: Arial, sans-serif;
    font-size: 500px;
    font-weight: 900;
    line-height: 1;
    color: rgba(79, 149, 105, 0.055);
}

.home-hero__content,
.home-hero__image {
    position: relative;
    z-index: 1;
}

.home-hero__content {
    display: grid;
    place-items: center;
    padding: 64px;
}

.home-hero__content-inner {
    max-width: 560px;
}

.home-hero__eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--green-700);
    font-size: 14px;
    font-weight: 900;
}

.home-hero__eyebrow::before,
.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--green-400);
    border-radius: 999px;
}

.home-hero__title {
    margin: 0;
    color: var(--green-900);
    font-size: clamp(38px, 5vw, 67px);
    line-height: 1.25;
    letter-spacing: -1.8px;
}

.home-hero__title span {
    color: var(--green-600);
}

.home-hero__description {
    max-width: 530px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
}

.home-hero__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero__image {
    min-height: 560px;
    padding: 22px 22px 22px 0;
}

.home-hero__image img {
    width: 100%;
    height: 100%;
    min-height: 516px;
    display: block;
    object-fit: cover;
    border-radius: 24px;
}

/* =========================================================
   BENEFITS
========================================================= */

.benefits {
    padding: 28px 0 78px;
}

.benefits .container,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.benefits article,
.benefit-card {
    min-height: 160px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

.benefits article:hover,
.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-300);
    box-shadow: var(--shadow-md);
}

.benefits h3 {
    margin: 12px 0 6px;
    color: var(--green-900);
}

.benefits p {
    margin: 0;
    color: var(--muted);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 21px;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading,
.product-section-heading {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading > span,
.product-section-heading > span {
    color: var(--green-600);
    font-size: 14px;
    font-weight: 900;
}

.section-heading h1,
.section-heading h2,
.product-section-heading h1,
.product-section-heading h2 {
    margin: 7px 0 8px;
    color: var(--green-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.35;
}

.section-heading p,
.product-section-heading p {
    margin: 0;
    color: var(--muted);
}

/* =========================================================
   PRODUCTS
========================================================= */

.products-section {
    position: relative;
    padding: 86px 0;
    background:
        linear-gradient(180deg, rgba(245, 251, 247, 0.82), rgba(251, 253, 251, 0.92));
    border-top: 1px solid rgba(61, 123, 87, 0.06);
    border-bottom: 1px solid rgba(61, 123, 87, 0.06);
}

.products-background {
    display: none;
}

.catalog-search {
    max-width: 840px;
    margin: 0 auto 34px;
    display: flex;
    gap: 10px;
}

.catalog-search input,
.catalog-search input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    padding: 0 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    outline: none;
    box-shadow: 0 7px 24px rgba(38, 86, 56, 0.04);
    transition: 0.2s ease;
}

.catalog-search input:focus,
.catalog-search input[type="search"]:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 4px rgba(107, 180, 134, 0.12);
}

.catalog-search input::placeholder {
    color: #8b9990;
}

.catalog-search button,
.catalog-search a {
    min-width: 112px;
    border: 1px solid var(--green-600);
    border-radius: 14px;
    background: var(--green-600);
    color: var(--white);
    font-weight: 850;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-300);
    box-shadow: var(--shadow-md);
}

.product-badge,
.sale-label {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    border: 1px solid var(--green-200);
    font-size: 12px;
    font-weight: 900;
}

.product-image,
.product-image-box {
    position: relative;
    height: 310px;
    padding: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, #ffffff 0, var(--green-50) 100%);
    border-bottom: 1px solid var(--border);
}

.product-image img,
.product-image-box img,
.product-image-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image-box img,
.product-image-link:hover img {
    transform: scale(1.035);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 1px;
}

.product-body,
.product-content,
.related-product-body {
    padding: 20px;
    background: var(--white);
}

.category,
.product-category,
.product-detail-category {
    color: var(--green-600);
    font-size: 13px;
    font-weight: 850;
}

.product-card h3 {
    margin: 7px 0 12px;
    color: var(--green-900);
    font-size: 19px;
    line-height: 1.75;
}

.product-title-link,
.product-card__title-link {
    color: var(--green-900);
}

.product-title-link:hover,
.product-card__title-link:hover {
    color: var(--green-600);
}

.product-info,
.product-meta {
    display: grid;
    gap: 3px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 13px;
}

.product-info strong,
.product-meta strong {
    color: var(--text);
}

.product-price,
.new-price,
.wholesale-price,
.product-detail-price {
    margin-top: 15px;
    color: var(--green-800);
    font-size: 23px;
    font-weight: 950;
}

.old-price {
    margin-inline-start: 8px;
    color: #98a49c;
    text-decoration: line-through;
    font-size: 13px;
}

.add-form,
.product-detail-cart-form {
    margin-top: 17px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 9px;
}

.add-form input[type="number"],
.product-detail-quantity {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 8px;
    border: 1px solid var(--green-200);
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-900);
    text-align: center;
    font-weight: 900;
    outline: none;
}

.add-form input[type="number"]:focus,
.product-detail-quantity:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(107, 180, 134, 0.12);
}

.add-form button,
.product-card .add-cart {
    min-height: 46px;
    border: 1px solid var(--green-600);
    border-radius: 12px;
    background: var(--green-600);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.add-form button:hover,
.product-card .add-cart:hover {
    background: var(--green-700);
    border-color: var(--green-700);
}

.out-of-stock {
    width: 100%;
    min-height: 46px;
    margin-top: 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f3f5f3;
    color: #8b978f;
    font-weight: 800;
}

.products-more {
    margin-top: 34px;
    text-align: center;
}

/* =========================================================
   PRODUCT LIST PAGE
========================================================= */

.products-page {
    padding: 64px 0 90px;
}

.products-page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: linear-gradient(135deg, var(--green-100), var(--white));
}

.products-page-hero::before {
    content: "M";
    position: absolute;
    left: 18px;
    top: -84px;
    color: rgba(79, 149, 105, 0.07);
    font-family: Arial, sans-serif;
    font-size: 270px;
    line-height: 1;
    font-weight: 900;
}

.products-page-hero > * {
    position: relative;
    z-index: 1;
}

.products-page-hero h1 {
    margin: 0 0 8px;
    color: var(--green-900);
    font-size: clamp(32px, 4.5vw, 52px);
}

.products-page-hero p {
    margin: 0;
    color: var(--muted);
}

/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 88px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 34px;
    align-items: center;
}

.about-logo-card,
.about-image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        radial-gradient(circle at center, rgba(107, 180, 134, 0.16), transparent 63%),
        var(--green-50);
}

.about-logo-card::before {
    content: "M";
    color: rgba(79, 149, 105, 0.16);
    font-family: Arial, sans-serif;
    font-size: 250px;
    line-height: 1;
    font-weight: 900;
}

.about-m-logo {
    display: none;
}

.about-content h2 {
    margin: 8px 0 14px;
    color: var(--green-900);
    font-size: clamp(30px, 4vw, 45px);
}

.about-content p,
.about-content li {
    color: var(--muted);
}

.about-content ul {
    padding-right: 19px;
}

/* =========================================================
   FORMS / GENERIC PAGE CARDS
========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 4px rgba(107, 180, 134, 0.11);
}

.page-card,
.checkout-page,
.order-success {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.page-hero {
    background: linear-gradient(135deg, var(--green-100), var(--white));
    border-bottom: 1px solid var(--border);
}

/* =========================================================
   MESSAGES
========================================================= */

.messages {
    margin-top: 16px;
}

.message,
.alert {
    margin-bottom: 10px;
    padding: 12px 15px;
    border: 1px solid var(--green-200);
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-900);
}

/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail-page {
    padding: 56px 0 88px;
}

.product-breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.product-detail-gallery,
.product-detail-info {
    min-width: 0;
}

.product-main-image {
    height: 520px;
    padding: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 78px;
    height: 78px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: var(--green-400);
}

.product-detail-info {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.product-detail-info h1 {
    margin: 7px 0 10px;
    color: var(--green-900);
}

.product-detail-description,
.product-detail-code {
    color: var(--muted);
}

.product-stock--available {
    color: var(--green-700);
    font-weight: 900;
}

.product-stock--unavailable {
    color: #9a4f4f;
    font-weight: 900;
}

.product-specifications-section,
.related-products-section {
    margin-top: 48px;
}

.product-specifications-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.product-specification-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
}

.product-specification-row:last-child {
    border-bottom: 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--white);
}

.related-product-image {
    height: 200px;
    padding: 12px;
    background: var(--green-50);
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
   CART
========================================================= */

.cart-page {
    padding: 54px 0 88px;
}

.cart-page-hero {
    margin-bottom: 22px;
}

.cart-page-hero__inner,
.cart-page-layout {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.cart-page-hero__inner {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--green-100), var(--white));
}

.cart-page-hero__eyebrow {
    color: var(--green-600);
    font-weight: 900;
}

.cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.cart-items-panel,
.cart-order-summary {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cart-items-panel {
    padding: 20px;
}

.cart-order-summary {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.cart-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item__image {
    width: 130px;
    height: 110px;
    padding: 8px;
    border-radius: 14px;
    background: var(--green-50);
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item__category,
.cart-item__meta {
    color: var(--muted);
}

.cart-quantity-form__controls {
    display: flex;
    gap: 7px;
    align-items: center;
}

.cart-quantity-form input[type="number"] {
    width: 74px;
    height: 40px;
    padding: 0 7px;
    text-align: center;
}

.cart-remove-form button,
.cart-clear-form button {
    border: 1px solid #eadfdf;
    border-radius: 10px;
    background: #fffafa;
    color: #8f4b4b;
    cursor: pointer;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    color: var(--muted);
}

.cart-summary-total {
    color: var(--green-900);
    font-weight: 950;
    font-size: 19px;
}

.cart-summary-row--discount {
    color: var(--green-700);
}

.cart-coupon-form {
    display: flex;
    gap: 7px;
    margin: 14px 0;
}

.cart-coupon-form input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
}

.cart-coupon-form button {
    border: 1px solid var(--green-300);
    border-radius: 11px;
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 850;
    cursor: pointer;
}

/* =========================================================
   WHOLESALE / COOPERATION — force white + soft green
   همچنین استایل داخلی نسخه قبلی را Override می‌کند
========================================================= */

.wholesale-shop-page,
.wholesale-page,
.wholesale-products,
.wholesale-theme {
    background: var(--page) !important;
    color: var(--text) !important;
}

.wholesale-shop-header {
    background: linear-gradient(135deg, var(--green-100), var(--white)) !important;
    color: var(--green-900) !important;
    border: 1px solid var(--green-200) !important;
    box-shadow: var(--shadow-sm) !important;
}

.wholesale-shop-header h1,
.wholesale-shop-header p,
.wholesale-shop-header a {
    color: var(--green-900) !important;
}

.wholesale-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: 20px !important;
}

.wholesale-product-card,
.wholesale-card {
    padding: 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    background: var(--white) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow-sm) !important;
}

.wholesale-product-card h1,
.wholesale-product-card h2,
.wholesale-product-card h3,
.wholesale-product-card p,
.wholesale-product-card span,
.wholesale-product-card strong,
.wholesale-product-card a,
.wholesale-card h1,
.wholesale-card h2,
.wholesale-card h3,
.wholesale-card p,
.wholesale-card span,
.wholesale-card strong,
.wholesale-card a {
    color: var(--text) !important;
}

.wholesale-product-card h2,
.wholesale-product-card h3,
.wholesale-card h2,
.wholesale-card h3 {
    color: var(--green-900) !important;
}

.wholesale-product-image {
    background: var(--green-50) !important;
    border: 1px solid var(--border) !important;
}

.wholesale-price {
    color: var(--green-800) !important;
}

.wholesale-min-order,
.minimum-order,
.min-order {
    color: var(--muted) !important;
}

.wholesale-quantity,
.wholesale-product-card input[type="number"] {
    background: var(--green-50) !important;
    color: var(--green-900) !important;
    border: 1px solid var(--green-300) !important;
}

.wholesale-add-button,
.wholesale-product-card button,
.wholesale-card button {
    background: var(--green-600) !important;
    color: var(--white) !important;
    border: 1px solid var(--green-600) !important;
}

.wholesale-add-button:hover,
.wholesale-product-card button:hover,
.wholesale-card button:hover {
    background: var(--green-700) !important;
    color: var(--white) !important;
}

/* =========================================================
   FOOTER
========================================================= */

.footer,
.site-footer {
    position: relative;
    padding: 56px 0 22px;
    background: var(--green-50);
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 34px;
}

.footer h3 {
    margin: 0 0 12px;
    color: var(--green-900);
}

.footer p {
    margin: 5px 0;
}

.footer a {
    display: block;
    width: fit-content;
    margin: 7px 0;
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--green-700);
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    text-align: center;
    color: #7c8a81;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state,
.cart-empty-state,
.full-width {
    padding: 36px;
    text-align: center;
    border: 1px dashed var(--green-300);
    border-radius: 18px;
    background: var(--green-50);
    color: var(--muted);
}

.full-width {
    grid-column: 1 / -1;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .home-hero {
        grid-template-columns: 1fr 0.9fr;
    }

    .home-hero__content {
        padding: 44px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-order-summary {
        position: static;
    }
}

@media (max-width: 850px) {
    .topbar-brand {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .nav,
    .main-nav,
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 16px;
        left: 16px;
        display: none;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--white);
        box-shadow: var(--shadow-md);
    }

    .nav.nav-open,
    .main-nav.nav-open,
    .nav-links.nav-open {
        display: flex;
    }

    .nav a,
    .main-nav a,
    .nav-links a {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .nav a:hover,
    .main-nav a:hover,
    .nav-links a:hover {
        background: var(--green-50);
    }

    .nav a::after,
    .main-nav a::after,
    .nav-links a::after {
        display: none;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero__content {
        order: 1;
        padding: 42px 28px;
    }

    .home-hero__image {
        order: 2;
        min-height: 380px;
        padding: 0 22px 22px;
    }

    .home-hero__image img {
        min-height: 360px;
    }

    .benefits .container,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .about-logo-card,
    .about-image {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 22px), var(--container));
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar-support {
        display: none;
    }

    .header-inner {
        min-height: 68px;
        gap: 10px;
    }

    .brand-mark,
    .gm-emblem {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .grimmen-wordmark,
    .brand-logo {
        font-size: 18px;
    }

    .grimmen-subtitle,
    .brand-logo-subtitle,
    .brand-tagline {
        letter-spacing: 1.6px;
    }

    .cart-link__text {
        display: none;
    }

    .cart-link {
        width: 44px;
        padding: 0;
        justify-content: center;
        position: relative;
    }

    .cart-badge {
        position: absolute;
        top: -6px;
        left: -6px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        font-size: 10px;
    }

    .home-hero {
        width: calc(100% - 18px);
        margin-top: 16px;
        border-radius: 22px;
    }

    .home-hero__content {
        padding: 34px 20px;
    }

    .home-hero__title {
        font-size: 38px;
    }

    .home-hero__description {
        font-size: 14px;
    }

    .home-hero__actions {
        display: grid;
    }

    .home-hero__actions .button,
    .home-hero__actions .button-outline {
        width: 100%;
    }

    .home-hero__image {
        min-height: 290px;
        padding: 0 12px 12px;
    }

    .home-hero__image img {
        min-height: 280px;
        border-radius: 16px;
    }

    .section {
        padding: 58px 0;
    }

    .products-section {
        padding: 62px 0;
    }

    .catalog-search {
        display: grid;
    }

    .catalog-search button,
    .catalog-search a {
        min-height: 48px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image,
    .product-image-box {
        height: 290px;
    }

    .products-page-hero {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-main-image {
        height: 390px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .product-specification-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;
    }

    .cart-item__actions,
    .cart-item__total {
        grid-column: 1 / -1;
    }

    .cart-item__image {
        width: 90px;
        height: 90px;
    }
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.designer-instagram {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 10px 8px 16px;
    border-radius: 50px;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(12px);

    transition: 0.3s ease;
}

.designer-label {
    font-size: 10px;
    letter-spacing: 1.4px;
    opacity: 0.55;
}

.designer-handle {
    padding: 9px 15px;
    border-radius: 50px;

    font-weight: 800;
    direction: ltr;

    color: #fff;

    background: linear-gradient(
        135deg,
        #833ab4,
        #fd1d1d,
        #fcb045
    );

    box-shadow: 0 4px 15px rgba(253, 29, 29, 0.25);
}

.designer-instagram:hover {
    transform: translateY(-3px);

    border-color: rgba(255, 255, 255, 0.25);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.designer-instagram:hover .designer-handle {
    box-shadow: 0 6px 25px rgba(253, 29, 29, 0.4);
}

@media (max-width: 600px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .designer-label {
        display: none;
    }
}