/* ============================================
   SahilMedicos - Health & Intimate Care Store
   Premium, Discreet, Clinical-Trustworthy Design
   ============================================ */

/* ===== CSS Variables (Intimate & Sensual Color Palette) ===== */
:root {
    --primary-color: #8B1538;        /* Deep Sensual Red */
    --accent-color: #C84B67;          /* Rose Pink */
    --background-color: #1a1a1a;      /* Dark Charcoal */
    --text-color: #e0e0e0;            /* Light Gray */
    --gold-accent: #D4AF37;           /* Gold */
    --white: #FFFFFF;
    --light-gray: #2a2a2a;
    --border-color: #3a3a3a;
    --success-color: #4CAF50;
    --error-color: #E74C3C;
    --shadow: rgba(139, 21, 56, 0.3);
    --card-bg: #252525;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--accent-color);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

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

button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #8B1538 100%);
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(200, 75, 103, 0.5);
}

.logo h1 a {
    color: var(--accent-color);
}

.logo .tagline {
    font-size: 0.85rem;
    color: var(--gold-accent);
    font-weight: 500;
    margin-top: -5px;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background-color: rgba(200, 75, 103, 0.15);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* ===== Hero Section - Banner + Featured Product ===== */
.hero-section {
    margin: 2rem 0;
    padding: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* Left: Banner Image */
.hero-banner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    background-color: var(--background-color);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Right: Featured Product */
.hero-product {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.5);
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 75, 103, 0.3);
}

.hero-product-content {
    padding: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.hero-product-content .best-selling-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.hero-product-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 1rem;
}

.hero-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-product-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.hero-discount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-discount-badge {
    display: inline-block;
    background-color: var(--gold-accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.hero-current-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.hero-original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    flex: 1;
}

/* ===== Trust & Safety Section ===== */
.trust-safety-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.trust-safety-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(200, 75, 103, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.trust-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    font-style: italic;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.trust-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 75, 103, 0.2);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(200, 75, 103, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(200, 75, 103, 0.5);
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(200, 75, 103, 0.5);
    position: relative;
}

.trust-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.trust-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.trust-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

.trust-highlights {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(200, 75, 103, 0.3);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.highlight-item i {
    color: var(--gold-accent);
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trust-safety-section {
        padding: 3rem 0;
    }
    
    .trust-subtitle {
        font-size: 1.1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-card {
        padding: 2rem 1.5rem;
    }
    
    .trust-icon {
        width: 60px;
        height: 60px;
    }
    
    .trust-icon i {
        font-size: 2rem;
    }
    
    .trust-card h3 {
        font-size: 1.3rem;
    }
    
    .trust-highlights {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .highlight-item {
        font-size: 0.95rem;
    }
}

/* ===== Category Section ===== */
.category-section {
    padding: 2rem 0;
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    color: var(--text-color);
    border: 2px solid rgba(200, 75, 103, 0.3);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 75, 103, 0.5);
}

/* ===== Products Section ===== */
.products-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(200, 75, 103, 0.3);
}

.products-tagline {
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(200, 75, 103, 0.6);
    border-color: var(--accent-color);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.product-card-body {
    padding: 2rem;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
}

.product-card h3 a {
    color: var(--text-color);
}

.product-card h3 a:hover {
    color: var(--accent-color);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #FFD700 100%);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.best-selling-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF1744 0%, #C84B67 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.5);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 23, 68, 0.5); }
    50% { box-shadow: 0 4px 25px rgba(255, 23, 68, 0.8); }
}

.best-selling-badge i {
    font-size: 0.9rem;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.discounted {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

.price s {
    color: #888;
    font-size: 1.3rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C84B67 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C84B67 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 75, 103, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-color: transparent;
}

.btn-block {
    display: block;
    width: 100%;
}

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

/* ===== Cart Page ===== */
.cart-section,
.checkout-section,
.success-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(200, 75, 103, 0.2);
    align-items: center;
}

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

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(200, 75, 103, 0.3);
}

.cart-item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.cart-item-details .price {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(200, 75, 103, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-controls button {
    padding: 0.5rem 1rem;
    background: rgba(200, 75, 103, 0.2);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    color: var(--white);
}

.quantity-controls button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-controls span {
    padding: 0.5rem 1rem;
    min-width: 40px;
    text-align: center;
    color: var(--white);
    font-weight: 600;
    background: rgba(200, 75, 103, 0.1);
}

.remove-btn {
    color: var(--error-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
}

.remove-btn:hover {
    opacity: 0.7;
}

.cart-summary {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(200, 75, 103, 0.3);
    color: var(--accent-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    padding-top: 1rem;
    border-top: 2px solid rgba(200, 75, 103, 0.3);
    margin-top: 1rem;
}

.cart-trust {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 75, 103, 0.2);
    font-size: 0.9rem;
    color: var(--text-color);
}

.cart-trust p {
    margin-bottom: 0.5rem;
}

.cart-trust i {
    margin-right: 0.5rem;
    color: var(--gold-accent);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.empty-cart i {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.empty-cart h2 {
    margin-bottom: 1rem;
    color: var(--white);
}

.empty-cart p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* ===== Checkout Page ===== */
.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.form-section h2 i {
    margin-right: 0.5rem;
    color: var(--gold-accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(200, 75, 103, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(200, 75, 103, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--accent-color);
}

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

.privacy-note {
    background: rgba(139, 21, 56, 0.15);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
}

.privacy-note i {
    color: var(--gold-accent);
    margin-right: 0.5rem;
}

.privacy-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.order-summary-sidebar {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.order-summary-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(200, 75, 103, 0.3);
    color: var(--accent-color);
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(200, 75, 103, 0.15);
    color: var(--text-color);
}

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

.summary-totals {
    padding-top: 1rem;
    border-top: 2px solid rgba(200, 75, 103, 0.3);
}

.secure-badges {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 75, 103, 0.2);
    font-size: 0.9rem;
    color: var(--text-color);
}

.secure-badges p {
    margin-bottom: 0.5rem;
}

.secure-badges i {
    margin-right: 0.5rem;
    color: var(--gold-accent);
}

/* ===== Success Page ===== */
.success-content {
    text-align: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    padding: 4rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.order-info {
    background: rgba(139, 21, 56, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.order-id {
    font-size: 1.1rem;
    color: var(--text-color);
}

.order-id strong {
    color: var(--accent-color);
}

.success-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.success-features .feature {
    padding: 1.5rem;
    background: rgba(200, 75, 103, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.success-features .feature i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.success-features .feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.success-features .feature p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ===== Product Detail Page ===== */
.product-detail-section {
    padding: 4rem 0;
    min-height: 70vh;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    border: 1px solid rgba(200, 75, 103, 0.2);
}

.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-images .main-image {
    width: 100%;
    height: 600px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(200, 75, 103, 0.08);
    padding: 2rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    line-height: 1.3;
    color: var(--white);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 2px solid rgba(200, 75, 103, 0.3);
    border-bottom: 2px solid rgba(200, 75, 103, 0.3);
}

.current-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.original-price {
    font-size: 1.8rem;
    color: #666;
    text-decoration: line-through;
}

.product-description {
    padding: 2rem;
    background: rgba(200, 75, 103, 0.08);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.product-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.product-stock p {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.in-stock { color: var(--success-color); }
.out-of-stock { color: var(--error-color); }

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(200, 75, 103, 0.3);
}

.product-features .feature {
    text-align: center;
    padding: 1.5rem;
    background: rgba(200, 75, 103, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(200, 75, 103, 0.2);
    transition: transform 0.3s ease;
}

.product-features .feature:hover { transform: translateY(-5px); }

.product-features .feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.product-features .feature span {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.success-actions {
    margin-top: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a0f 100%);
    color: var(--text-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(200, 75, 103, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-color);
    opacity: 0.85;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--gold-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(200, 75, 103, 0.2);
    opacity: 0.7;
    color: var(--text-color);
}

/* ===== Utility Classes ===== */
.loading,
.error-message {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.error-message {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.error-message i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

/* ===== Mobile-First Responsive Design ===== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .tagline {
        font-size: 0.75rem;
    }

    .nav {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        margin: 1rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-banner {
        min-height: 250px;
        border-radius: 8px;
    }

    .hero-product {
        min-height: auto;
        border-radius: 8px;
    }

    .hero-product-content {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }

    .hero-product-content .best-selling-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 0.5rem;
    }

    .hero-product-image {
        height: 200px;
    }

    .hero-product-info h2 {
        font-size: 1.5rem;
    }

    .hero-current-price {
        font-size: 1.8rem;
    }

    .hero-original-price {
        font-size: 1.2rem;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Products Grid Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .product-card-body {
        padding: 1.25rem;
    }

    .product-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .discount-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
        top: 10px;
        right: 10px;
    }
    
    .best-selling-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
        top: 10px;
        left: 10px;
    }
    
    .best-selling-badge i {
        font-size: 0.75rem;
    }

    .price .discounted {
        font-size: 1.3rem;
    }

    .price s {
        font-size: 1rem;
    }

    /* Trust Badges Mobile */
    .trust-badges {
        padding: 2rem 0;
    }

    .badges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .badge-item {
        padding: 1rem;
    }

    .badge-item i {
        font-size: 2.5rem;
    }

    .badge-item h3 {
        font-size: 1rem;
    }

    /* Category Filters Mobile */
    .category-section {
        padding: 1.5rem 0;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Cart Mobile */
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-items {
        padding: 1rem;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .cart-item img {
        width: 70px;
        height: 70px;
    }

    .cart-item-details h3 {
        font-size: 0.95rem;
    }

    .cart-item-details .price {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .quantity-controls {
        flex-shrink: 0;
    }

    .quantity-controls button {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }

    .quantity-controls span {
        padding: 0.4rem 0.8rem;
        min-width: 35px;
    }

    .cart-summary {
        position: static;
        padding: 1.5rem;
    }

    .cart-summary h2 {
        font-size: 1.3rem;
    }

    /* Checkout Mobile */
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-form {
        padding: 1.5rem;
    }

    .form-section h2 {
        font-size: 1.2rem;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 0.95rem;
    }

    .order-summary-sidebar {
        position: static;
        padding: 1.5rem;
    }

    .summary-items {
        max-height: 200px;
    }

    /* Product Detail Mobile */
    .product-detail {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .product-images {
        position: static;
    }
    
    .product-images .main-image {
        height: 400px;
        padding: 1rem;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .current-price {
        font-size: 2rem;
    }

    .original-price {
        font-size: 1.4rem;
    }
    
    .product-description {
        padding: 1.5rem;
    }
    
    .product-description h3 {
        font-size: 1.3rem;
    }
    
    .product-description p {
        font-size: 1rem;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-features .feature {
        padding: 1rem;
    }

    .product-features .feature i {
        font-size: 2rem;
    }

    .product-image-swiper {
        height: 350px;
    }

    .product-image-swiper .swiper-button-prev,
    .product-image-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .product-image-swiper .swiper-button-prev:after,
    .product-image-swiper .swiper-button-next:after {
        font-size: 16px;
    }

    /* Success Page Mobile */
    .success-content {
        padding: 2rem 1rem;
    }

    .success-icon {
        font-size: 3.5rem;
    }

    .success-content h1 {
        font-size: 1.8rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .success-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .success-features .feature {
        padding: 1rem;
    }

    .success-features .feature i {
        font-size: 2.5rem;
    }

    /* Typography Mobile */
    .section-title,
    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .products-section {
        padding: 2.5rem 0;
    }

    /* Buttons Mobile */
    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Small Devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-card img {
        height: 240px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-banner {
        min-height: 300px;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .product-card img {
        height: 280px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-banner {
        min-height: 400px;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cart-content,
    .checkout-content {
        grid-template-columns: 2fr 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
    }

    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .success-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .category-btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    .quantity-controls button {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.badge-item,
.cart-item {
    animation: fadeIn 0.5s ease-out;
}


/* ===== Product Image Slider ===== */
.product-image-swiper {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    -webkit-user-select: none;
    user-select: none;
    background-color: var(--light-gray);
}

.product-image-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
}

.product-image-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3rem;
    pointer-events: none;
}

.product-image-swiper .swiper-button-prev,
.product-image-swiper .swiper-button-next {
    color: var(--white);
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(107, 30, 60, 0.4);
    transition: all 0.3s ease;
}

.product-image-swiper .swiper-button-prev:hover,
.product-image-swiper .swiper-button-next:hover {
    background-color: #551831;
    transform: scale(1.1);
}

.product-image-swiper .swiper-button-prev:after,
.product-image-swiper .swiper-button-next:after {
    font-size: 22px;
}

.product-image-swiper .swiper-pagination {
    bottom: 20px;
}

.product-image-swiper .swiper-pagination-bullet {
    background-color: var(--primary-color);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.product-image-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-color);
    width: 14px;
    height: 14px;
}

/* Responsive for product slider */
@media (max-width: 768px) {
    .product-image-swiper {
        height: 400px;
    }
    
    .product-image-swiper .swiper-button-prev,
    .product-image-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .product-image-swiper .swiper-button-prev:after,
    .product-image-swiper .swiper-button-next:after {
        font-size: 18px;
    }
    
    .product-image-swiper .swiper-slide img {
        padding: 2rem;
    }
}

/* ===== Help & Support Page ===== */
.support-hero {
    padding: 5rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(200, 75, 103, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.support-hero-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.support-hero-sub {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-style: italic;
}

.support-section {
    padding: 4rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.support-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    border-radius: 15px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(200, 75, 103, 0.2);
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
}

.support-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(200, 75, 103, 0.5);
}

.support-card-icon i {
    font-size: 2rem;
    color: var(--white);
}

.support-card h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.support-card > p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(200, 75, 103, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(200, 75, 103, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-color);
    background: rgba(200, 75, 103, 0.15);
}

.contact-item > i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
    min-width: 2rem;
}

.contact-item strong {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-color);
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.contact-item span {
    color: var(--gold-accent);
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid rgba(200, 75, 103, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(200, 75, 103, 0.08);
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(200, 75, 103, 0.15);
}

.faq-question span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.faq-question i {
    color: var(--accent-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 1.25rem 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid rgba(200, 75, 103, 0.15);
}

/* Policies */
.policies-section {
    padding-top: 2rem;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.policy-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(200, 75, 103, 0.2);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    transition: all 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(200, 75, 103, 0.4);
}

.policy-card > i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1.25rem;
}

.policy-card h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

.policy-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-card ul li {
    color: var(--text-color);
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.policy-card ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold-accent);
    font-size: 0.8rem;
    top: 3px;
}

/* Responsive Support Page */
@media (max-width: 768px) {
    .support-hero-title {
        font-size: 2.5rem;
    }

    .support-hero-sub {
        font-size: 1rem;
    }

    .support-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .support-card {
        padding: 2rem 1.5rem;
    }

    .support-card h2 {
        font-size: 1.6rem;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UPI Payment Modals ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
    padding: 1rem;
}

.modal-box {
    background: linear-gradient(135deg, #252525 0%, #2a1a1a 100%);
    border: 1px solid rgba(200, 75, 103, 0.4);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(139, 21, 56, 0.6);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.modal-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.modal-title i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.modal-subtitle {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* UPI Apps Grid */
.upi-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.upi-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(200, 75, 103, 0.1);
    border: 2px solid rgba(200, 75, 103, 0.25);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.upi-app-btn:hover {
    border-color: var(--accent-color);
    background: rgba(200, 75, 103, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(200, 75, 103, 0.4);
}

.upi-app-btn img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
}

.upi-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--white);
}

.upi-app-icon i {
    font-size: 1.6rem;
}

.btn-cancel-modal {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: #aaa;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-cancel-modal:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Waiting Modal */
.waiting-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(200, 75, 103, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Countdown Ring */
.countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0 2rem;
}

.countdown-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 0.75rem;
}

.countdown-ring svg {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(200, 75, 103, 0.15);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.3;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px rgba(200,75,103,0.8));
}

.countdown-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    color: #aaa;
    font-size: 0.9rem;
}

.btn-cancel-payment {
    background: transparent;
    border: 2px solid rgba(231, 76, 60, 0.5);
    color: var(--error-color);
    padding: 0.85rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel-payment:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: var(--error-color);
}

/* Status Icons */
.status-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
}

.status-icon.cancelled {
    background: rgba(231, 76, 60, 0.15);
    border: 3px solid var(--error-color);
    color: var(--error-color);
}

.status-icon.timeout {
    background: rgba(212, 175, 55, 0.15);
    border: 3px solid var(--gold-accent);
    color: var(--gold-accent);
}

/* Mobile responsive modals */
@media (max-width: 480px) {
    .modal-box {
        padding: 2rem 1.5rem;
    }

    .upi-apps-grid {
        gap: 1rem;
    }

    .upi-app-btn {
        padding: 1.25rem 0.75rem;
        font-size: 0.9rem;
    }

    .countdown-num {
        font-size: 1.6rem;
    }
}

/* ===== Test Auto-fill Bar (Remove before launch) ===== */
.test-autofill-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    background: rgba(212, 175, 55, 0.08);
    border: 2px dashed rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    transition: all 0.4s ease;
}

.test-autofill-bar span {
    color: var(--gold-accent);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-autofill-bar button {
    background: linear-gradient(135deg, var(--gold-accent) 0%, #FFD700 100%);
    color: #1a1a1a;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.test-autofill-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* ===== Urgency Badge (Hurry! Limited Stock) ===== */
.urgency-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.5);
    animation: pulse-urgency 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inline urgency badge (below price) */
.urgency-badge-inline {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.5);
    animation: pulse-urgency 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0;
}

@keyframes pulse-urgency {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(255, 68, 68, 0.8);
    }
}

.urgency-badge i,
.urgency-badge-inline i {
    margin-right: 4px;
}

/* ===== Product Image Gallery (Main + Thumbnails) ===== */
.product-image-gallery {
    width: 100%;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.thumbnail:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(200, 75, 103, 0.4);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.3);
}

/* Mobile responsiveness for thumbnails */
@media (max-width: 768px) {
    .thumbnail-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .main-image-container {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .thumbnail-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

/* ===== Form Validation Errors ===== */
.form-errors {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-errors .error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.form-errors .error-content {
    flex: 1;
}

.form-errors .error-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-errors li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.form-errors li:before {
    content: '•';
    position: absolute;
    left: 5px;
    font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .form-errors {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .form-errors .error-icon {
        font-size: 1.2rem;
    }
}
