/* Avenns Premium Styles */
:root {
    --primary: #291209;
    --secondary: #3b1b0d;
    --accent: #f4c2ae;
    --text-main: #fffcf8;
    --text-muted: #b07963;
    --border: #4d2315;
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(41, 18, 9, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/hero_bg.png') center/cover no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(41, 18, 9, 0.4) 0%, rgba(41, 18, 9, 0.98) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.8);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

/* Features */
.features {
    display: flex;
    justify-content: space-around;
    padding: 3rem 2rem;
    background-color: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Shop Section */
.shop {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.product-image {
    height: 320px;
    background-color: #222;
    background-size: cover;
    background-position: center;
}

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

.product-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 4px;
}

.add-to-cart:hover {
    background: var(--text-main);
    color: var(--primary);
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: var(--secondary);
    border-top: 1px solid var(--border);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Pages generic */
.page-header {
    padding: 10rem 2rem 4rem;
    background-color: var(--secondary);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 3.5rem;
    color: var(--accent);
}

.policy-page {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.policy-page h1 {
    display: none;
}
.policy-page p.last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.policy-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}
.policy-page p, .policy-page ul, .policy-page address {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: normal;
}
.policy-page ul {
    margin-left: 1.5rem;
}
.policy-page ul li {
    margin-bottom: 0.5rem;
}

/* Contact Specific */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.info-item i {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: var(--accent);
    margin-top: 0.2rem;
}
.info-item h4 {
    margin-bottom: 0.3rem;
    font-family: 'Outfit', sans-serif;
}
.contact-form {
    display: flex;
    flex-direction: column;
}
.contact-form input,
.contact-form textarea {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-family: inherit;
    border-radius: 4px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
.footer {
    background-color: var(--primary);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media(max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: left; }
    .features { flex-direction: column; gap: 2rem; }
}

/* Cart Drawer Styles */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}
.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}
.cart-modal {
    position: fixed;
    top: 0; right: -420px;
    width: 400px;
    height: 100vh;
    background-color: var(--secondary);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    z-index: 2001;
    border-left: 1px solid var(--border);
}
.cart-overlay.active .cart-modal {
    right: 0;
}
.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 { font-size: 1.5rem; color: var(--accent); }
#closeCart {
    background: none; border: none; color: white;
    font-size: 2rem; cursor: pointer;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.cart-item-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}
.cart-item-price {
    color: var(--accent);
}
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--primary);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}
.razorpay-btn {
    width: 100%;
    padding: 1rem;
    background-color: #3395FF;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
    letter-spacing: 1px;
}
.razorpay-btn:hover {
    background-color: #2481e3;
    transform: translateY(-2px);
}
@media(max-width: 450px) {
    .cart-modal { width: 100%; right: -100%; }
}

/* Razorpay Modal */
.rzp-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 3000;
    visibility: hidden; opacity: 0; transition: var(--transition);
}
.rzp-overlay.active { visibility: visible; opacity: 1; }
.rzp-modal {
    background: #ffffff; color: #333; width: 90%; max-width: 400px;
    border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(20px); transition: var(--transition);
}
.rzp-overlay.active .rzp-modal { transform: translateY(0); }
.rzp-header {
    background: #fff; padding: 1.2rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #f0f0f0;
}
.rzp-logo { height: 25px; }
#closeRzp { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #999; }
.rzp-body { padding: 2rem 1.5rem; text-align: center; }
.rzp-amount { font-size: 1.1rem; margin-bottom: 0.5rem; color: #555; }
.rzp-amount strong { font-size: 1.8rem; color: #3395FF; display: block; margin-top: 0.5rem; }
.rzp-input {
    width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 1px solid #ddd;
    border-radius: 4px; font-family: inherit; font-size: 0.95rem; color: #333;
}
.rzp-input:focus { outline: none; border-color: #3395FF; box-shadow: 0 0 0 2px rgba(51,149,255,0.2); }
.rzp-pay-btn {
    width: 100%; padding: 1rem; background: #3395FF; color: white; border: none;
    border-radius: 4px; font-weight: bold; font-size: 1.1rem; cursor: pointer;
    margin-top: 1rem; transition: background 0.3s;
}
.rzp-pay-btn:hover { background: #2481e3; }
.rzp-success {
    display: none; padding: 4rem 2rem; text-align: center;
}
.rzp-success h2 { font-family: 'Outfit', sans-serif; color: #333; margin-bottom: 0.5rem; }
.rzp-success.active { display: block; }
