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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Main Gallery Section */
.main-gallery-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 110px 1fr 400px 350px;
    gap: 2rem;
    align-items: center;
}

/* Left Sidebar - Thumbnails */
.thumbnails-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thumbnail-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-item:hover {
    transform: translateX(5px);
    border-color: #667eea;
}

.thumbnail-item.active {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

.thumbnail-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

/* Center - Main Image */
.main-image-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.main-image-display img {
    width: 100%;
    max-width: 650px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}

.main-image-display img:hover {
    transform: scale(1.02);
}

/* Middle Description Section */
.description-section {
    padding: 2rem;
}

.description-section h3 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.icon-item:hover {
    transform: translateY(-5px);
}

.icon-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
}

.icon-item:hover img {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.icon-item span {
    font-size: 0.75rem;
    color: #555;
    font-weight: 500;
    text-align: center;
}

.brands-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.2rem;
    margin-top: 1rem;
    font-weight: 600;
}

.brand-logos {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.brand-item {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    background: #fff;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.brand-item img {
    max-height: 22px;
    max-width: 70px;
    object-fit: contain;
}

.brand-item.amazon {
    background: #fff;
    padding: 0.5rem 1rem;
}

.brand-item.flipkart {
    background: #fff;
    padding: 0.5rem 1rem;
}

.brand-item.croma {
    background: #fff;
}

.brand-item.reliance {
    background: #fff;
}

/* Right Sidebar - Apply Box */
.apply-sidebar {
    display: flex;
    align-items: center;
}

.apply-box {
    background: #fff;
    padding: 1.5rem 1.5rem;
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
}

.offer-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.offer-badge i {
    font-size: 1.5rem;
    color: #FE8B0B;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.offer-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.offer-highlight {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 0.3px;
}

.offer-details {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.btn-apply {
    padding: 1rem 1.5rem;
    background: #FE8B0B;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 6px 25px rgba(254,139,11,0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.btn-apply:hover {
    background: #e67a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(254,139,11,0.5);
}

/* Blinking Animation */
.blink-button {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 6px 25px rgba(254,139,11,0.35);
    }
    50% {
        opacity: 0.88;
        box-shadow: 0 12px 45px rgba(254,139,11,0.65);
    }
}

.steps-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
    padding-left: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.steps-title i {
    color: #667eea;
    font-size: 0.95rem;
}

.apply-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.step-arrow {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #444;
    font-weight: 500;
    flex: 1;
}

.final-step {
    margin-top: 0.3rem;
    padding-top: 0.6rem;
    border-top: 1px dashed #e0e0e0;
}

.final-step .feature-item {
    justify-content: center;
    font-weight: 600;
    color: #28a745;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.feature-item span {
    line-height: 1.3;
}

.feature-item i {
    color: #4caf50;
    font-size: 1.3rem;
}

/* Confetti Animation */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s;
    font-weight: 600;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    font-size: 2rem;
}

.whatsapp-number {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* WhatsApp Blink Animation */
.blink-whatsapp {
    animation: whatsapp-blink 2s infinite;
}

@keyframes whatsapp-blink {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 10px 40px rgba(37, 211, 102, 0.8);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px 15px;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    .whatsapp-number {
        font-size: 0.9rem;
    }
}

/* Fullscreen Offer Popup */
.offer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FE8B0B 0%, #ff6b00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    80% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.popup-content {
    text-align: center;
    color: #fff;
    animation: popupScale 0.5s ease-out;
}

@keyframes popupScale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.popup-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.popup-text {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-title {
        font-size: 2rem;
    }
    
    .popup-text {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.upload-modal {
    animation: slideDown 0.4s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.8rem 1.5rem;
    text-align: center;
    color: white;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    animation: bounce 2s infinite;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

.close {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: all 0.3s;
}

.close:hover {
    transform: rotate(90deg);
    color: #FE8B0B;
}

.upload-area {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem;
    border: 3px dashed #667eea;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9ff;
}

.upload-area:hover {
    background: #e8f0fe;
    border-color: #764ba2;
    transform: scale(1.02);
}

.upload-area input {
    display: none;
}

.upload-icon-wrapper {
    margin-bottom: 1rem;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    display: block;
}

.upload-area label {
    cursor: pointer;
}

.upload-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.85rem;
    color: #666;
}

.preview-container {
    padding: 1.5rem;
    text-align: center;
}

#previewImage {
    max-width: 100%;
    max-height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.validation-status {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.validation-status p {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.success {
    color: #28a745;
}

.success .check {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.error {
    color: #dc3545;
}

.error .cross {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Form */
.form-container {
    padding: 2rem;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group label i {
    color: #667eea;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.form-group input::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-shadow: 0 5px 20px rgba(102,126,234,0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102,126,234,0.5);
}

.submit-btn i {
    font-size: 1.1rem;
}

.details-modal {
    max-width: 500px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-layout {
        grid-template-columns: 90px 1fr 350px 300px;
        gap: 1.5rem;
    }
    
    .thumbnail-item img {
        height: 75px;
    }
    
    .description-section h3 {
        font-size: 1.5rem;
    }
    
    .main-image-display img {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .gallery-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Order: Main Image (1) → Thumbnails (2) → Apply Box (3) → Description (4) */
    .main-image-display {
        order: 1;
        padding: 1rem;
    }
    
    .thumbnails-sidebar {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: center;
    }
    
    .apply-sidebar {
        order: 3;
    }
    
    .description-section {
        order: 4;
        padding: 1rem;
    }
    
    .thumbnail-item {
        min-width: 85px;
        flex-shrink: 0;
    }
    
    .thumbnail-item img {
        height: 65px;
    }
    
    .main-image-display img {
        max-width: 100%;
    }
    
    .description-section h3 {
        font-size: 1.5rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
    }
    
    .brands-title {
        font-size: 1rem;
    }
    
    .product-icons {
        gap: 0.75rem;
    }
    
    .icon-item img {
        width: 50px;
        height: 50px;
    }
    
    .icon-item span {
        font-size: 0.7rem;
    }
    
    .brand-logos {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .brand-item {
        padding: 0.5rem 0.9rem;
        font-size: 0.7rem;
    }
    
    .apply-box {
        padding: 1.3rem 1.2rem;
    }
    
    .offer-badge {
        margin-bottom: 1rem;
        padding-bottom: 0.9rem;
    }
    
    .offer-badge i {
        font-size: 1.3rem;
    }
    
    .offer-highlight {
        font-size: 1rem;
    }
    
    .offer-details {
        font-size: 0.85rem;
    }
    
    .btn-apply {
        padding: 0.95rem 1.3rem;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .steps-title {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    .steps-title i {
        font-size: 0.9rem;
    }
    
    .apply-features {
        gap: 0.5rem;
    }
    
    .steps-row {
        gap: 0.4rem;
    }
    
    .step-arrow {
        font-size: 1rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .final-step {
        margin-top: 0.2rem;
        padding-top: 0.5rem;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .feature-item i {
        font-size: 1.1rem;
    }
}
