/* ==========================================================================

   Ludhiana Sweets — shared stylesheet

   Palette: dark brown #4A2C1D, light brown #B78B5C, beige #F3E6D0,

            cream white #FFFDF8, gold #C89B3C

   Fonts: Playfair Display (headings), Poppins (body)

   \========================================================================== */



:root {

  --dark: #4A2C1D;

  --light: #B78B5C;

  --beige: #F3E6D0;

  --cream: #FFFDF8;

  --gold: #C89B3C;



  --font-display: "Playfair Display", serif;

  --font-body: "Poppins", sans-serif;



  --radius: 1.25rem;

  --shadow-card: 0 8px 24px -8px rgba(74, 44, 29, 0.12);

  --shadow-soft: 0 10px 40px -12px rgba(74, 44, 29, 0.18);

  --shadow-gold: 0 8px 30px -8px rgba(200, 155, 60, 0.35);



  --container: 1200px;

}



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



html { scroll-behavior: smooth; }



body {

  font-family: var(--font-body);

  background: var(--cream);

  color: var(--dark);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;

}



h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }



img { max-width: 100%; display: block; }



a { color: inherit; text-decoration: none; }



ul { list-style: none; }



button, input, textarea, select { font-family: inherit; font-size: inherit; }



.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }



.gold-text { color: var(--gold); }



.section { padding: 96px 0; }

@media (max-width: 768px) { .section { padding: 64px 0; } }



.section-heading { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.section-heading .eyebrow {

  color: var(--gold); font-weight: 600; text-transform: uppercase;

  font-size: 0.8rem; letter-spacing: 0.06em;

}

.section-heading h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 10px; }

.section-heading p { margin-top: 14px; color: rgba(74, 44, 29, 0.7); }



/* Buttons */

.btn {

  display: inline-flex; align-items: center; justify-content: center;

  gap: 8px; padding: 14px 32px; border-radius: 999px; font-weight: 600;

  border: 2px solid transparent; cursor: pointer; transition: all 0.25s ease;

  font-size: 0.95rem;

}

.btn-primary { background: var(--dark); color: var(--cream); box-shadow: var(--shadow-gold); }

.btn-primary:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }

.btn-outline { border-color: rgba(74, 44, 29, 0.2); background: transparent; color: var(--dark); }

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {

  background: #f0e3ca;

  color: var(--dark);

  box-shadow: var(--shadow-gold);

}



.btn-gold:hover {

  background: #523f1a;

  color: var(--cream);

}

.btn-block { width: 100%; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }



/* Skip link */

.skip-link {

  position: absolute; left: -999px; top: 0; background: var(--dark); color: var(--cream);

  padding: 10px 16px; border-radius: 6px; z-index: 200;

}

.skip-link:focus { left: 16px; top: 16px; }



/* Focus visibility */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {

  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;

}



@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }

}



/* ---------- Header ---------- */

.site-header {

  position: sticky; top: 0; z-index: 100; background:#d1a851 ;

  padding: 20px 0; transition: all 0.3s ease;

}

.site-header.scrolled {

  background: rgba(255, 253, 248, 0.7); backdrop-filter: blur(14px);

  box-shadow: var(--shadow-soft); padding: 10px 0;

}

.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo {font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--dark); height: 56px; width: 120px; display: block; overflow: hidden;}

.logo-img { width: 100%; height: 100%; display:block; object-fit: cover; object-position: center;}

.main-nav { display: flex; gap: 32px; }

.main-nav a { font-weight: 500; color: rgba(74, 44, 29, 0.8); transition: color 0.2s; }

.main-nav a:hover, .main-nav a.active { color: #877106; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.icon-btn {

  position: relative; background: none; border: none; cursor: pointer;

  padding: 8px; border-radius: 999px; display: flex;

}

.icon-btn:hover { background: var(--beige); }

.cart-count {

  position: absolute; top: -2px; right: -2px; background: #9a6e0e; color: var(--cream);

  font-size: 0.7rem; font-weight: 700; width: 18px; height: 18px; border-radius: 999px;

  display: flex; align-items: center; justify-content: center;

}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

.mobile-nav {

  display: none; flex-direction: column; gap: 4px; background: rgba(255,253,248,0.9);

  backdrop-filter: blur(14px); margin: 12px 20px 0; border-radius: 16px; padding: 12px;

  box-shadow: var(--shadow-card);

}

.mobile-nav.open { display: flex; }

.mobile-nav a { padding: 12px; border-radius: 8px; font-weight: 500; }

.mobile-nav a:hover { background: var(--beige); }



@media (max-width: 860px) {

  .main-nav { display: none; }

  .menu-toggle { display: block; }

}



/* ---------- Hero ---------- */

.hero {

  min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden;

  background: linear-gradient(to bottom, var(--beige), var(--cream) 70%);

}

.hero::before, .hero::after {

  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0;

}

.hero::before { width: 500px; height: 500px; background: rgba(200,155,60,0.12); top: -160px; right: -160px; }

.hero::after { width: 420px; height: 420px; background: rgba(183,139,92,0.18); bottom: -140px; left: -140px; }

.hero .container {

  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;

  position: relative; z-index: 1; padding-top: 20px;

}

.hero-badge {

  display: inline-block; padding: 7px 18px; border-radius: 999px; background: rgba(200,155,60,0.1);

  border: 1px solid rgba(200,155,60,0.3); color: var(--gold); font-size: 0.75rem;

  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 22px;

}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }

.hero h1 .shimmer {

  display: block; margin-top: 8px;

  background: linear-gradient(110deg, var(--dark) 0%, var(--gold) 20%, var(--dark) 40%);

  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;

  animation: shimmer 3s linear infinite;

}

.hero p { margin-top: 22px; color: rgba(74,44,29,0.7); font-size: 1.1rem; max-width: 480px; }

.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-wrap { position: relative; display: flex; justify-content: center; }

.hero-image {

  width: 100%; max-width: 440px; aspect-ratio: 4.5/5; border-radius: var(--radius); overflow: hidden;

  border: 4px solid #fff; box-shadow: var(--shadow-soft); animation: float 6s ease-in-out infinite;

}

.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-chip {

  position: absolute; bottom: -20px; left: -10px; background: rgba(255,253,248,0.6);

  backdrop-filter: blur(14px); border: 1px solid rgba(200,155,60,0.25);

  padding: 12px 20px; border-radius: 16px; box-shadow: var(--shadow-card);

}

.hero-chip small { display: block; color: rgba(74,44,29,0.6); font-size: 0.7rem; }

.hero-chip strong { font-family: var(--font-display); }



@media (max-width: 860px) {

  .hero .container { grid-template-columns: 1fr; text-align: center; }

  .hero p { margin-left: auto; margin-right: auto; }

  .hero-cta { justify-content: center; }

  .hero-chip { display: none; }

}



@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }



/* Ribbon divider (signature element) */

.ribbon-divider { width: 100%; height: 48px; overflow: visible; }

.ribbon-divider path {

  stroke: var(--gold); stroke-width: 2; fill: none;

  stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.6s ease-out;

}

.ribbon-divider.in-view path { stroke-dashoffset: 0; }



/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.in-view { opacity: 1; transform: translateY(0); }



/* ---------- Feature cards ---------- */

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card {

  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);

  border: 1px solid rgba(183,139,92,0.1); transition: transform 0.3s, box-shadow 0.3s;

}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.feature-icon {

  width: 56px; height: 56px; border-radius: 50%; background: var(--beige);

  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--gold);

}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.feature-card p { font-size: 0.9rem; color: rgba(74,44,29,0.65); }



@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }



/* ---------- About ---------- */

.about-section { background: rgba(243,230,208,0.4); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.about-image {

  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);

}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text p { color: rgba(74,44,29,0.75); margin-bottom: 16px; }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-image { order: -1; } }



/* ---------- Testimonials ---------- */

.testimonial-card {

  background: rgba(255,253,248,0.55); backdrop-filter: blur(14px);

  border: 1px solid rgba(200,155,60,0.25); border-radius: var(--radius);

  padding: 40px; text-align: center; max-width: 620px; margin: 0 auto;

  box-shadow: var(--shadow-card); min-height: 200px;

}

.testimonial-stars { color: var(--gold); margin-bottom: 14px; font-size: 1.1rem; }

.testimonial-card p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: rgba(74,44,29,0.85); }

.testimonial-card .name { margin-top: 16px; font-weight: 600; }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }

.testimonial-dots button {

  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(183,139,92,0.3); cursor: pointer;

}

.testimonial-dots button.active { background: var(--gold); }



/* ---------- FAQ ---------- */

.faq-section { background: rgba(243,230,208,0.4); }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }

.faq-question {

  width: 100%; text-align: left; background: none; border: none; padding: 20px; font-weight: 600;

  display: flex; justify-content: space-between; align-items: center; cursor: pointer;

}

.faq-chevron { transition: transform 0.3s ease; color: var(--gold); }

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p { padding: 0 20px 20px; color: rgba(74,44,29,0.7); font-size: 0.92rem; }



/* ---------- Newsletter ---------- */

.newsletter-section {background: #F3E6D0; color: var(--cream); text-align: center;}

.newsletter-section h2 { color: rgba(68, 51, 20, 0.7); margin-bottom: 12px; background-color: #F3E6D0; }

.newsletter-section p { color: rgba(50, 48, 40, 0.7); margin-bottom: 30px;background-color: #F3E6D0; }

.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.newsletter-form input {flex: 1; max-width: 340px; padding: 14px 20px; border-radius: 999px; border: none; background: var(--cream); color: var(--dark);}



/* ---------- Footer ---------- */

.site-footer {

  background: linear-gradient(to bottom, var(--beige), var(--cream) 70%);}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px 0 40px; }

.footer-grid h3 { font-size: 1.4rem; margin-bottom: 14px; }

.footer-grid h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 16px; }

.footer-grid p { color: rgba(74,44,29,0.7); font-size: 0.9rem; }

.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; color: rgba(74,44,29,0.7); }

.footer-grid ul a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }

.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }

.footer-social a:hover { background: var(--gold); color: var(--dark); }

.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; color: rgba(74,44,29,0.7); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); text-align: center; padding: 20px 0; font-size: 0.8rem; color: rgba(91, 53, 33, 0.7); }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; margin-left: 5px }; }



/* ---------- Cart Drawer ---------- */

.cart-overlay { position: fixed; inset: 0; background: rgba(74,44,29,0.4); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s; }

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {

  position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px; background: var(--cream);

  z-index: 310; box-shadow: -10px 0 40px rgba(0,0,0,0.2); transform: translateX(100%);

  transition: transform 0.35s ease; display: flex; flex-direction: column;

}

.cart-drawer.open { transform: translateX(0); }

.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(183,139,92,0.2); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.cart-empty { text-align: center; padding: 60px 0; color: rgba(74,44,29,0.6); }

.cart-item { display: flex; gap: 12px; background: rgba(255,255,255,0.7); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-card); }

.cart-item img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--beige); }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info .name { font-weight: 600; font-size: 0.9rem; }

.cart-item-info .weight { font-size: 0.78rem; color: rgba(74,44,29,0.55); }

.qty-control { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(183,139,92,0.3); border-radius: 999px; padding: 4px 12px; margin-top: 8px; }

.qty-control button { border: none; background: none; cursor: pointer; font-size: 1rem; }

.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }

.cart-item-remove { background: none; border: none; cursor: pointer; color: rgba(74,44,29,0.4); align-self: flex-start; }

.cart-item-remove:hover { color: #c0392b; }

.cart-footer { padding: 20px; border-top: 1px solid rgba(183,139,92,0.2); }

.cart-coupon { display: flex; gap: 8px; margin-bottom: 14px; }

.cart-coupon input { flex: 1; }

.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: rgba(74,44,29,0.7); margin-bottom: 6px; }

.summary-row\.total { font-weight: 700; font-size: 1.05rem; color: var(--dark); border-top: 1px solid rgba(183,139,92,0.2); padding-top: 10px; margin-top: 10px; }

.cart-footer .btn { margin-top: 8px; }



/* ---------- Forms ---------- */

.field { margin-bottom: 18px; }

.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

.field .error { color: #c0392b; font-size: 0.78rem; margin-top: 4px; }

input.input, textarea.input, select.input {

  width: 100%; border-radius: 12px; border: 1px solid rgba(183,139,92,0.3); background: #fff;

  padding: 12px 16px; font-size: 0.9rem;

}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }



/* ---------- Shop / Product grid ---------- */



.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; max-width: 12000px; margin: 0 auto; }

@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 560px) {

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; margin: 0; width: 100%; height: auto; max-width: none; }

  .product-card:nth-child(odd) { border-radius: 0 6px 6px 0; }

  .product-card:nth-child(even) { border-radius: 6px 0 0 6px; }

  .shop-container, .container { padding-left: 0; padding-right: 0; }

}

.product-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 0.3s; }

.product-card:hover { box-shadow: var(--shadow-soft); }

.product-card .thumb { aspect-ratio: 4.8/5; overflow: hidden; }

.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.s; }

.no-image-placeholder {

  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;

  gap: 6px; background: var(--beige); color: rgba(74,44,29,.45); font-size: .78rem; text-align: center; padding: 10px;

}

.no-image-placeholder svg { opacity: .6; }



/* Star picker used by both the customer review form and the admin add-review form */

.star-picker {display: flex; gap: 4px; cursor: pointer; user-select: none;}

.star-pick {font-size: 1.5rem; color: rgba(74, 44, 29, 0.25); transition: color 0.15s ease, transform 0.15s ease;}

.star-pick:hover {transform: scale(1.12);}

.star-pick.active {color: var(--gold, #c9a15a);}

.review-photo { width: 100%; max-width: 220px; border-radius: 12px; margin: 8px 0; display: block; object-fit: cover;}

.review-item { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(74, 44, 29, 0.08);}

.review-form-wrap .field { margin-bottom: 14px; display: flex; flex-direction: column;gap: 6px;}

.review-form-wrap label { font-size: 0.8rem; font-weight: 600; color: rgba(74, 44, 29, 0.7);}

.review-form-wrap .input,

.review-form-wrap textarea.input {padding: 10px 12px;border: 1px solid rgba(74, 44, 29, 0.2); border-radius: 8px; font-family: inherit; font-size: 0.92rem; background: #fff;}

.review-form-wrap .input:focus {outline: none; border-color: var(--gold, #c9a15a);}

#reviewFormMsg:empty {display: none;}



/* ---------- Admin: packaging (weight tier) management ---------- */

.packaging-card { position: relative; }

.remove-packaging {

  position: absolute; top: 8px; right: 8px; background: none; border: none; cursor: pointer;

  color: rgba(74,44,29,.35); font-size: .9rem; line-height: 1;

}

.remove-packaging:hover { color: #c0392b; }

.add-packaging-form {

  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px;

  padding-top: 16px; border-top: 1px dashed rgba(183,139,92,.3);

}

.add-packaging-form .field { margin-bottom: 0; flex: 1; min-width: 110px; }

.add-packaging-form .field label { font-size: .75rem; margin-bottom: 4px; }

.add-packaging-form input, .add-packaging-form select { padding: 10px 12px; font-size: .85rem; }

.custom-weight-input { display: none; }

.custom-weight-input.show { display: block; }

.product-card:hover .thumb img { transform: scale(1.06); }

.product-card .body { padding: 20px; }

.product-card .rating { color: var(--gold); font-size: 0.8rem; margin-bottom: 8px; }

.product-card h3 { font-size: 1.1rem; margin-bottom: 6px; }

.product-card .tagline { font-size: 0.88rem; color: rgba(74,44,29,0.6); margin-bottom: 10px; }

.product-card .price { font-weight: 700; color: var(--gold); }



/* ---------- Product detail ---------- */

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

@media (max-width: 860px) { .product-detail-grid { grid-template-columns: 1fr; } }

.gallery-main { aspect-ratio: 4.5/5; border-radius: 5px; overflow: hidden; box-shadow: var(--shadow-soft); background: var(--beige); cursor: zoom-in; }

.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }

.gallery-main:hover img { transform: scale(1.05); }

.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }

.gallery-thumbs button { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; }

.gallery-thumbs button.active { border-color: var(--gold); }

.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-price { font-size: 1.6rem; font-weight: 700; color: var(--gold); margin: 18px 0; }

.option-group { margin-bottom: 22px; }

.option-group > p { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }

.weight-options { display: flex; gap: 10px; }

.weight-options button { padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(183,139,92,0.4); background: none; cursor: pointer; font-weight: 500; font-size: 0.9rem; }

.weight-options button.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }

.stock-status { font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }

.stock-status.in { color: #1e7e34; }

.stock-status.out { color: #c0392b; }

.purchase-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.purchase-actions .btn { flex: 1; min-width: 150px; }

.wishlist-btn { padding: 14px; border-radius: 999px; border: 1px solid rgba(183,139,92,0.4); background: none; cursor: pointer; }

.wishlist-btn.active { color: #c0392b; border-color: #c0392b; }



.tabs { margin-top: 60px; }

.tab-buttons { display: flex; gap: 6px; border-bottom: 1px solid rgba(183,139,92,0.2); overflow-x: auto; }

.tab-buttons button {

  padding: 12px 20px; background: none; border: none; border-bottom: 2px solid transparent;

  font-weight: 600; font-size: 0.9rem; cursor: pointer; color: rgba(74,44,29,0.6); white-space: nowrap;

}

.tab-buttons button.active { border-color: var(--gold); color: var(--gold); }

.tab-panel { display: none; padding: 28px 0; }

.tab-panel.active { display: block; }

.ingredients-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ingredients-list li { display: flex; align-items: center; gap: 8px; }

.ingredients-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.review-item { border-bottom: 1px solid rgba(183,139,92,0.15); padding-bottom: 16px; margin-bottom: 16px; }

.review-item .stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 4px; }

.review-item .review-name { font-size: 0.78rem; color: rgba(74,44,29,0.5); margin-top: 4px; }



/* ---------- Checkout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
}

/* Checkout sections */
.checkout-section {
  background: #fff;
  border: 1px solid rgba(183, 139, 92, 0.16);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 5px 24px rgba(74, 44, 29, 0.06);
}

.checkout-section-heading {
  margin-bottom: 22px;
}

.checkout-section-heading h2 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.checkout-section-heading p {
  color: rgba(74, 44, 29, 0.58);
  font-size: 0.85rem;
}

/* Checkout fields */
.checkout-section .field {
  margin-bottom: 16px;
}

.checkout-section .field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(74, 44, 29, 0.66);
  margin-bottom: 6px;
}

.checkout-section .field label span {
  opacity: 0.65;
  font-weight: 400;
}

.checkout-section input.input,
.checkout-section select.input,
.checkout-section textarea.input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(74, 44, 29, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--dark);
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.checkout-section textarea.input {
  min-height: 90px;
  resize: vertical;
}

.checkout-section input.input:focus,
.checkout-section select.input:focus,
.checkout-section textarea.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.12);
}

.checkout-section .input.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.checkout-section .field .error {
  color: #c0392b;
  font-size: 0.76rem;
  margin-top: 5px;
  min-height: 1em;
}

/* Checkbox */
.checkout-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(74, 44, 29, 0.8);
  font-size: 0.84rem;
}

.checkout-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

/* Shipping methods */
.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1.5px solid rgba(74, 44, 29, 0.14);
  border-radius: 13px;
  background: #fff;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shipping-option:hover {
  border-color: rgba(200, 155, 60, 0.5);
}

.shipping-option.active {
  border-color: var(--gold);
  background: linear-gradient(
    90deg,
    rgba(243, 230, 208, 0.55),
    rgba(255, 253, 248, 0.95)
  );
  box-shadow: 0 5px 18px rgba(200, 155, 60, 0.12);
}

/* Custom radio */
.checkout-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(74, 44, 29, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-radio span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.shipping-option.active .checkout-radio,
.checkout-payment-option.active .checkout-radio {
  border-color: var(--gold);
}

.shipping-option.active .checkout-radio span,
.checkout-payment-option.active .checkout-radio span {
  background: var(--gold);
}

/* Shipping icon */
.shipping-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  color: var(--dark);
}

/* Shipping text */
.shipping-option-info {
  min-width: 0;
}

.shipping-option-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.shipping-option-info span {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: rgba(74, 44, 29, 0.55);
}

.shipping-price {
  text-align: right;
  white-space: nowrap;
}

.shipping-price strong {
  display: block;
  font-size: 0.9rem;
}

.shipping-price small {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  color: rgba(74, 44, 29, 0.48);
}

.free-shipping-label {
  color: #26833e !important;
  background: rgba(38, 131, 62, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Payment methods */
.checkout-payment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-payment-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1.5px solid rgba(74, 44, 29, 0.14);
  border-radius: 13px;
  background: #fff;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.checkout-payment-option:hover {
  border-color: rgba(200, 155, 60, 0.55);
}

.checkout-payment-option.active {
  border-color: var(--gold);
  background: linear-gradient(
    90deg,
    rgba(243, 230, 208, 0.55),
    rgba(255, 253, 248, 0.95)
  );
  box-shadow: 0 5px 18px rgba(200, 155, 60, 0.13);
}

.payment-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  font-size: 1.2rem;
}

.payment-option-info {
  min-width: 0;
}

.payment-option-info strong {
  display: block;
  color: var(--dark);
  font-size: 0.9rem;
}

.payment-option-info span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: rgba(74, 44, 29, 0.55);
}

/* Payment brand badges */
.payment-brands {
  display: flex;
  gap: 5px;
  align-items: center;
}

.payment-brand {
  height: 28px;
  min-width: 44px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  font-size: 0.67rem;
  font-weight: 700;
}

.payment-brand.visa {
  background: #1434cb;
  color: #fff;
}

.payment-brand.mastercard {
  background: #222;
  padding: 0 8px;
}

.payment-brand.mastercard i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: block;
}

.payment-brand.mastercard i:first-child {
  background: #eb001b;
  margin-right: -4px;
}

.payment-brand.mastercard i:last-child {
  background: #f79e1b;
}

/* Wallet and COD badges */
.wallet-badge,
.cod-badge {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.jazzcash-badge {
  background: #ffe9e9;
  color: #b71c1c;
}

.easypaisa-badge {
  background: #e6f7ec;
  color: #12823b;
}

.cod-badge {
  background: var(--beige);
  color: var(--dark);
}

/* Shipping/payment notice */
.payment-shipping-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(38, 131, 62, 0.08);
  color: #26753a;
  font-size: 0.76rem;
  font-weight: 500;
}

.payment-shipping-notice.cod {
  background: rgba(200, 155, 60, 0.1);
  color: #8b681f;
}

/* Billing address */
.billing-options {
  border: 1px solid rgba(74, 44, 29, 0.15);
  border-radius: 13px;
  overflow: hidden;
}

.billing-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  background: #fff;
  font-size: 0.86rem;
  transition: background 0.2s ease;
}

.billing-option + .billing-option {
  border-top: 1px solid rgba(74, 44, 29, 0.12);
}

.billing-option.active {
  background: rgba(243, 230, 208, 0.45);
}

.billing-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(74, 44, 29, 0.24);
  position: relative;
  flex-shrink: 0;
}

.billing-option.active .billing-radio {
  border-color: var(--gold);
}

.billing-option.active .billing-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.different-billing {
  display: none;
  margin-top: 18px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(243, 230, 208, 0.25);
}

.different-billing.show {
  display: block;
}

/* Order summary */
.order-summary-box {
  background: rgba(243, 230, 208, 0.38);
  border: 1px solid rgba(183, 139, 92, 0.15);
  border-radius: 18px;
  padding: 26px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-card);
}

.order-summary-items {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-line-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-line-item img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

/* Checkout button */
.checkout-submit {
  min-height: 54px;
  gap: 10px;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* Responsive checkout */
@media (max-width: 960px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .order-summary-box {
    position: static;
  }
}

@media (max-width: 640px) {
  .checkout-section {
    padding: 20px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shipping-option,
  .checkout-payment-option {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 11px;
    padding: 15px 13px;
  }

  .shipping-price,
  .payment-brands,
  .wallet-badge,
  .cod-badge {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }

  .payment-brands {
    margin-top: 3px;
  }
}


/* ---------- Order success ---------- */

.success-wrap { text-align: center; max-width: 480px; margin: 0 auto; position: relative; }

.check-circle { width: 90px; height: 90px; margin: 0 auto 20px; }

.order-info-box { background: rgba(243,230,208,0.4); border-radius: var(--radius); padding: 24px; text-align: left; margin: 30px 0; font-size: 0.9rem; }

.order-info-box .row { display: flex; justify-content: space-between; margin-bottom: 10px; gap: 10px; }

.order-info-box .row .value { font-weight: 600; text-align: right; }



#checkCircle, #checkMark {

  stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 0.8s ease-out;

}

#checkMark { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 0.5s ease-out 0.6s; }

.check-circle.animate #checkCircle { stroke-dashoffset: 0; }

.check-circle.animate #checkMark { stroke-dashoffset: 0; }

#confettiCanvas { width: 400px; height: 260px; z-index: 1; }



/* ---------- Admin ---------- */

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar { width: 240px; background: var(--dark); color: var(--cream); padding: 26px; flex-shrink: 0; }

.admin-sidebar .logo { color: var(--cream); font-size: 1.3rem; margin-bottom: 40px; display: block; }

.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-weight: 500; font-size: 0.9rem; margin-bottom: 4px; }

.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--gold); color: var(--dark); }

.admin-main { flex: 1; padding: 40px; background: var(--cream); }

.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 30px; }

@media (max-width: 860px) { .admin-stats { grid-template-columns: 1fr 1fr; } .admin-layout { flex-direction: column; } .admin-sidebar { width: 100%; } }

.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }

.stat-card .label { font-size: 0.85rem; color: rgba(74,44,29,0.6); margin-bottom: 8px; }

.stat-card .value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }

.admin-table { width: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); border-collapse: collapse; overflow: hidden; }

.admin-table th { background: rgba(243,230,208,0.5); text-align: left; padding: 14px; font-size: 0.85rem; }

.admin-table td { padding: 14px; border-top: 1px solid rgba(183,139,92,0.1); font-size: 0.88rem; }

.login-box { max-width: 380px; margin: 100px auto; background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-card); text-align: center; }

.db-banner {

  padding: 12px 18px; border-radius: 12px; font-size: 0.85rem; font-weight: 500;

}

.db-banner:empty { display: none; }

.db-banner.connected { background: rgba(30, 126, 52, 0.1); color: #1e7e34; border: 1px solid rgba(30, 126, 52, 0.25); }

.db-banner.demo { background: rgba(200, 155, 60, 0.1); color: var(--gold); border: 1px solid rgba(200, 155, 60, 0.3); }



/* ---------- Legal pages ---------- */

.legal-content { max-width: 720px; margin: 0 auto; color: rgba(74,44,29,0.75); }

.legal-content p { margin-bottom: 16px; }



/* ---------- Toast ---------- */

.toast {

  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);

  background: var(--dark); color: var(--cream); padding: 14px 22px; border-radius: 12px;

  font-size: 0.9rem; z-index: 500; opacity: 0; pointer-events: none; transition: all 0.3s ease;

}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.toast.error { background: #c0392b; }

/* ============================================================
   PAYMENT LOGOS
   ============================================================ */

.payment-brands {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 90px;
}


/* Generic payment logo */
.payment-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


/* JazzCash */
.jazzcash-logo {
  width: 86px;
  height: 52px;
}


/* EasyPaisa */
.easypaisa-logo {
  width: 86px;
  height: 42px;
}


/* Visa badge */
.payment-brand.visa {
  height: 28px;
  min-width: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 8px;

  border-radius: 5px;

  background: #1434cb;
  color: #fff;

  font-size: 0.68rem;
  font-weight: 700;
}


/* Mastercard badge */
.payment-brand.mastercard {
  height: 28px;
  min-width: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 8px;

  border-radius: 5px;

  background: #fff;

  border: 1px solid rgba(74, 44, 29, 0.12);
}


/* Mastercard circles */
.payment-brand.mastercard i {
  display: block;

  width: 16px;
  height: 16px;

  border-radius: 50%;
}


.payment-brand.mastercard i:first-child {
  background: #eb001b;

  margin-right: -5px;
}


.payment-brand.mastercard i:last-child {
  background: #f79e1b;
}


/* ============================================================
   PAYMENT OPTION ALIGNMENT
   ============================================================ */

.checkout-payment-option {
  width: 100%;

  display: grid;

  grid-template-columns:
    auto
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 14px;

  padding: 17px 18px;

  border: 1.5px solid rgba(74, 44, 29, 0.14);

  border-radius: 13px;

  background: #fff;

  color: var(--dark);

  text-align: left;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}


.checkout-payment-option:hover {
  border-color: rgba(200, 155, 60, 0.55);
}


.checkout-payment-option.active {
  border-color: var(--gold);

  background: linear-gradient(
    90deg,
    rgba(243, 230, 208, 0.55),
    rgba(255, 253, 248, 0.95)
  );

  box-shadow:
    0 5px 18px rgba(200, 155, 60, 0.13);
}


/* ============================================================
   PAYMENT ICON
   ============================================================ */

.payment-icon {
  width: 52px;
  height: 42px;

  flex-shrink: 0;

  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--beige);

  font-size: 1.15rem;
}


/* ============================================================
   PAYMENT TEXT
   ============================================================ */

.payment-option-info {
  min-width: 0;
}


.payment-option-info strong {
  display: block;

  color: var(--dark);

  font-size: 0.9rem;

  font-weight: 600;
}


.payment-option-info span {
  display: block;

  margin-top: 3px;

  color: rgba(74, 44, 29, 0.55);

  font-size: 0.76rem;

  line-height: 1.4;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

  .checkout-payment-option {
    grid-template-columns:
      auto
      auto
      minmax(0, 1fr);

    gap: 11px;

    padding: 15px 13px;
  }


  .payment-brands {
    grid-column: 3;

    justify-self: start;

    justify-content: flex-start;

    margin-top: 4px;

    min-width: 0;
  }


  .jazzcash-logo {
    width: 72px;
    height: 28px;
  }


  .easypaisa-logo {
    width: 76px;
    height: 28px;
  }


  .payment-brand.visa,
  .payment-brand.mastercard {
    height: 26px;
  }

}