.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFF, var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(138, 21, 81, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: rgba(138, 21, 81, 0.05);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), #e6c300);
  color: var(--color-dark-bg);
  box-shadow: var(--shadow-gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

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

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  color: var(--color-dark-bg);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 15px;
  color: #71696d;
  max-width: 480px;
  margin: 12px auto 0 auto;
  line-height: 1.6;
  font-weight: 500;
}

.section-header p::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-gold);
  margin: 14px auto 0 auto;
  border-radius: 2px;
}

.promo-banner {
  background: linear-gradient(90deg, var(--color-dark-bg), var(--color-primary), var(--color-secondary));
  color: var(--color-gold);
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.promo-banner span {
  color: var(--color-white);
}

.brand-intro-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, #5a0e35 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  border-radius: 28px;
  padding: 56px 48px;
  margin-top: 40px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

.brand-intro-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.brand-showcase-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(138, 21, 81, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

.brand-showcase-card {
  position: relative;
  z-index: 3;
  width: 270px;
  height: 340px;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float-banner 6s ease-in-out infinite;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.brand-showcase-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    transparent 30%,
    rgba(212, 175, 55, 0.75) 45%,
    #fff8dc 50%,
    rgba(212, 175, 55, 0.75) 55%,
    transparent 70%,
    transparent 100%
  );
  animation: spin-beam 4s linear infinite;
  z-index: -1;
}

.brand-showcase-inner {
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 70%,
    rgba(212, 175, 55, 0.08) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.brand-showcase-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s ease;
}

.brand-showcase-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.brand-showcase-card:hover .brand-showcase-img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .brand-intro-banner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 32px;
    text-align: center;
  }
  .brand-intro-content {
    text-align: center;
    margin: 0 auto;
  }
  .brand-intro-showcase {
    order: -1;
  }
  .brand-showcase-card {
    width: 230px;
    height: 300px;
  }
}

.brand-intro-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(138, 21, 81, 0.25) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-intro-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  text-align: right;
}

.brand-intro-badge {
  background-color: rgba(212, 175, 55, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.brand-intro-banner h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.3;
  background: linear-gradient(135deg, #FFFFFF, var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-intro-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15.5px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.categories-sec {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

/* ─── Modern Category Cards ─── */
.cat-card {
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid #f0eef2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

/* Top accent gradient bar */
.cat-card-accent {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 18px 18px 0 0;
  transition: height 0.3s ease;
}

.cat-accent-gold   { background: linear-gradient(90deg, #D4AF37, #F5D76E, #D4AF37); }
.cat-accent-rose   { background: linear-gradient(90deg, #8A1551, #C2185B, #8A1551); }
.cat-accent-teal   { background: linear-gradient(90deg, #0D9488, #2DD4BF, #0D9488); }
.cat-accent-violet { background: linear-gradient(90deg, #7C3AED, #A78BFA, #7C3AED); }

.cat-card:hover .cat-card-accent {
  height: 6px;
}

/* Card body */
.cat-card-body {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Top row: icon + tag */
.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

/* Icon wrapper */
.cat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-icon-wrap svg {
  width: 26px;
  height: 26px;
  transition: transform 0.4s ease;
}

.cat-icon-gold   { background: #FEF9E7; color: #D4AF37; }
.cat-icon-rose   { background: #FDF2F8; color: #8A1551; }
.cat-icon-teal   { background: #ECFDF5; color: #0D9488; }
.cat-icon-violet { background: #F3F0FF; color: #7C3AED; }

.cat-card:hover .cat-icon-gold   { background: linear-gradient(135deg, #D4AF37, #F5D76E); color: #fff; box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25); }
.cat-card:hover .cat-icon-rose   { background: linear-gradient(135deg, #8A1551, #E91E63); color: #fff; box-shadow: 0 8px 20px rgba(138, 21, 81, 0.25); }
.cat-card:hover .cat-icon-teal   { background: linear-gradient(135deg, #0D9488, #2DD4BF); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25); }
.cat-card:hover .cat-icon-violet { background: linear-gradient(135deg, #7C3AED, #A78BFA); color: #fff; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25); }

.cat-card:hover .cat-icon-wrap svg {
  transform: scale(1.1) rotate(-6deg);
}

/* Tag pill */
.cat-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.cat-tag-gold   { background: #FEF9E7; color: #B8860B; }
.cat-tag-rose   { background: #FDF2F8; color: #8A1551; }
.cat-tag-teal   { background: #ECFDF5; color: #0D7361; }
.cat-tag-violet { background: #F3F0FF; color: #6D28D9; }

/* Title */
.cat-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--color-dark-bg);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* Description */
.cat-card p {
  font-size: 13.5px;
  color: #888;
  line-height: 1.65;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Footer row */
.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f4f2f5;
}

.cat-explore {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  transition: color 0.3s ease;
}

.cat-card:hover .cat-explore {
  color: var(--color-dark-bg);
}

/* Arrow circle button */
.cat-arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-arrow-circle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.cat-arrow-gold   { background: #FEF9E7; color: #D4AF37; }
.cat-arrow-rose   { background: #FDF2F8; color: #8A1551; }
.cat-arrow-teal   { background: #ECFDF5; color: #0D9488; }
.cat-arrow-violet { background: #F3F0FF; color: #7C3AED; }

.cat-card:hover .cat-arrow-gold   { background: #D4AF37; color: #fff; box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
.cat-card:hover .cat-arrow-rose   { background: #8A1551; color: #fff; box-shadow: 0 4px 12px rgba(138, 21, 81, 0.3); }
.cat-card:hover .cat-arrow-teal   { background: #0D9488; color: #fff; box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3); }
.cat-card:hover .cat-arrow-violet { background: #7C3AED; color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }

.cat-card:hover .cat-arrow-circle svg {
  transform: translateX(-3px);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .categories-sec {
    padding: 48px 0;
  }
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cat-card:hover {
    transform: translateY(-4px);
  }
  .cat-card-body {
    padding: 16px 14px 14px;
  }
  .cat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .cat-icon-wrap svg {
    width: 20px;
    height: 20px;
  }
  .cat-card h3 {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .categories-grid {
    gap: 8px;
  }
}

/* ─── Global Logo Styling ─── */
.brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .brand-logo-img {
  transform: scale(1.05);
}

/* Light Backgrounds (Navbar & Popup): Transform gold to deep brand burgundy (#8A1551) */
.navbar .logo .brand-logo-img,
.popup-logo .brand-logo-img {
  max-height: 52px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(83%) saturate(3500%) hue-rotate(316deg) brightness(80%) contrast(90%) drop-shadow(0 2px 6px rgba(138, 21, 81, 0.15));
}

.popup-logo .brand-logo-img {
  max-height: 50px;
  display: block;
  margin: 0 auto;
}

/* Dark Backgrounds (Footer): Keep gorgeous gold/yellow logo */
.footer .logo .brand-logo-img {
  max-height: 64px;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.25));
}

/* ─── Category Image Card ─── */
.cat-card-img {
  position: relative;
  overflow: hidden !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  border-radius: 20px !important;
  box-shadow: 0 4px 18px rgba(138, 21, 81, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(138, 21, 81, 0.11) !important;
  border-color: rgba(138, 21, 81, 0.22) !important;
  background: #ffffff !important;
}

.cat-card-img .cat-card-accent {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 4px !important;
  z-index: 5 !important;
  pointer-events: none !important;
  border-radius: 20px 20px 0 0 !important;
}

.cat-img-wrap {
  width: 100%;
  height: 165px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0 !important;
}

.cat-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.cat-card-img:hover .cat-cover-img {
  transform: scale(1.06);
}

.cat-name-label {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-bg);
  margin: 14px 12px 10px;
  transition: color 0.3s ease;
}

.cat-card-img:hover .cat-name-label {
  color: var(--color-primary);
}

.cat-arrow-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.35s ease;
}

.cat-explore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 16px 4px;
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.7;
  transition: all 0.35s ease;
  letter-spacing: 0.3px;
}

.cat-explore-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.cat-card-img:hover .cat-explore-btn {
  opacity: 1;
  color: var(--color-primary);
}

.cat-card-img:hover .cat-explore-btn svg {
  transform: translateX(-4px);
}

@media (max-width: 576px) {
  .cat-card-img {
    padding-bottom: 12px;
    border-radius: 16px;
    border: 1px solid rgba(138, 21, 81, 0.09);
    box-shadow: 0 3px 14px rgba(138, 21, 81, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .cat-img-wrap {
    height: 125px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 15px 15px 0 0;
  }

  .cat-name-label {
    font-size: 13.5px;
    font-weight: 700;
    margin: 10px 8px 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cat-explore-btn {
    font-size: 11px;
    margin: 0 8px 4px;
    padding: 4px 0;
    margin-top: auto;
  }

  .cat-explore-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 360px) {
  .cat-img-wrap {
    height: 105px;
  }

  .cat-name-label {
    font-size: 12px;
    margin: 8px 6px 4px;
  }

  .cat-explore-btn {
    font-size: 10px;
    gap: 4px;
  }
}

/* ─── Offers Loading Placeholder ─── */
.offer-loading-slide {
  background: linear-gradient(135deg, #1c0e15 0%, #2b1520 50%, #1c0e15 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  animation: loading-fade-in 0.6s ease forwards;
}

@keyframes loading-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.offer-loading-logo {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.35));
  animation: logo-gentle-float 4s ease-in-out infinite;
}

.offer-loading-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.offer-loading-dots {
  display: flex;
  gap: 8px;
}

.offer-loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.3;
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.offer-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.offer-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40%           { opacity: 1;   transform: scale(1.3); }
}
