
/* --- Reset & Variables --- */
:root {
    --bg-dark: #1b1e23;
    --bg-light: #f5f7fa;
    --primary: #0ca68d;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-radius: 16px;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: var(--bg-light);
    margin: 0;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Custom Header --- */
.custom-header {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 24px;
    font-weight: 900;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    font-size: 14px;
    color: #d1d5db;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #fff;
}

.header-search {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 30px;
    border: none;
    background: #2d3139;
    color: #fff;
    font-family: inherit;
}

.header-search i {
    position: absolute;
    right: 15px;
    top: 12px;
    color: #9ca3af;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

/* --- Hero Section --- */
.hero-section {
    margin: 30px auto;
}

.dynamic-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a313c 100%);
    border-radius: var(--border-radius);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex-shrink: 0;
    width: 280px;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
}

.hero-badge {
    background: #e74c3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.hero-publisher {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-excerpt {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.hero-price del {
    font-size: 14px;
    color: #9ca3af;
    margin-right: 8px;
}

.hero-price ins {
    text-decoration: none;
    color: var(--primary);
    background: transparent;
}

@media(max-width: 900px) {
    .dynamic-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-image {
        width: 200px;
    }

    .hero-action {
        flex-direction: column;
    }
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
}

/* --- Section Titles --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary);
    padding-right: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

.view-all {
    color: var(--primary);
    font-size: 11px;
    font-weight: bold;
}

/* --- Kiosk (Products Grid) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #eee;
}

.product-title {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

.product-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
}

/* --- Bento Box Categories --- */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 20px;
    margin-bottom: 50px;
}

.bento-item {
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-item.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.bento-item.top-right {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

.bento-item.bot-mid {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: #e0e7ff;
    color: #3730a3;
}

.bento-item.bot-right {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    background: #ccfbf1;
    color: #115e59;
}

.bento-item.bot-mid::before,
.bento-item.bot-right::before {
    display: none;
}

/* --- Top Publishers --- */
.publishers-wrapper {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.publishers-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.publisher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.publisher-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    background: #fff;
}

.publisher-name {
    font-size: 13px;
    font-weight: bold;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #ddd;
    padding: 60px 0 20px;
    margin-top: 50px;
    padding-top: 20px !important;
}

footer a {
    color: #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.enamad-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.trust-icon {

    background: #fff;
    border-radius: 5px;
    padding: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
}


/* --- Mobile --- */
@media(max-width: 900px) {

    .header-search,
    .header-nav {
        display: none;
    }

    .hero-title {
        font-size: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.top-right,
    .bento-item.bot-mid,
    .bento-item.bot-right {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 150px;
    }
}


/* --- Vendor Tabs (Scrollable) --- */
.pmc-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap !important; /* 🟢 اجبار به یک‌خطی ماندن تب‌ها در وب‌ویو */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 🟢 اسکرول نرم (Momentum) در گوشی‌های لمسی */
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 25px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.pmc-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.pmc-cat-btn {
    flex-shrink: 0 !important;
    padding: 5px 15px !important;
    border-radius: 25px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.pmc-cat-btn:hover {
    background: #e5e7eb;
}

.pmc-cat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(12, 166, 141, 0.2);
}

/* --- Vendors Grid --- */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media(max-width: 900px) {
    .vendors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* --- Vendor Card --- */
.vendor-card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.vendor-img-wrapper {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f9f9f9;
}
.vendor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vendor-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.vendor-info h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: var(--text-dark);
}
.vendor-info h4 a {
    color: inherit;
    text-decoration: none;
}
.vendor-info p {
    margin: 0 0 15px 0;
    font-size: 11px;
    color: var(--text-muted);
}
.vendor-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: var(--primary);
    font-weight: bold;
}
.vendor-btn i {
    background: #e6f6f4;
    padding: 5px;
    border-radius: 50%;
}

/* --- Loader --- */
.pmc-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}