/* ========== CSS Variables ========== */
:root {
    --primary: #FF6B00;
    --primary-dark: #e55d00;
    --primary-light: #fff3e6;
    --secondary: #1a1a2e;
    --accent: #e94560;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --bg: #f5f5f7;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --header-height: 64px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input {
    font-family: inherit;
    outline: none;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    color: var(--text);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-btn.logged-in {
    background: var(--success);
}

/* ========== Main Content ========== */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 40px;
}

/* ========== Hero Banner ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8533 50%, #ffad33 100%);
    padding: 50px 20px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
}

.hero-badge i {
    font-size: 16px;
}

/* ========== Section ========== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.section-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.section-link:hover {
    text-decoration: underline;
}

/* ========== Category Grid ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.category-card .cat-name {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ========== Product Grid ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.product-card .product-img-wrap {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.product-card .product-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-info {
    padding: 14px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    cursor: pointer;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.price-mrp {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-off {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-add-cart.in-cart {
    background: var(--success);
}

/* ========== Product Detail ========== */
.product-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.pd-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.pd-image-section {
    position: relative;
}

.pd-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fafafa;
}

.pd-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.pd-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
}

.pd-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.pd-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.pd-mrp {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pd-off {
    font-size: 1rem;
    color: var(--success);
    font-weight: 700;
}

.pd-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 20px;
}

.pd-feature i {
    color: var(--primary);
}

.pd-description {
    margin-bottom: 24px;
}

.pd-description h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary);
}

.pd-description-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    white-space: pre-line;
}

.pd-description-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    color: var(--primary);
    background: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: 6px;
    padding: 0;
}

.pd-actions {
    display: flex;
    gap: 12px;
}

.pd-actions .btn-add-cart {
    flex: 1;
    padding: 14px;
    font-size: 16px;
}

.btn-buy-now {
    flex: 1;
    padding: 14px;
    background: var(--secondary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-buy-now:hover {
    background: #2a2a3e;
}

/* ========== Cart Page ========== */
.cart-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.cart-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fafafa;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-mrp {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.qty-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-remove {
    color: var(--danger);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
}

.cart-summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.cart-summary-row .free-tag {
    color: var(--success);
    font-weight: 600;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cart-empty h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-continue-shopping:hover {
    background: var(--primary-dark);
}

/* ========== Checkout Page ========== */
.checkout-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
}

.checkout-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.checkout-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.form-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.order-summary-checkout {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 24px 0 16px;
}

.order-summary-checkout h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary);
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-pay:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ========== Order Success ========== */
.order-success {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.order-success .success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: bounceIn 0.5s ease;
}

.order-success h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 10px;
}

.order-success p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 15px;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ========== Orders Page ========== */
.orders-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.order-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.order-id {
    font-size: 13px;
    color: var(--text-light);
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.order-status.shipped {
    background: #cce5ff;
    color: #004085;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-item-list {
    margin-bottom: 10px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.order-item-row img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #fafafa;
}

.order-item-row .name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.order-item-row .qty-price {
    font-size: 13px;
    color: var(--text-light);
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    cursor: pointer;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 28px;
    background: none;
    color: var(--text-muted);
    line-height: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-light);
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.input-prefix {
    padding: 12px 14px;
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
    border-right: 1px solid var(--border);
    font-size: 14px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 15px;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-full {
    width: 100%;
}

.otp-info {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.btn-link {
    display: block;
    text-align: center;
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
    margin-top: 12px;
    background: none;
    width: 100%;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    transition: transform 0.3s ease;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ========== Loading ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Skeleton ========== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

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

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.skeleton-card .skeleton-img {
    height: 200px;
}

.skeleton-card .skeleton-text {
    margin: 14px;
    height: 16px;
}

.skeleton-card .skeleton-text-sm {
    margin: 0 14px 14px;
    height: 12px;
    width: 60%;
}

.skeleton-card .skeleton-btn {
    margin: 0 14px 14px;
    height: 38px;
}

/* ========== Footer ========== */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo img {
    width: auto;
    height: 55px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.1rem;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer-section p i {
    color: var(--primary);
    margin-right: 8px;
    width: 16px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    font-size: 13px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

/* ========== Back Button ========== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    background: none;
    padding: 0;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-badges {
        gap: 8px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 10px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card img {
        height: 90px;
    }

    .category-card .cat-name {
        font-size: 11px;
        padding: 8px 4px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .product-img-wrap img {
        height: 150px;
    }

    .product-name {
        font-size: 12px;
        min-height: 36px;
    }

    .price-current {
        font-size: 15px;
    }

    .price-mrp, .price-off {
        font-size: 11px;
    }

    .product-info {
        padding: 10px;
    }

    .pd-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .pd-main-image {
        height: 280px;
    }

    .pd-info h1 {
        font-size: 1.2rem;
    }

    .pd-price {
        font-size: 1.6rem;
    }

    .pd-actions {
        flex-direction: column;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .logo-title {
        font-size: 15px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .login-btn span {
        display: none;
    }

    .login-btn {
        padding: 8px 10px;
    }
}

@media (max-width: 400px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card .product-img-wrap img {
        height: 130px;
    }

    .btn-add-cart {
        font-size: 12px;
        padding: 8px;
    }
}

/* Policy Pages */
.policy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    line-height: 1.8;
    color: #333;
}
.policy-page h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.policy-page .policy-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
}
.policy-page h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 30px 0 12px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
}
.policy-page h3 {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin: 18px 0 8px;
}
.policy-page p {
    margin-bottom: 12px;
    font-size: 15px;
}
.policy-page ul {
    margin: 8px 0 16px 20px;
    font-size: 15px;
}
.policy-page ul li {
    margin-bottom: 6px;
}
.policy-page a {
    color: var(--primary);
    text-decoration: underline;
}
.policy-page .policy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 13px;
}
@media (max-width: 768px) {
    .policy-page { padding: 20px 15px 40px; }
    .policy-page h1 { font-size: 22px; }
    .policy-page h2 { font-size: 18px; }
}
