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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.phone-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.phone-frame {
    width: 100%;
}

.app-main,
.profile-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fff;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.cart-section,
.payment-section,
.orders-section {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cart-section:last-child,
.payment-section:last-child {
    margin-bottom: 0;
}

.phone-content {
    background: #fff;
    border-radius: 15px;
    height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.app-header,
.profile-header {
    background: #fff;
    padding: 20px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.profile-header {
    background: linear-gradient(135deg, #281A7C 0%, #4A2FB8 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    border-bottom: none;
}

.logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: block;
}

.app-header h1,
.profile-header h1 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin-bottom: 3px;
}

.profile-header h1 {
    color: white;
    font-size: 24px;
}

.app-header p,
.profile-header p {
    font-size: 12px;
    color: #666;
}

.profile-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.info-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.info-icon {
    width: 14px;
    height: 14px;
    color: #999;
    flex-shrink: 0;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-info {
    padding: 12px;
}

.product-info h3 {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.price {
    color: #281A7C;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 12px;
    margin-bottom: 12px;
}

.clock-icon {
    width: 14px;
    height: 14px;
    color: #999;
}

.add-to-cart-btn {
    width: 100%;
    background: #281A7C;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: #1f1470;
    transform: translateY(-1px);
}

.cart-icon {
    width: 16px;
    height: 16px;
    color: white;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #666;
    flex: 1;
    max-width: calc(100% / 3);
    text-align: center;
    min-height: 60px;
    box-sizing: border-box;
}

.nav-tab:hover {
    background: #f8f9fa;
    color: #333;
}

.nav-tab.active {
    background: #f8f9fa;
    color: #281A7C;
    transform: none;
    scale: 1;
}

.nav-tab .icon {
    width: 20px;
    height: 20px;
    color: #666;
    flex-shrink: 0;
}

.nav-tab .label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-tab.active .icon,
.nav-tab.active .label {
    color: #281A7C;
    font-weight: 600;
}

@media (max-width: 767px) {
    body {
        background: #fff;
        padding: 0;
    }
    
    .phone-container {
        max-width: 100%;
        transform: none;
    }
    
    .phone-content {
        height: 100vh;
        border-radius: 0;
    }
    
    .app-main,
    .profile-content {
        padding-bottom: 80px;
    }
    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
}

@media (min-width: 768px) {
    .phone-container {
        transform: scale(1.05);
    }
}

@media (min-width: 1024px) {
    .phone-container {
        transform: scale(1.1);
    }
}

@media (min-width: 1440px) {
    .phone-container {
        transform: scale(1.15);
    }
}

.app-main::-webkit-scrollbar,
.profile-content::-webkit-scrollbar {
    width: 3px;
}

.app-main::-webkit-scrollbar-track,
.profile-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.app-main::-webkit-scrollbar-thumb,
.profile-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.app-main::-webkit-scrollbar-thumb:hover,
.profile-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.cart-notification {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #281A7C;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 250px;
    text-align: center;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
