:root {
    --primary-color: #1ABC9C;
    /* Teal */
    --secondary-color: #FF6B00;
    /* Orange */
    --bg-color: #F4F6F8;
    --card-bg: #FFFFFF;
    --text-color: #333333;
}

body {
    background-color: var(--bg-color);
    font-family: 'Almarai', sans-serif !important;
    margin: 0;
    padding: 0;
}

.minimal-header {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.minimal-header .logo img {
    height: 40px;
    object-fit: contain;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hero-section {
    width: 100%;
    position: relative;
}

.hero-section img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px;
    gap: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #fff;
    margin-bottom: 20px;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    cursor: pointer;
    text-align: center;
}

.cat-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid #eee;
    transition: all 0.3s;
    background: #f9f9f9;
}

.cat-item.active .cat-img {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-name {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.section-title {
    padding: 5px 20px 15px;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    text-align: center;
    /* RTL Default */
}

html[dir="ltr"] .section-title {
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px 100px;
    /* Bottom padding for checkout button */
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.prod-img {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

html[dir="ltr"] .prod-title {
    text-align: center;
}

.prod-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.price-tag {
    background: var(--secondary-color);
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
}

.add-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    z-index: 10;
}

.add-btn:hover {
    background: #16a085;
}

.floating-checkout {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    border-radius: 50px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 200;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
}

.checkout-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

/* Overrides for popup */
.mfp-content {
    vertical-align: middle;
}