/* ═══════════════════════════════════════
   Chaitanya Handlooms — Custom Styles
   Extends Tailwind via CDN
   ═══════════════════════════════════════ */

/* ── Smooth Scroll & Base Typography ── */
html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
}

/* ── Ornamental Pattern Overlay ── */
.pattern-overlay {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(201,151,28,.06) 39px, rgba(201,151,28,.06) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(201,151,28,.04) 39px, rgba(201,151,28,.04) 40px);
}

.pattern-diagonal {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(201,151,28,.04) 24px, rgba(201,151,28,.04) 25px);
}

/* ── Gold Divider ── */
.gold-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gold-divider::before,
.gold-divider::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: linear-gradient(90deg, transparent, rgba(201,151,28,0.5), transparent);
}

/* ── Diamond Shape ── */
.diamond {
    width: 6px;
    height: 6px;
    background: #C9971C;
    transform: rotate(45deg);
}

/* ── Product Card Hover ── */
.product-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(107, 26, 26, 0.12), 0 4px 12px rgba(201, 151, 28, 0.08);
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.product-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Hero Banner ── */
.hero-slide {
    animation: heroFadeIn 1.2s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Ticker Animation ── */
.ticker-wrap {
    overflow: hidden;
}
.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Image Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(14, 4, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ── Category Circle Hover ── */
.cat-circle {
    transition: all 0.3s ease;
}
.cat-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ── WhatsApp Button Pulse ── */
#floatingWhatsApp {
    animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(34, 197, 94, 0.7); }
}

/* ── Enquiry Form ── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.5px solid rgba(201,151,28,0.3);
    background: #FAF6EE;
    border-radius: 4px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: #160800;
    transition: border-color 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #C9971C;
    box-shadow: 0 0 0 3px rgba(201,151,28,0.1);
}

/* ── Placeholder Image with Gradient ── */
.placeholder-img {
    background: linear-gradient(135deg, var(--from, #8B1A1A), var(--to, #C94040));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Testimonial Carousel ── */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ── Timeline Connector ── */
.timeline-line {
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, #C9971C, #6B1A1A, #333);
}

/* ── Gallery Grid ── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(14,4,0,0.6));
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Filter Button Active ── */
.filter-btn.active {
    background: #6B1A1A;
    color: #FAF6EE;
    border-color: #6B1A1A;
}

/* ── Stats Counter Animation ── */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile Adjustments ── */
@media (max-width: 640px) {
    .hero-title { font-size: 1.6rem !important; }
}

/* ── Print Styles ── */
@media print {
    nav, #floatingWhatsApp, footer { display: none !important; }
}

/* ── Hide Scrollbar Utility ── */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* ── Premium Lookbook Gallery ── */
.lookbook-card {
    position: relative;
    overflow: hidden;
    background: #1A0A00;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lookbook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.lookbook-card img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lookbook-card .overlay {
    background: linear-gradient(to top, rgba(14, 4, 0, 0.9) 0%, rgba(14, 4, 0, 0.4) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lookbook-card:hover .overlay {
    opacity: 1;
}

/* ── Lightbox System ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 3, 0, 0.98);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-info {
    margin-top: 2rem;
    text-align: center;
    color: #F5E6C0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #C9971C;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}
