/* General Styles */
:root {
    --fk-blue: #2874f0;
    --fk-yellow: #ffe11b;
    --fk-text: #212121;
    --fk-text-light: #878787;
    --fk-bg: #f1f3f6;
    --fk-header-height: 56px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--fk-bg);
    font-family: Roboto, Arial, sans-serif;
}

/* Header Styles */
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
}

.search-form {
    width: 100%;
    max-width: 500px;
}

/* Product Card Styles */
.product-card {
    transition: transform 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    object-fit: contain;
}

.product-title {
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #212529;
}

.product-sale-price {
    color: #dc3545;
}

.product-original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Wishlist Styles */
.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: white;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-icon:hover {
    transform: scale(1.1);
}

.wishlist-icon.active {
    color: #dc3545;
}

/* Rating Stars */
.rating {
    color: #ffc107;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin: 2rem 0;
}

.page-link {
    color: #0d6efd;
    border-radius: 0;
}

.page-link.active {
    background-color: #0d6efd;
    color: white;
}

/* Order Status Badges */
.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}

/* Admin Panel */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
    padding: 1rem;
}

.admin-content {
    padding: 1rem;
}

/* Responsive Images */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Form Styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert Styles */
.alert {
    margin-bottom: 0;
}

/* Footer Styles */
footer {
    margin-top: auto;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .admin-sidebar {
        min-height: auto;
    }
}

/* --- FLIPKART MODERN UI CLASSES --- */

/* Header */
.fk-header {
    background-color: var(--fk-blue);
    padding: 0;
    height: var(--fk-header-height);
    display: flex;
    align-items: center;
}

.fk-logo-container {
    display: flex;
    align-items: center;
    font-style: italic;
    font-weight: bold;
    color: white;
    font-size: 20px;
    text-decoration: none;
    line-height: 1;
}
.fk-logo-container span {
    color: var(--fk-yellow);
    font-size: 12px;
    margin-left: 2px;
}

.fk-search-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 20px;
    display: flex;
}

.fk-search-input {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 2px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.23);
    outline: none;
    font-size: 14px;
}

.fk-search-btn {
    background: white;
    border: none;
    color: var(--fk-blue);
    padding: 0 15px;
    position: absolute;
    right: 0;
    height: 100%;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}

.fk-nav-btn {
    color: white;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 5px;
}

.fk-nav-btn:hover {
    color: white;
}

.fk-login-btn {
    background-color: white;
    color: var(--fk-blue);
    font-weight: 500;
    padding: 5px 40px;
    border-radius: 2px;
    text-decoration: none;
    border: 1px solid white;
}

.fk-login-btn:hover {
    color: var(--fk-blue);
}

/* Sub Navigation (Categories) */
.fk-sub-nav {
    background-color: white;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.16);
    padding: 10px 0;
    margin-bottom: 15px;
}

.fk-sub-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--fk-text);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}
.fk-sub-nav-item:hover {
    color: var(--fk-blue);
    background: rgba(0,112,243,0.06);
}
.fk-sub-nav-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 5px;
    display: block;
}
.fk-sub-nav-item i {
    width: 64px;
    height: 48px;
    margin-bottom: 5px;
    color: var(--fk-blue);
    font-size: 30px;
    display: block;
    text-align: center;
    line-height: 48px;
}

/* Cards */
.fk-card {
    background: white;
    border: none;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.2);
    transition: box-shadow 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.fk-card:hover {
    box-shadow: 0 3px 16px 0 rgba(0,0,0,.11);
}

.fk-card .fk-card-image {
    height: 180px;
    object-fit: contain;
    width: 100%;
    margin-bottom: 15px;
}

.fk-card .fk-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--fk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.fk-card .fk-card-category {
    font-size: 14px;
    color: var(--fk-text-light);
    margin-bottom: 8px;
}

.fk-card .fk-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.fk-card .fk-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--fk-text);
}

.fk-card .fk-offer {
    font-size: 13px;
    color: #388e3c;
    font-weight: 500;
}

/* Footer */
.fk-footer {
    background-color: #172337;
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}
.fk-footer-col h6 {
    color: #878787;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.fk-footer-col a {
    color: white;
    font-size: 12px;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.fk-footer-col a:hover {
    text-decoration: underline;
}

/* --- CHECKOUT UI (MOBILE FIRST) --- */

.checkout-wrapper {
    background-color: #f1f3f6;
    min-height: 100vh;
}

.checkout-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f1f3f6;
    padding-bottom: 80px; /* Space for sticky bottom bar */
    min-height: 100vh;
    position: relative;
}

.checkout-header {
    background-color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.checkout-header h5 {
    margin: 0;
    margin-left: 15px;
    font-size: 18px;
    font-weight: 500;
}

.checkout-stepper {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.checkout-stepper::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.stepper-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #878787;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    border: 2px solid white;
}

.stepper-item.active .stepper-circle {
    background: var(--fk-blue);
    color: white;
}

.stepper-item.completed .stepper-circle {
    background: var(--fk-blue);
    color: white;
}

.stepper-label {
    font-size: 12px;
    color: #878787;
}

.stepper-item.active .stepper-label {
    color: #212121;
    font-weight: 500;
}

.checkout-section {
    display: none;
    background: white;
    margin-top: 10px;
    padding: 15px;
}

.checkout-section.active {
    display: block;
}

.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 12px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.btn-orange {
    background-color: #fb641b;
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 2px;
    text-transform: uppercase;
}

.btn-orange:hover {
    background-color: #f35607;
    color: white;
}

.green-savings-banner {
    background-color: #e5f6e8;
    color: #388e3c;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-option-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.payment-option-box:hover, .payment-option-box.selected {
    border-color: var(--fk-blue);
    background-color: #f5f9ff;
}

.payment-option-box input[type="radio"] {
    transform: scale(1.2);
}

.payment-option-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cashback-banner {
    background: linear-gradient(90deg, #5b2c6f 0%, #8e44ad 100%);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 4px;
}

.cashback-banner h3 {
    font-weight: bold;
    font-style: italic;
    margin-bottom: 5px;
    font-size: 22px;
}

.cashback-banner p {
    margin: 0;
    font-size: 16px;
}

.timer-text {
    text-align: center;
    color: #212121;
    font-size: 14px;
    margin-bottom: 15px;
}
.timer-text span {
    color: #fb641b;
    font-weight: 500;
} 