/* ==========================================
   NIVANTA STUDIO — CORE DESIGN SYSTEM
   ========================================== */

:root {
  --paper: #faf8f5;
  --ink: #121212;
  --muted: #666666;
  --line: #e2dfd9;
  --sand: #f4f1ea;
  --sage: #eaf0eb;
  --clay: #f3ece8;
  --sale: #d12268;
  --olive: #2e5a36;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Common Layout Wrappers */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.eyebrow, .hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Top Announcement Bar */
.announce {
  background: var(--ink);
  color: #ffffff;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.announce span {
  opacity: 0.4;
  margin: 0 6px;
}

/* Header & Desktop Navigation */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
}

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

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--ink);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  position: relative;
}

.cart-count {
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  padding: 2px 6px;
  position: absolute;
  top: -6px;
  right: -8px;
}

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

/* Buttons & CTAs */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  opacity: 0.9;
}

.btn-light {
  background: #ffffff;
  color: var(--ink);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

/* Product Cards & Default Grids */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge.sale {
  background: var(--sale);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.product-name {
  font-size: 15px;
  margin: 4px 0;
}

.stars {
  font-size: 12px;
  color: #e6a100;
  margin-bottom: 8px;
}

.size-selector {
  display: flex;
  gap: 4px;
  margin: 8px 0;
}

.size-selector button {
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 600;
}

.size-selector button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.price-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.price-sale {
  font-weight: 800;
  font-size: 16px;
}

.price-orig {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.product-cta {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}

/* Info Cards & Utility Sections */
.info-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
}

.newsletter {
  background: var(--sand);
  text-align: center;
  padding: 48px 16px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 16px auto 0;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

footer {
  background: var(--ink);
  color: #ffffff;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-col a {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}

.wa-float {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  background: #25d366;
  color: #fff;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999 !important;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10000;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

/* Slide-out Cart Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
}

.drawer-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.drawer-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.qty-btn-group button {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
}


/* ==========================================
   MYNTRA-STYLE CAROUSEL & CATEGORY BUBBLES
   ========================================== */

/* Hero Banner Carousel Container */
.hero-carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 12px;
}

.swiper.nivantaHeroSwiper {
  border-radius: 6px;
  overflow: hidden;
}

.carousel-slide-content {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 32px;
  border-radius: 6px;
}

.slide-text .slide-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.slide-text h2 {
  font-size: clamp(24px, 4.5vw, 42px);
  margin: 8px 0;
  font-weight: 800;
}

.slide-text p {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--ink);
}

/* Circular Category Story Bubbles */
.category-stories-wrap {
  padding: 16px 12px;
  overflow-x: auto;
}

.category-story-grid {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  min-width: 68px;
}

.story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  padding: 12px;
}

.story-avatar svg {
  width: 100%;
  height: 100%;
}

.swiper-pagination-bullet-active {
  background: var(--ink) !important;
}


/* ==========================================
   DESKTOP POLISH (SAFE - NO MOBILE ALTERATIONS)
   ========================================== */

@media (min-width: 769px) {
  /* Fix Swiper Navigation Blue Arrow Overlap on Desktop */
  .swiper-button-next, 
  .swiper-button-prev {
    color: var(--ink) !important;
    width: 44px !important;
    height: 44px !important;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .swiper-button-next::after, 
  .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: 800;
  }

  /* Padding prevents text from hitting arrows on wide screens */
  .carousel-slide-content {
    padding: 48px 70px !important;
  }

  /* Center Circular Category Bubbles on Desktop */
  .category-stories-wrap {
    max-width: 1200px;
    margin: 24px auto;
  }

  .category-story-grid {
    justify-content: center !important;
    gap: 32px !important;
  }
}


/* ==========================================
   MOBILE APP RESPONSIVE MEDIA QUERIES (MAX 768PX)
   ========================================== */

@media (max-width: 768px) {
  body {
    padding-bottom: 65px; /* Leaves room for fixed mobile bottom nav bar */
  }

  /* WhatsApp button sits above bottom bar on phone */
  .wa-float {
    bottom: 72px !important;
  }

  /* Compact 2-Column Product Grid for Phone Screens */
  .product-grid, #grid-tshirts, #grid-shorts, #grid-polos {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }

  .product-card {
    border-radius: 4px;
    overflow: hidden;
  }

  .product-info {
    padding: 8px !important;
  }

  .product-name {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .price-sale {
    font-size: 14px !important;
  }

  .size-selector button {
    padding: 4px 6px !important;
    font-size: 10px !important;
  }

  /* Hide Desktop Carousel Navigation Arrows on Mobile */
  .swiper-button-next, .swiper-button-prev {
    display: none !important;
  }

  .carousel-slide-content {
    min-height: 230px;
    padding: 20px;
  }

  /* Sticky App-Style Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
  }

  .mobile-nav-item svg {
    margin-bottom: 2px;
  }

  /* Hide Desktop Navigation Menu Links on Phone Screens */
  .main-nav {
    display: none;
  }
}

/* Hide Mobile Bottom Nav Bar on Desktop Screens */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}