/**
 * Meesho Authentic Design System Stylesheet
 * Recreating Meesho UI/UX: Palette, Navbar, Search Grid, Filters, PDP, and Checkout
 */

:root {
  --meesho-pink: #9f2089;
  --meesho-pink-hover: #83136f;
  --meesho-pink-light: #fbebf7;
  --meesho-pink-border: #f43397;
  --meesho-green: #038d63;
  --meesho-green-bg: #e6f7f2;
  --meesho-rating-green: #23bb75;
  --meesho-bg: #f9f9f9;
  --meesho-white: #ffffff;
  --meesho-border: #e7e7ea;
  --meesho-border-light: #f0f0f3;
  --meesho-text-dark: #333333;
  --meesho-text-muted: #666666;
  --meesho-text-subtle: #8b8ba3;
  --meesho-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --meesho-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
  --meesho-radius: 4px;
  --meesho-radius-lg: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--meesho-bg);
  color: var(--meesho-text-dark);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   1. MEESHO HEADER & NAVIGATION
   ========================================================================== */

.meesho-header {
  background: var(--meesho-white);
  border-bottom: 1px solid var(--meesho-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.meesho-nav-top {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.meesho-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.meesho-logo-text {
  font-size: 32px;
  font-weight: 800;
  color: var(--meesho-pink);
  letter-spacing: -0.8px;
  display: flex;
  align-items: center;
}

.meesho-logo-text span {
  color: var(--meesho-pink-border);
}

.meesho-search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.meesho-search-form {
  display: flex;
  align-items: center;
  background: #fbfbfb;
  border: 1px solid #d2d2d8;
  border-radius: var(--meesho-radius);
  padding: 0 14px;
  height: 42px;
  transition: all 0.2s ease;
}

.meesho-search-form:focus-within {
  border-color: var(--meesho-pink);
  background: var(--meesho-white);
  box-shadow: 0 0 0 1px var(--meesho-pink);
}

.meesho-search-icon {
  color: var(--meesho-text-subtle);
  margin-right: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.meesho-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--meesho-text-dark);
  outline: none;
}

.meesho-search-input::placeholder {
  color: var(--meesho-text-subtle);
}

.meesho-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.meesho-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--meesho-text-dark);
  cursor: pointer;
  transition: color 0.15s ease;
}

.meesho-nav-item:hover {
  color: var(--meesho-pink);
}

.meesho-nav-icon {
  font-size: 18px;
  color: var(--meesho-text-muted);
}

.meesho-cart-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.meesho-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--meesho-pink);
  color: var(--meesho-white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Category Sub-Header Bar */
.meesho-categories-strip {
  border-top: 1px solid var(--meesho-border);
  background: var(--meesho-white);
}

.meesho-categories-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.meesho-categories-container::-webkit-scrollbar {
  display: none;
}

.meesho-category-link {
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--meesho-text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
  display: inline-block;
}

.meesho-category-link:hover,
.meesho-category-link.active {
  color: var(--meesho-pink);
  border-bottom-color: var(--meesho-pink);
  font-weight: 600;
}

/* Announcement ticker */
.meesho-ticker {
  background: #fbf0f8;
  border-bottom: 1px solid #f6dcf1;
  padding: 7px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--meesho-pink);
}

/* ==========================================================================
   2. MAIN CONTAINER & BREADCRUMBS
   ========================================================================== */

.meesho-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
}

.meesho-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--meesho-text-subtle);
  margin-bottom: 16px;
}

.meesho-breadcrumb a:hover {
  color: var(--meesho-pink);
}

.meesho-breadcrumb-sep {
  color: #c4c4cf;
}

/* Search Header / Title Bar */
.meesho-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.meesho-page-title-box h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--meesho-text-dark);
  line-height: 1.2;
}

.meesho-results-count {
  font-size: 13px;
  color: var(--meesho-text-subtle);
  margin-top: 4px;
}

.meesho-sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--meesho-white);
  border: 1px solid var(--meesho-border);
  padding: 8px 14px;
  border-radius: var(--meesho-radius);
  font-size: 13px;
  color: var(--meesho-text-dark);
}

.meesho-sort-select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--meesho-text-dark);
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   3. SEARCH PAGE TWO-COLUMN LAYOUT
   ========================================================================== */

.meesho-catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .meesho-catalog-layout {
    grid-template-columns: 1fr;
  }
  .meesho-filter-sidebar {
    display: none; /* Can be toggled on mobile via drawer */
  }
}

/* Filter Sidebar */
.meesho-filter-sidebar {
  background: var(--meesho-white);
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius-lg);
  padding: 16px;
}

.meesho-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--meesho-border-light);
  margin-bottom: 14px;
}

.meesho-filter-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--meesho-text-dark);
}

.meesho-clear-filters-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--meesho-pink);
  background: none;
  border: none;
  cursor: pointer;
}

.meesho-filter-group {
  border-bottom: 1px solid var(--meesho-border-light);
  padding: 14px 0;
}

.meesho-filter-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--meesho-text-dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.meesho-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.meesho-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--meesho-text-muted);
  cursor: pointer;
  user-select: none;
}

.meesho-filter-label input[type="checkbox"],
.meesho-filter-label input[type="radio"] {
  accent-color: var(--meesho-pink);
  cursor: pointer;
}

.meesho-filter-label:hover {
  color: var(--meesho-pink);
}

.meesho-filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--meesho-text-subtle);
}

/* ==========================================================================
   4. MEESHO PRODUCT GRID & CARDS
   ========================================================================== */

.meesho-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .meesho-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .meesho-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.meesho-card {
  background: var(--meesho-white);
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.meesho-card:hover {
  box-shadow: var(--meesho-shadow-hover);
  border-color: #d8d8de;
  transform: translateY(-2px);
}

.meesho-card-image-box {
  position: relative;
  width: 100%;
  padding-top: 120%; /* 1:1.2 portrait ratio */
  background: #f4f4f7;
  overflow: hidden;
}

.meesho-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.meesho-card:hover .meesho-card-img {
  transform: scale(1.02);
}

.meesho-more-variants-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--meesho-text-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.meesho-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.meesho-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--meesho-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.meesho-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.meesho-card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--meesho-text-dark);
}

.meesho-card-mrp {
  font-size: 12px;
  color: var(--meesho-text-subtle);
  text-decoration: line-through;
}

.meesho-card-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--meesho-green);
}

.meesho-card-delivery-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--meesho-text-subtle);
  background: #f4f4f6;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  align-self: flex-start;
}

.meesho-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}

.meesho-rating-pill {
  background: var(--meesho-rating-green);
  color: var(--meesho-white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.meesho-rating-count {
  font-size: 11px;
  color: var(--meesho-text-subtle);
}

.meesho-supplier-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--meesho-pink);
  margin-left: auto;
}

/* ==========================================================================
   5. PRODUCT DETAILS PAGE (PDP)
   ========================================================================== */

.meesho-pdp-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  background: var(--meesho-white);
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius-lg);
  padding: 28px;
  align-items: start;
}

@media (max-width: 950px) {
  .meesho-pdp-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.meesho-pdp-gallery-wrap {
  display: flex;
  gap: 16px;
}

.meesho-pdp-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
}

.meesho-pdp-thumb {
  width: 72px;
  height: 86px;
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  overflow: hidden;
  cursor: pointer;
  background: #fbfbfd;
  transition: all 0.15s ease;
}

.meesho-pdp-thumb.active,
.meesho-pdp-thumb:hover {
  border-color: var(--meesho-pink);
  box-shadow: 0 0 0 1px var(--meesho-pink);
}

.meesho-pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meesho-pdp-main-img-box {
  flex: 1;
  position: relative;
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  overflow: hidden;
  background: #f9f9fc;
}

.meesho-pdp-main-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

.meesho-pdp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.btn-meesho-cart {
  background: var(--meesho-white);
  color: var(--meesho-pink);
  border: 2px solid var(--meesho-pink);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--meesho-radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-meesho-cart:hover {
  background: var(--meesho-pink-light);
}

.btn-meesho-buy {
  background: var(--meesho-pink);
  color: var(--meesho-white);
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--meesho-radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-meesho-buy:hover {
  background: var(--meesho-pink-hover);
}

/* Right PDP Details Column */
.meesho-pdp-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meesho-pdp-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--meesho-text-dark);
  line-height: 1.35;
}

.meesho-pdp-pricing-card {
  background: #fafafa;
  border: 1px solid var(--meesho-border-light);
  border-radius: var(--meesho-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meesho-pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.meesho-pdp-price-large {
  font-size: 28px;
  font-weight: 800;
  color: var(--meesho-text-dark);
}

.meesho-pdp-mrp-large {
  font-size: 16px;
  color: var(--meesho-text-subtle);
  text-decoration: line-through;
}

.meesho-pdp-discount-large {
  font-size: 16px;
  font-weight: 700;
  color: var(--meesho-green);
}

.meesho-pdp-offer-banner {
  background: var(--meesho-green-bg);
  border: 1px dashed var(--meesho-green);
  border-radius: var(--meesho-radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--meesho-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Size Selector */
.meesho-size-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meesho-size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meesho-size-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--meesho-text-dark);
}

.meesho-size-chart-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--meesho-pink);
  cursor: pointer;
}

.meesho-size-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meesho-size-chip {
  padding: 8px 18px;
  border: 1.5px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--meesho-text-dark);
  cursor: pointer;
  background: var(--meesho-white);
  transition: all 0.15s ease;
}

.meesho-size-chip:hover,
.meesho-size-chip.active {
  border-color: var(--meesho-pink);
  color: var(--meesho-pink);
  background: var(--meesho-pink-light);
}

/* Product Details Card */
.meesho-details-card {
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  padding: 16px;
  background: var(--meesho-white);
}

.meesho-details-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--meesho-text-dark);
}

.meesho-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.meesho-specs-table td {
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--meesho-border-light);
}

.meesho-specs-table td:first-child {
  color: var(--meesho-text-subtle);
  width: 35%;
}

.meesho-specs-table td:last-child {
  color: var(--meesho-text-dark);
  font-weight: 500;
}

/* Seller Card */
.meesho-seller-card {
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  padding: 16px;
  background: #fbfbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meesho-seller-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meesho-seller-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--meesho-text-dark);
}

.meesho-seller-sub {
  font-size: 12px;
  color: var(--meesho-text-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-meesho-follow {
  padding: 6px 14px;
  border: 1px solid var(--meesho-pink);
  color: var(--meesho-pink);
  background: var(--meesho-white);
  border-radius: var(--meesho-radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   6. CHECKOUT & PAYMENT PAGE
   ========================================================================== */

.meesho-checkout-header {
  background: var(--meesho-white);
  border-bottom: 1px solid var(--meesho-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meesho-checkout-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--meesho-text-subtle);
}

.meesho-checkout-step.active {
  color: var(--meesho-pink);
}

.meesho-checkout-layout {
  max-width: 1040px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

@media (max-width: 820px) {
  .meesho-checkout-layout {
    grid-template-columns: 1fr;
  }
}

.meesho-checkout-card {
  background: var(--meesho-white);
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.meesho-checkout-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--meesho-text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meesho-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .meesho-form-row {
    grid-template-columns: 1fr;
  }
}

.meesho-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meesho-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--meesho-text-muted);
}

.meesho-input {
  padding: 10px 14px;
  border: 1px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  font-size: 14px;
  outline: none;
  background: var(--meesho-white);
}

.meesho-input:focus {
  border-color: var(--meesho-pink);
  box-shadow: 0 0 0 1px var(--meesho-pink);
}

/* Payment Option Radio Cards */
.meesho-payment-option {
  border: 1.5px solid var(--meesho-border);
  border-radius: var(--meesho-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.meesho-payment-option:hover,
.meesho-payment-option.active {
  border-color: var(--meesho-pink);
  background: #fdf6fb;
}

.meesho-payment-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meesho-payment-option input[type="radio"] {
  accent-color: var(--meesho-pink);
}

.meesho-payment-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--meesho-text-dark);
}

.meesho-payment-desc {
  font-size: 12px;
  color: var(--meesho-text-subtle);
}

.meesho-payment-badge {
  background: var(--meesho-green-bg);
  color: var(--meesho-green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Order Summary Box */
.meesho-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--meesho-text-muted);
}

.meesho-summary-row.total {
  border-top: 1px dashed var(--meesho-border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--meesho-text-dark);
}

.btn-meesho-place-order {
  width: 100%;
  background: var(--meesho-pink);
  color: var(--meesho-white);
  border: none;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--meesho-radius-lg);
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.15s ease;
}

.btn-meesho-place-order:hover {
  background: var(--meesho-pink-hover);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.meesho-footer {
  background: var(--meesho-white);
  border-top: 1px solid var(--meesho-border);
  margin-top: 60px;
  padding: 40px 20px 20px;
}

.meesho-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
}

@media (max-width: 900px) {
  .meesho-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .meesho-footer-inner {
    grid-template-columns: 1fr;
  }
}

.meesho-footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--meesho-text-dark);
  margin-bottom: 14px;
}

.meesho-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meesho-footer-links a {
  font-size: 13px;
  color: var(--meesho-text-muted);
}

.meesho-footer-links a:hover {
  color: var(--meesho-pink);
}

.meesho-footer-bottom {
  max-width: 1320px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--meesho-border-light);
  font-size: 12px;
  color: var(--meesho-text-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MEESHO MOBILE APP TOPBAR (Matches Screenshot Header)
   ========================================================================== */
.meesho-mobile-topbar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f3;
  position: sticky;
  top: 0;
  z-index: 1010;
}

@media (max-width: 768px) {
  .meesho-mobile-topbar {
    display: flex;
  }
  .meesho-nav-top {
    display: none !important;
  }
  .meesho-categories-strip {
    display: none !important;
  }
  .meesho-ticker {
    display: none !important;
  }
  .meesho-page-header {
    display: none !important;
  }
  .meesho-breadcrumb {
    display: none !important;
  }
  .meesho-filter-sidebar {
    display: none !important;
  }
  .meesho-catalog-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .meesho-container {
    padding: 0 !important;
  }
  .meesho-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }
}

.meesho-mob-back-btn,
.meesho-mob-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #333333;
}

.meesho-mob-cart-btn {
  position: relative;
}

.meesho-mob-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--meesho-pink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.meesho-mob-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 6px;
  padding: 7px 10px;
  gap: 8px;
}

.meesho-mob-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  color: #333333;
  outline: none;
}

/* ==========================================================================
   TOP 3 ARCHED CATEGORIES (User's Screenshot)
   ========================================================================== */
.meesho-top-categories-section {
  background: #ffffff;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #f0f0f3;
}

.meesho-arched-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.meesho-arched-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.meesho-arched-cat-card:hover {
  transform: translateY(-2px);
}

.meesho-arch-frame {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  background: #dcf0fa;
  border-radius: 54px 54px 10px 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.meesho-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.meesho-arched-cat-card:hover .meesho-arch-frame img {
  transform: scale(1.05);
}

.meesho-arch-label {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #333333;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   QUICK FILTER & SORT BAR (User's Screenshot)
   ========================================================================== */
.meesho-quick-filter-strip {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #f0f0f3;
  border-bottom: 1px solid #f0f0f3;
  padding: 0;
}

.meesho-quick-filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  background: none;
  border: none;
  border-right: 1px solid #f0f0f3;
  font-size: 12.5px;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.meesho-quick-filter-btn:last-child {
  border-right: none;
}

.meesho-quick-filter-btn:hover,
.meesho-quick-filter-btn.active {
  background: #fbfbfb;
  color: var(--meesho-pink);
}

/* ==========================================================================
   CIRCULAR CATEGORY CHIPS (Responsive: Pills on Desktop, Circles on Mobile)
   ========================================================================== */
.meesho-circular-categories-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.meesho-circular-categories-row::-webkit-scrollbar {
  display: none;
}

.meesho-circle-item {
  display: flex;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.meesho-circle-icon-box {
  border-radius: 50%;
  border: 1px solid #e7e7ea;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.meesho-circle-icon-box.new-tag {
  background: linear-gradient(135deg, #fff0f7 0%, #ffe3f1 100%);
  border-color: #f7b5d9;
}

.meesho-circle-icon-box.top-rated {
  background: linear-gradient(135deg, #fbf7ff 0%, #f1e8ff 100%);
  border-color: #d8c2ff;
}

.meesho-circle-label {
  color: #333333;
  text-align: center;
  line-height: 1.2;
}

/* Desktop styles (min-width: 769px) */
@media (min-width: 769px) {
  .meesho-mobile-only {
    display: none !important;
  }

  .meesho-circular-categories-row {
    padding: 6px 0 16px 0;
    gap: 16px;
    background: transparent;
    border-bottom: 1px solid #ebebf0;
    margin-bottom: 16px;
  }

  .meesho-circle-item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 8px;
    background: #ffffff;
    border: 1.5px solid #e7e7ea;
    border-radius: 40px;
    min-width: unset;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
  }

  .meesho-circle-item:hover {
    border-color: var(--meesho-pink);
    background: #fdf2f8;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(159, 32, 137, 0.12);
  }

  .meesho-circle-item.active {
    border-color: var(--meesho-pink);
    background: #fdf2f8;
    box-shadow: 0 0 0 1px var(--meesho-pink), 0 3px 8px rgba(159, 32, 137, 0.15);
  }

  .meesho-circle-icon-box {
    width: 36px;
    height: 36px;
  }

  .meesho-circle-label {
    margin-top: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #333333;
  }

  .meesho-circle-item.active .meesho-circle-label {
    color: var(--meesho-pink);
    font-weight: 700;
  }

  .meesho-first-order-banner {
    margin: 0 0 20px 0;
    border-radius: 8px;
  }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
  .meesho-desktop-only {
    display: none !important;
  }

  .meesho-circular-categories-row {
    padding: 12px 14px 10px;
    background: #ffffff;
    gap: 16px;
    border-bottom: none;
    margin-bottom: 0;
  }

  .meesho-circle-item {
    flex-direction: column;
    align-items: center;
    min-width: 66px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.2s ease;
  }

  .meesho-circle-item:hover {
    transform: translateY(-2px);
  }

  .meesho-circle-icon-box {
    width: 56px;
    height: 56px;
  }

  .meesho-circle-item.active .meesho-circle-icon-box {
    box-shadow: 0 0 0 2.5px var(--meesho-pink);
  }

  .meesho-circle-label {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 500;
  }

  .meesho-circle-item.active .meesho-circle-label {
    color: var(--meesho-pink);
    font-weight: 700;
  }

  .meesho-first-order-banner {
    margin: 10px 14px 14px;
  }
}

/* ==========================================================================
   OFFER BANNER: GET 50% OFF ON YOUR FIRST ORDER (User's Screenshot)
   ========================================================================== */
.meesho-first-order-banner {
  background: linear-gradient(90deg, #ecf8f3 0%, #ffffff 60%, #ddf6ee 100%);
  border: 1.5px solid #038d63;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 14px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(3, 141, 99, 0.08);
}

.meesho-banner-text-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meesho-banner-upto {
  font-size: 11px;
  font-weight: 600;
  color: #038d63;
  line-height: 1;
}

.meesho-banner-discount-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.meesho-banner-discount-number {
  font-size: 24px;
  font-weight: 800;
  color: #038d63;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.meesho-banner-discount-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #085038;
}

.meesho-banner-gift-side {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.meesho-offer-ribbon {
  background: #fff4e0;
  color: #b35900;
  border: 1px dashed #f59e0b;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.meesho-gift-box-icon {
  width: 44px;
  height: 44px;
}

/* ==========================================================================
   PRODUCT CARD SPECIAL OFFER LINE & WISHLIST HEART (User's Screenshot)
   ========================================================================== */
.meesho-card-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 5;
  transition: all 0.2s ease;
}

.meesho-card-wishlist-btn:hover {
  transform: scale(1.12);
  color: #f43397;
}

.meesho-card-wishlist-btn.active {
  color: #f43397;
  fill: #f43397;
}

.meesho-card-ad-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 5;
}

.meesho-special-offer-line {
  font-size: 11.5px;
  font-weight: 600;
  color: #038d63;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   MEESHO MOBILE VIEW COMPREHENSIVE PERFECTION
   ========================================================================== */

/* 1. Mobile Bottom Navigation Bar */
.meesho-mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .meesho-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: #ffffff;
    border-top: 1px solid #ebebf0;
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }

  .meesho-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #666666;
    font-size: 10.5px;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
    height: 100%;
  }

  .meesho-bottom-nav-item.active {
    color: var(--meesho-pink);
    font-weight: 700;
  }

  /* Catalog Bottom Spacing for Bottom Bar */
  .main-catalog-content {
    padding-bottom: 60px;
  }

  /* Compact / hidden footer on mobile */
  .meesho-footer {
    display: block !important;
    padding: 32px 16px 90px !important;
    background: #ffffff !important;
    border-top: 1px solid #e7e7ea !important;
  }
  .meesho-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .meesho-footer-links a {
    display: inline-block !important;
    padding: 4px 0 !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    text-decoration: underline !important;
  }

  /* 2. Mobile PDP (Product Detail Page) */
  .main-pdp-content {
    padding-bottom: 70px;
  }

  .meesho-pdp-layout {
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    gap: 0 !important;
  }

  .meesho-pdp-gallery-wrap {
    flex-direction: column-reverse !important;
    gap: 0 !important;
    background: #ffffff;
  }

  .meesho-pdp-main-img-box {
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    aspect-ratio: 1 / 1.15 !important;
    background: #ffffff !important;
    position: relative !important;
  }

  .meesho-pdp-main-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .meesho-pdp-img-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 5;
  }

  .meesho-pdp-thumbnails {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .meesho-pdp-thumbnails::-webkit-scrollbar {
    display: none;
  }

  .meesho-pdp-thumb {
    width: 52px !important;
    height: 62px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  .meesho-pdp-info {
    background: #ffffff !important;
    padding: 14px 16px !important;
    margin-top: 8px !important;
  }

  .meesho-pdp-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  .meesho-pdp-pricing-card {
    padding: 0 !important;
    margin-top: 8px !important;
  }

  .meesho-pdp-price-large {
    font-size: 24px !important;
    font-weight: 800 !important;
  }

  /* Sticky Bottom Buy/Cart bar for Mobile PDP */
  .meesho-pdp-actions {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    padding: 10px 14px !important;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12) !important;
    z-index: 1000 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
    border-top: 1px solid #ebebf0 !important;
  }

  .btn-meesho-cart {
    flex: 1 !important;
    height: 46px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: 2px solid var(--meesho-pink) !important;
    color: var(--meesho-pink) !important;
    background: #ffffff !important;
  }

  .btn-meesho-buy {
    flex: 1 !important;
    height: 46px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: var(--meesho-pink) !important;
    color: #ffffff !important;
    border: none !important;
  }

  /* 3. Mobile Checkout & Payment */
  .main-checkout-content {
    padding-bottom: 74px;
  }

  .meesho-checkout-header {
    display: none !important;
  }

  .meesho-checkout-layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 12px 70px !important;
    margin: 0 !important;
    gap: 12px !important;
  }

  .meesho-checkout-card {
    padding: 14px 16px !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #ebebf0 !important;
  }

  .meesho-form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .btn-meesho-place-order {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    height: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    z-index: 1000 !important;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--meesho-pink) !important;
    color: #ffffff !important;
    border: none !important;
  }
}


