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

body {
    background: rgba(141, 132, 132, 0.281);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-section {
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 78, 134, 0.041);
    background-color: #ffffff;
    max-width: 365px;
    width: 100%;
    height: 99vh;
    margin: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Navigation */
.navigation-bar {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    outline: none;
    padding: 6px 10px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
}

.back-btn:hover {
    background: #f5f5f5;
    border-radius: 8px;
}

/* Hamburger Menu Button */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.menu-toggle:hover {
    opacity: 0.7;
}

.menu-toggle:focus {
    outline: 2px solid #25ac25;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hide hamburger button when menu is active */
.menu-toggle.active {
    opacity: 0;
    pointer-events: none;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #25ac25;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle:hover .hamburger-line {
    background: #229922;
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.dropdown-menu.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.dropdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.dropdown-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dropdown-menu.active .dropdown-content {
    transform: translateX(0);
}

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.dropdown-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.dropdown-close:hover {
    color: #333;
}

.dropdown-close:focus {
    outline: 2px solid #25ac25;
    outline-offset: 2px;
    border-radius: 4px;
}

.dropdown-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    font-size: 15px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item:active {
    background: #e8e8e8;
}

.dropdown-item:focus {
    outline: 2px solid #25ac25;
    outline-offset: -2px;
}

.dropdown-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.dropdown-text {
    font-size: 15px;
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.logout-btn {
    color: #e74c3c;
}

.logout-btn:hover {
    background: #ffebee;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Main Content */
.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.page-title {
    color: #666;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    padding: 20px 30px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0;
}

/* Products List */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 30px;
    margin-bottom: 20px;
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
}

.empty-message {
    color: #999;
    font-size: 16px;
    text-align: center;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border: none;
    border-bottom: 2px solid #25ac25;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.product-image {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    color: #25ac25;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-subtitle {
    color: #666;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-description {
    color: #666;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
    max-height: 60px;
    overflow: hidden;
    position: relative;
}

.product-description.expanded {
    max-height: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: #25ac25;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 12px;
    text-align: left;
    font-family: inherit;
    transition: opacity 0.2s;
}

.read-more-btn:hover {
    opacity: 0.7;
}

.read-more-btn:focus {
    outline: 2px solid #25ac25;
    outline-offset: 2px;
    border-radius: 2px;
}

.product-quantity {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-quantity.low-stock {
    color: #e74c3c;
}

.product-quantity.out-of-stock {
    color: #999;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-view {
    flex: 1;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-view:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn-view:focus {
    outline: 2px solid #25ac25;
    outline-offset: 2px;
}

.btn-buy {
    background: #25ac25;
    border: none;
    border-radius: 25px;
    padding: 12px 36px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 3px 8px rgba(37, 172, 37, 0.3);
}

.btn-buy:hover {
    background: #229922;
    box-shadow: 0 4px 12px rgba(37, 172, 37, 0.4);
    transform: translateY(-1px);
}

.btn-buy:focus {
    outline: 2px solid #25ac25;
    outline-offset: 2px;
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-buy:disabled,
.btn-view:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-buy:disabled:hover,
.btn-view:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Footer */
.footer {
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    box-sizing: border-box;
    margin-top: auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: fit-content;
}

.logo-container img {
    width: auto;
    margin-bottom: 4px;
}

.footer-text {
    color: #999;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
}

.balls {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.balls img {
    width: auto;
    height: 50px;
}

/* Loading Skeleton */
.products-loading {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f0f0f0;
}

.skeleton-img {
    height: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 380px) {
    .hero-section {
        margin: 0;
        height: 100vh;
    }
    
    .navigation-bar,
    .content-container,
    .footer {
        padding: 15px 20px;
    }
    
    .product-card {
        padding: 12px;
        gap: 12px;
    }
    
    .product-image {
        width: 100px;
        height: 75px;
    }
}