html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* تصميم بطاقات المنتجات */

.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    }

    .product-card .card-img-top {
        width: 100%;
        height: 220px;
        object-fit: contain;
        background-color: #f8f9fa;
        padding: 12px;
    }

    .product-card .card-title {
        font-size: 1rem;
        font-weight: 700;
    }

    .product-card .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .product-card .btn {
        border-radius: 10px;
        font-weight: 600;
    }

/* تحسين العرض على الهاتف */

@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 150px;
        padding: 8px;
    }

    .product-card .card-body {
        padding: 10px;
    }

    .product-card .card-title {
        font-size: 0.9rem;
    }

    .product-card .btn {
        font-size: 0.8rem;
        padding: 9px 5px;
    }
}


/* تحسين صفحة سلة المشتريات */

.cart-table {
    min-width: 620px;
}

    .cart-table th,
    .cart-table td {
        text-align: center;
        vertical-align: middle;
    }

.cart-quantity {
    white-space: nowrap;
}

    .cart-quantity .btn {
        min-width: 34px;
        min-height: 34px;
        border-radius: 8px;
    }

.cart-table .btn-outline-danger {
    white-space: nowrap;
}

/* تحسين العرض على الهواتف */

@media (max-width: 576px) {
    .cart-table {
        font-size: 0.85rem;
    }

        .cart-table th,
        .cart-table td {
            padding: 10px 8px;
        }

    .cart-quantity .btn {
        min-width: 32px;
        min-height: 32px;
    }
}


/* تصميم سلة المشتريات */

.cart-mobile-card {
    border-radius: 16px;
    overflow: hidden;
}

.cart-product-image {
    width: 85px;
    height: 85px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    flex-shrink: 0;
}

.cart-mobile-card .btn {
    min-width: 38px;
    border-radius: 9px;
}

.cart-mobile-card form {
    margin: 0;
}

.cart-summary {
    border-radius: 16px;
}

    .cart-summary .btn-success {
        border-radius: 10px;
        font-weight: 600;
    }

@media (max-width: 576px) {
    .cart-product-image {
        width: 75px;
        height: 75px;
    }

    .cart-mobile-card .card-body {
        padding: 14px;
    }

    .cart-summary .card-body {
        padding: 18px !important;
    }
}


/* صفحة إتمام الطلب */

.checkout-card {
    border-radius: 18px;
    overflow: hidden;
}

    .checkout-card .card-body {
        padding: 30px !important;
    }

.checkout-input {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
}

    .checkout-input:focus {
        border-color: #198754;
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12);
    }

.checkout-submit {
    min-height: 52px;
    border-radius: 12px;
    font-weight: 700;
}

.checkout-card .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

/* تحسين الهاتف */

@media (max-width: 576px) {
    .checkout-card .card-body {
        padding: 18px !important;
    }

    .checkout-input {
        font-size: 16px;
    }

    .checkout-submit {
        min-height: 54px;
    }
}


/* عنوان التوصيل */

textarea.checkout-input {
    min-height: 110px;
    resize: vertical;
    line-height: 1.7;
}

    textarea.checkout-input::placeholder {
        color: #868e96;
        font-size: 0.9rem;
    }

@media (max-width: 576px) {
    textarea.checkout-input {
        min-height: 120px;
        font-size: 16px;
    }
}

/* بطاقات الطلبات على الهاتف */

.admin-order-card {
    border-radius: 16px;
    overflow: hidden;
}

    .admin-order-card .card-body {
        padding: 18px;
    }

    .admin-order-card .badge {
        font-size: 0.8rem;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .admin-order-card .btn {
        border-radius: 10px;
        min-height: 44px;
        font-weight: 600;
    }

    .admin-order-card a[href^="tel:"] {
        text-decoration: none;
    }

@media (max-width: 576px) {
    .admin-order-card {
        font-size: 0.92rem;
    }
}



/* صفحة تفاصيل الطلب */

.order-details-card,
.order-product-card {
    border-radius: 16px;
    overflow: hidden;
}

    .order-details-card .card-body {
        padding: 22px;
    }

.order-address {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.order-details-card .btn {
    min-height: 44px;
    border-radius: 10px;
}

.order-details-card .form-select {
    min-height: 44px;
}

@media (max-width: 576px) {
    .order-details-card .card-body {
        padding: 16px;
    }

    .order-product-card .card-body {
        padding: 16px;
    }
}

/* بطاقات إحصائيات المبيعات */

.sales-stat-card {
    border-radius: 16px;
    transition: transform 0.2s ease;
}

    .sales-stat-card:hover {
        transform: translateY(-3px);
    }

    .sales-stat-card h3 {
        font-size: 1.6rem;
    }

@media (max-width: 576px) {
    .sales-stat-card h3 {
        font-size: 1.35rem;
    }
}


/* إحصائيات المبيعات حسب الفترة */

.sales-period-card {
    border-radius: 16px;
}

    .sales-period-card .btn-group .btn {
        min-height: 44px;
    }

    .sales-period-card h3 {
        font-size: 1.6rem;
    }

@media (max-width: 576px) {

    .sales-period-card h3 {
        font-size: 1.35rem;
    }

    .sales-period-card .btn-group .btn {
        font-size: 0.85rem;
        padding: 10px 5px;
    }
}

/* ===== واجهة متجر المواد الغذائية ===== */

.grocery-home {
    padding-bottom: 35px;
}

/* الترحيب */

.grocery-hero {
    background: linear-gradient(135deg, #082B73, #0875E1);
    color: white;
    border-radius: 22px;
    padding: 48px 38px;
}

    .grocery-hero h1 {
        font-size: clamp(1.8rem, 4vw, 3rem);
        line-height: 1.5;
    }

.grocery-hero-accent {
    color: #fde68a;
}

.grocery-hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.95;
}

.grocery-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 30px;
}

.grocery-delivery-info {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    padding: 12px 18px;
    border-radius: 12px;
}

.grocery-hero-icon {
    font-size: 5rem;
    line-height: 1.7;
}

/* المميزات */

.grocery-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    height: 100%;
}

    .grocery-feature > span {
        font-size: 1.8rem;
    }

    .grocery-feature strong,
    .grocery-feature small {
        display: block;
    }

    .grocery-feature small {
        color: #6b7280;
        margin-top: 4px;
    }

/* البحث */

.grocery-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 10px 16px;
    background: white;
}

    .grocery-search-box:focus-within {
        border-color: #0875E1;
        box-shadow: 0 0 0 3px rgba(8,117,225,0.12);
    }
    .grocery-search-box input {
        font-size: 1rem;
        min-width: 0;
    }

/* بطاقات المنتجات */

.grocery-product-card {
    border: 1px solid #edf0ed;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .grocery-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    }

.grocery-product-image {
    position: relative;
    height: 190px;
    background: #f8faf9;
}

    .grocery-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 12px;
    }

.grocery-image-placeholder {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
}

.grocery-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .grocery-stock-badge.unavailable {
        background: #fee2e2;
        color: #991b1b;
    }

.grocery-product-title {
    font-size: 1rem;
    font-weight: 700;
    min-height: 24px;
}

.grocery-product-description {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grocery-product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #082B73;
    margin-bottom: 12px;
}

    .grocery-product-price small {
        font-size: 0.85rem;
    }

.grocery-add-btn {
    border-radius: 10px;
    padding: 10px 6px;
    font-weight: 600;
}

/* الهاتف */

@media (max-width: 576px) {

    .grocery-hero {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .grocery-hero-description {
        font-size: 0.95rem;
    }

    .grocery-product-image {
        height: 145px;
    }

    .grocery-product-card .card-body {
        padding: 12px 9px;
    }

    .grocery-product-title {
        font-size: 0.9rem;
    }

    .grocery-product-description {
        font-size: 0.78rem;
    }

    .grocery-product-price {
        font-size: 1.05rem;
    }

    .grocery-add-btn {
        font-size: 0.8rem;
        padding: 10px 3px;
    }

    .grocery-feature {
        padding: 12px;
    }
}

/* ===== هوية متجر التغدية العامة ===== */

.store-delivery-bar {
    background: #082B73;
    color: #FFFFFF;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.88rem;
}

.store-navbar {
    min-height: 75px;
}

.store-brand {
    color: #082B73 !important;
    font-weight: 800;
    font-size: 1.45rem;
}

.store-navbar .nav-link {
    font-weight: 600;
    padding: 10px 14px;
}

    .store-navbar .nav-link:hover {
        color: #0875E1;
    }

.store-cart-link {
    border-radius: 12px;
    font-weight: 700;
}

    .store-cart-link .badge {
        margin-right: 5px;
    }

.store-footer {
    background: #082B73;
    color: white;
    padding: 35px 15px;
    margin-top: 40px;
}
    .store-footer p,
    .store-footer small {
        color: #e2e8e2;
    }

@media (max-width: 576px) {
    .store-brand {
        font-size: 1.15rem;
    }

    .store-delivery-bar {
        font-size: 0.76rem;
    }

    .store-navbar {
        min-height: 65px;
    }

}
/* ==========================================
   GROUPE TLATINI 2 PRIX
   الهوية البصرية الزرقاء الموحدة
   الألوان الأساسية: الأزرق والأبيض
   الأخضر: النجاح والتوفر فقط
========================================== */
:root {
    --store-blue-dark: #082B73;
    --store-blue: #0875E1;
    --store-blue-light: #38BDF8;
    --store-blue-pale: #EFF6FF;
    --store-white: #FFFFFF;
}

/* شريط معلومات التوصيل */
.store-delivery-bar {
    background: var(--store-blue-dark);
    color: var(--store-white);
}

/* اسم المتجر */
.store-brand {
    color: var(--store-blue-dark) !important;
}

/* روابط القائمة */
.store-navbar .nav-link:hover,
.store-navbar .nav-link:focus {
    color: var(--store-blue);
}

/* واجهة الترحيب */
.grocery-hero {
    background: linear-gradient( 135deg, var(--store-blue-dark), var(--store-blue) );
    color: var(--store-white);
}

.grocery-hero-accent {
    color: #BAE6FD;
}

/* مميزات المتجر */
.grocery-feature {
    background: #F8FBFF;
    border-color: #DBEAFE;
}

/* البحث */
.grocery-search-box:focus-within {
    border-color: var(--store-blue);
    box-shadow: 0 0 0 3px rgba(8,117,225,0.12);
}

/* صور وبطاقات المنتجات */
.grocery-product-image {
    background: #F8FBFF;
}

.grocery-product-card {
    border-color: #DBEAFE;
}

/* أسعار المنتجات */
.grocery-product-price {
    color: var(--store-blue-dark);
}

/* أزرار إضافة المنتجات */
.grocery-add-btn.btn-success,
.grocery-add-btn.btn-primary {
    background: var(--store-blue);
    border-color: var(--store-blue);
    color: white;
}

    .grocery-add-btn.btn-success:hover,
    .grocery-add-btn.btn-primary:hover {
        background: var(--store-blue-dark);
        border-color: var(--store-blue-dark);
    }

/* أزرار إتمام الطلب */
.checkout-submit.btn-success,
.cart-summary .btn-success {
    background: var(--store-blue);
    border-color: var(--store-blue);
    color: white;
}

/* تركيز حقول إتمام الطلب */
.checkout-input:focus {
    border-color: #0875E1;
    box-shadow: 0 0 0 0.2rem rgba(8, 117, 225, 0.12);
}
/* أسفل الموقع */
.store-footer {
    background: var(--store-blue-dark);
    color: white;
}

    .store-footer p,
    .store-footer small {
        color: #DBEAFE;
    }

/* تركيز الأزرار وحقول الإدخال */
.btn:focus-visible,
.form-control:focus,
.form-select:focus {
    border-color: var(--store-blue);
    box-shadow: 0 0 0 0.2rem rgba(8,117,225,0.15);
}


/* أزرار التواصل داخل Navbar */
.store-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 34px;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .store-contact-btn {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50% !important;
        font-size: 15px;
    }
}
