/* Global Styles */
:root {
    --primary-sand: #E6DAC3;
    /* Light Sand for backgrounds */
    --secondary-peach: #FFCCB0;
    /* Soft Peach for accents */
    --accent-gold: #C5A059;
    /* Gold for borders/highlights */
    --text-dark: #4A3728;
    /* Dark Brown for text */
    --white: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    --font-telugu: 'Lato', sans-serif;
    /* Fallback, but Google Fonts usually supports Telugu automatically if available, or use a specific one like Tenali Ramakrishna if linked */
}

/* Import a Telugu font */
@import url('https://fonts.googleapis.com/css2?family=Ramabhadra&display=swap');

.telugu-font {
    font-family: 'Ramabhadra', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-sand);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark focus background */
    backdrop-filter: blur(5px);
    z-index: 2000;
    /* Higher than header */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

.modal-content h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    line-height: 1.4;
}

.language-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.lang-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 700;
}

.lang-btn:hover {
    background: var(--secondary-peach);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn.telugu-font {
    font-size: 1.2rem;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--secondary-peach);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.logo-container {
    text-align: center;
    padding: 1.5rem 0;
    background: linear-gradient(to right, rgba(255, 204, 176, 0.1), rgba(255, 204, 176, 0.3), rgba(255, 204, 176, 0.1));
}

.logo-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-top: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Search Bar */
.search-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    outline: none;
    font-family: var(--font-body);
    width: 250px;
    transition: all 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.5);
    width: 300px;
}

.search-btn {
    padding: 0.5rem 1.2rem;
    background-color: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.3s;
}

.search-btn:hover {
    background-color: var(--accent-gold);
}

/* Navbar */
.navbar {
    background-color: var(--text-dark);
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--primary-sand);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: var(--secondary-peach);
    color: var(--text-dark);
}

.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 500px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-top: 4px solid var(--secondary-peach);
    padding: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-col h4 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.dropdown-col a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dropdown-col a:hover {
    color: var(--secondary-peach);
    padding-left: 5px;
}

/* Hero / Marquee Section */
.hero-section {
    padding: 3rem 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-peach);
    margin: 10px auto 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    /* Important for infinite scroll */
    animation: scroll-left 25s linear infinite;
}

/* Pause on hover for better UX */
.marquee-wrapper:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    padding-left: 2rem;
}

/* Animation Keyframes */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Needs to match 50% duplicate content width */
    }
}

/* Product Cards */
.product-card {
    background: var(--white);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    width: 250px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-peach);
}

.product-image {
    height: 300px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.placeholder-peach {
    background-color: var(--secondary-peach);
    background-image: linear-gradient(45deg, #FFDAB9 25%, transparent 25%, transparent 75%, #FFDAB9 75%, #FFDAB9),
        linear-gradient(45deg, #FFDAB9 25%, transparent 25%, transparent 75%, #FFDAB9 75%, #FFDAB9);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.8;
}

.placeholder-sand {
    background-color: var(--primary-sand);
    background-image: radial-gradient(#C5A059 1px, transparent 1px);
    background-size: 15px 15px;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.owner-link {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.owner-link:hover {
    opacity: 1;
}

/* Product Collection Grid Styles */
.collection-container {
    padding: 3rem 5%;
    min-height: 60vh;
}

.collection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.collection-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.collection-subtitle {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}