@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --ig-font: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ig-gradient-warm: linear-gradient(135deg, #f09433, #e6683c, #dc2743);
  --ig-gradient-soft: linear-gradient(135deg, rgba(240, 148, 51, 0.08), rgba(220, 39, 67, 0.08));
  --ig-blue: #0095f6;
  --ig-blue-hover: #1877f2;
  --ig-red: #ed4956;
  --ig-whatsapp: #25D366;
  --ig-whatsapp-dark: #1da851;
  --ig-bg: #fafafa;
  --ig-surface: #ffffff;
  --ig-border: #dbdbdb;
  --ig-border-subtle: #efefef;
  --ig-text: #262626;
  --ig-text-muted: #737373;
  --ig-text-light: #8e8e8e;
  --ig-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --ig-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
  --ig-radius: 16px;
  --ig-feed-width: 640px;
  --max-width: 1040px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--ig-font);
  background-color: var(--ig-bg);
  color: var(--ig-text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  padding-bottom: 70px; /* space for mobile bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: var(--ig-text);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 24px, var(--max-width));
  margin-inline: auto;
  max-width: 100%;
}

/* ============================================================
   TOP NAVBAR (Instagram Web / App Header)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ig-border-subtle);
  transition: box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ig-text);
  white-space: nowrap;
}

.brand-icon-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ig-gradient);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: storyGlow 4s ease infinite alternate;
}

.brand-icon-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-icon-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-badge {
  color: var(--ig-blue);
  display: inline-flex;
  font-size: 0.95rem;
  margin-right: 4px;
}

.nav-search {
  display: none;
  position: relative;
  width: 240px;
}

@media (min-width: 768px) {
  .nav-search {
    display: block;
  }
}

.nav-search input {
  width: 100%;
  height: 36px;
  background: #efefef;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 36px 0 12px;
  font-size: 0.88rem;
  color: var(--ig-text);
  outline: none;
  transition: all 0.2s;
}

.nav-search input:focus {
  background: #fff;
  border-color: var(--ig-border);
}

.nav-search .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ig-text-light);
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ig-text);
  transition: background 0.15s;
}

.nav-link-btn:hover {
  background: #f0f0f0;
}

.nav-link-btn.active {
  color: var(--ig-blue);
}

.ig-external-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--ig-gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ig-external-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
}

.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ig-border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-header .nav-link-btn {
    display: none !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .ig-external-pill span {
    display: none;
  }

  .ig-external-pill {
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
  }

  .cart-toggle-btn span:not(.cart-bubble) {
    display: none;
  }

  .cart-toggle-btn {
    padding: 7px 10px;
    gap: 4px;
  }

  .brand-logo {
    font-size: 1.05rem;
  }
}

@media (max-width: 440px) {
  .site-header .ig-external-pill {
    display: none !important;
  }

  .brand-logo span {
    font-size: 0.96rem;
  }

  .brand-icon-ring {
    width: 32px;
    height: 32px;
    padding: 2px;
  }
}

.cart-toggle-btn:hover {
  border-color: var(--ig-text);
  background: #fafafa;
}

.cart-bubble {
  background: var(--ig-red);
  color: #fff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================
   INSTAGRAM PROFILE HERO (Header section on Home)
   ============================================================ */
.ig-profile-hero {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--ig-border-subtle);
  background: #fff;
  margin-bottom: 16px;
}

.ig-profile-header {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 768px) {
  .ig-profile-header {
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding: 10px 20px;
  }
}

.profile-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: var(--ig-gradient);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease;
}

@media (min-width: 768px) {
  .profile-avatar-ring {
    width: 140px;
    height: 140px;
    padding: 4px;
  }
}

.profile-avatar-ring:hover {
  transform: scale(1.03);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background: #fafafa;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-top-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-username {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .profile-username {
    font-size: 1.6rem;
  }
}

.verified-badge-svg {
  width: 18px;
  height: 18px;
  color: var(--ig-blue);
  flex-shrink: 0;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.ig-btn-primary {
  background: var(--ig-blue);
  color: #fff;
}

.ig-btn-primary:hover {
  background: var(--ig-blue-hover);
}

.ig-btn-secondary {
  background: #efefef;
  color: var(--ig-text);
}

.ig-btn-secondary:hover {
  background: #dbdbdb;
}

.ig-btn-whatsapp {
  background: var(--ig-whatsapp);
  color: #fff;
}

.ig-btn-whatsapp:hover {
  background: var(--ig-whatsapp-dark);
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin: 6px 0;
  font-size: 0.92rem;
}

@media (max-width: 500px) {
  .profile-stats {
    gap: 14px;
    font-size: 0.85rem;
  }
}

.profile-stat-item b {
  font-weight: 800;
  color: var(--ig-text);
}

.profile-stat-item span {
  color: var(--ig-text-muted);
}

.profile-bio {
  font-size: 0.92rem;
  color: var(--ig-text);
  line-height: 1.5;
}

.profile-bio .bio-title {
  font-weight: 800;
  margin-bottom: 2px;
}

.profile-bio ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.profile-bio li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

/* ============================================================
   STORIES / HIGHLIGHTS ROW
   ============================================================ */
.highlights-section {
  padding: 14px 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--ig-border-subtle);
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.highlights-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.highlights-scroll::-webkit-scrollbar {
  display: none;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.highlight-item:hover {
  transform: translateY(-2px);
}

.highlight-item:active {
  transform: scale(0.95);
}

.highlight-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ig-border);
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.2s;
}

.highlight-item.active .highlight-ring,
.highlight-item:hover .highlight-ring {
  background: var(--ig-gradient);
}

.highlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fafafa;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.highlight-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ig-text);
  max-width: 74px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-item.active .highlight-title {
  font-weight: 900;
  color: var(--ig-text);
}

/* ============================================================
   FEED TABS (View Switcher: Grid vs Feed)
   ============================================================ */
.view-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  border-top: 1px solid var(--ig-border-subtle);
  border-bottom: 1px solid var(--ig-border-subtle);
  background: #fff;
  margin-bottom: 20px;
}

.view-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--ig-text-muted);
  border-top: 2px solid transparent;
  margin-top: -1px;
  transition: all 0.2s;
}

.view-tab:hover {
  color: var(--ig-text);
}

.view-tab.active {
  color: var(--ig-text);
  border-top-color: var(--ig-text);
}

.view-tab svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   FEED POST LAYOUT (Instagram Feed Mode)
   ============================================================ */
.ig-feed-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.ig-post-card {
  width: min(100%, var(--ig-feed-width));
  background: #fff;
  border: 1px solid var(--ig-border);
  border-radius: var(--ig-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 640px) {
  .ig-post-card {
    border-radius: 0;
    border-inline: none;
  }
}

/* Post Header */
.post-header {
  height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ig-gradient);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.post-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #fff;
  overflow: hidden;
  background: #fafafa;
}

.post-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.post-author-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ig-text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-location {
  font-size: 0.75rem;
  color: var(--ig-text-muted);
}

.post-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-code-badge {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.78rem;
  direction: ltr;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #f0f0f0;
  color: #333;
}

.post-menu-btn {
  color: var(--ig-text-muted);
  padding: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.post-menu-btn:hover {
  background: #f4f4f4;
  color: var(--ig-text);
}

/* Post Media (Image) — EXACT INSTAGRAM RATIO: 1 / 1 SQUARE */
.post-media-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
  user-select: none;
}

.post-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ig-post-card:hover .post-media-img {
  transform: scale(1.02);
}

/* Double-tap floating heart animation */
.heart-burst-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 10;
}

.heart-burst {
  width: 90px;
  height: 90px;
  color: #fff;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transform: scale(0);
}

.heart-burst.animate {
  animation: heartPopAnim 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPopAnim {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-15deg);
  }
  30% {
    opacity: 1;
    transform: scale(1.25) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.4) translateY(-30px);
  }
}

.post-tag-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(23, 16, 27, 0.8);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Post Action Icons Bar */
.post-actions-bar {
  padding: 10px 14px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.post-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ig-text);
  padding: 4px;
  border-radius: 50%;
  transition: transform 0.15s ease, color 0.15s ease;
}

.post-action-btn:hover {
  transform: scale(1.15);
}

.post-action-btn:active {
  transform: scale(0.9);
}

.post-action-btn.liked {
  color: var(--ig-red);
  animation: likeBounce 0.4s ease;
}

@keyframes likeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.post-action-btn.saved {
  color: var(--ig-text);
}

.post-action-btn svg {
  width: 26px;
  height: 26px;
}

/* Post Details & Caption */
.post-details {
  padding: 0 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-likes-count {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ig-text);
}

.post-caption {
  font-size: 0.92rem;
  color: var(--ig-text);
  line-height: 1.5;
}

.post-caption .caption-author {
  font-weight: 800;
  margin-left: 6px;
}

.post-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

.post-chip {
  background: #f2f2f2;
  color: #555;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.post-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--ig-border-subtle);
}

.post-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ig-text);
}

.post-availability {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-availability::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.post-cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.post-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.post-buy-btn.primary {
  background: var(--ig-text);
  color: #fff;
}

.post-buy-btn.primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.post-buy-btn.whatsapp {
  background: var(--ig-whatsapp);
  color: #fff;
}

.post-buy-btn.whatsapp:hover {
  background: var(--ig-whatsapp-dark);
  transform: translateY(-1px);
}

.post-time {
  font-size: 0.72rem;
  color: var(--ig-text-light);
  letter-spacing: 0.02em;
}

/* ============================================================
   GRID VIEW (Instagram Profile Grid: 3 columns, 1:1 square)
   ============================================================ */
.ig-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .ig-grid-container {
    gap: 16px;
  }
}

.grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .grid-item {
    border-radius: 12px;
  }
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 12px;
  text-align: center;
}

.grid-item:hover .grid-overlay {
  opacity: 1;
}

.grid-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 0.95rem;
}

.grid-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.grid-price-tag {
  font-size: 1rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   PRODUCT DETAIL PAGE (Instagram Post Detailed View)
   ============================================================ */
.product-detail-layout {
  background: #fff;
  border: 1px solid var(--ig-border);
  border-radius: var(--ig-radius);
  overflow: hidden;
  box-shadow: var(--ig-shadow);
  display: grid;
  grid-template-columns: 1fr;
  margin: 20px 0 40px;
}

@media (min-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
  }
}

.detail-gallery-box {
  background: #fafafa;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ig-border-subtle);
}

.detail-main-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eee;
  overflow: hidden;
  position: relative;
}

.detail-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.detail-thumbs-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.detail-thumb-btn {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: #bbb;
}

.detail-thumb-btn.active {
  border-color: #0095f6;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.35);
  transform: scale(1.04);
}

.detail-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ig-border-subtle);
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.detail-main-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ig-text);
}

.detail-color-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ig-text-muted);
}

.color-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-radio-label {
  position: relative;
}

.color-radio-label input {
  position: absolute;
  opacity: 0;
}

.color-radio-pill {
  display: block;
  padding: 6px 14px;
  border: 1.5px solid var(--ig-border);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.color-radio-label input:checked + .color-radio-pill {
  border-color: var(--ig-text);
  background: var(--ig-text);
  color: #fff;
}

.delivery-info-card {
  background: var(--ig-gradient-soft);
  border: 1px solid rgba(220, 39, 67, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.delivery-info-card strong {
  color: #c92a42;
}

.detail-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

@media (min-width: 500px) {
  .detail-action-buttons {
    flex-direction: row;
  }
}

.detail-add-btn {
  flex: 1.5;
  height: 48px;
  background: var(--ig-text);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.detail-add-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.detail-wa-btn {
  flex: 1.2;
  height: 48px;
  background: var(--ig-whatsapp);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.detail-wa-btn:hover {
  background: var(--ig-whatsapp-dark);
  transform: translateY(-1px);
}

/* ============================================================
   SHOP FILTERS BAR
   ============================================================ */
.shop-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--ig-border);
  border-radius: var(--ig-radius);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.search-field-input {
  display: flex;
  align-items: center;
  background: #efefef;
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  flex: 1;
  min-width: 180px;
}

.search-field-input input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.88rem;
  color: var(--ig-text);
}

.filter-selects {
  display: flex;
  gap: 8px;
}

.filter-selects select {
  height: 40px;
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
}

/* ============================================================
   CART DRAWER (Slide-over Instagram Style)
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 420px);
  background: #fff;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drawer-header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ig-border-subtle);
}

.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-close-btn {
  font-size: 1.5rem;
  color: var(--ig-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cart-close-btn:hover {
  background: #efefef;
  color: var(--ig-text);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--ig-border-subtle);
  border-radius: 12px;
  background: #fff;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
}

.cart-item-details h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--ig-text-muted);
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 4px;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--ig-border);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.cart-remove-btn {
  color: var(--ig-red);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--ig-border-subtle);
  background: #fafafa;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-order-btn {
  width: 100%;
  height: 48px;
  background: var(--ig-whatsapp);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.cart-order-btn:hover {
  background: var(--ig-whatsapp-dark);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ig-text-muted);
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION (Instagram Mobile Experience)
   ============================================================ */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--ig-border-subtle);
  z-index: 70;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ig-text);
  width: 25%;
  height: 100%;
  transition: transform 0.15s;
}

.mobile-nav-item:active {
  transform: scale(0.9);
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-item.active {
  color: var(--ig-text);
}

.mobile-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--ig-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
}

/* ============================================================
   STORY MODAL (Interactive Story Viewer for Delivery & Info)
   ============================================================ */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}

.story-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.story-modal-card {
  width: min(100%, 400px);
  height: min(92vh, 640px);
  background: var(--ig-gradient);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: storyPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes storyPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.story-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  margin: 12px 14px 8px;
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: #fff;
  width: 100%;
  animation: storyFill 6s linear;
}

.story-header {
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

.story-close-btn {
  font-size: 1.8rem;
  color: #fff;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.story-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.15);
}

.story-body h2 {
  font-size: 1.6rem;
  font-weight: 900;
}

.story-body p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.story-box-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

/* ============================================================
   TOAST NOTIFICATION (Instagram Dark Pill)
   ============================================================ */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(23, 16, 27, 0.94);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .toast-msg {
    bottom: 30px;
  }
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--ig-border-subtle);
  padding: 30px 0 20px;
  margin-top: 40px;
  text-align: center;
  color: var(--ig-text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
}

/* ============================================================
   KEYFRAMES & ANIMATIONS
   ============================================================ */
@keyframes storyGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(30deg); }
}

@keyframes popIn {
  0% { transform: scale(0); }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ============================================================
   INSTAGRAM IMAGE CAROUSEL (SWIPE & FLIP)
   ============================================================ */
.ig-carousel-container {
  direction: ltr;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.ig-carousel-container:active {
  cursor: grabbing;
}

.ig-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.ig-carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.ig-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-image-link { display: block; width: 100%; height: 100%; }
.ig-carousel-slide video { width: 100%; height: 100%; object-fit: contain; background: #111; }
.ig-carousel-container.showing-video .carousel-dots-row { bottom: 56px; }
.ig-carousel-container.showing-video .carousel-nav-btn { top: 42%; }
.post-video-error { position: absolute; inset: 25% 12px auto; padding: 12px; border-radius: 10px; background: #fff; color: #333; text-align: center; direction: rtl; pointer-events: none; }
.post-video-error[hidden] { display: none; }
.video-thumb-icon { display: grid; place-items: center; width: 100%; height: 100%; background: #18181b; color: #fff; font-size: 22px; }

.carousel-counter-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 8;
  direction: ltr;
  letter-spacing: 0.05em;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ig-text);
  z-index: 10;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.ig-carousel-container:hover .carousel-nav-btn {
  opacity: 1;
}

@media (max-width: 768px) {
  .carousel-nav-btn {
    opacity: 0.85;
    width: 30px;
    height: 30px;
  }
}

.carousel-nav-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-nav-btn.prev {
  right: 12px;
}

.carousel-nav-btn.next {
  left: 12px;
}

.carousel-nav-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-dots-row {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 8;
}

.carousel-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.carousel-dot.is-video::after { display: none; }
.carousel-dot:focus-visible, .ig-carousel-container:focus-visible { outline: 2px solid #0095f6; outline-offset: -2px; }

.carousel-dot.active {
  color: #5bc0ff;
}
.carousel-dot.active::after { background: #0095f6; transform: scale(1.4); }

/* ============================================================
   COLOR SELECTION & SWATCHES
   ============================================================ */
.color-selector-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--ig-border-subtle);
  margin-top: 6px;
}

.color-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ig-text-muted);
}

.color-selector-header b {
  color: var(--ig-text);
  font-weight: 800;
}

.color-swatches-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d1d5db;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  padding: 0;
}

.color-swatch-btn:hover {
  transform: scale(1.15);
}

.color-swatch-btn.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0095f6;
  transform: scale(1.12);
}

.color-swatch-check {
  display: none;
  width: 14px;
  height: 14px;
  stroke: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.color-swatch-btn.active .color-swatch-check {
  display: block;
}

.color-swatch-btn.is-light .color-swatch-check {
  stroke: #18181b;
  filter: none;
}

.color-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ig-border);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.color-pill-tag:hover {
  border-color: var(--ig-text);
}

.color-pill-tag.active {
  background: var(--ig-text);
  color: #fff;
  border-color: var(--ig-text);
}

.color-dot-inline {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   ADDRESS MODAL / BUBBLE (فقاعة إدخال العنوان وتأكيد الطلب)
   ============================================================ */
.address-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 160;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 14px;
}

.address-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.address-modal-card {
  width: min(100%, 460px);
  max-height: min(92vh, 760px);
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  color: var(--ig-text);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: addressPopIn 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes addressPopIn {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.address-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ig-border-subtle);
  background: #ffffff;
}

.address-modal-title-box h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ig-text);
  margin-bottom: 2px;
}

.address-modal-title-box p {
  font-size: 0.8rem;
  color: var(--ig-text-muted);
}

.address-modal-close {
  font-size: 1.5rem;
  color: var(--ig-text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.address-modal-close:hover {
  background: #efefef;
  color: var(--ig-text);
}

.address-modal-body {
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

.address-order-summary {
  background: #fafafa;
  border: 1px solid var(--ig-border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-product-row img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--ig-border);
}

.summary-product-info h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ig-text);
}

.summary-meta {
  font-size: 0.78rem;
  color: var(--ig-text-muted);
}

.summary-calc-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px dashed var(--ig-border);
  font-size: 0.84rem;
}

.summary-calc-box .calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ig-text-muted);
}

.summary-calc-box .calc-row b {
  color: var(--ig-text);
  font-weight: 700;
}

.summary-calc-box .calc-row.total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ig-text);
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--ig-border);
}

.summary-calc-box .calc-row.total b {
  font-size: 1.05rem;
  color: #18181b;
  font-weight: 900;
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ig-text);
}

.address-form input,
.address-form select,
.address-form textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--ig-border);
  background: #ffffff;
  font-size: 0.88rem;
  color: var(--ig-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.address-form input:focus,
.address-form select:focus,
.address-form textarea:focus {
  border-color: var(--ig-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.15);
}

.address-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 440px) {
  .address-form-row {
    grid-template-columns: 1fr;
  }
}

.address-badge-note {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #1b7340;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.address-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--ig-whatsapp);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  margin-top: 4px;
}

.address-submit-btn:hover {
  background: var(--ig-whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* First-visit installation and notification card */
.store-setup-banner {
  position: fixed;
  inset-inline: 14px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  justify-content: center;
  pointer-events: none;
  animation: storeSetupAppear .25s ease-out;
}
.store-setup-card {
  width: min(100%, 460px);
  max-height: min(70svh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--ig-text);
  border: 1px solid rgba(225, 48, 108, .22);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
  pointer-events: auto;
}
.store-setup-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pwa-banner-icon-ring {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  padding: 2px;
  background: var(--ig-gradient);
  flex-shrink: 0;
  overflow: hidden;
}
.pwa-banner-icon-ring img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.store-setup-heading h4 { font-size: .96rem; font-weight: 850; margin: 0 0 4px; }
.store-setup-heading p { font-size: .8rem; color: var(--ig-text-muted); line-height: 1.5; margin: 0; }
.store-setup-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.store-setup-actions button {
  min-height: 46px;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.4;
  transition: background .15s;
}
.store-setup-install { background: #fff3f7; color: #9e2858; border: 1px solid #f1c3d6; }
.store-setup-notifications { background: linear-gradient(135deg, #c12b61, #a42e71); color: #fff; }
.store-setup-actions button:disabled { background: #f1f2f3; color: #65656b; border: 1px solid #e4e4e7; cursor: default; }
.store-setup-actions button:focus-visible, .store-setup-later:focus-visible, .store-setup-entry:focus-visible {
  outline: 3px solid #c12b61;
  outline-offset: 3px;
}
.store-setup-status { font-size: .75rem; color: #62626c; line-height: 1.55; margin: 10px 0 6px; }
.store-setup-later { display: block; margin: 0 auto; min-height: 38px; padding: 6px 20px; color: #62626c; font-size: .8rem; background: transparent; }
.store-install-guide { margin: 10px 0; padding: 12px; border: 1px solid #e8e0e4; border-radius: 12px; background: #faf7f9; font-size: .78rem; line-height: 1.6; }
.store-install-guide[hidden] { display: none; }
.store-install-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.store-install-guide-heading button { width: 34px; height: 34px; color: #62626c; font-size: 1.3rem; }
.store-install-guide p { margin: 6px 0 0; }
.store-setup-entry { display: block; margin: 10px 18px; min-height: 40px; background: transparent; color: #9e2858; font-size: .8rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .store-setup-banner { bottom: 24px; inset-inline: 24px; justify-content: flex-start; } }
@media (max-width: 340px) { .store-setup-card { padding: 12px; } .store-setup-actions button { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { .store-setup-banner { animation: none; } }
@keyframes storeSetupAppear { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Home Search Bar */
.home-search-bar-wrap {
  margin: 10px auto 14px;
  width: min(100%, var(--ig-feed-width));
}

.home-search-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.home-search-card:focus-within {
  background: #fff;
  border-color: var(--ig-primary);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.12);
}

.home-search-icon {
  color: #71717a;
  flex-shrink: 0;
}

.home-search-card input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ig-text);
  outline: none;
}

#home-search-clear {
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
}

/* Cart Bump Animation */
.cart-bump {
  animation: cartBumpAnim 0.3s ease-in-out;
}

@keyframes cartBumpAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ============================================================
   Push Notifications & Notification Center Styles
   ============================================================ */

/* Header Bell Button */
.notif-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ig-text);
  background: transparent;
  transition: all 0.2s ease;
}

.notif-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e1306c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(225, 48, 108, 0.4);
}

.notif-badge-mobile {
  position: absolute;
  top: 6px;
  right: 14px;
  background: #e1306c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Notification Center Modal */
.notif-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}

.notif-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.notif-modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-modal-overlay.open .notif-modal-card {
  transform: scale(1);
}

.notif-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ig-border-subtle);
  background: #ffffff;
}

.notif-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #52525b;
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.notif-sub-status-box {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.05), rgba(240, 148, 51, 0.05));
  border-bottom: 1px solid rgba(225, 48, 108, 0.12);
  padding: 12px 20px;
}

.notif-toggle-action-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 20px;
  background: linear-gradient(135deg, #e1306c, #c13584);
  color: #fff;
  transition: all 0.2s ease;
}

.notif-toggle-action-btn.active {
  background: #e4e4e7;
  color: #52525b;
}

.notif-feed-list {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-feed-card {
  background: #fafafa;
  border: 1px solid var(--ig-border-subtle);
  border-radius: 16px;
  padding: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.notif-feed-card:hover {
  background: #f4f4f5;
}

.notif-card-badge-icon {
  font-size: 1.4rem;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.notif-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ig-text);
  margin: 0;
}

.notif-card-time {
  font-size: 0.72rem;
  color: var(--ig-text-light);
}

.notif-card-body {
  font-size: 0.84rem;
  color: var(--ig-text-muted);
  line-height: 1.45;
  margin: 6px 0 8px 0;
}

.notif-card-img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.notif-card-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #e1306c;
  text-decoration: underline;
}

.notif-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ig-text-muted);
}

.notif-empty-state h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ig-text);
  margin: 8px 0 4px 0;
}

.notif-empty-state p {
  font-size: 0.82rem;
}

