/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #111111;
  --bg: #FFFFFF;
  --bg2: #F5F5F5;
  --border: #E0E0E0;
  --text: #111111;
  --text-muted: #666666;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.16);
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #fff; color: #111; min-height: 100vh; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: 'DM Sans', sans-serif; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }

/* ===== NAVBAR ===== */
.navbar { background: #fff; border-bottom: 2px solid #111; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: .75rem 1.2rem; display: flex; align-items: center; gap: 1rem; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #111; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: #555; font-size: .9rem; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: #111; }
.nav-right { display: flex; align-items: center; gap: .8rem; margin-left: 1rem; }
.cart-btn { background: #111; color: #fff; padding: .45rem 1rem; border-radius: 20px; font-size: .88rem; font-weight: 600; transition: background .2s; white-space: nowrap; }
.cart-btn:hover { background: #333; }
.hamburger { display: none; background: none; border: none; color: #111; font-size: 1.5rem; cursor: pointer; padding: .2rem .4rem; }
.mobile-menu { display: none; flex-direction: column; padding: .5rem 1.2rem 1rem; border-top: 1px solid #e0e0e0; background: #fff; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .75rem 0; border-bottom: 1px solid #e0e0e0; color: #111; font-size: 1rem; font-weight: 500; }
.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero { background: #fff; padding: 4rem 1.2rem 3rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, rgba(255,255,255,.06) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-tag { display: inline-block; background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.15); color: #111; padding: .3rem 1rem; border-radius: 20px; font-size: .82rem; letter-spacing: 1px; margin-bottom: 1.2rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,6vw,3.8rem); line-height: 1.15; color: #111; margin-bottom: 1rem; }
.hero h1 span { border-bottom: 3px solid #fff; }
.hero-sub { color: #666; margin-bottom: 2rem; font-size: clamp(.9rem,2vw,1rem); line-height: 1.6; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-primary { background: #fff; color: #111; padding: .75rem 1.6rem; border-radius: 50px; font-weight: 700; font-size: .92rem; border: none; cursor: pointer; transition: transform .2s, background .2s; display: inline-flex; align-items: center; gap: .4rem; }
.btn-primary:hover { background: #eee; transform: translateY(-2px); }
.btn-outline { border: 2px solid #111; color: #111; padding: .73rem 1.6rem; border-radius: 50px; font-weight: 600; font-size: .92rem; transition: all .2s; display: inline-flex; align-items: center; }
.btn-outline:hover { background: #111; color: #fff; }
.hero-badges { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.badge { background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.15); padding: .45rem 1rem; border-radius: 20px; font-size: .82rem; color: #666; }

/* ===== QUICK CATS ===== */
.quick-cats { padding: 1.8rem 1.2rem; background: #f5f5f5; border-bottom: 1px solid #e0e0e0; }
.quick-cats .container { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.qcat { background: #fff; border: 2px solid #111; color: #111; padding: .8rem 1.6rem; border-radius: var(--radius); font-weight: 700; font-size: .9rem; transition: all .2s; text-align: center; min-width: 130px; }
.qcat:hover { background: #111; color: #fff; transform: translateY(-2px); }

/* ===== SECTION HEADINGS ===== */
.section-title { text-align: center; font-size: .82rem; letter-spacing: 2px; color: #999; text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; gap: .8rem; justify-content: center; }
.sec-h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem,3vw,2.2rem); color: #111; margin-bottom: 1.5rem; text-align: center; }

/* ===== SERVICE CARDS ===== */
.services-section { padding: 3.5rem 1.2rem; background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.service-card { background: #fff; border: 2px solid #e0e0e0; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .25s; text-align: center; }
.service-card:hover { border-color: #111; box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.svc-img-wrap { width: 100%; height: 130px; overflow: hidden; background: #f5f5f5; }
.svc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover .svc-img-wrap img { transform: scale(1.06); }
.svc-name { display: block; padding: .75rem .8rem; font-weight: 700; font-size: .95rem; color: #111; }

/* ===== PRODUCTS ===== */
.products-section { padding: 3.5rem 1.2rem; background: #f5f5f5; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.product-card { background: #fff; border: 1.5px solid #e0e0e0; border-radius: var(--radius); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.product-card:hover { border-color: #111; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card > img { width: 100%; height: 150px; object-fit: cover; background: #f5f5f5; }
.product-info { padding: .9rem; flex: 1; }
.product-info h4 { font-weight: 600; font-size: .88rem; color: #111; margin-bottom: .4rem; line-height: 1.4; }
.price { font-weight: 800; font-size: 1rem; color: #111; }
.btn-add-cart { display: block; width: 100%; background: #111; color: #fff; border: none; padding: .65rem 1rem; font-weight: 700; font-size: .82rem; cursor: pointer; transition: background .2s; border-top: 1.5px solid #e0e0e0; }
.btn-add-cart:hover { background: #333; }

/* ===== SHOP FILTER ===== */
.shop-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn { background: #fff; border: 1.5px solid #e0e0e0; border-radius: 20px; padding: .5rem 1.1rem; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; color: #555; }
.filter-btn:hover, .filter-btn.active { background: #111; color: #fff; border-color: #111; }

/* ===== PCB INFO SECTION ===== */
.pcb-info-section { padding: 4rem 1.2rem; background: #fff; border: 1px solid #e0e0e0; }
.pcb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.pcb-card { background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 12px; padding: 1.4rem; }
.pcb-icon { font-size: 1.8rem; margin-bottom: .7rem; }
.pcb-card h3 { color: #111; font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.pcb-card p { color: #666; font-size: .85rem; line-height: 1.7; }

/* ===== BLOGS ===== */
.blogs-section { padding: 3.5rem 1.2rem; background: #fff; }
.blogs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.blog-card { background: #fff; border: 1.5px solid #e0e0e0; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .25s; }
.blog-card:hover { border-color: #111; box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.blog-card > img { width: 100%; height: 170px; object-fit: cover; }
.blog-info { padding: 1.1rem; }
.blog-info h3 { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; color: #111; line-height: 1.4; }
.blog-info p { color: #666; font-size: .84rem; line-height: 1.5; margin-bottom: .8rem; }
.read-more { font-weight: 700; font-size: .82rem; color: #111; border-bottom: 1.5px solid #111; }

/* ===== FOOTER ===== */
.footer { background: #111; color: #ccc; padding: 3rem 1.2rem 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #333; }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-brand p { font-size: .85rem; color: #888; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links strong { color: #fff; font-size: .88rem; margin-bottom: .4rem; }
.footer-links a { color: #888; font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 1.2rem; font-size: .78rem; color: #555; }

/* ===== BOOKING MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 2000; display: none !important; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex !important; }
.modal-box { background: #fff; border-radius: 16px; padding: 1.8rem; max-width: 450px; width: 100%; position: relative; border: 2px solid #111; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: #f5f5f5; border: 1.5px solid #e0e0e0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.modal-close:hover { background: #111; color: #fff; }
.modal-box h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin-bottom: .4rem; color: #111; }
.modal-sub { color: #666; font-size: .82rem; margin-bottom: 1.2rem; }
.form-group { margin-bottom: .9rem; }
.form-group label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .35rem; color: #111; }
.form-group select, .form-group input, .form-group textarea { width: 100%; padding: .65rem .9rem; border: 1.5px solid #ccc; border-radius: 8px; font-size: .9rem; color: #111; background: #fff; outline: none; transition: border-color .2s; }
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { border-color: #111; }
.btn-book { width: 100%; background: #111; color: #fff; border: none; padding: .85rem; border-radius: 50px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .2s; margin-top: .4rem; }
.btn-book:hover { background: #333; }

/* ===== PAGE HERO ===== */
.page-hero { background: #fff; padding: 3rem 1.2rem; text-align: center; border-bottom: 1px solid #e0e0e0; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,4vw,2.6rem); color: #111; }
.page-hero p { color: #666; margin-top: .5rem; font-size: .95rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.contact-info-box { background: #fff; border: 1.5px solid #e0e0e0; border-radius: var(--radius); padding: 1.5rem; }
.contact-info-box h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 1rem; color: #111; }
.info-item { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; font-size: .9rem; color: #555; line-height: 1.5; }
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 1rem; color: #111; }
.contact-form input, .contact-form textarea { width: 100%; padding: .7rem 1rem; border: 1.5px solid #ccc; border-radius: 8px; font-size: .9rem; margin-bottom: .8rem; outline: none; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #111; }
.contact-form textarea { min-height: 110px; resize: vertical; }

/* ===== ABOUT ===== */
.about-content { max-width: 820px; margin: 0 auto; padding: 3rem 1.2rem; }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #111; margin: 1.8rem 0 .8rem; border-left: 4px solid #111; padding-left: .8rem; }
.about-content p { color: #555; line-height: 1.8; margin-bottom: .8rem; font-size: .95rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: #111; border-radius: 16px; padding: 2rem 1rem; margin-bottom: 2.5rem; text-align: center; }
.stat-box .num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: #fff; }
.stat-box p { color: #aaa; font-size: .85rem; margin-top: .3rem; }

/* ===== POLICY PAGES ===== */
.policy-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.2rem; }
.policy-page h2 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: #111; margin: 2rem 0 .8rem; border-left: 4px solid #111; padding-left: .8rem; }
.policy-page p, .policy-page li { color: #555; line-height: 1.8; margin-bottom: .6rem; font-size: .93rem; }
.policy-page ol, .policy-page ul { padding-left: 1.4rem; margin-bottom: 1rem; }

/* ===== BLOG DETAIL ===== */
.blog-detail { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.2rem; }
.blog-detail h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,3vw,2rem); color: #111; margin: 1rem 0; }
.blog-detail img { width: 100%; border-radius: 12px; margin-bottom: 1.5rem; max-height: 360px; object-fit: cover; }
.blog-detail p { color: #555; line-height: 1.8; font-size: .95rem; }

/* ===== CART ===== */
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item { background: #fff; border: 1.5px solid #e0e0e0; border-radius: var(--radius); padding: 1rem; display: flex; align-items: center; gap: 1rem; }
.cart-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; background: #f5f5f5; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: .88rem; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qty-ctrl { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.qty-btn { width: 28px; height: 28px; border: 1.5px solid #111; background: #fff; border-radius: 50%; font-size: 1rem; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: #111; color: #fff; }
.remove-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: #bbb; transition: color .2s; flex-shrink: 0; }
.remove-btn:hover { color: #e00; }
.btn-checkout { display: block; width: 100%; background: #111; color: #fff; border: none; padding: .85rem; border-radius: 50px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .2s; text-align: center; }
.btn-checkout:hover { background: #333; }

/* ===== CHECKOUT ===== */
.checkout-section { padding: 2rem 1.2rem; background: #f5f5f5; min-height: 60vh; }
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.checkout-card { background: #fff; border: 1.5px solid #e0e0e0; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.2rem; }
.checkout-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 1rem; color: #111; border-bottom: 2px solid #111; padding-bottom: .5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.payment-options { display: flex; flex-direction: column; gap: .8rem; }
.payment-option { border: 2px solid #e0e0e0; border-radius: 10px; padding: .9rem 1.1rem; cursor: pointer; display: flex; align-items: flex-start; gap: .8rem; transition: all .2s; background: #fff; }
.payment-option:hover { border-color: #111; }
.payment-option.selected { border-color: #111; background: #f9f9f9; }
.payment-option input[type=radio] { accent-color: #111; width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.payment-option-label { font-weight: 700; font-size: .92rem; color: #111; }
.payment-option-sub { font-size: .79rem; color: #888; margin-top: 2px; }
.upi-input-wrap { display: none; }
.upi-input-wrap.show { display: block; }
.order-summary-line { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .88rem; color: #444; }
.order-summary-line.total { font-weight: 800; font-size: 1.05rem; color: #111; border-top: 2px solid #111; padding-top: .7rem; margin-top: .3rem; }
.btn-place-order { width: 100%; background: #111; color: #fff; border: none; padding: .95rem; border-radius: 50px; font-weight: 800; font-size: .95rem; cursor: pointer; transition: background .2s; margin-top: .8rem; }
.btn-place-order:hover { background: #333; }
.order-success { text-align: center; padding: 4rem 2rem; display: none; }
.order-success.show { display: block; }
.order-success-icon { font-size: 4rem; margin-bottom: 1rem; }

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid #111;
  z-index: 999;
  padding: 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,.10);
  flex-wrap: wrap;
}
.bottom-nav a {
  flex: 1;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .6rem .4rem;
  color: #888;
  font-size: .65rem;
  font-weight: 600;
  gap: .2rem;
  transition: color .2s;
  text-decoration: none;
  border-right: 1px solid #f0f0f0;
}
.bottom-nav a:last-child { border-right: none; }
.bottom-nav a.active, .bottom-nav a:hover { color: #111; background: #f9f9f9; }
.bottom-nav .bn-icon { font-size: 1.3rem; line-height: 1; }

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE NAVBAR FIX ===== */
@media(max-width:768px) {
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  .logo {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
  }
  .hamburger {
    display: block !important;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    gap: 0;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    color: #111;
    text-decoration: none;
    font-weight: 500;
  }
}

@media(max-width:640px) {
  /* Hide desktop nav, show hamburger */
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .hamburger { display: block !important; }

  /* Add bottom padding so content isn't hidden behind bottom nav */
  body { padding-bottom: 64px; }

  /* Show bottom nav */
  .bottom-nav { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; gap: .7rem; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: .5rem; padding: 1.5rem .5rem; }
  .stat-box .num { font-size: 1.6rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .blogs-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .quick-cats .container { gap: .7rem; }
  .qcat { padding: .65rem 1rem; font-size: .85rem; min-width: 100px; }
  .modal-box { padding: 1.4rem; }
  .pcb-cards { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  /* Cart page layout */
  #cartLayout { grid-template-columns: 1fr !important; }
  #cartSummary { position: static !important; }
}

@media(max-width:380px) {
  .services-grid { grid-template-columns: repeat(2,1fr); gap: .7rem; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: .7rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .pcb-cards { grid-template-columns: 1fr; }
}
