:root {
    --primary-color: #4a2c2a;
    --accent-color: #d46a78;
    --accent-hover: #c45b68;
    --bg-color: #fdf8f8;
    --light-pink: #fbedec;
    --white: #ffffff;
    --text-muted: #8b7473;
    --rating-color: #e5a55d;
    --border-color: #f2e3e4;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #38211f;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 15px;
}

/* Header */
.header {
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    /* Increased by 50% */
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    content: '\f004';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 0.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

.profile-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 60px 0 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.heart-icon {
    color: var(--accent-color);
    font-size: 2rem;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 8px 8px 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-family: var(--font-sans);
    background: transparent;
}

.search-bar input::placeholder {
    color: #bfaea9;
}

.search-bar .btn {
    padding: 10px 24px;
}

.popular-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.popular-searches .label {
    font-weight: 600;
}

.pill {
    background-color: var(--light-pink);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.pill:hover {
    background-color: #f7dadd;
}

.hero-bg-circle {
    display: none;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    background-color: #f6e8e8;
    /* Soft pink exactly like the reference */
    border-radius: 50%;
    z-index: 0;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 35px;
    z-index: 0;
}

.main-cake {
    max-width: 780px;
    /* Increased by 40% from 450px */
    width: 100%;
    filter: drop-shadow(0 15px 25px rgba(212, 106, 120, 0.3));
    position: relative;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    color: #e5b3b9;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.heart-1 {
    top: 20%;
    left: 10%;
    font-size: 1rem;
    animation-delay: 0s;
    opacity: 0.6;
}

.heart-2 {
    top: 55%;
    left: 15%;
    font-size: 1.2rem;
    animation-delay: 1.5s;
    opacity: 0.3;
}

.heart-3 {
    top: 15%;
    right: 25%;
    font-size: 2.2rem;
    animation-delay: 0.7s;
    opacity: 0.8;
}

.heart-4 {
    top: 45%;
    right: 15%;
    font-size: 1.5rem;
    animation-delay: 2s;
    opacity: 0.4;
}

.floating-sparkle {
    position: absolute;
    color: white;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite, pulse 2s infinite;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.sparkle-1 {
    bottom: 5%;
    right: 0%;
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(15deg) scale(1.1);
    }

    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
}

/* Sections General */
section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-family: var(--font-serif);
}

.view-all {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

/* Chefs Section */
.chefs-container {
    display: flex;
    gap: 30px;
}

.map-container {
    flex: 1;
    background-color: #eef2f5;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

/* Leaflet overrides */
.custom-leaflet-marker {
    background: transparent;
    border: none;
}

.pin {
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid white;
}

.pin-inner {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-inner i {
    color: var(--accent-color);
    font-size: 0.75rem;
    margin-top: 1px;
}

.btn-location {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-family: var(--font-sans);
    color: var(--accent-color);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chefs-list {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chef-card-horizontal {
    display: flex;
    background: var(--white);
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chef-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.chef-card-horizontal img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.chef-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chef-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.chef-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.1rem;
}

.chef-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.chef-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.rating i {
    color: var(--rating-color);
}

.distance {
    color: var(--text-muted);
}

/* Categories Section */
.categories-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 80px;
}

.category-icon {
    width: 100px;
    height: 100px;
    background-color: var(--light-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.8rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.category-item:hover .category-icon {
    transform: translateY(-5px);
    background-color: #f7dadd;
}

.category-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.category-item.active .category-icon {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 106, 120, 0.3);
}

.category-item.active span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Category Pills (Categories Page) */
.category-pills {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cat-pill {
    background: var(--white);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cat-pill:hover {
    border-color: #f7dadd;
}

.cat-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cat-pill-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cat-pill i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.cat-pill.active {
    background: #f7dadd;
    color: var(--accent-color);
    border-color: #f7dadd;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-num {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.page-num:hover {
    background: var(--light-pink);
    color: var(--accent-color);
}

.page-num.active {
    background: var(--accent-color);
    color: var(--white);
}

/* Popular Section */
.products-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image-container {
    position: relative;
    height: 180px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-like {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-like:hover {
    background: white;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.product-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-rating {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating i {
    color: var(--rating-color);
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 600;
    font-size: 1.1rem;
}

.product-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Banner Section */
.banner {
    background-color: #e8c4be;
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.banner-image img {
    width: 90px;
    height: 90px;
}

.banner-content {
    flex: 1;
    margin: 0 30px;
}

.banner-content h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.banner-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.banner-action {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Space for the image you want to add */
    justify-content: flex-end;
}

.banner-action .btn {
    padding: 12px 30px;
}

.banner-decoration {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    color: rgba(212, 106, 120, 0.1);
    transform: rotate(-15deg);
}

/* Footer */
.footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-heart i {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.made-with {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.made-with i {
    color: var(--accent-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .profile-icon {
        display: none !important;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .popular-searches {
        justify-content: center;
    }

    .chefs-container {
        flex-direction: column;
    }

    .chefs-list {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
    }

    .chef-card-horizontal {
        min-width: 300px;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .footer-social {
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        gap: 15px;
        z-index: 100;
        display: none;
    }

    .nav.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .blob-bg {
        width: 300px;
        height: 300px;
    }

    .main-cake {
        max-width: 100%;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 5px;
    }

    .banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .banner-decoration {
        display: none;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 15px;
        padding: 10px;
        gap: 10px;
    }

    .search-bar input {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .search-bar .btn {
        width: 100%;
    }
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0 !important;
}

.cart-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.close-cart {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-cart:hover {
    color: var(--accent-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.item-details p {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.item-qty span {
    background: var(--light-pink);
    color: var(--accent-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.w-100 {
    width: 100%;
}

/* Hot Deals Styling */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e53935;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.promo-bottom {
    margin-top: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}

.new-price {
    color: #e53935;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Horizontal Slider */
.slider-wrapper {
    width: 100%;
    margin-top: 20px;
}

.horizontal-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 15px 10px 25px 10px;
    margin: 0 -10px;
    -webkit-overflow-scrolling: touch;
}

.horizontal-slider::-webkit-scrollbar {
    height: 8px;
}

.horizontal-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-slider::-webkit-scrollbar-thumb {
    background: #d46a78;
    border-radius: 10px;
}

.horizontal-slider::-webkit-scrollbar-thumb:hover {
    background: #c55a68;
}

.slider-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 280px;
}

/* Workshop Cards */
.workshop-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.workshop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.workshop-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.workshop-card:hover img {
    transform: scale(1.05);
}

.workshop-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workshop-overlay h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.workshop-overlay p {
    margin: 0;
    font-size: 0.95rem;
    color: #ffd1d7;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Ad Cards */
.ad-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 450px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.ad-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Hot Deals Layout Exact CSS */
.hot-deals-layout {
    display: flex;
    gap: 20px;
}

.deals-list-container {
    flex: 1;
    background: #fdf5f5;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deal-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.deal-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.deal-img-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    margin-right: 20px;
}

.deal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.deal-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #c55a68;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.deal-info-col {
    flex: 1;
}

.deal-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #333;
}

.deal-author {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 8px 0;
}

.deal-prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deal-old-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.deal-new-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.deal-timer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    background: #fdf5f5;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #f2dfdf;
}

.timer-values {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    letter-spacing: 1px;
}

.timer-labels {
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    color: #777;
    margin-top: 4px;
}

.deal-action-col {
    margin-left: 10px;
}

.btn-order-deal {
    background: #c55a68;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-order-deal:hover {
    background: #a94b58;
}

.deals-banners-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deal-banner-card-dynamic {
    height: 240px;
    flex: none;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.banner-dynamic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.deal-banner-card-dynamic:hover .banner-dynamic-img {
    transform: scale(1.04);
}

.banner-dynamic-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.banner-dynamic-content h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px 0;
    /* slightly smaller margin if subtitle exists */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-family: 'Outfit', sans-serif;
}

.banner-dynamic-content p {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-family: 'Outfit', sans-serif;
}

.banner-dynamic-content .btn-order-deal {
    z-index: 2;
    background: #d47e88;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dynamic-content .btn-order-deal:hover {
    background: #c55a68;
}

.deal-banner-card {
    flex: 1;
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.deal-banner-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #333;
    z-index: 2;
}

.deal-banner-card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 25px 0;
    line-height: 1.5;
    z-index: 2;
}

.deal-banner-card .btn-order-deal {
    z-index: 2;
    background: #d47e88;
}

.deal-banner-card .btn-order-deal:hover {
    background: #c55a68;
}

.banner-bottom-img {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 85%;
    max-height: 200px;
    object-fit: contain;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .profile-icon {
        display: none !important;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hot-deals-layout {
        flex-direction: column;
    }

    .deals-banners-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .deal-list-item {
        flex-direction: row;
        align-items: center;
        padding: 12px;
        position: relative;
        gap: 10px;
    }

    .deal-img-wrapper {
        width: 75px;
        height: 75px;
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .deal-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        top: -5px;
        left: -5px;
    }

    .deal-info-col {
        width: auto;
        margin-bottom: 0;
        flex: 1;
    }

    .deal-title {
        font-size: 0.95rem;
    }

    .deal-old-price {
        font-size: 0.75rem;
    }

    .deal-new-price {
        font-size: 0.95rem;
    }

    .deal-action-col {
        margin-left: 0;
        margin-right: 0;
        width: auto;
    }

    .deal-action-col .btn-order-deal {
        width: auto;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .deal-timer-col {
        display: none;
        /* Usually hide timer on mobile if horizontal to save space */
    }
}

.ad-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.ad-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ========================================= */
/*       MOBILE RESPONSIVENESS OVERHAUL      */
/* ========================================= */
@media (max-width: 992px) {
    .profile-icon {
        display: none !important;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Header is now kept on mobile, just stripped down */

    /* Mobile Navbar */
    .mobile-navbar {
        display: block;
        background: var(--white);
        padding: 15px 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-logo img {
        height: 50px;
        object-fit: contain;
    }

    .mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-hamburger {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Sidebar & Overlay */
    .mobile-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 10001;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-sidebar.active {
        left: 0;
    }

    .mobile-sidebar-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-sidebar-logo {
        height: 40px;
    }

    .mobile-sidebar-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-user-profile {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        background: var(--light-pink);
    }

    .mobile-profile-link {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: var(--primary-color);
    }

    .mobile-profile-link img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-cart-icon {
        position: relative;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .mobile-cart-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--accent-color);
        color: white;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-weight: 600;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 10px 0;
        flex: 1;
    }

    .mobile-nav-list li a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        color: var(--primary-color);
        font-weight: 500;
        font-size: 1.05rem;
        border-bottom: 1px solid #f9f9f9;
        min-height: 44px;
    }

    .mobile-nav-list li a i {
        color: var(--accent-color);
        width: 20px;
        text-align: center;
    }

    .mobile-sidebar-footer {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        border-top: 1px solid var(--border-color);
        background: #fafafa;
    }

    .mobile-sidebar-footer a {
        color: var(--text-muted);
        font-weight: 500;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Typography & Spacing Overhaul */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Reduced for mobile */
    }

    .hero-content {
        max-width: 100%;
    }

    .search-bar {
        margin: 0 auto 25px auto;
        max-width: 400px;
    }

    .popular-searches {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-bg-circle {
        display: none;
    }

    .hero-image {
        max-width: 90%;
        margin: 0 auto;
    }

    .hero {
        padding: 40px 0 60px;
    }

    /* Grids to Mobile Friendly Layouts */
    .categories-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .chefs-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Enhance Touch Targets */
    .btn,
    button,
    .category-item,
    a {
        min-height: 44px;
        /* Apple Human Interface Guideline */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-actions {
        gap: 10px;
    }

    .logo-img {
        height: 50px;
    }

    .hero-bg-circle {
        display: none;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 5px;
    }

    .header-actions {
        gap: 10px;
    }

    .logo-img {
        height: 50px;
    }

    .hero-bg-circle {
        display: none;
    }

    .dishes-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ========================================= */
/*       MOBILE RESPONSIVENESS OVERHAUL      */
/* ========================================= */
@media (max-width: 992px) {
    .profile-icon {
        display: none !important;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Header is now kept on mobile, just stripped down */

    /* Mobile Navbar */
    .mobile-navbar {
        display: block;
        background: var(--white);
        padding: 15px 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-logo img {
        height: 50px;
        object-fit: contain;
    }

    .mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-hamburger {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Sidebar & Overlay */
    .mobile-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 10001;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-sidebar.active {
        left: 0;
    }

    .mobile-sidebar-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-sidebar-logo {
        height: 40px;
    }

    .mobile-sidebar-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-user-profile {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        background: var(--light-pink);
    }

    .mobile-profile-link {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: var(--primary-color);
    }

    .mobile-profile-link img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-cart-icon {
        position: relative;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .mobile-cart-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--accent-color);
        color: white;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-weight: 600;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 10px 0;
        flex: 1;
    }

    .mobile-nav-list li a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        color: var(--primary-color);
        font-weight: 500;
        font-size: 1.05rem;
        border-bottom: 1px solid #f9f9f9;
        min-height: 44px;
    }

    .mobile-nav-list li a i {
        color: var(--accent-color);
        width: 20px;
        text-align: center;
    }

    .mobile-sidebar-footer {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        border-top: 1px solid var(--border-color);
        background: #fafafa;
    }

    .mobile-sidebar-footer a {
        color: var(--text-muted);
        font-weight: 500;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Typography & Spacing Overhaul */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Reduced for mobile */
    }

    .hero-content {
        max-width: 100%;
    }

    .search-bar {
        margin: 0 auto 25px auto;
        max-width: 400px;
    }

    .popular-searches {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-bg-circle {
        display: none;
    }

    .hero-image {
        max-width: 90%;
        margin: 0 auto;
    }

    .hero {
        padding: 40px 0 60px;
    }

    /* Grids to Mobile Friendly Layouts */
    .categories-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .chefs-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Enhance Touch Targets */
    .btn,
    button,
    .category-item,
    a {
        min-height: 44px;
        /* Apple Human Interface Guideline */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-actions {
        gap: 10px;
    }

    .logo-img {
        height: 50px;
    }

    .hero-bg-circle {
        display: none;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 5px;
    }

    .header-actions {
        gap: 10px;
    }

    .logo-img {
        height: 50px;
    }

    .hero-bg-circle {
        display: none;
    }

    .dishes-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Responsive Fluid Typography */
@media (max-width: 768px) {

    /* Headings & Hero */
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        line-height: 1.5 !important;
    }

    .section-title,
    .page-title,
    h1,
    h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem) !important;
        line-height: 1.3 !important;
    }

    h3,
    .deal-banner-card h3 {
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
        line-height: 1.3 !important;
    }

    h4,
    .deal-title,
    .product-title {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        line-height: 1.4 !important;
    }

    /* Paragraphs & Text */
    p,
    .deal-banner-card p {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
        line-height: 1.5 !important;
    }

    .deal-author,
    .product-author,
    .distance {
        font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
    }

    /* Pricing */
    .deal-new-price,
    .product-price {
        font-size: clamp(0.95rem, 4.5vw, 1.2rem) !important;
    }

    .deal-old-price {
        font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
    }

    /* Badges & Small Info */
    .deal-badge,
    .category-item span,
    .badge,
    .status-badge {
        font-size: clamp(0.7rem, 2.5vw, 0.85rem) !important;
    }

    /* Buttons & Interactive Elements */
    .btn,
    .cat-pill,
    button {
        font-size: clamp(0.85rem, 4vw, 1rem) !important;
        white-space: normal !important;
        /* Allow text wrapping */
        word-break: break-word;
        height: auto !important;
        min-height: 44px;
        /* Maintain touch target size */
        line-height: 1.4 !important;
        text-align: center;
    }

    .btn-sm,
    .pill {
        font-size: clamp(0.75rem, 3.5vw, 0.9rem) !important;
        padding: 8px 16px !important;
    }

    .mobile-nav-link {
        font-size: clamp(0.95rem, 4.5vw, 1.1rem) !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    /* Global Overflow Prevention */
    * {
        /* This prevents any long unbroken string from forcing horizontal scroll */
        overflow-wrap: break-word !important;
    }
}

/* Aggressive Overflow X Prevention */
html,
body {
    max-width: 100vw;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

/* Fix for Hot Deals Button Squishing */
@media (max-width: 768px) {
    .deal-action-col {
        flex-shrink: 0;
    }

    .deal-action-col .btn-order-deal {
        white-space: nowrap !important;
        word-break: normal !important;
        min-width: max-content;
    }
}

/* Fix for Hot Deals Button Squishing */
@media (max-width: 768px) {
    .deal-action-col {
        flex-shrink: 0;
    }

    .deal-action-col .btn-order-deal {
        white-space: nowrap !important;
        word-break: normal !important;
        min-width: max-content;
    }
}

/* Hot Deals Mobile Mini-Sizing */
@media (max-width: 768px) {
    .deal-list-item .deal-new-price {
        font-size: 0.85rem !important;
    }

    .deal-list-item .deal-old-price {
        font-size: 0.7rem !important;
    }

    .deal-list-item .deal-action-col .btn-order-deal {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
        min-height: 32px !important;
    }
}

/* Hot Deals Mobile Mini-Sizing */
@media (max-width: 768px) {
    .deal-list-item .deal-new-price {
        font-size: 0.85rem !important;
    }

    .deal-list-item .deal-old-price {
        font-size: 0.7rem !important;
    }

    .deal-list-item .deal-action-col .btn-order-deal {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
        min-height: 32px !important;
    }
}

/* Header Mobile Sizing & Hamburger Fix */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0 !important;
    }

    .logo-img {
        height: 50px !important;
    }

    .cart-icon {
        font-size: 1.1rem !important;
    }

    .custom-lang-selector {
        padding: 4px 8px !important;
    }

    .custom-lang-selector .current-lang {
        font-size: 0.75rem !important;
        margin: 0 4px !important;
    }

    .custom-lang-selector i {
        font-size: 0.75rem !important;
    }

    .mobile-menu-btn {
        font-size: 1.3rem !important;
    }

    .header-actions {
        gap: 12px !important;
    }
}

/* Header Mobile Sizing & Hamburger Fix */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0 !important;
    }

    .logo-img {
        height: 45px !important;
    }

    .cart-icon {
        font-size: 1.1rem !important;
    }

    .custom-lang-selector {
        padding: 4px 8px !important;
    }

    .custom-lang-selector .current-lang {
        font-size: 0.75rem !important;
        margin: 0 4px !important;
    }

    .custom-lang-selector i {
        font-size: 0.75rem !important;
    }

    .mobile-menu-btn {
        font-size: 1.3rem !important;
    }

    .header-actions {
        gap: 12px !important;
    }
}

/* Categories Page & Products Responsive Fixes */
@media (max-width: 768px) {

    /* Prevent category pills from squishing vertically, layout as 2 horizontal rows scrolling horizontally */
    .category-pills {
        display: grid !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: max-content !important;
        overflow-x: auto !important;
        gap: 15px 12px !important;
        padding: 5px 10px 15px 10px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        /* Hide scrollbar for a clean native app look */
        flex-wrap: nowrap !important;
    }

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

    .cat-pill {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 6px !important;
        min-width: 70px !important;
        max-width: 80px !important;
        white-space: normal !important;
        text-align: center !important;
        box-shadow: none !important;
        flex-shrink: 0;
        word-break: normal !important;
    }

    .cat-pill-icon {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background-color: var(--light-pink) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: var(--accent-color) !important;
        font-size: 1.3rem !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
        transition: all 0.3s ease !important;
        overflow: hidden !important;
        /* Clips square custom uploaded image corners */
    }

    .cat-pill-icon i {
        line-height: 1 !important;
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cat-pill-img {
        width: 28px !important;
        height: 28px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 !important;
    }

    .cat-pill.active .cat-pill-icon {
        background-color: var(--accent-color) !important;
        color: var(--white) !important;
        border-color: var(--accent-color) !important;
        box-shadow: 0 4px 12px rgba(212, 106, 120, 0.3) !important;
    }

    .cat-pill span {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        color: var(--text-color) !important;
        display: block !important;
        line-height: 1.2 !important;
        /* Limit text height and wrap */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.4em;
    }

    .cat-pill.active span {
        font-weight: 600 !important;
        color: var(--accent-color) !important;
    }

    /* Style Categories section on homepage like Categories page pills on mobile */
    .categories-grid {
        display: grid !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: max-content !important;
        overflow-x: auto !important;
        gap: 15px 12px !important;
        padding: 5px 10px 15px 10px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        /* Hide scrollbar for a clean native app look */
        flex-wrap: nowrap !important;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 6px !important;
        min-width: 70px !important;
        max-width: 80px !important;
        white-space: normal !important;
        text-align: center !important;
        box-shadow: none !important;
        flex-shrink: 0;
        word-break: normal !important;
        min-height: unset !important;
        height: auto !important;
    }

    .category-icon {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background-color: var(--light-pink) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        color: var(--accent-color) !important;
        font-size: 1.3rem !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
        transition: all 0.3s ease !important;
        overflow: hidden !important;
        /* Clips square custom uploaded image corners */
    }

    .category-icon i {
        line-height: 1 !important;
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .category-icon img {
        width: 28px !important;
        height: 28px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .category-item.active .category-icon {
        background-color: var(--accent-color) !important;
        color: var(--white) !important;
        border-color: var(--accent-color) !important;
        box-shadow: 0 4px 12px rgba(212, 106, 120, 0.3) !important;
    }

    .category-item span {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        color: var(--text-color) !important;
        display: block !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Limit text height and wrap */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.4em;
    }

    .category-item.active span {
        font-weight: 600 !important;
        color: var(--accent-color) !important;
    }

    /* Search Form Layout */
    form[action="categories.php"] {
        flex-direction: column;
        width: 100%;
    }

    form[action="categories.php"] .search-bar {
        min-width: 100% !important;
        width: 100% !important;
    }

    form[action="categories.php"] .btn {
        width: 100% !important;
    }

    /* Products Grid - Force 2 Columns on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 5px !important;
    }

    /* Compact Product Card Styles for 2-column layout */
    .product-card {
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    }

    .product-image-container {
        height: 150px !important;
        /* Shorter header on mobile to fit screen nicely */
    }

    .product-info {
        padding: 10px !important;
    }

    .product-title {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        margin-bottom: 2px !important;
        line-height: 1.3 !important;
        /* Truncate text after 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.6em;
    }

    .product-author {
        font-size: 0.72rem !important;
        margin-bottom: 4px !important;
    }

    .product-rating {
        font-size: 0.72rem !important;
        margin-bottom: 8px !important;
        gap: 2px !important;
    }

    .product-bottom {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .product-price {
        font-size: 0.95rem !important;
        align-self: flex-start !important;
    }

    .product-card .btn-add-to-cart {
        width: 100% !important;
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        min-height: auto !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .btn-like {
        width: 26px !important;
        height: 26px !important;
        top: 10px !important;
        right: 10px !important;
        font-size: 0.8rem !important;
    }
}

/* Categories Search Bar Mobile Fix */
@media (max-width: 768px) {
    form[action="categories.php"] .search-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 55px !important;
        padding: 5px 20px !important;
        flex-wrap: nowrap !important;
    }

    form[action="categories.php"] .search-bar i {
        margin-right: 15px !important;
        margin-left: 0 !important;
        display: inline-block !important;
        width: auto !important;
    }

    html[dir="rtl"] form[action="categories.php"] .search-bar i {
        margin-left: 15px !important;
        margin-right: 0 !important;
    }

    form[action="categories.php"] .search-bar select,
    form[action="categories.php"] .search-bar input {
        height: 45px !important;
        font-size: 1rem !important;
        text-align: left !important;
    }

    html[dir="rtl"] form[action="categories.php"] .search-bar select,
    html[dir="rtl"] form[action="categories.php"] .search-bar input {
        text-align: right !important;
    }

    form[action="categories.php"] .btn {
        min-height: 55px !important;
        font-size: 1.05rem !important;
    }
}

/* Categories Search Bar Mobile Fix */
@media (max-width: 768px) {
    form[action="categories.php"] .search-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 55px !important;
        padding: 5px 20px !important;
        flex-wrap: nowrap !important;
    }

    form[action="categories.php"] .search-bar i {
        margin-right: 15px !important;
        margin-left: 0 !important;
        display: inline-block !important;
        width: auto !important;
    }

    html[dir="rtl"] form[action="categories.php"] .search-bar i {
        margin-left: 15px !important;
        margin-right: 0 !important;
    }

    form[action="categories.php"] .search-bar select,
    form[action="categories.php"] .search-bar input {
        height: 45px !important;
        font-size: 1rem !important;
        text-align: left !important;
    }

    html[dir="rtl"] form[action="categories.php"] .search-bar select,
    html[dir="rtl"] form[action="categories.php"] .search-bar input {
        text-align: right !important;
    }

    form[action="categories.php"] .btn {
        min-height: 55px !important;
        font-size: 1.05rem !important;
    }
}

/* Favorites Page Search Bar Mobile Fix */
@media (max-width: 768px) {
    .fav-actions {
        flex-direction: column;
        width: 100%;
    }

    .fav-search,
    .fav-sort {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 55px !important;
        padding: 5px 20px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    .fav-search i {
        margin-right: 15px !important;
        margin-left: 0 !important;
        display: inline-block !important;
        width: auto !important;
    }

    html[dir="rtl"] .fav-search i {
        margin-left: 15px !important;
        margin-right: 0 !important;
    }

    .fav-search input {
        height: 45px !important;
        font-size: 1rem !important;
        text-align: left !important;
        margin-left: 0 !important;
        /* Overridden by gap or icon margin */
    }

    html[dir="rtl"] .fav-search input {
        text-align: right !important;
    }

    .fav-sort {
        justify-content: space-between !important;
        font-size: 1.05rem !important;
    }
}

/* Favorites Page Search Bar Mobile Fix */
@media (max-width: 768px) {
    .fav-actions {
        flex-direction: column;
        width: 100%;
    }

    .fav-search,
    .fav-sort {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 55px !important;
        padding: 5px 20px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    .fav-search i {
        margin-right: 15px !important;
        margin-left: 0 !important;
        display: inline-block !important;
        width: auto !important;
    }

    html[dir="rtl"] .fav-search i {
        margin-left: 15px !important;
        margin-right: 0 !important;
    }

    .fav-search input {
        height: 45px !important;
        font-size: 1rem !important;
        text-align: left !important;
        margin-left: 0 !important;
        /* Overridden by gap or icon margin */
    }

    html[dir="rtl"] .fav-search input {
        text-align: right !important;
    }

    .fav-sort {
        justify-content: space-between !important;
        font-size: 1.05rem !important;
    }
}

/* Container Mobile Edge Spacing Fix */
@media (max-width: 768px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

/* Container Mobile Edge Spacing Fix */
@media (max-width: 768px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

/* Fix Like Button Shape on Mobile */
@media (max-width: 768px) {
    button.btn-like {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Fix Like Button Shape on Mobile */
@media (max-width: 768px) {
    button.btn-like {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Fix Map Overflow on Mobile */
@media (max-width: 768px) {
    .map-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        /* Fix for Safari/WebKit ignoring border-radius on children with transform/z-index */
        -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
        isolation: isolate !important;
        transform: translateZ(0) !important;
    }

    #map {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Fix Map Overflow on Mobile */
@media (max-width: 768px) {
    .map-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        /* Fix for Safari/WebKit ignoring border-radius on children with transform/z-index */
        -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
        isolation: isolate !important;
        transform: translateZ(0) !important;
    }

    #map {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Global Mobile Overflow Fix */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .product-container {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }

    .header-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 5px !important;
    }

    .header-actions {
        gap: 10px !important;
    }

    .prod-topbar {
        gap: 10px;
    }

    .main-image-wrap {
        width: 100%;
        max-width: 100%;
    }
}

/* Global Mobile Overflow Fix */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .product-container {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }

    .header-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 5px !important;
    }

    .header-actions {
        gap: 10px !important;
    }

    .prod-topbar {
        gap: 10px;
    }

    .main-image-wrap {
        width: 100%;
        max-width: 100%;
    }
}

/* Fix Product Info Box Paddings for Mobile */
@media (max-width: 768px) {
    .prod-info {
        padding: 15px !important;
        border-radius: 20px !important;
    }

    .size-option {
        padding: 12px 10px !important;
        gap: 5px;
    }

    .radio-circle {
        margin-right: 8px !important;
        margin-left: 8px !important;
    }

    .size-name {
        font-size: 0.85rem !important;
        white-space: normal !important;
        word-wrap: break-word;
        flex: 1;
        line-height: 1.2;
    }

    .size-price {
        font-size: 0.9rem !important;
        white-space: nowrap;
    }

    .feature-badges {
        gap: 10px !important;
    }

    .f-badge {
        width: 48%;
        /* fit two per row comfortably */
    }
}

/* Fix Product Info Box Paddings for Mobile */
@media (max-width: 768px) {
    .prod-info {
        padding: 15px !important;
        border-radius: 20px !important;
    }

    .size-option {
        padding: 12px 10px !important;
        gap: 5px;
    }

    .radio-circle {
        margin-right: 8px !important;
        margin-left: 8px !important;
    }

    .size-name {
        font-size: 0.85rem !important;
        white-space: normal !important;
        word-wrap: break-word;
        flex: 1;
        line-height: 1.2;
    }

    .size-price {
        font-size: 0.9rem !important;
        white-space: nowrap;
    }

    .feature-badges {
        gap: 10px !important;
    }

    .f-badge {
        width: 48%;
        /* fit two per row comfortably */
    }
}


/* Fix language dropdown clipping on mobile */
.header,
.header-container,
.header-actions {
    overflow: visible !important;
}

/* Responsive dynamic banner styles */
@media (max-width: 768px) {
    .banner-dynamic-content {
        padding: 20px 15px !important;
    }

    .banner-dynamic-content h3 {
        font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
        margin: 0 0 6px 0 !important;
    }

    .banner-dynamic-content p {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem) !important;
        margin: 0 0 15px 0 !important;
        line-height: 1.3 !important;
    }

    .banner-dynamic-content .btn-order-deal {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        min-height: auto !important;
        height: auto !important;
    }
}