﻿/* ============================================
   SHREE GANESH SWEETS — Master CSS
   ============================================ */
:root {
  --cream:        #FDFBF7;
  --cream-dark:   #F9F0E6;
  --gold:         #D4AF37;
  --gold-dark:    #B58E23;
  --brown:        #2E1B0E;
  --red:          #8B0000;
  --white:        #FFFFFF;
  --radius:       12px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--cream); color: var(--brown); line-height: 1.5; overflow-x: hidden; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: rgba(253, 251, 247, 0.98); backdrop-filter: blur(15px); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 1000; padding: 12px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-wrap img { height: 50px; width: auto; object-fit: contain; }
.logo-wrap .brand-name { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--red); line-height: 1.1; }
.logo-wrap .brand-tagline { font-size: 11px; color: var(--gold-dark); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--brown); transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 3px; background: var(--red); transition: width .3s ease; border-radius: 2px; }
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }
.admin-btn { background: transparent; border: 2px solid var(--red); color: var(--red); padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: all .3s ease; }
.admin-btn:hover { background: var(--red); color: var(--cream); }

/* Running Offers Ticker */
.ticker-wrap { width: 100%; overflow: hidden; background: var(--red); color: var(--gold); padding: 8px 0; font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid var(--gold); }
.ticker { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 25s linear infinite; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* Hero Section */
.hero { padding: 120px 0; text-align: center; background: linear-gradient(rgba(46, 27, 14, 0.7), rgba(46, 27, 14, 0.7)), url('https://images.unsplash.com/photo-1601050690597-df0568f70950?q=80&w=1600'); background-size: cover; background-position: center; background-attachment: fixed; border-bottom: 5px solid var(--gold); position: relative; }
.hero h1 { font-family: var(--font-heading); font-size: 60px; font-weight: 800; color: #FFFFFF; margin-bottom: 16px; line-height: 1.1; position: relative; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 20px; font-weight: 500; color: #F4E8D3; max-width: 700px; margin: 0 auto 30px; position: relative; text-shadow: 1px 1px 4px rgba(0,0,0,0.6); }

/* Buttons */
.btn-primary { background: var(--red); color: var(--cream); padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; display: inline-block; transition: all .3s ease; box-shadow: 0 6px 20px rgba(139, 0, 0, 0.25); }
.btn-primary:hover { background: var(--gold); color: var(--red); transform: translateY(-3px); }
.btn-gold { background: var(--gold); color: var(--red); padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; display: inline-block; transition: all .3s ease; }
.btn-gold:hover { background: var(--red); color: var(--cream); transform: translateY(-3px); }

/* Sections */
.section { padding: 60px 0; }
.section-title { font-family: var(--font-heading); font-size: 36px; text-align: center; font-weight: 800; color: var(--red); margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--gold-dark); font-weight: 600; margin-bottom: 40px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }

/* Home Page Product Grid (For Index.html) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.product-card { background: var(--white); border: 1px solid rgba(139, 0, 0, 0.15); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 25px rgba(46, 27, 14, 0.08); transition: all .4s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(139, 0, 0, 0.15); border-color: var(--red); }
.product-card .product-img-wrap { height: 180px; overflow: hidden; position: relative; }
.product-card .product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-img { transform: scale(1.08); }
.product-card .product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .product-name { font-family: var(--font-heading); font-size: 20px; font-weight: 800; margin-bottom: 6px; color: var(--red); }
.product-card .product-desc { font-size: 13px; font-weight: 500; color: var(--brown); margin-bottom: 15px; flex: 1; }
.product-card .product-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F0E6D2; padding-top: 12px; }
.product-card .price { font-size: 18px; font-weight: 800; color: var(--gold-dark); }
.add-btn { background: var(--red); color: var(--cream); padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 700; transition: all .3s ease; }
.add-btn:hover { background: var(--gold); color: var(--red); transform: scale(1.05); }

/* Wedding Section */
.wedding-section { background: linear-gradient(rgba(46, 27, 14, 0.85), rgba(46, 27, 14, 0.85)), url('https://images.unsplash.com/photo-1582293041079-7814c2f12063?q=80&w=1200'); background-size: cover; background-position: center; color: var(--cream); text-align: center; padding: 80px 0; border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); }
.wedding-section h2 { font-family: var(--font-heading); font-size: 42px; color: var(--gold); margin-bottom: 16px; }
.wedding-section p { font-size: 17px; font-weight: 500; max-width: 700px; margin: 0 auto 30px; color: #F4E8D3; }

/* Enquiry Form */
.enquiry-section { background: var(--cream-dark); }
.form-wrap { max-width: 600px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(139, 0, 0, 0.1); border-top: 5px solid var(--red); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--red); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 2px solid #EBE3D5; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 500; background: var(--cream); color: var(--brown); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); background: var(--white); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: 0 8px 25px rgba(0,0,0,0.05); border: 1px solid #EBE3D5; border-left: 5px solid var(--red); }
.stars { color: var(--gold); font-size: 18px; margin-bottom: 15px; }
.review-text { font-size: 15px; font-weight: 500; color: var(--brown); font-style: italic; margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.reviewer img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); }
.reviewer h4 { font-size: 16px; font-weight: 700; color: var(--red); }
.reviewer span { font-size: 12px; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; }

/* Footer */
.site-footer { background: #2E1B0E; color: var(--cream); padding: 60px 0 20px; border-top: 5px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--font-heading); font-size: 20px; color: var(--gold); margin-bottom: 20px; font-weight: 700; }
.footer-grid p, .footer-grid a { font-size: 14px; font-weight: 500; color: #D1C4A5; line-height: 1.8; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: #9E8C73; }

/* ============================================
   MOBILE RESPONSIVE FIX (Auto Fit)
   ============================================ */
@media (max-width: 768px) {
  /* Container padding kam karo */
  .container { padding: 0 15px; }
  
  /* Header Fix */
  .header-inner { flex-direction: row; justify-content: space-between; }
  .logo-wrap .brand-name { font-size: 18px; }
  .logo-wrap .brand-tagline { font-size: 9px; }
  .logo-wrap img { height: 40px; }
  .nav-links { display: none; } /* Mobile par menu hide, hamburger use karenge */
  
  /* Hero Section Fix */
  .hero { padding: 60px 0; background-attachment: scroll; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; padding: 0 10px; }
  .hero .btn-primary { width: 90%; padding: 14px; font-size: 16px; }
  
  /* Products Grid (2 column) */
  .product-grid, .dishes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .product-img-wrap { height: 120px; }
  .product-card .product-body { padding: 10px; }
  .product-card .product-name { font-size: 14px; }
  .product-card .product-desc { display: none; } /* Description hide */
  .product-card .product-footer { flex-direction: column; gap: 8px; }
  .product-card .price { font-size: 15px; }
  .add-btn { width: 100%; padding: 8px; font-size: 12px; }
  
  /* Menu Page Zomato Style Fix */
  .zomato-cat-bar { top: 60px; overflow-x: auto; }
  .z-product-card { padding: 10px 0; }
  .z-product-name { font-size: 15px; }
  .z-product-price { font-size: 13px; }
  .z-product-action { width: 80px; height: 80px; }
  .z-add-btn { padding: 4px 15px; font-size: 12px; bottom: -8px; }
  .z-qty-controls { width: 70px; padding: 4px 6px; bottom: -8px; }
  
  /* Cart Drawer Fix */
  .cart-drawer { height: 85vh; border-radius: 20px 20px 0 0; }
  .cart-items { padding: 15px; }
  
  /* Checkout Page Fix */
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-box { padding: 20px; }
  .bill-summary { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  
  /* Footer Fix */
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-grid h4 { margin-bottom: 10px; }
  
  /* Admin Panel (POS) Fix */
  .pos-container { flex-direction: column; }
  .pos-products { width: 100%; height: 50vh; }
  .pos-cart { width: 100%; height: 50vh; border-left: none; border-top: 1px solid #ddd; }
  .top-navbar { flex-direction: column; gap: 10px; padding: 10px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .nav-links > a { padding: 6px 10px; font-size: 12px; }
  .nav-brand h2 { font-size: 16px; }
  .logout-btn { width: 100%; justify-content: center; margin-left: 0; margin-top: 5px; }
}
