body {
    background: #f7fafc;
    direction: rtl;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.login-box {
    background: #fff;
    max-width: 350px;
    margin: 70px auto;
    padding: 32px 24px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px #0001;
}
.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 26px;
}
.login-box input[type="text"], .login-box input[type="password"] {
    width: 100%;
    padding: 10px 9px;
    margin-bottom: 18px;
    border: 1px solid #dadada;
    border-radius: 7px;
    font-size: 15px;
}
.login-box input[type="submit"] {
    width: 100%;
    background: #2196f3;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    padding: 11px 0;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.login-box input[type="submit"]:hover {
    background: #1976d2;
}
.login-box .register-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: #1976d2;
    font-size: 14px;
}
.login-box .msg {
    background: #fee;
    border: 1px solid #faa;
    color: #d00;
    margin-bottom: 15px;
    padding: 8px 10px;
    text-align: center;
    border-radius: 7px;
    font-size: 14px;
}
body {
  background: #f9fafc;
}

.hero {
  background: linear-gradient(100deg,#0880e8 0%,#057de5 100%);
  color: #fff;
  border-radius: 2rem;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  box-shadow:0 0 30px #058ee811;
}

.iconbox {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px #6699cc18;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: box-shadow .2s;
}
.iconbox:hover {
  box-shadow:0 6px 32px #82bcf75a;
}

.main-action {
  font-size:1.25rem;
  padding: .75rem 2rem;
  border-radius:2rem;
  box-shadow:0 2px 12px #057de527;
}

.navbar {
  box-shadow: 0 1px 8px #057de511;
  transition: background 0.2s;
}

.admin-header-navbar {
  background: #0e2241 !important; /* تیره برای مدیر */
}
.user-header-navbar {
  background: #e3f2fd !important; /* آبی روشن برای کاربران عادی */
}

.admin-header-navbar .navbar-brand,
.admin-header-navbar .nav-link,
.admin-header-navbar .navbar-text {
  color: #ffc107 !important;
}
.admin-header-navbar .main-action,
.admin-header-navbar .btn-outline-primary {
  border-color: #ffc107 !important;
  color: #ffc107 !important;
}
.admin-header-navbar .btn-outline-danger {
  border-color: #fff !important;
  color: #fff !important;
}

.footer {
  font-size:.95rem;
  opacity:.7;
}

@media (max-width: 768px) {
  .hero { padding: 2rem 1rem; }
}
  body {
            background: #f4f6fc;
            margin: 0;
            padding: 0;
            font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
        }
        header {
            background: #3858e9;
            color: #fff;
            padding: 18px 0 8px 0;
            text-align: center;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px #0001;
    direction: rtl;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
        }
        .manager-link {
            float: left;
            margin-left: 30px;
            margin-top: 10px;
            background: #fff;
            color: #3858e9;
            padding: 6px 18px;
            border-radius: 18px;
            text-decoration: none;
            border: 1px solid #3a52b6;
            font-weight: bold;
            transition: background .2s, color .2s;
        }
        .manager-link:hover {
            background: #3858e9;
            color: #fff;
        }
        h1 {
            margin-top: 0px;
            font-size: 2rem;
        }
        .search-filters {
            max-width: 500px;
            margin: 10px auto 25px auto;
            display: flex;
            gap: 10px;
            justify-content: center;
            background: #fff;
            padding: 12px 10px 10px 10px;
            border-radius: 16px;
            box-shadow: 0 2px 8px #3858e91a;
            flex-wrap: wrap;
        }
        .search-filters input[type="text"], 
        .search-filters select {
            padding: 7px 12px;
            border: 1px solid #d0d0e8;
            border-radius: 8px;
            font-size: 1rem;
            min-width: 100px;
            background: #f7f9fd;
        }
        .search-filters button {
            background: #4270ed;
            border: none;
            color: #fff;
            padding: 7px 25px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.2s;
        }
        .search-filters button:hover {
            background: #2b57c3;
        }
        .product-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 22px;
        }
        .product-card {
            background: #fff;
            box-shadow: 0 2px 14px #3858e91a;
            border-radius: 18px;
            border: 1px solid #e2e2ee;
            width: 302px;
            padding: 16px 16px 13px 16px;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: transform .15s;
        }
        .product-card:hover {
            transform: translateY(-7px) scale(1.04);
        }
       .product-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    background: #f0f0f7;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1.5px solid #e8e9ef;
    display: block;
    box-shadow: 0 2px 10px #ccd5ec1a;
    transition: box-shadow 0.2s;
}
.product-card img:hover {
    box-shadow: 0 4px 16px #6571e540;
}

        .product-card strong {
            color: #233556;
            font-size: 1.1em;
        }
        .product-card .price {
            color: #3858e9;
            font-weight: bold;
            margin: 5px 0;
            font-size: 1em;
        }
        .product-card .actions {
            margin-top: 14px;
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        .btn {
            text-decoration: none;
            background: #eee;
            color: #3a52b6;
            padding: 6px 15px;
            border-radius: 22px;
            border: 1px solid #3858e9;
            font-size: .97em;
            font-weight: bold;
            transition: background .2s, color .2s;
            display: inline-block;
        }
        .btn:hover {
            background: #3858e9;
            color: #fff;
        }
        @media (max-width: 700px) {
            .product-list {
                gap: 12px;
            }
            .product-card {
                width: 96vw;
                max-width: 320px;
            }
            .manager-link { display: block; float: none; margin: 0 auto 10px auto; }
            .search-filters { padding: 7px 2px; gap: 5px;}
            header h1 { font-size: 1.2rem; }
        }
    body {
            font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
            background: #f4f6fc;
            margin: 0;
            padding: 0;
            color: #232347;
            direction: rtl;
        }
        .product-container {
            max-width: 420px;
            margin: 32px auto;
            padding: 28px 24px;
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 4px 28px rgba(98, 113, 207, 0.13);
            text-align: center;
        }
        h1 {
            font-size: 1.35rem;
            color: #3858e9;
            margin-bottom: 22px;
        }
        .product-img {
            width: 180px;
            height: 180px;
            object-fit: cover;
            background: #ecf0fa;
            border-radius: 16px;
            border: 1.5px solid #e2e4f1;
            margin-bottom: 18px;
            box-shadow: 0 2px 9px #dbe6f41a;
            transition: box-shadow 0.2s;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
        .product-price {
            color: #32b339;
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 14px;
            margin-top: 5px;
            letter-spacing: 0.5px;
        }
        .product-desc {
            font-size: 1rem;
            margin-bottom: 28px;
            color: #4a506b;
        }
        .btn {
            display: inline-block;
            padding: 9px 18px;
            border-radius: 7px;
            margin: 6px 8px;
            background: #3858e9;
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            letter-spacing: 0.8px;
            border: none;
            transition: background 0.2s;
            box-shadow: 0 1px 6px #3858e94a;
        }
        .btn:hover {
            background: #2a44b6;
            color: #fff;
        }
        .btn.back {
            background: #f3f5ff;
            color: #3858e9;
            border: 1px solid #e0e2ec;
            box-shadow: none;
        }
        .btn.back:hover {
            background: #e4e8fa;
            color: #232347;
        }
        @media (max-width: 600px) {
            .product-container {
                max-width: 99vw;
                padding: 14px 6px;
            }
            .product-img {
                width: 90vw;
                height: 90vw;
                max-width: 98vw;
                max-height: 360px;
            }
        }
            body, * {
  font-family: 'Vazir', Tahoma, Arial, sans-serif !important;

            margin: 0;
            padding: 0;
            color: #232347;
            direction: rtl;
        }
        .basket-container {
            max-width: 600px;
            background: #fff;
            margin: 36px auto;
            padding: 32px 20px 22px 20px;
            border-radius: 16px;
            box-shadow: 0 4px 24px #aab3ec2a;
        }
        h1 {
            text-align: center;
            color: #ffffff;
        }
        table {
            border-collapse: collapse;
            width: 100%;
            margin-bottom: 12px;
            font-size: 1rem;
        }
        th, td {
            padding: 9px 4px;
            text-align: center;
            border-bottom: 1px solid #eaeaf1;
        }
        th {
            background: #f3f6ff;
            color: #232347;
            font-weight: 800;
        }
        tr:last-child td {
            border-bottom: none;
        }
        .qty-btn, .remove-btn {
            background: #e9ecfa;
            color: #3858e9;
            border: none;
            font-size: 1.10rem;
            width: 32px; height: 32px;
            border-radius: 12px;
            margin: 0 6px;
            cursor: pointer;
            transition: background .15s;
        }
        .qty-btn:hover, .remove-btn:hover {
            background: #3858e9;
            color: #fff;
        }
        .qty {
            min-width: 24px;
            display: inline-block;
            font-weight: bold;
        }
        .remove-btn {
            background: #fbe5e7;
            color: #e94457;
            width: 64px;
        }
        .remove-btn:hover {
            background: #e94457;
            color: #fff;
        }
        .basket-total {
            text-align: left;
            padding-top: 9px;
            font-size: 1.15rem;
            color: #145026;
        }
        .checkout-btn {
            display: inline-block;
            background: #32b339;
            color: #fff;
            border-radius: 9px;
            padding: 10px 28px;
            font-size: 1.05rem;
            text-decoration: none;
            margin-top: 10px;
            font-weight: bold;
            transition: background .22s;
        }
        .checkout-btn:hover {
            background: #278c2a;
        }
        .empty {
            text-align: center;
            color: #afafaf;
        }
        .store-link {
            display: inline-block;
            background: #f5f6fa;
            color: #3858e9;
            border-radius: 8px;
            border: 1px solid #dce1fa;
            padding: 7px 18px;
            margin-bottom: 22px;
            font-weight: 500;
            text-decoration: none;
            margin-right: 4px;
            transition: background .16s;
        }
        .store-link:hover {
            background: #e1e5fa;
        }
        @media (max-width: 640px) {
            .basket-container { max-width: 99vw; padding:10px 2vw; }
            table,th,td { font-size: 0.95rem; }
            .checkout-btn { width: 96vw; margin-bottom: 8px; }
        }
        .back-home-btn {
    display: inline-block;
    padding: 12px 28px;
    color: #fff;
    background-color: #4CAF50;
    border-radius: 7px;
    font-size: 17px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(76,175,80,0.05);
    margin: 25px 0 0 0;
}
.back-home-btn:hover {
    background-color: #388e3c;
    box-shadow: 0 3px 18px rgba(76,175,80,0.14);
}


        body {
            font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
            background: #f2f4f8;
            margin: 0;
            padding: 0;
        }
        .box {
            max-width: 500px;
            margin: 40px auto;
            padding: 28px 20px 22px 20px;
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 6px 32px #0001;
        }
        h2 {
            color: #3554a1;
            text-align: center;
            margin-top: 3px;
        }
        form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        label {
                display: contents;
            font-size: 1em;
            margin-bottom: 2px;
            color: #383859;
        }
        input[type="text"], input[type="number"], textarea {
            padding: 8px 10px;
            border: 1px solid #dbe4f1;
            border-radius: 8px;
            font-size: 1rem;
            background: #f7f9fd;
            transition: border 0.3s;
        }
        input[type="file"] {
            background: #f7f9fd;
            border-radius: 8px;
            margin-top: 2px;
            padding: 9px;
            font-size: 0.99em;
        }
        input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
            border-color: #3554a1;
        }
        textarea {
            min-height: 52px;
            resize: vertical;
        }
        input[type="submit"] {
            background: #4270ed;
            border: none;
            padding: 11px 0;
            color: #fff;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.08rem;
            margin-top: 10px;
            transition: background 0.2s;
        }
        input[type="submit"]:hover {
            background: #2b57c3;
        }
        .msg {
            padding: 12px 15px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 9px;
            font-size: 1rem;
        }
        .msg.success {
            background: #e0ffe2;
            color: #218a47;
            border: 1px solid #86dfa4;
        }
        .msg.error {
            background: #ffebeb;
            color: #d82c2c;
            border: 1px solid #f09595;
        }
        small {
            color: #7a819e;
            font-size: 0.89em;
        }
        @media (max-width: 600px) {
            .box {margin: 20px 4px; padding: 12px;}
            input[type="submit"] {font-size: 1.13rem;}
        }
        label[for="category-select"], label[for="category_new"], label:has(select[name="category"]) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.select-category-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

select[name="category"] {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #bbb;
    background: #fafaff;
    font-size: 1rem;
    min-width: 170px;
    transition: border 0.2s;
}

select[name="category"]:focus {
    border-color: #006aff;
    outline: none;
}

input[name="category_new"] {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 1rem;
    background: #fffefc;
    min-width: 120px;
    transition: border 0.2s;
}

input[name="category_new"]:focus {
    border-color: #25a244;
    outline: none;
}

@media (max-width: 600px) {
    .select-category-group {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    select[name="category"], input[name="category_new"] {
        min-width: 0;
        width: 100%;
    }
}
