/* ============================================================
   Dragon Condom India – Main Stylesheet
   Color: Purple #744577, Cream #F0E9B6, Green #ACCFA3
   Font: Oswald (Google Font)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

:root {
    --primary:     #744577;
    --primary-lt:  #8e5a96;
    --accent:      #F0E9B6;
    --accent-dark: #e8dfa0;
    --secondary:   #ACCFA3;
    --secondary-lt:#c4ddb8;
    --navy:        #1a1a2e;
    --white:       #ffffff;
    --gray-50:     #f9f8f6;
    --gray-100:    #f1eeea;
    --gray-200:    #e8e4df;
    --gray-400:    #a89f96;
    --gray-600:    #6b6560;
    --gray-800:    #3d3935;
    --text:        #2d2b27;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(116,69,119,.1);
    --shadow-lg:   0 8px 40px rgba(116,69,119,.15);
    --transition:  .3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-head:   'Oswald', sans-serif;
    --font-body:   'Oswald', sans-serif;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.68;
    font-weight: 400;
    letter-spacing: 0.3px;
}

a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: color var(--transition); 
}
a:hover { 
    color: var(--secondary); 
}

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

ul { 
    list-style: none; 
}

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

.section { 
    padding: 80px 0; 
}

.section-sm { 
    padding: 50px 0; 
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { 
    font-family: var(--font-head); 
    color: var(--primary); 
    line-height: 1.2; 
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 { 
    font-size: clamp(2.2rem, 5vw, 3.2rem); 
}

h2 { 
    font-size: clamp(1.8rem, 4vw, 2.4rem); 
}

h3 { 
    font-size: clamp(1.3rem, 3vw, 1.8rem); 
}

h4 { 
    font-size: 1.2rem; 
}

p { 
    margin-bottom: 1.1em; 
    color: var(--gray-600); 
}

p:last-child { 
    margin-bottom: 0; 
}

.text-center { 
    text-align: center; 
}

.text-primary { 
    color: var(--primary) !important; 
}

.text-accent { 
    color: var(--accent-dark) !important; 
}

.text-secondary { 
    color: var(--secondary) !important; 
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.2px;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    border-color: transparent; 
}

.btn-primary:hover { 
    background: var(--primary-lt); 
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(116,69,119,.3); 
}

.btn-outline { 
    background: transparent; 
    color: var(--primary); 
    border-color: var(--primary); 
}

.btn-outline:hover { 
    background: var(--primary); 
    color: #fff; 
}

.btn-accent { 
    background: var(--accent); 
    color: var(--primary); 
    border-color: transparent;
    font-weight: 700;
}

.btn-accent:hover { 
    background: var(--accent-dark); 
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(240,233,182,.4);
}

.btn-secondary { 
    background: var(--secondary); 
    color: #fff; 
    border-color: transparent; 
}

.btn-secondary:hover { 
    background: var(--secondary-lt); 
    transform: translateY(-2px);
}

.btn-sm { 
    padding: 10px 22px; 
    font-size: 0.85rem; 
}

.btn-lg { 
    padding: 18px 40px; 
    font-size: 1.08rem; 
}

.btn-block { 
    width: 100%; 
    justify-content: center; 
}

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

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
    padding: 16px 22px;
    border-radius: var(--radius);
    margin-bottom: 1.4rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert-success { 
    background: #e8f5e9; 
    color: #2e7d32; 
    border-left-color: var(--secondary);
}

.alert-error { 
    background: #ffebee; 
    color: #c62828; 
    border-left-color: var(--primary);
}

.alert-info { 
    background: #e3f2fd; 
    color: #1565c0; 
    border-left-color: var(--primary);
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

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

.card-body { 
    padding: 32px; 
}

/* ─── FORMS ──────────────────────────────────────────────── */
.form-group { 
    margin-bottom: 1.4rem; 
}

.form-label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
    color: var(--gray-800); 
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-control:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(116,69,119,.1);
}

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

select.form-control { 
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23744577' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat; 
    background-position: right 14px center; 
    padding-right: 40px; 
}

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

@media(max-width:600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-error { 
    color: var(--primary); 
    font-size: 0.82rem; 
    margin-top: 0.4rem; 
}

/* ─── BADGE ───────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-primary { 
    background: rgba(116,69,119,.15); 
    color: var(--primary); 
}

.badge-accent { 
    background: rgba(240,233,182,.6); 
    color: #744577; 
}

.badge-secondary { 
    background: rgba(172,207,163,.2); 
    color: var(--secondary); 
}

.badge-gray { 
    background: var(--gray-100); 
    color: var(--gray-600); 
}

/* ─── HEADER ─────────────────────────────────────────────── */
.top-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-lt) 100%);
    color: rgba(255,255,255,.9);
    font-size: 0.83rem;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a { 
    color: rgba(255,255,255,.9); 
    font-weight: 500;
}

.top-bar a:hover { 
    color: #fff; 
}

.top-bar-links { 
    display: flex; 
    gap: 22px; 
    align-items: center; 
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(116,69,119,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
}

.logo img { 
    height: 50px; 
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: color var(--transition);
    letter-spacing: 0.3px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.cart-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.cart-btn:hover {
    background: var(--primary-lt);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(116,69,119,.3);
}

.cart-count {
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ─── MOBILE NAV ─────────────────────────────────────────── */
@media(max-width:900px){
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        border-top: 2px solid var(--gray-200);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 16px; border-radius: 8px; font-size: .95rem; }
    .site-header { position: relative; }
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 6vw, 3.5rem);
}

.hero p {
    color: rgba(255,255,255,.95);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 { 
    color: #fff; 
    position: relative; 
}

.page-hero p { 
    color: rgba(255,255,255,.88); 
    position: relative; 
    max-width: 650px; 
    margin: 1rem auto 0; 
}

/* ─── PRODUCTS GRID ──────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

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

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

.product-image {
    width: 100%;
    height: 240px;
    background: var(--gray-50);
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-body {
    padding: 20px;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item { 
    border: 2px solid var(--gray-200); 
    border-radius: var(--radius); 
    margin-bottom: 14px; 
    overflow: hidden; 
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: var(--primary);
    transition: all var(--transition);
    user-select: none;
}

.faq-question:hover { 
    background: rgba(116,69,119,.05);
}

.faq-question::after { 
    content: '+'; 
    font-size: 1.5rem; 
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item.open .faq-question::after { 
    content: '−';
    transform: rotate(180deg);
}

.faq-answer { 
    padding: 0 24px; 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height .4s ease, padding .4s ease; 
    color: var(--gray-600); 
    font-size: 0.95rem; 
}

.faq-item.open .faq-answer { 
    max-height: 500px; 
    padding: 16px 24px 24px; 
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(135deg, var(--navy) 0%, #2a2a3e 100%);
    color: rgba(255,255,255,.9);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

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

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

.footer-section a {
    color: rgba(255,255,255,.75);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: 0.9rem;
}

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 999;
    transition: all var(--transition);
}

.whatsapp-float:hover { 
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37,211,102,.5);
}

.whatsapp-float svg { 
    width: 32px; 
    height: 32px; 
    fill: #fff; 
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }

.flex { 
    display: flex; 
}

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

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

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

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 28px; 
}

@media(max-width:768px) { 
    .grid-2 { grid-template-columns: 1fr !important; gap: 28px !important; } 
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media(max-width:480px) {
    .container {
        padding: 0 16px;
    }

    .hero-btns { 
        flex-direction: column; 
    }

    .hero-btns .btn { 
        width: 100%; 
        justify-content: center; 
    }

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

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide {
    animation: slideInUp 0.6s ease forwards;
}

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

/* ─── HERO BANNER (for index.php) ──────────────────────── */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(116, 69, 119, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: white;
}

.hero-banner .badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.hero-banner p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Responsive */
@media (min-width: 1024px) {
    .hero-banner {
        min-height: 600px;
        padding: 120px 0;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .hero-banner {
        min-height: 500px;
        padding: 100px 0;
    }
}

@media (max-width: 767px) {
    .hero-banner {
        min-height: 500px;
        padding: 75px 0;
        background-position: right center;
    }
    
    .hero-banner h1 {
        font-size: 2.2rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}