:root {
    --bg-color: #f3ece1;
    --text-main: #1c1a17;
    --accent-orange: #d85c35;
    --accent-green: #1d6139;
    --white: #ffffff;
    --border-color: #1c1a17;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .anton-font {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

.title-main {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.title-main .orange { 
    color: var(--accent-orange); 
    font-family: 'Anton', sans-serif;
}

.title-main .green { 
    color: var(--accent-green); 
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 900;
    text-transform: none;
    letter-spacing: normal;
}

.description {
    font-size: 1.1rem;
    max-width: 90%;
    margin-bottom: 2rem;
    font-weight: 500;
}

.highlight-text {
    color: var(--accent-orange);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.view {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

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

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
}

.badge {
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-orange);
    text-transform: uppercase;
}

.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.top-nav {
    display: flex;
    gap: 2rem;
}

.top-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.top-nav a:hover {
    color: var(--accent-orange);
}

/* Home Layout */
.home-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    min-height: 75vh;
}

.home-content, .home-image-area {
    flex: 1;
}

/* Selection Area */
.section-label {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #e5dac1;
}

.thumb.active, .thumb:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 2px 2px 0px var(--border-color);
}

.sizes {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.size-btn {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--border-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.size-btn.active, .size-btn:hover {
    background-color: var(--border-color);
    color: var(--white);
}

/* Buttons */
.btn-primary {
    background-color: var(--border-color);
    color: var(--bg-color);
    border: none;
    padding: 1.2rem 2.5rem;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
}

.btn-primary:hover:not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

.btn-primary.disabled {
    background-color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 50px;
    transition: transform 0.2s;
    margin: 0 auto;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2.5rem; }
.text-center { text-align: center; }
.d-inline-block { display: inline-block; }
.text-decoration-none { text-decoration: none; }

/* Polaroid */
.polaroid-stack {
    position: relative;
    width: 90%;
    margin: 0 auto;
    aspect-ratio: 4/5;
}

.polaroid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e8dfcc;
    border: 2px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0px rgba(28,26,23, 0.1);
}

.polaroid.bg-1 { transform: rotate(-3deg) translate(-10px, 10px); z-index: 1; }
.polaroid.bg-2 { transform: rotate(4deg) translate(15px, 5px); z-index: 0; }
.polaroid.main { transform: rotate(0); z-index: 2; background-color: #eee4cf; }

.polaroid-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #555;
}

.polaroid-img-wrapper {
    flex: 1;
    background-color: #d1c8b3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
}

.polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.polaroid-footer {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.polaroid-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.polaroid-footer p {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666;
}

/* Box Style (Checkout, Share, Success) */
.box-style {
    background-color: #e8dfcc;
    border: 2px solid var(--border-color);
    padding: 3rem;
    box-shadow: 8px 8px 0px rgba(28,26,23, 0.1);
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-weight: 600;
    color: #555;
    margin-bottom: 2rem;
}

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

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(28,26,23, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--border-color);
}

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

.summary-item-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(28,26,23, 0.2);
}

.summary-item-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: #d1c8b3;
}

.summary-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.summary-details p {
    font-size: 0.9rem;
    font-weight: 600;
}

.tot-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tot-row.discount {
    color: var(--accent-green);
}

.tot-row.grand-total {
    font-size: 1.5rem;
    font-family: 'Anton', sans-serif;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Center Container */
.center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.share-box, .success-box {
    max-width: 600px;
    width: 100%;
}

.hindi-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--accent-orange);
}

/* Progress */
.progress-container {
    margin: 2rem 0;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background-color: rgba(28,26,23, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-green);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Success */
.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.order-id-box {
    background-color: var(--border-color);
    color: var(--bg-color);
    padding: 1.5rem;
    display: inline-block;
    border-radius: 4px;
}

.order-id-box p {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.order-id-box h3 {
    font-size: 2rem;
    letter-spacing: 2px;
}

/* Footer & Live Counter Badge */
.site-footer {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(28,26,23, 0.1);
    gap: 2rem;
}

.footer-content {
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-copy {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.live-counter-badge {
    background-color: #17130f;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e06c35;
}

.pulsing-dot {
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.counter-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Inter', monospace;
    font-weight: 700;
    line-height: 1.2;
}

.online-count {
    background-color: #e06c35;
    color: #17130f;
    padding: 2px 6px;
    font-size: 0.95rem;
}

.today-count {
    background-color: #924722;
    color: #17130f;
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* Responsive */
.mobile-only { display: none; }

@media (max-width: 900px) {
    .main-header {
        padding: 1.5rem 2rem;
    }
    .home-container {
        flex-direction: column;
        gap: 2rem;
        padding-top: 0;
    }
    .title-main {
        font-size: 3.5rem;
    }
    .desktop-hide-mobile {
        display: none;
    }
    .mobile-only {
        display: block;
        margin-top: 3rem;
    }
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .polaroid-stack {
        width: 100%;
        max-width: 400px;
    }
    .mobile-hide {
        display: none;
    }
}
