/* General Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #f1f2f4;
    color: #212121;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

/* =========================================
   Editor View Styles (Beautiful, modern, premium)
   ========================================= */
#editor-view {
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.container h1 {
    text-align: center;
    margin-bottom: 24px;
    color: #2874f0; /* Flipkart Blue */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #2874f0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40,116,240,0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #878787;
    font-size: 12px;
}

.btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    background: linear-gradient(90deg, #ff9900, #fb641b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 100, 27, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(251, 100, 27, 0.4);
    transform: translateY(-2px);
}

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

/* Product Tabs */
.product-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #2874f0;
    color: #fff;
    border-color: #2874f0;
}

.tab-btn:hover:not(.active) {
    background: #f0f0f0;
}

.btn-secondary {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    background: #ffffff;
    color: #2874f0; /* Flipkart Blue */
    border: 2px solid #2874f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f5f8fd;
    transform: translateY(-2px);
}

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

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.action-buttons button {
    margin-top: 0;
}

.btn-danger {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    color: #ff4d4f;
    border: 2px solid #ff4d4f;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #fff1f0;
    transform: translateY(-2px);
}

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


/* =========================================
   Flipkart Fake View Styles (Ditto Copy)
   ========================================= */
.hidden {
    display: none !important;
}

#flipkart-view {
    background: #ffffff;
    max-width: 100vw; /* take full width on mobile */
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
}

.back-btn {
    display: flex;
    align-items: center;
    margin-right: 16px;
    cursor: pointer;
}

.back-btn .material-symbols-outlined {
    font-size: 24px;
    color: #3f3f3f;
    font-weight: 300;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
}

/* Search Area */
.search-filter-area {
    display: flex;
    padding: 10px 16px;
    background: #fff;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fff;
}

.search-icon {
    color: #878787;
    font-size: 20px;
    margin-right: 8px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #212121;
}

.search-box input::placeholder {
    color: #878787;
    font-size: 14px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.filter-icon {
    font-size: 20px;
}

.divider {
    height: 1px;
    background: #f0f0f0;
    width: 100%;
}

/* Order Item */
.order-item {
    display: flex;
    padding: 16px;
    background: #fff;
    align-items: flex-start;
}

.order-img-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.order-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.order-details {
    flex: 1;
}

.delivery-status {
    font-size: 14px;
    color: #212121;
    margin-bottom: 8px;
}

.product-name {
    font-size: 13px;
    color: #878787;
    margin-bottom: 4px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ratings */
.rating-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 26px;
    line-height: 1;
    color: #e0e0e0; /* Grey star */
}

.star.filled {
    color: #388e3c; /* Green star pattern */
}

.rating-text {
    font-size: 13px;
    color: #878787;
}

.rating-text.blue {
    color: #2874f0;
}

.arrow-right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    margin-top: 12px;
    color: #878787;
}

.arrow-right .material-symbols-outlined {
    font-size: 24px;
}
