* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========== LOADING INDICATOR ========== */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: rgba(0, 196, 252, 0.1);
}

.loading-spinner {
    font-size: 3rem;
    color: #3949ab;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading h3 {
    color: #1a237e;
    margin-bottom: 10px;
}

.loading p {
    color: #616161;
}

.loading-error {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #ffebee;
    border-radius: 8px;
    border-right: 4px solid #f44336;
    max-width: 500px;
    width: 90%;
}

.loading-error h4 {
    color: #c62828;
    margin-bottom: 8px;
}

.loading-error p {
    color: #616161;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 70px;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
}

/* ========== STICKY NAVIGATION HEADER ========== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: 65px;
    border-bottom: 1px solid #e0e0e0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(57, 73, 171, 0.2);
    background: white;
    padding: 3px;
}

.nav-logo-fallback {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #3949ab;
    font-size: 24px;
    border: 2px solid rgba(57, 73, 171, 0.2);
}

.nav-title {
    display: flex;
    flex-direction: column;
}

.nav-title-main {
    color: #1a237e;
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1.2;
}

.nav-title-sub {
    color: #616161;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* Navigation Links - Visible on desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
}

.nav-link {
    color: #424242;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3949ab;
    background-color: rgba(57, 73, 171, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-action-btn {
    position: relative;
    background: rgba(57, 73, 171, 0.1);
    border: none;
    color: #3949ab;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-action-btn:hover {
    background: rgba(57, 73, 171, 0.2);
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ========== HAMBURGER MENU ========== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    background: rgba(57, 73, 171, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #3949ab;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(57, 73, 171, 0.2);
}

.hamburger-menu {
    position: fixed;
    top: 65px;
    right: 0;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
    width: 100%;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.hamburger-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger-item {
    display: block;
    padding: 18px 20px;
    color: #424242;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
}

.hamburger-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.hamburger-item:hover {
    background-color: rgba(57, 73, 171, 0.1);
    color: #3949ab;
    padding-right: 25px;
}

/* ========== STICKY BOTTOM MENU ========== */
.sticky-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-top: 1px solid #e0e0e0;
    height: 68px;
}

.bottom-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #616161;
    transition: all 0.3s ease;
    flex: 1;
    padding: 3px 0;
}

.bottom-menu-item.active {
    color: #3949ab;
}

.bottom-menu-item:hover {
    color: #3949ab;
    transform: translateY(-3px);
}

.bottom-menu-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bottom-menu-item.active .bottom-menu-icon {
    background: rgba(57, 73, 171, 0.1);
    color: #3949ab;
}

.bottom-menu-text {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

/* ========== HEADER CONTENT ========== */
.main-header {
    background: 
        linear-gradient(135deg, rgba(26, 35, 126, 0.7) 0%, rgba(57, 73, 171, 0.6) 100%),
        url('images/header.jpg') center center/cover;
    color: white;
    padding: 20px 0 10px 0;
    border-radius: 0 0 25px 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* ========== HEADER HERO ========== */
.header-hero {
    padding: 20px 0 15px;
    text-align: center;
}

.header-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-hero .hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.header-hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.header-hero .hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.header-hero .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.header-hero .feature-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.header-hero .feature-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.header-hero .feature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

/* ========== TAB NAVIGATION ========== */
.tabs-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 120px;
}

.tabs {
    display: flex;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 5px;
}

.tab {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.3);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 3px;
    background: #00e676;
    border-radius: 2px;
}

.search-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    padding: 10px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 12px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: right;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #3949ab;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(57, 73, 171, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #616161;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: #3949ab;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 1.1rem;
}

/* ========== PRODUCT COUNT ========== */
.product-count {
    color: #616161;
    font-size: 0.85rem;
    padding: 5px 0 15px 0;
    text-align: center;
    margin: 0;
    background-color: transparent;
}

/* ========== SIMPLE CATEGORY MODAL ========== */
.category-modal-content {
    max-width: 500px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 15px;
}

.category-item {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #424242;
}

.category-item:hover {
    background: #f5f5f5;
    border-color: #3949ab;
    color: #3949ab;
    transform: translateY(-2px);
}

.category-item.active {
    background: #3949ab;
    color: white;
    border-color: #3949ab;
}

/* ========== PRODUCT GALLERY ========== */
.product-gallery {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8eaf6 100%);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-gallery:hover .main-image {
    transform: scale(1.08);
}

.image-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.3;
    z-index: 1;
}

.thumbnail-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 3;
}

.thumbnail {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    object-fit: cover;
    transition: all 0.2s ease;
    background: white;
}

.thumbnail:hover {
    border-color: #3949ab;
    transform: scale(1.15);
}

.thumbnail.active {
    border-color: #00c853;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
}

/* ========== DETAIL PAGE GALLERY ========== */
.detail-gallery {
    width: 100%;
    height: 320px;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8eaf6 100%);
    position: relative;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.detail-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.2s ease;
}

.detail-thumbnail:hover {
    border-color: #3949ab;
    transform: scale(1.1);
}

.detail-thumbnail.active {
    border-color: #00c853;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-direction: row-reverse;
}

.btn-primary {
    background: linear-gradient(135deg, #3949ab 0%, #283593 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #303f9f 0%, #1a237e 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(57, 73, 171, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #00b248 0%, #00c853 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-extra-small {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 30px;
}

/* ========== CHECKMARK BUTTON ========== */
.btn-checkmark {
    background: #4caf50 !important;
    color: white !important;
    padding: 8px 12px !important;
}

.btn-checkmark i {
    animation: checkmarkFade 0.5s ease;
}

@keyframes checkmarkFade {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========== PRODUCTS GRID ========== */
/* Default: 1 card per row on small mobile */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    border-top: 4px solid #3949ab;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top-color: #00c853;
}

.product-card:hover .main-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #3949ab;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    z-index: 3;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category {
    display: inline-block;
    background-color: rgba(57, 73, 171, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.4;
    text-align: right;
    min-height: 2.5em;
    font-weight: 600;
}

.price-tag {
    color: #00c853;
    font-weight: bold;
    font-size: 1rem;
    margin: 8px 0;
}

.stock-info {
    font-size: 0.8rem;
    color: #757575;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stock-available {
    color: #00c853;
    font-weight: 500;
}

.stock-low {
    color: #ff9800;
    font-weight: 500;
}

.stock-out {
    color: #f44336;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-direction: row-reverse;
}

.action-buttons .btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: 32px;
}

/* ========== WISHLIST PAGE ========== */
#wishlistTab {
    display: none;
}

#wishlistTab.active {
    display: block;
}

.wishlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    gap: 12px;
    flex-direction: row-reverse;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-item-details {
    flex: 1;
    text-align: right;
}

.wishlist-item-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #1a237e;
}

.wishlist-item-price {
    color: #00c853;
    font-weight: bold;
    font-size: 0.85rem;
}

.wishlist-item-category {
    display: inline-block;
    background-color: rgba(57, 73, 171, 0.1);
    color: #3949ab;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 5px;
}

.wishlist-item-actions {
    display: flex;
    gap: 8px;
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #757575;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.empty-state h3 {
    color: #616161;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: white;
    font-size: 1.2rem;
    text-align: right;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 16px;
}

.detail-content {
    margin-bottom: 20px;
    text-align: right;
}

.detail-content h3 {
    color: #1a237e;
    margin-bottom: 12px;
    font-size: 1.2rem;
    text-align: right;
    font-weight: 700;
}

.detail-section {
    margin-bottom: 16px;
    text-align: right;
}

.detail-section h4 {
    color: #3949ab;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    flex-direction: row;
    text-align: right;
}

.detail-info {
    margin-bottom: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
    text-align: right;
}

.form-group {
    margin-bottom: 16px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #424242;
    font-size: 0.9rem;
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border 0.3s ease;
    text-align: right;
}

.form-control:focus {
    border-color: #3949ab;
    outline: none;
    box-shadow: 0 0 0 4px rgba(57, 73, 171, 0.2);
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-direction: row-reverse;
}

.form-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* ========== INFO MODAL ========== */
.info-modal-content {
    max-width: 700px;
}

.info-content {
    padding: 16px;
    text-align: right;
}

.info-content h3 {
    color: #1a237e;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.info-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #424242;
    font-size: 0.9rem;
}

.info-content ul {
    margin-right: 20px;
    margin-bottom: 16px;
}

.info-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ========== CART MODAL ========== */
.cart-modal-content {
    max-width: 700px;
}

.cart-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    gap: 10px;
    flex-direction: row-reverse;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item-details {
    flex: 1;
    text-align: right;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #1a237e;
}

.cart-item-price {
    color: #00c853;
    font-weight: bold;
    font-size: 0.8rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.cart-item-total {
    font-weight: bold;
    color: #1a237e;
    min-width: 80px;
    text-align: left;
    font-size: 0.9rem;
}

.cart-summary {
    padding: 16px;
    border-top: 1px solid #eee;
    text-align: right;
    background-color: #fafafa;
    border-radius: 0 0 15px 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #424242;
}

.summary-total {
    font-size: 1rem;
    font-weight: bold;
    color: #1a237e;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    color: white;
    text-align: center;
    padding: 20px 0 15px 0;
    margin-top: 30px;
    font-size: 0.85rem;
    width: 100%;
    border-radius: 12px 12px 0 0;
}

.footer-content {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 15px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.footer-slogan {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    justify-content: flex-end;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.contact-item i {
    font-size: 0.9rem;
    color: #1ECDFF;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    padding: 5px 0;
    position: relative;
    cursor: pointer;
}

.footer-link:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #1ECDFF;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ========== SOCIAL LINKS IN FOOTER ========== */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 8px 0;
}

.social-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link#facebookLink:hover {
    background: #1877F2;
}

.social-link#instagramLink:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link#whatsappLink:hover {
    background: #25D366;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    padding: 12px 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ========== TAB CONTENT ========== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    flex-direction: row-reverse;
}

.pagination-btn {
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row-reverse;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: #3949ab;
    color: #3949ab;
}

.pagination-btn:disabled {
    color: #bdbdbd;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.page-info {
    font-size: 12px;
    color: #616161;
    font-weight: 500;
}

/* ========== BILL STYLES ========== */
.bill-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 16px;
}

.bill-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #e0e0e0;
}

.customer-info {
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 5px solid #3949ab;
}

.customer-info h4 {
    color: #1a237e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.customer-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.customer-info-label {
    font-weight: 600;
    color: #424242;
}

.bill-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.75rem;
}

.bill-table th {
    background-color: #f5f5f5;
    padding: 8px;
    border: 1px solid #e0e0e0;
    color: #1a237e;
    font-weight: 600;
}

.bill-table td {
    padding: 8px;
    border: 1px solid #e0e0e0;
}

.bill-footer {
    text-align: center;
    border-top: 2px solid #eee;
    padding-top: 16px;
    margin-top: 20px;
}

.bill-serial {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 6px;
    border-radius: 8px;
    margin-top: 10px;
    color: #3949ab;
    font-weight: bold;
    font-size: 0.8rem;
    display: inline-block;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Ultra Large Screens: 6 cards per row */
@media (min-width: 1921px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
    
    .product-card {
        padding: 20px;
        min-height: 340px;
    }
    
    .product-gallery {
        height: 200px;
    }
}

/* Extra Large Screens: 5 cards per row */
@media (min-width: 1441px) and (max-width: 1920px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    
    .product-card {
        padding: 18px;
        min-height: 330px;
    }
    
    .product-gallery {
        height: 190px;
    }
}

/* Large Desktop: 4 cards per row */
@media (min-width: 1201px) and (max-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .product-card {
        padding: 18px;
        min-height: 320px;
    }
    
    .product-gallery {
        height: 180px;
    }
}

/* Desktop: 4 cards per row */
@media (min-width: 1025px) and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .product-card {
        padding: 16px;
        min-height: 310px;
    }
    
    .product-gallery {
        height: 170px;
    }
}

/* Small Desktop/Large Tablet: 3 cards per row */
@media (min-width: 901px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .product-card {
        padding: 16px;
        min-height: 300px;
    }
    
    .product-gallery {
        height: 160px;
    }
}

/* Tablet: 3 cards per row */
@media (min-width: 769px) and (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .product-card {
        padding: 14px;
        min-height: 290px;
    }
    
    .product-gallery {
        height: 150px;
    }
}

/* Large Mobile: 2 cards per row */
@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        padding: 12px;
        min-height: 270px;
    }
    
    .product-gallery {
        height: 140px;
    }
    
    .product-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .price-tag {
        font-size: 0.95rem;
    }
    
    .action-buttons .btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-height: 30px;
    }
}

/* Medium Mobile: 2 cards per row */
@media (min-width: 376px) and (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
        min-height: 250px;
    }
    
    .product-gallery {
        height: 130px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Small Mobile: 1 card per row */
@media (max-width: 375px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .product-card {
        padding: 12px;
        min-height: 250px;
    }
    
    .product-gallery {
        height: 150px;
    }
}

/* Show hamburger menu when not enough space for navigation links */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .nav-actions {
        gap: 6px;
    }
    
    .nav-logo, .nav-logo-fallback {
        width: 40px;
        height: 40px;
    }
    
    .nav-title-main {
        font-size: 1.1rem;
    }
    
    .nav-title-sub {
        font-size: 0.7rem;
    }
    
    .nav-action-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .main-header {
        border-radius: 0 0 20px 20px;
        min-height: 340px;
    }
    
    .header-hero {
        padding: 15px 0 10px;
    }
    
    .header-hero .hero-title {
        font-size: 1.4rem;
    }
    
    .header-hero .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .tabs-container {
        margin-top: 100px;
    }
    
    .detail-gallery {
        height: 280px;
    }
    
    .detail-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .sticky-bottom-menu {
        height: 62px;
        padding: 6px 0;
    }
    
    .bottom-menu-text {
        font-size: 0.75rem;
    }
    
    .bottom-menu-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .site-footer {
        padding: 15px 0 12px 0;
        border-radius: 8px 8px 0 0;
    }
    
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-links {
        gap: 15px;
        padding: 0 10px;
    }
    
    .footer-link {
        font-size: 0.75rem;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .sticky-header {
        padding: 5px 10px;
        height: 60px;
    }
    
    .nav-logo, .nav-logo-fallback {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .nav-title-main {
        font-size: 1rem;
    }
    
    .nav-title-sub {
        font-size: 0.65rem;
    }
    
    .nav-action-btn {
        width: 34px;
        height: 34px;
    }
    
    .hamburger-btn {
        width: 34px;
        height: 34px;
    }
    
    .main-header {
        border-radius: 0 0 15px 15px;
        min-height: 320px;
    }
    
    .header-hero .hero-title {
        font-size: 1.2rem;
    }
    
    .header-hero .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .header-hero .hero-features {
        gap: 20px;
    }
    
    .header-hero .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tabs-container {
        margin-top: 80px;
    }
    
    .product-count {
        padding: 5px 0 10px 0;
    }
    
    .modal-body {
        padding: 14px;
    }
    
    .detail-gallery {
        height: 250px;
    }
    
    .detail-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .thumbnail {
        width: 25px;
        height: 25px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .detail-content h3 {
        font-size: 1rem;
    }
    
    .detail-section h4 {
        font-size: 0.9rem;
    }
    
    .detail-info {
        font-size: 0.85rem;
    }
    
    .product-category {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .sticky-bottom-menu {
        height: 58px;
        padding: 5px 0;
    }
    
    .bottom-menu-item {
        padding: 2px 0;
    }
    
    .bottom-menu-text {
        font-size: 0.7rem;
    }
    
    .bottom-menu-icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    
    .site-footer {
        padding: 12px 0 10px 0;
        border-radius: 6px 6px 0 0;
    }
    
    .footer-main {
        gap: 10px;
        padding: 0 10px 12px;
    }
    
    .footer-logo-text {
        font-size: 1.1rem;
    }
    
    .footer-slogan {
        font-size: 0.75rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
        gap: 5px;
    }
    
    .footer-links {
        gap: 12px;
        padding: 0 10px;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    .footer-social {
        gap: 10px;
        margin: 6px 0;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.7rem;
        padding: 10px 10px 0;
    }
    
    .form-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .nav-title-main {
        font-size: 0.9rem;
    }
    
    .nav-title-sub {
        font-size: 0.6rem;
    }
    
    .bottom-menu-text {
        font-size: 0.65rem;
    }
    
    .bottom-menu-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .site-footer {
        border-radius: 0;
    }
}
/* ========== NAV GUIDE BUTTON ========== */
.nav-guide-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(57, 73, 171, 0.1) 0%, rgba(57, 73, 171, 0.05) 100%);
    border: 2px solid rgba(57, 73, 171, 0.2);
    color: #3949ab;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(57, 73, 171, 0.15);
    flex-direction: row-reverse;
    height: 44px;
}

.nav-guide-btn i {
    font-size: 1.1rem;
    color: #3949ab;
    transition: all 0.3s ease;
}

.nav-guide-text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-guide-btn:hover {
    background: linear-gradient(135deg, rgba(57, 73, 171, 0.2) 0%, rgba(57, 73, 171, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(57, 73, 171, 0.25);
    border-color: rgba(57, 73, 171, 0.4);
    color: #1a237e;
}

.nav-guide-btn:hover i {
    color: #1a237e;
    transform: scale(1.1);
}

/* Hide text on very small screens, show only icon */
@media (max-width: 768px) {
    .nav-guide-btn {
        padding: 8px 12px;
        height: 40px;
    }
    
    .nav-guide-text {
        font-size: 0.8rem;
    }
}

/* UPDATED: Show text at 360px and above, hide only below 360px */
@media (max-width: 359px) {
    .nav-guide-btn .nav-guide-text {
        display: none;
    }
    
    .nav-guide-btn {
        padding: 8px;
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 50%;
    }
    
    .nav-guide-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
}

/* Adjust for very small screens */
@media (max-width: 359px) {
    .nav-guide-btn {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .nav-guide-btn i {
        font-size: 1.1rem;
    }
}

/* NEW: Ensure button looks good on 360px - 480px screens */
@media (min-width: 360px) and (max-width: 480px) {
    .nav-guide-btn {
        padding: 8px 10px;
        height: 38px;
        gap: 6px;
    }
    
    .nav-guide-text {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .nav-guide-btn i {
        font-size: 1rem;
    }
}

/* Ensure proper spacing in nav-actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Bottom menu badge styles */
.bottom-menu-item {
    position: relative;
}

.sticky-bottom-menu .nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    color: white;
    font-size: 9px !important;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 1;
}

@media (max-width: 480px) {
    .sticky-bottom-menu .nav-badge {
        width: 14px;
        height: 14px;
        font-size: 8px !important;
        top: -4px;
        right: -4px;
    }
}