/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8b5e3c;
    --primary-light: #f5ebe0;
    --primary-dark: #3d2c22;
    --accent: #eddbcc;
    --bg-dark: #2d2026;
    --badge-bg: #8b5e3c;
    --badge-text: #fff;
}

[data-theme="royal"] {
    --primary: #5b2c8a;
    --primary-light: #f3e8ff;
    --primary-dark: #2d1450;
    --accent: #e0cfff;
    --bg-dark: #1a1030;
    --badge-bg: #5b2c8a;
    --badge-text: #fff;
}

[data-theme="luxury"] {
    --primary: #c9a84c;
    --primary-light: #f9f3e3;
    --primary-dark: #1a1a1a;
    --accent: #f0e6c8;
    --bg-dark: #0d0d0d;
    --badge-bg: #1a1a1a;
    --badge-text: #c9a84c;
}

[data-theme="pastel"] {
    --primary: #c06080;
    --primary-light: #fff0f5;
    --primary-dark: #5c2040;
    --accent: #f5d0e0;
    --bg-dark: #3d1a2a;
    --badge-bg: #c06080;
    --badge-text: #fff;
}

[data-theme="teal"] {
    --primary: #0d7377;
    --primary-light: #e0f7f7;
    --primary-dark: #053535;
    --accent: #b2ebeb;
    --bg-dark: #0a2e2e;
    --badge-bg: #0d7377;
    --badge-text: #fff;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
}

.theme-title {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: -apple-system, sans-serif;
}

.theme-options {
    display: flex;
    gap: 8px;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    padding: 3px;
    background: #fff;
    transition: border-color 0.2s, transform 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: #333;
    transform: scale(1.15);
}

.theme-btn span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

body {
    font-family: 'Georgia', serif;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    padding: 10px;
}

/* Phone Frame */
.phone-frame {
    width: 375px;
    height: 95vh;
    max-height: 812px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.3), inset 0 0 0 3px #333;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #333;
    border-radius: 0 0 20px 20px;
    z-index: 100;
}

.app-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 47px;
}

/* Screens */
.screen {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    animation: slideIn 0.3s ease;
}

.screen.active {
    display: flex;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Screen Header */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 16px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.screen-header h2 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

/* Screen Body */
.screen-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Splash Screen */
#splash-screen {
    background: #fff;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #222;
    text-align: center;
    padding: 40px;
}

.splash-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
}

.splash-content h1 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 400;
    font-family: 'Georgia', serif;
    letter-spacing: 3px;
    color: var(--primary-dark);
}

.splash-content p {
    color: var(--primary);
    margin-bottom: 50px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.splash-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 11px;
    background: var(--primary);
    color: #fff;
}

/* Login Screen */
.login-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    padding-top: 60px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
}

.delivery-logo {
    color: #c0392b;
}

.login-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    color: #3d2c22;
}

.login-header p {
    color: #888;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    background: transparent;
    transition: border-color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-link {
    text-align: center;
    margin-top: 16px;
    color: #888;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-link a {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Home Screen */
.home-header {
    padding: 45px 16px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.home-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.home-top h2 {
    font-size: 22px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--primary);
}

.header-icons {
    display: flex;
    gap: 8px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, sans-serif;
}

.search-bar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    gap: 10px;
}

.search-bar i {
    color: #aaa;
}

.search-bar input {
    border: none;
    background: none;
    font-size: 14px;
    flex: 1;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.home-body {
    padding-bottom: 80px;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.slide-text {
    flex: 1;
}

.slide-text h3 {
    font-size: 18px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.slide-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    font-family: -apple-system, sans-serif;
    margin-bottom: 8px;
}

.slide-cta {
    font-size: 11px;
    color: #fff;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.2);
    padding: 5px 12px;
    border-radius: 3px;
}

.slide-img-right {
    width: 100px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-img-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    right: 16px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.3s, width 0.3s;
}

.dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

/* Featured Banner */
.featured-banner {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    padding: 24px 16px;
    margin-bottom: 0;
    color: var(--primary-dark);
    text-align: center;
}

.banner-content h3 {
    font-size: 18px;
    margin-bottom: 4px;
    font-family: 'Georgia', serif;
    font-weight: 400;
}

.banner-content p {
    color: #666;
    margin-bottom: 12px;
    font-size: 13px;
    font-family: -apple-system, sans-serif;
}

/* Categories */
.section {
    margin-bottom: 0;
    padding: 16px;
}

.section-title {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.showing-count {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
    font-family: -apple-system, sans-serif;
}

#product-list .home-body {
    padding-bottom: 120px;
}

.categories-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    cursor: pointer;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item span {
    font-size: 11px;
    color: #555;
    font-family: -apple-system, sans-serif;
    letter-spacing: 0.5px;
}

/* Product Grid - Suta Style */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.product-card {
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.product-card:active {
    opacity: 0.8;
}

.product-image {
    height: 210px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
}

.product-image .wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-image .wishlist-btn i {
    font-size: 12px;
    color: #666;
}

.product-info {
    padding: 10px;
    text-align: center;
}

.product-name {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 4px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
    font-family: -apple-system, sans-serif;
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 9px;
    padding: 3px 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: -apple-system, sans-serif;
    text-transform: uppercase;
}

.badge-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-unavailable {
    background: #fce4ec;
    color: #c62828;
}

.badge-progress {
    background: #fff3e0;
    color: #e65100;
}

.badge-delivered {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-bestseller {
    background: #222;
    color: #fff;
}

/* Product List */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-list-item {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.product-list-item:active {
    background: #fafafa;
}

.product-list-image {
    width: 80px;
    height: 100px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-list-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

/* Product Detail */
.detail-image {
    height: 280px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    padding: 20px 16px;
}

.detail-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    font-weight: 400;
}

.detail-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: -apple-system, sans-serif;
}

.detail-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.detail-description h4 {
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.detail-description p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    font-family: -apple-system, sans-serif;
}

.detail-description ul {
    list-style: none;
    padding: 0;
}

.detail-description li {
    font-size: 13px;
    color: #666;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    font-family: -apple-system, sans-serif;
}

.detail-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8b5e3c;
}

.detail-content .btn {
    margin-top: 20px;
}

/* Cart */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-image {
    width: 60px;
    height: 75px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-qty {
    font-size: 12px;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    font-family: -apple-system, sans-serif;
}

.summary-row.total {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
    font-weight: 600;
    font-size: 16px;
    color: #222;
}

.cart-summary .btn {
    margin-top: 16px;
}

/* Checkout */
.checkout-section {
    margin-bottom: 0;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-section h4 {
    font-size: 11px;
    margin-bottom: 10px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: -apple-system, sans-serif;
}

.checkout-section h4 i {
    color: #222;
    margin-right: 6px;
}

.address-card {
    background: #fafafa;
    padding: 12px;
}

.address-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    font-family: -apple-system, sans-serif;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #f8f8f8;
    font-family: -apple-system, sans-serif;
}

/* Payment */
.payment-amount {
    text-align: center;
    padding: 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.payment-amount p {
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: -apple-system, sans-serif;
}

.payment-amount h2 {
    font-size: 32px;
    color: #222;
    font-family: -apple-system, sans-serif;
    font-weight: 300;
}

.payment-methods {
    padding: 16px;
}

.payment-methods h4 {
    font-size: 11px;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option.selected {
    border-color: #8b5e3c;
}

.payment-option i:first-child {
    color: #8b5e3c;
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.payment-option span {
    flex: 1;
    font-size: 14px;
    font-family: -apple-system, sans-serif;
}

.payment-option .fa-check-circle {
    color: #8b5e3c;
}

.payment-methods + .btn {
    margin: 0 16px 16px;
}

/* Success Screen */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 50px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.success-content h2 {
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    font-size: 22px;
}

.success-content p {
    color: #888;
    margin-bottom: 8px;
    font-family: -apple-system, sans-serif;
    font-size: 14px;
}

.success-content .order-id {
    font-weight: 600;
    color: #222;
    margin-bottom: 30px;
}

.success-content .btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Tracking */
.tracking-order-info {
    background: #fafafa;
    padding: 16px;
    margin: 16px;
}

.tracking-order-info .order-id {
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

.tracking-order-info p {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    font-family: -apple-system, sans-serif;
}

.tracking-timeline {
    padding: 0 24px;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 24px;
    width: 1px;
    height: calc(100% - 24px);
    background: #e0e0e0;
}

.timeline-item.completed:not(:last-child)::before {
    background: #2e7d32;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item.completed .timeline-dot {
    background: #2e7d32;
}

.timeline-item.completed .timeline-dot::after {
    content: '✓';
    color: #fff;
    font-size: 10px;
}

.timeline-item.active .timeline-dot {
    background: #8b5e3c;
    box-shadow: 0 0 0 4px rgba(139,94,60,0.15);
}

.timeline-title {
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, sans-serif;
}

.timeline-time {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    font-family: -apple-system, sans-serif;
}

.delivery-person-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
    padding: 14px;
    margin: 0 16px;
}

.dp-avatar {
    width: 44px;
    height: 44px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.dp-info {
    flex: 1;
}

.dp-name {
    font-weight: 600;
    font-size: 14px;
    font-family: -apple-system, sans-serif;
}

.dp-vehicle {
    font-size: 12px;
    color: #888;
    font-family: -apple-system, sans-serif;
}

/* Orders */
.order-card {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-card-items p {
    font-size: 13px;
    color: #555;
    font-family: -apple-system, sans-serif;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
    font-size: 13px;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.order-card-footer span:first-child {
    font-weight: 600;
    color: #222;
}

.order-id {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    font-family: -apple-system, sans-serif;
}

/* Profile */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin: 0 auto 12px;
}

.profile-header h3 {
    font-size: 18px;
    font-family: 'Georgia', serif;
    font-weight: 400;
}

.profile-header p {
    font-size: 13px;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.profile-menu {
    background: #fff;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item i:first-child {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    font-family: -apple-system, sans-serif;
}

.menu-item .fa-chevron-right {
    color: #ccc;
    font-size: 12px;
}

/* Bottom Navigation */
.sort-filter-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 10;
}

.sf-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #333;
    font-family: -apple-system, sans-serif;
}

.sf-btn:active {
    background: #f5f5f5;
}

.sf-btn i {
    font-size: 14px;
    color: var(--primary);
}

.sf-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 25px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    color: #bbb;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: -apple-system, sans-serif;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: var(--primary);
}

/* Delivery App Specific */
.delivery-header {
    background: #fff;
}

.delivery-btn {
    background: #c0392b;
}

.delivery-nav .nav-item.active {
    color: #c0392b;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 1px;
    margin-bottom: 16px;
    background: #f0f0f0;
}

.stat-card {
    flex: 1;
    background: #fff;
    padding: 16px 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 20px;
    color: #222;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
}

.stat-card p {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, sans-serif;
}

/* Delivery Cards */
.delivery-card {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.delivery-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.delivery-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-location {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.delivery-location i {
    color: #555;
    margin-top: 2px;
}

.loc-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, sans-serif;
}

.delivery-location p:last-child {
    font-size: 13px;
    color: #333;
    font-family: -apple-system, sans-serif;
}

.delivery-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
    font-size: 13px;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.delivery-card-footer span:last-child {
    font-weight: 600;
    color: #2e7d32;
}

/* Delivery Detail */
.delivery-detail-section {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.delivery-detail-section h4 {
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.delivery-detail-section h4 i {
    color: #555;
    margin-right: 6px;
}

.delivery-detail-section p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    font-family: -apple-system, sans-serif;
}

.detail-items p {
    padding: 4px 0;
}

.earning-amount {
    font-size: 24px !important;
    font-weight: 600;
    color: #2e7d32 !important;
}

.delivery-actions {
    padding: 16px;
}

/* Responsive - Smaller screens */
@media (max-width: 420px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .phone-notch {
        display: none;
    }
    .app-container {
        border-radius: 0;
    }
    body {
        padding: 0;
    }
}

/* Bottom Sheet */
.bottom-sheet-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    border-radius: 47px;
}

.bottom-sheet-overlay.active {
    display: block;
}

.bottom-sheet {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 55%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 999;
    transition: bottom 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    bottom: 0;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sheet-header h3 {
    font-size: 13px;
    letter-spacing: 2px;
    color: #333;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
}

.sheet-close {
    background: none;
    border: none;
    font-size: 14px;
    color: #8b5e3c;
    cursor: pointer;
    font-weight: 600;
    font-family: -apple-system, sans-serif;
}

.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.sheet-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    font-family: -apple-system, sans-serif;
    color: #333;
}

.sheet-option:active {
    background: #fafafa;
}

.sheet-option.selected {
    color: #8b5e3c;
    font-weight: 600;
}

.sheet-option .fa-check {
    color: #8b5e3c;
    font-size: 12px;
}

/* Filter Sheet */
.filter-sheet {
    max-height: 70vh;
}

.filter-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.filter-sidebar {
    width: 120px;
    background: #f8f8f8;
    border-right: 1px solid #eee;
    overflow-y: auto;
}

.filter-tab {
    padding: 14px 12px;
    font-size: 12px;
    font-family: -apple-system, sans-serif;
    color: #555;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.filter-tab.active {
    background: #fff;
    color: #8b5e3c;
    font-weight: 600;
    border-left: 3px solid #8b5e3c;
}

.filter-options {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 13px;
    font-family: -apple-system, sans-serif;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f8f8f8;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5e3c;
}

.sheet-footer {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.sheet-footer .btn {
    flex: 1;
    padding: 12px;
    font-size: 12px;
}

@media (max-width: 420px) {
    .bottom-sheet {
        width: 100%;
    }
}

/* Virtual Try-On */
.tryon-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.tryon-product-preview img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
}

.tryon-product-name {
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, sans-serif;
}

.tryon-product-price {
    font-size: 14px;
    color: #8b5e3c;
    font-weight: 600;
    font-family: -apple-system, sans-serif;
}

.tryon-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
}

.tryon-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5ebe0, #eddbcc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #8b5e3c;
    margin-bottom: 16px;
}

.tryon-upload-area h3 {
    font-size: 18px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    margin-bottom: 6px;
}

.tryon-upload-area > p {
    font-size: 13px;
    color: #888;
    font-family: -apple-system, sans-serif;
    margin-bottom: 20px;
}

.tryon-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
}

.tryon-buttons .btn {
    flex: 1;
    padding: 12px;
    font-size: 12px;
}

.tryon-tips {
    background: #f8f5f0;
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    text-align: left;
}

.tips-title {
    font-size: 12px;
    font-weight: 600;
    color: #8b5e3c;
    margin-bottom: 8px;
    font-family: -apple-system, sans-serif;
}

.tryon-tips ul {
    list-style: none;
    padding: 0;
}

.tryon-tips li {
    font-size: 12px;
    color: #666;
    padding: 3px 0;
    padding-left: 14px;
    position: relative;
    font-family: -apple-system, sans-serif;
}

.tryon-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8b5e3c;
    font-size: 10px;
}

/* Try-On Result */
.tryon-result-container {
    padding: 16px;
}

.tryon-compare {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tryon-before, .tryon-after {
    flex: 1;
    position: relative;
}

.tryon-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
    font-family: -apple-system, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tryon-photo {
    width: 100%;
    height: 220px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tryon-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tryon-result-info {
    text-align: center;
}

.tryon-ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5ebe0, #eddbcc);
    color: #8b5e3c;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.tryon-note {
    font-size: 11px;
    color: #888;
    font-family: -apple-system, sans-serif;
    margin-bottom: 16px;
}

.tryon-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tryon-actions .btn {
    font-size: 12px;
}

/* Try-On Processing */
#tryon-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.tryon-processing-content {
    text-align: center;
    padding: 40px;
}

.tryon-processing-content h3 {
    font-size: 16px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    margin-bottom: 8px;
}

.tryon-processing-content p {
    font-size: 13px;
    color: #888;
    font-family: -apple-system, sans-serif;
}

.tryon-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top-color: #8b5e3c;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Product Detail Gallery */
.detail-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.g-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.g-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
}

.thumb {
    width: 48px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Detail Sections */
.detail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.detail-section h4 {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    font-family: -apple-system, sans-serif;
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.size-chart-link {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, sans-serif;
    text-decoration: underline;
}

/* Size Selector */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.size-btn:hover {
    border-color: var(--primary);
}

/* Delivery Info */
.delivery-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 8px;
}

.delivery-info-box i {
    color: var(--primary);
    font-size: 18px;
}

.delivery-est {
    font-size: 13px;
    color: #333;
    font-family: -apple-system, sans-serif;
}

.delivery-fee {
    font-size: 11px;
    color: #888;
    font-family: -apple-system, sans-serif;
    margin-top: 2px;
}

/* Return Policy */
.policy-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    font-family: -apple-system, sans-serif;
}

.policy-item i {
    color: var(--primary);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* Similar Products */
.similar-products {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.similar-card {
    min-width: 110px;
    flex-shrink: 0;
    cursor: pointer;
}

.similar-card img {
    width: 110px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.similar-name {
    font-size: 11px;
    color: #333;
    font-family: -apple-system, sans-serif;
    margin-bottom: 2px;
}

.similar-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    font-family: -apple-system, sans-serif;
}

/* Size Chart Popup */
.sizechart-sheet {
    max-height: 75%;
}

.sizechart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--primary);
    color: #fff;
}

.sizechart-header h3 {
    font-size: 13px;
    letter-spacing: 2px;
    color: #fff;
    font-family: -apple-system, sans-serif;
}

.sizechart-header .sheet-close {
    color: #fff;
}

.sizechart-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.toggle-btn {
    padding: 6px 20px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
    font-family: -apple-system, sans-serif;
    cursor: pointer;
    font-weight: 500;
}

.toggle-btn:first-child {
    border-radius: 20px 0 0 20px;
}

.toggle-btn:last-child {
    border-radius: 0 20px 20px 0;
}

.toggle-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sizechart-body {
    padding: 16px;
    overflow-y: auto;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: -apple-system, sans-serif;
}

.size-table th {
    padding: 8px 6px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.size-table td {
    padding: 10px 6px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.measure-label {
    text-align: left !important;
    font-weight: 600;
    color: #555 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sizechart-note {
    font-size: 10px;
    color: #999;
    margin-top: 12px;
    font-family: -apple-system, sans-serif;
    font-style: italic;
}

/* View Toggle */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #999;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Single View */
.product-grid.single-view {
    grid-template-columns: 1fr;
}

.product-grid.single-view .product-image {
    height: 350px;
}

.product-grid.single-view .product-info {
    padding: 14px;
}

.product-grid.single-view .product-name {
    font-size: 14px;
}

.product-grid.single-view .product-price {
    font-size: 16px;
}
