@font-face {
    font-family: 'Yekan';
    src: url('https://tizhoushan.ir/fonts/Yekan.eot');
    src: url('https://tizhoushan.ir/fonts/Yekan.eot?#iefix') format('embedded-opentype'),
         url('https://tizhoushan.ir/fonts/Yekan.woff2') format('woff2'),
         url('https://tizhoushan.ir/fonts/Yekan.woff') format('woff'),
         url('https://tizhoushan.ir/fonts/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #4B7BEC;
    --secondary-color: #F9BE25;
    --header-bg: #25348e;
    --text-color: #333;
    --secondary-text: #757575;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yekan', Tahoma, sans-serif;
    color: var(--text-color);
    background: #fff;
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: linear-gradient(to left, #25348e, #5455c5);
    color: #fff;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 42px;
}

.logo-area h1 {
    font-size: 1.15rem;
    font-weight: normal;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: 'Yekan', Tahoma, sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #3a6ad4;
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #333;
}

.btn-secondary:hover {
    background: #e5ab1a;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--header-bg);
    color: var(--header-bg);
}

.btn-outline:hover {
    background: rgba(37, 52, 142, 0.08);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #25348e 0%, #4B7BEC 100%);
    color: #fff;
    padding: 48px 0;
    text-align: center;
    margin-bottom: 32px;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: normal;
}

.hero p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards grid */
.shop-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0 48px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-img {
    height: 180px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: normal;
    color: var(--header-bg);
}

.card-body p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.price {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Forms */
.form-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Yekan', Tahoma, sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 123, 236, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-info    { background: #d1ecf1; color: #0c5460; }

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table.data-table th,
table.data-table td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

table.data-table th {
    background: var(--header-bg);
    color: #fff;
    font-weight: normal;
}

table.data-table tr:hover td {
    background: var(--light-bg);
}

/* Panel layout */
.panel-layout {
    display: flex;
    gap: 24px;
    padding: 24px 0 48px;
    min-height: calc(100vh - 120px);
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 0;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-right: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--light-bg);
    border-right-color: var(--primary-color);
    color: var(--primary-color);
}

.panel-content {
    flex: 1;
    min-width: 0;
}

.page-title {
    font-size: 1.4rem;
    color: var(--header-bg);
    margin-bottom: 20px;
    font-weight: normal;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-card .num {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-card .lbl {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 24px 0;
}

.product-gallery {
    background: var(--light-bg);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 400px;
}

.thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb-list img.active {
    border-color: var(--primary-color);
}

/* Shop header */
.shop-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.shop-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Login */
.login-wrap {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 16px;
}

.login-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.login-box h2 {
    text-align: center;
    color: var(--header-bg);
    margin-bottom: 24px;
    font-weight: normal;
}

/* Footer */
.site-footer {
    background: var(--header-bg);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 24px 0;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Image preview */
.img-preview {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
    background: var(--light-bg);
}

/* Approval compare */
.compare-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.compare-item {
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
}

.compare-item h4 {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 6px;
    font-weight: normal;
}

.compare-item.new {
    border: 2px solid var(--warning);
}

.action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--secondary-text);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
    margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .panel-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 8px;
    }

    .sidebar a {
        white-space: nowrap;
        border-right: none;
        border-bottom: 3px solid transparent;
        padding: 10px 16px;
    }

    .sidebar a.active {
        border-bottom-color: var(--primary-color);
        border-right-color: transparent;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .compare-box {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .shop-header {
        flex-direction: column;
        text-align: center;
    }

    .header-inner {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
    }
}

/* Logo upload guide */
.logo-guide {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
}

.logo-guide-text ul {
    margin: 8px 20px 12px 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.logo-guide-text li {
    margin-bottom: 4px;
}

.logo-guide-note {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-top: 8px;
}

.logo-guide-preview {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.logo-preview-item {
    text-align: center;
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.logo-preview-item > span {
    display: block;
    margin-bottom: 8px;
}

.logo-preview-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin: 0 auto 6px;
}

.logo-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-preview-card {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.logo-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-preview-placeholder {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

/* Category tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .logo-guide {
        grid-template-columns: 1fr;
    }

    .logo-guide-preview {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .shop-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
}
