/* =============================================
   DEFAULT CSS VARIABLE DEFINITIONS
   (Overridden by theme files loaded after this)
   ============================================= */
:root {
    --primary-color: #FF9800;
    --secondary-color: #333333;
    --dark-bg: #2c3e50;
    --dark-text: #ecf0f1;
    --light-gray: #f8f9fa;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    /* Extended theme variables */
    --body-bg: #f8f9fa;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --text-faint: #888888;
    --border-color: #f0f0f0;
    --input-bg: #ffffff;
    --input-border: #dddddd;
    --info-bg: #e3f2fd;
    --info-color: #0d47a1;
    --waiter-btn-bg: #3498db;
    --waiter-btn-hover: #2980b9;
}

/* =============================================
   BASE RESET & BODY
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
}

/* =============================================
   HEADER & NAVBAR
   ============================================= */
.header {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    padding: 0;
}
.top-bar {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding: 8px 0;
    font-size: 13px;
}
.top-bar a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: var(--primary-color);
}
.top-bar-contact {
    display: flex;
    gap: 20px;
}
.top-bar-contact span {
    display: flex;
    align-items: center;
}
.top-bar-contact i {
    margin-right: 6px;
}
.top-bar-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}
.top-bar-social a {
    opacity: 0.8;
}
.top-bar-social a:hover {
    opacity: 1;
}
.navbar-brand {
    padding: 12px 0;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 45px;
}
.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.4rem;
    margin-left: 8px;
    background: linear-gradient(45deg, var(--primary-color), #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.navbar-brand .brand-qr {
    color: var(--primary-color);
    font-weight: 800;
}
.navbar-brand .brand-menu {
    color: var(--text-color);
    font-weight: 700;
}
.nav-main {
    position: relative;
    padding: 0;
    background-color: var(--nav-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.navbar-nav {
    margin-left: auto;
}
.nav-item {
    position: relative;
    margin: 0 5px;
}
.nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 28px 15px;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), #ff5722);
    transition: width 0.3s ease;
    border-radius: 3px;
}
.nav-link:hover:after, .nav-link.active:after {
    width: 70%;
}
.navbar-toggler {
    border: none;
    padding: 0;
    margin-right: 15px;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler i {
    color: var(--primary-color);
    font-size: 24px;
}

/* =============================================
   PAGE HEADER (category.php, product.php)
   ============================================= */
.page-header {
    background-color: var(--card-bg);
    padding: 30px 0;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
}
.page-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 2rem;
}
.page-header .breadcrumb {
    background: none;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
.page-header .breadcrumb-item {
    font-size: 14px;
}
.page-header .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.page-header .breadcrumb-item.active {
    color: var(--secondary-color);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* =============================================
   SEARCH
   ============================================= */
.search-container {
    margin: 30px 0;
    padding: 0 15px;
}
.search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.search-form input {
    width: 100%;
    border: 1px solid var(--input-border);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}
.search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.25);
    outline: none;
}
.search-form i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
}

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}
.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
}

/* =============================================
   HERO SECTION (index.php)
   ============================================= */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a252f 100%);
    padding: 72px 0 96px;
    overflow: hidden;
    text-align: center;
    color: white;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 65% 50%, rgba(255, 152, 0, 0.18) 0%, transparent 68%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--card-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 14px;
    opacity: 0.9;
}
.hero-eyebrow i {
    margin-right: 7px;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.75;
}
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 13px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 22px rgba(255, 152, 0, 0.42);
}
.hero-cta-btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 7px 28px rgba(255, 152, 0, 0.5);
}
.hero-cta-btn i {
    font-size: 11px;
    animation: hero-bounce 1.6s ease-in-out infinite;
}
@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
@media (max-width: 767px) {
    .hero-section {
        padding: 52px 0 80px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* =============================================
   FOOD CATEGORIES (index.php)
   ============================================= */
.food-categories {
    padding: 30px 0;
    background-color: var(--card-bg);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.category-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--primary-color);
}
.category-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
    transition: transform 0.4s ease;
}
.category-card:hover img {
    transform: scale(1.06);
}
.category-card-image-wrap {
    overflow: hidden;
    position: relative;
}
.category-card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.category-card:hover .category-card-image-wrap::after {
    opacity: 1;
}
.category-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--body-bg);
    border-bottom: 2px solid var(--border-color);
}
.category-icon i {
    font-size: 48px;
    color: var(--primary-color);
}
.category-card .card-body {
    padding: 15px;
    text-align: center;
}
.category-card .card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}
.category-card:hover .card-title {
    color: var(--primary-color);
}

/* =============================================
   PROMO BANNER (index.php)
   ============================================= */
.promo-banner-small {
    background-color: rgba(51, 51, 51, 0.8);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    border-radius: 10px;
    padding: 20px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.text-orange {
    color: var(--primary-color);
}
.promo-device {
    max-height: 180px;
    transform: perspective(500px) rotateY(-15deg);
}
.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-warning:hover {
    background-color: var(--card-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* =============================================
   CATEGORIES TABS (all pages)
   ============================================= */
.categories-tabs {
    background-color: var(--card-bg);
    padding: 25px 0 15px;
    margin-bottom: 20px;
}
.categories-header {
    text-align: center;
    margin-bottom: 20px;
}
.categories-header h2 {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 0;
}
.categories-header h2:before,
.categories-header h2:after {
    content: '';
    display: inline-block;
    width: 80px;
    height: 1px;
    background: var(--primary-color);
    margin: 0 15px;
    vertical-align: middle;
}
.categories-tabs-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
}
.categories-tabs-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 5px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}
.categories-tabs-menu a:hover {
    color: var(--primary-color);
}
.categories-tabs-menu a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
.categories-tabs-menu a i {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* =============================================
   FEATURED SECTION (index.php)
   ============================================= */
.featured-section {
    padding: 40px 0;
    background-color: var(--body-bg);
}

/* =============================================
   PRODUCT LIST — horizontal items (index.php, product.php)
   ============================================= */
.product-list {
    margin-bottom: 30px;
}
.product-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
}
.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: inherit;
    border-left-color: var(--primary-color);
}
.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px;
}
.product-details {
    flex: 1;
    padding: 15px 10px;
}
.product-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}
.product-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-description .read-more {
    display: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    margin-left: 3px;
}
.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    text-align: right;
    padding-right: 15px;
}
.sale-price {
    display: flex;
    flex-direction: column;
}
.sale-price .original-price {
    font-size: 14px;
    color: var(--text-faint);
    text-decoration: line-through;
}

/* =============================================
   EMPTY MESSAGE
   ============================================= */
.empty-message {
    background-color: var(--info-bg);
    color: var(--info-color);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

/* =============================================
   PRODUCT GRID — card layout (category.php)
   ============================================= */
.products-section {
    padding: 40px 0;
    background-color: var(--body-bg);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.product-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: inherit;
}
.product-card-image-wrapper {
    position: relative;
    overflow: hidden;
}
.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-image {
    transform: scale(1.05);
}
.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.product-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
}
.product-card-description {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex: 1;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.product-card-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}
.product-card-price .original-price {
    font-size: 13px;
    color: var(--text-faint);
    text-decoration: line-through;
    font-weight: 500;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}
.product-card-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 152, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 13px;
    transition: var(--transition);
}
.product-card:hover .product-card-arrow {
    background-color: var(--primary-color);
    color: white;
}

/* =============================================
   PRODUCT DETAIL (product.php)
   ============================================= */
.product-detail-section {
    padding: 40px 0;
}
.product-detail-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.product-detail-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.product-detail-body {
    padding: 30px;
}
.product-detail-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.product-detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.product-detail-price .original-price {
    font-size: 1.1rem;
    color: var(--text-faint);
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 500;
}
.product-detail-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.product-detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.product-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}
.badge-category {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--primary-color);
}
.badge-stock {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}
.badge-out-of-stock {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    margin-bottom: 20px;
}
.back-btn:hover {
    color: var(--secondary-color);
    transform: translateX(-3px);
}
.related-section {
    padding: 40px 0;
    background-color: var(--body-bg);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    font-size: 14px;
}
.footer-top {
    padding: 60px 0 40px;
}
.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}
.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    opacity: 0.8;
}
.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}
.footer-links a i {
    margin-right: 8px;
    font-size: 12px;
}
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    opacity: 0.8;
}
.contact-info i {
    margin-right: 12px;
    margin-top: 3px;
    color: var(--primary-color);
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
}
.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}
.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

/* =============================================
   CAROUSEL
   ============================================= */
.carousel-indicators {
    margin-bottom: 0;
}
.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}
.carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}
.carousel-control-prev {
    left: 10px;
}
.carousel-control-next {
    right: 10px;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

/* =============================================
   WAITER CALL BUTTON
   ============================================= */
.waiter-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 20px;
    background-color: var(--waiter-btn-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.waiter-call-btn:hover {
    background-color: var(--waiter-btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.waiter-call-btn i {
    margin-right: 8px;
}
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

/* =============================================
   MOBILE MENU (offcanvas)
   ============================================= */
@media (max-width: 991px) {
    .offcanvas {
        width: 280px !important;
    }
    .offcanvas-header {
        background-color: var(--dark-bg);
        color: white;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .offcanvas-header h5 {
        font-weight: 700;
        margin: 0;
        font-size: 18px;
        letter-spacing: 1px;
    }
    .btn-close-white {
        filter: brightness(0) invert(1);
    }
    .offcanvas-body {
        padding: 0;
        background-color: var(--card-bg);
    }
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mobile-menu-item {
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-menu-link {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
    }
    .mobile-menu-link:hover {
        background-color: var(--body-bg);
    }
    .mobile-menu-link img {
        width: 30px;
        height: 30px;
        margin-right: 15px;
        object-fit: cover;
        border-radius: 4px;
    }
    .mobile-menu-icon {
        margin-right: 15px;
        color: var(--primary-color);
        width: 20px;
        text-align: center;
    }
    .mobile-menu-info {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
        background-color: var(--card-bg);
    }
    .mobile-menu-info p {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        color: var(--text-muted);
        font-size: 14px;
    }
    .mobile-menu-info i {
        width: 20px;
        margin-right: 10px;
        color: var(--primary-color);
    }
    .mobile-menu-info p:last-child {
        margin-bottom: 0;
    }
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */
@media (max-width: 991px) {
    .nav-link {
        padding: 15px;
    }
    .top-bar-contact, .top-bar-social {
        justify-content: center;
        text-align: center;
    }
    .top-bar-social {
        margin-top: 8px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767px) {
    /* Page header */
    .page-header h2 {
        font-size: 1.5rem;
    }
    .categories-header h2:before,
    .categories-header h2:after {
        width: 40px;
    }

    /* Category tabs — horizontal scroll instead of wrapping */
    .categories-tabs-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
    }
    .categories-tabs-menu::-webkit-scrollbar {
        display: none;
    }
    .categories-tabs-menu a {
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 13px;
    }

    /* Category cards grid */
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .category-card .card-title {
        font-size: 12px;
    }
    .category-card img, .category-icon {
        height: 80px;
    }
    .category-icon i {
        font-size: 32px;
    }
    .category-card .card-body {
        padding: 8px 4px;
    }

    /* Promo / carousel */
    .promo-banner-small {
        padding: 15px 20px;
    }
    .promo-content h2 {
        font-size: 22px;
    }
    .promo-content h5 {
        font-size: 14px;
    }
    .promo-device {
        max-height: 100px;
        transform: none !important;
        margin: 0 auto;
    }
    .col-md-4.d-none.d-md-block {
        display: block !important;
        margin-top: -70px;
        text-align: center;
    }

    /* Section title */
    .section-title {
        font-size: 20px;
    }

    /* Horizontal product list (index.php featured) */
    .product-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    .product-title {
        font-size: 14px;
    }
    .product-price {
        font-size: 16px;
        padding-right: 10px;
        white-space: nowrap;
    }
    .product-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .product-description .read-more {
        display: inline;
    }

    /* Product grid → single column on mobile */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-card {
        flex-direction: row;
        align-items: stretch;
    }
    .product-card-image-wrapper {
        width: 110px;
        flex-shrink: 0;
    }
    .product-card-image {
        width: 110px;
        height: 100%;
        min-height: 110px;
        object-fit: cover;
    }
    .product-card-body {
        padding: 12px;
        flex: 1;
        min-width: 0;
    }
    .product-card-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .product-card-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }
    .product-card-price {
        font-size: 15px;
    }
    .product-card-arrow {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    /* Product detail */
    .product-detail-image {
        height: 220px;
    }
    .product-detail-name {
        font-size: 1.4rem;
    }
    .product-detail-price {
        font-size: 1.3rem;
    }
    .product-detail-body {
        padding: 18px;
    }

    /* Footer */
    .footer-col {
        margin-bottom: 30px;
    }

    /* Navbar brand */
    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    /* Very small screens: 3-column category grid */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .category-card img, .category-icon {
        height: 70px;
    }
    .category-icon i {
        font-size: 28px;
    }
}
