/* Kiran Jewellery - Premium Mobile App Style CSS */

:root {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #fce7f3;
    --secondary: #2b4633;
    --secondary-light: #4a7c59;
    --bg: #ffffff;
    --bg-light: #f9f9f9;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 0 !important;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--pink);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

#notifBadge {
    background: #ef4444;
}

#notifPanel.hidden {
    display: none;
}

#notifPanel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--secondary);
}

/* Search Bar */
.search-container {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 30px;
    padding: 4px;
    box-shadow: var(--shadow);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Banner Carousel - Horizontal Scroll */
.banner-section {
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 8px !important;
    width: 100% !important;
    max-width: none !important;
    position: relative;
}

/* Remove padding from parent containers for banner */
.app-container > .banner-section,
main > .banner-section,
.container > .banner-section {
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

/* Horizontal scroll container */
.banner-track {
    display: flex;
    transition: transform 0.5s ease;
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.banner-track::-webkit-scrollbar {
    display: none;
}

.banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 280px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Swipe hint animation */
@keyframes swipeHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.banner-carousel:hover .banner-track {
    animation: swipeHint 1s ease 2;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 24px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: var(--white);
    text-align: center;
    z-index: 5;
}

.banner-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 16px;
}

.banner-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 24px 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: var(--white);
    text-align: center;
    z-index: 5;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
    opacity: 1;
}

/* Section Divider */
.section-divider {
    display: none;
}

.home-section {
    background: var(--white);
    margin: 0 0 8px 0;
    border-radius: 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.home-section:first-of-type {
    margin-top: 0;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    border-radius: 4px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}

.category-card {
    text-align: center;
    text-decoration: none;
}

.category-icon {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.category-card:hover .category-icon {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.13);
}

.category-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.category-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
    align-items: stretch;
}

.products-grid .product-card {
    height: 100%;
    min-height: 320px;
    max-height: 320px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

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

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--bg-light);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 2;
}

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

.wishlist-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.wishlist-btn.active svg {
    color: var(--primary);
    fill: var(--primary);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    min-height: 44px;
}

.current-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.original-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    white-space: nowrap;
}

.discount-badge {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

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

/* Horizontal Scroll Products */
.products-scroll {
    display: flex;
    gap: 16px;
    padding: 0 16px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

.products-scroll .product-card {
    min-width: 180px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Product Detail Page */
.product-detail {
    background: var(--white);
    min-height: 100vh;
}

.product-gallery {
    position: relative;
    background: var(--bg-light);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-dot.active {
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

.product-detail-content {
    padding: 20px;
}

.product-detail-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.detail-original-price {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.detail-discount {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 20px;
}

.description-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.description-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--bg);
}

.quantity-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    max-width: 480px;
    margin: 0 auto;
}

.wishlist-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-action-btn:hover {
    background: var(--primary-light);
}

.wishlist-action-btn svg {
    width: 24px;
    height: 24px;
}

.add-cart-btn {
    flex: 1;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-cart-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* Cart Page */
.cart-page {
    padding: 16px;
    padding-bottom: 100px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remove-btn {
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.checkout-btn {
    width: 100%;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.empty-cart svg {
    width: 100px;
    height: 100px;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

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

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    width: 100%;
    padding: 16px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--white) 100%);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
}

.auth-logo svg {
    width: 40px;
    height: 40px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Icon Background for Bottom Nav */
.nav-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-icon-bg.active {
    background: linear-gradient(135deg, #f1ddc2 0%, #e8d5b5 100%);
}

.nav-icon-bg svg {
    width: 22px;
    height: 22px;
    color: #374151;
}

.nav-icon-bg.active svg {
    color: var(--secondary);
}

/* Download App Page */
.download-page {
    padding: 20px;
    text-align: center;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 24px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.app-icon-large svg {
    width: 60px;
    height: 60px;
}

.app-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.app-tagline {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 16px;
    padding: 16px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn.android {
    background: var(--secondary);
    color: var(--white);
}

.download-btn.ios {
    background: var(--text-dark);
    color: var(--white);
}

.download-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.download-btn svg {
    width: 28px;
    height: 28px;
}

.category-icon {
    font-size: 24px;
    color: var(--pink);
}

/* Side Menu Styles */
#sideMenu {
    touch-action: pan-y;
}

#sideMenuContent {
    will-change: transform;
}

#sideMenuContent::-webkit-scrollbar {
    width: 4px;
}

#sideMenuContent::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 4px;
}

/* Category expand animation */
#sideMenuContent [id^="category-"] {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#sideMenuContent [id^="category-"]:not(.hidden) {
    max-height: 500px;
    overflow-y: auto;
}

.version-info {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 24px;
}

/* Install Banner */
.install-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 16px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius);
    margin: 16px;
}

.install-text {
    font-size: 14px;
    font-weight: 500;
}

.install-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--text-dark);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    pointer-events: auto;
}

.toast.success {
    background: var(--secondary);
}

.toast.error {
    background: #ef4444;
}

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

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

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

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .bottom-nav {
        max-width: 100%;
    }
}

/* Admin Styles (Basic) */
.admin-body {
    background: #f3f4f6;
    padding: 0;
}

.admin-header {
    background: var(--secondary);
}

.admin-nav {
    background: var(--secondary);
}

.admin-container {
    max-width: 1200px;
    padding: 20px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.action-links a {
    color: var(--primary);
    text-decoration: none;
    margin-right: 12px;
    font-size: 13px;
}

.action-links a.delete {
    color: #ef4444;
}

/* ========================================
   WEBVIEW APP OPTIMIZATIONS
   For GoNative, median.co, Website2APK, etc.
   ======================================== */

/* Hide scrollbars in WebView apps */
.webview-app ::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

.webview-app {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

/* Smooth page transitions for WebView */
.webview-app .app-container {
    transition: opacity 0.2s ease;
}

/* Prevent text selection in app (optional) */
.webview-app {
    -webkit-user-select: none;
    user-select: none;
}

.webview-app input,
.webview-app textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

/* Disable callout menu on long press */
.webview-app * {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Loader for WebView transitions */
.webview-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Fast click response */
.webview-app a,
.webview-app button {
    touch-action: manipulation;
}

/* ============================================
   PREMIUM PRODUCT PAGE STYLES
   ============================================ */

/* ── Page wrapper ── */
.premium-product-page {
    min-height: 100vh;
    background: #faf9f7;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ── Gallery ── */
.premium-gallery {
    position: relative;
    background: #f5f3ef;
}

.gallery-back-btn,
.gallery-share-btn {
    position: absolute;
    top: 14px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    text-decoration: none;
}
.gallery-back-btn { left: 16px; }
.gallery-share-btn { right: 16px; border: none; cursor: pointer; }
.gallery-back-btn i, .gallery-share-btn i { color: #2b4633; stroke-width: 2.5px; }
.gallery-back-btn:hover, .gallery-share-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 18px rgba(0,0,0,0.16);
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #f0ece4;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dot-style image counter */
.image-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.48);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 5;
    backdrop-filter: blur(6px);
    letter-spacing: 0.3px;
}

.stock-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(34,197,94,0.35);
}
.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 3px 10px rgba(239,68,68,0.35);
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: #faf9f7;
}
.gallery-thumbnails::-webkit-scrollbar { display: none; }
.gallery-thumbnails .thumbnail {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.gallery-thumbnails .thumbnail.active {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.gallery-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Product Info Card ── */
.premium-product-info {
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
    padding: 22px 18px 20px;
    box-shadow: 0 -8px 28px rgba(0,0,0,0.07);
}

/* Title */
.premium-product-title {
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

/* Meta tags */
.premium-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}
.meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.meta-tag.purity {
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    color: #854d0e;
    border: 1px solid #fcd34d;
}
.meta-tag.material {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}
.meta-tag.category {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #9d174d;
    border: 1px solid #f9a8d4;
}

/* Divider */
.premium-product-info hr,
.info-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 14px 0;
}

/* ── Price Section ── */
.premium-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #faf8ff, #f5f3ff);
    border-radius: 16px;
    border: 1px solid #ede9fe;
    margin-bottom: 16px;
}
.price-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.current-price {
    font-size: 24px;
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: -0.5px;
}
.original-price {
    font-size: 15px;
    color: #9ca3af;
    text-decoration: line-through;
}
.discount-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}
.view-price-breakup {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    padding: 6px 0;
    min-height: 44px;
    touch-action: manipulation;
}
.view-price-breakup:hover { color: #5b21b6; }

/* Price breakup panel */
.price-breakup-panel {
    background: #f9f7ff;
    border: 1px solid #ede9fe;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.breakup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}
.breakup-row:last-child { border-bottom: none; }
.breakup-row.total {
    font-weight: 800;
    font-size: 15px;
    color: #111827;
    border-top: 1.5px solid #ede9fe;
    margin-top: 6px;
    padding-top: 12px;
}

/* ── Action Bar ── */
.premium-action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
}

.btn-wishlist {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.btn-wishlist i { width: 22px; height: 22px; color: #9ca3af; transition: all 0.25s ease; }
.btn-wishlist:hover { border-color: #ec4899; background: #fdf2f8; }
.btn-wishlist:hover i { color: #ec4899; }
.btn-wishlist.active { border-color: #ec4899; background: #fdf2f8; }
.btn-wishlist.active i { color: #ec4899; fill: #ec4899; }

.btn-add-cart {
    flex: 1;
    height: 52px;
    background: linear-gradient(135deg, #2b4633, #1e3528);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(43,70,51,0.3);
    letter-spacing: 0.2px;
}
.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(43,70,51,0.38);
    background: linear-gradient(135deg, #3a5c45, #2b4633);
}
.btn-add-cart:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-whatsapp {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    text-decoration: none;
}
.btn-whatsapp i { width: 24px; height: 24px; color: #fff; }
.btn-whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(37,211,102,0.4);
}

/* ── Quantity ── */
.premium-quantity {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
}
.quantity-label {
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}
.quantity-selector-premium {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}
.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}
.qty-btn:hover { background: #f3f4f6; }
.qty-input {
    width: 40px;
    height: 38px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    background: transparent;
}
.stock-text {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
    margin-left: auto;
}

/* ── Accordion (Description / Specs) ── */
.accordion-section {
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    text-align: left;
    letter-spacing: 0.1px;
}
.accordion-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #7c3aed;
}
.accordion-icon.open { transform: rotate(180deg); }
.accordion-body { padding: 0 16px 16px; }

.description-text {
    font-size: 14px;
    line-height: 1.8;
    color: #6b7280;
}

/* ── Specs table ── */
.specs-table {
    background: #faf9f7;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: rgba(124,58,237,0.02); }
.spec-label { color: #6b7280; font-weight: 500; }
.spec-value { color: #111827; font-weight: 700; text-align: right; }
.spec-value.in-stock { color: #16a34a; }
.spec-value.out-of-stock { color: #dc2626; }

/* ── Trust badges row ── */
.trust-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.trust-badge {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    background: #faf9f7;
    border-radius: 14px;
    border: 1px solid #f0ece4;
    text-align: center;
}
.trust-badge-icon { font-size: 20px; }
.trust-badge-text { font-size: 10px; font-weight: 700; color: #374151; line-height: 1.3; }

/* ── Section titles (related products) ── */
.section-header { padding: 0 16px 10px; }
.section-title {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.2px;
}

/* ── Mobile responsive ── */
@media (max-width: 640px) {
    .gallery-slider { height: 360px; }
    .premium-product-title { font-size: 19px; }
    .current-price { font-size: 21px; }
    .premium-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .view-price-breakup { padding: 8px 0; }
}

/* ============================================
   FOOTER — FORCE ALL TEXT WHITE
   ============================================ */
footer,
footer *,
footer p,
footer h3,
footer h4,
footer h5,
footer span,
footer li,
footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: #ec4899 !important;
}