/* GLOBAL */
body {
  font-family: "Nunito Sans", sans-serif;
  background-color: #faf8f3;
  color: #222;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* IMPROVED DARK MODE */
body.dark-mode {
  background: #1e1f22;
  color: #e5e5e5;
}

/* Loader */
/* ============================
      ALBANY PARK LOADER
============================= */
#apLoader {
  position: fixed;
  inset: 0;
  background: #faf8f3; /* soft cream */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.dark-mode #apLoader {
  background: #1e1f22;
}

/* Loader Circle */
.ap-loader-circle {
  width: 48px;
  height: 48px;
  border: 4px solid #e0d7cc; /* warm beige border */
  border-top-color: #7a5f4a; /* deep brown accent */
  border-radius: 50%;
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

/* Hide loader smoothly */
#apLoader.hide {
  opacity: 0;
  visibility: hidden;
}
/* End Loader */

/* NAVBAR */
.navbar {
  background: #ffffff;
  height: 80px;
  padding: 0 20px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.dark-mode {
  background: #2d2f34;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* LOGO FIX — LEFT ON MOBILE, CENTER ON DESKTOP */
.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 55px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

/* Button Group */
.nav-btns {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

/* CIRCULAR BUTTONS IMPROVED */
.btn-round {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.btn-round:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

body.dark-mode .btn-round {
  background: #3a3c42;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

body.dark-mode .btn-round:hover {
  background: #46484f;
}

/* ============================================================
     PREMIUM SEARCH MODAL — Albany Park 2026 UI
============================================================= */

.ap-search-modal .modal-dialog {
  max-width: 600px;
  width: 100%;
}

.ap-search-content {
  position: relative;
  padding: 40px 32px 36px;
  border-radius: 22px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  animation: searchPop 0.35s ease;
}

body.dark-mode .ap-search-content {
  background: rgba(42, 44, 48, 0.65);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.7);
}

@keyframes searchPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* CLOSE BUTTON */
.ap-search-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 30px;
  color: #333;
  cursor: pointer;
  transition: 0.2s ease;
}

.ap-search-close:hover {
  transform: scale(1.13);
}

body.dark-mode .ap-search-close {
  color: #fff;
}

/* TITLE */
.ap-search-title {
  text-align: center;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 24px;
  color: #3d3d3d;
}

body.dark-mode .ap-search-title {
  color: #f7f4ee;
}

/* SEARCH BAR */
.ap-search-bar {
  position: relative;
  width: 100%;
}

.ap-search-input {
  width: 100%;
  padding: 16px 20px 16px 54px;
  border-radius: 18px;
  border: none;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-size: 16px;
  color: #333;
  outline: none;
  transition: 0.25s ease;
}

.ap-search-input:focus {
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

body.dark-mode .ap-search-input {
  background: #2a2c30;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* SEARCH ICON */
.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  font-size: 18px;
  color: #777;
  transform: translateY(-50%);
}

body.dark-mode .search-icon {
  color: #ccc;
}

/* TAGS / SHORTCUT CHIPS */
.ap-search-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  padding: 8px 16px;
  background: #ede7dd;
  color: #3d3d3d;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s ease;
  font-weight: 600;
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

body.dark-mode .tag {
  background: #3a3c40;
  color: #fff;
}

/* MOBILE */
@media (max-width: 576px) {
  .ap-search-content {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .ap-search-title {
    font-size: 20px;
  }

  .ap-search-input {
    font-size: 15px;
    padding: 14px 16px 14px 48px;
  }
}

/* Fix search modal overflow on small screens */
@media (max-width: 480px) {
  .ap-search-dialog {
    margin: 0 10px !important; /* prevent modal touching edges */
    width: calc(100% - 20px) !important;
  }

  .ap-search-content {
    padding: 26px 18px 28px !important;
    border-radius: 16px !important;
    width: 100% !important;
  }

  .ap-search-input {
    padding: 14px 16px 14px 48px !important;
    font-size: 15px !important;
  }

  .ap-search-title {
    font-size: 20px !important;
  }

  .ap-search-tags {
    gap: 8px !important;
  }

  .tag {
    font-size: 13px !important;
    padding: 6px 14px !important;
  }
}

/* End Search Modal */

/* BACK TO TOP BUTTON */
/* BACK TO TOP BUTTON — Albany Park Consistent */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #7a5f4a; /* Deep Brown */
  color: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#backToTop.show {
  display: flex;
}

#backToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  background: #694f3b; /* Hover shade */
}

/* DARK MODE */
body.dark-mode #backToTop {
  background: #ede7dd;  /* Warm Beige */
  color: #1f1f1f;
  box-shadow: 0 6px 24px rgba(0,0,0,0.7);
}

body.dark-mode #backToTop:hover {
  background: #f7f4ee;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
  .navbar {
    height: 65px;
  }

  .navbar-brand img {
    height: 40px;
  }

  /* Logo left, icons right — CLEAN layout */
  .navbar-brand {
    margin-right: auto !important;
  }
}

/* Desktop: center logo */
@media (min-width: 992px) {
  .navbar .container-fluid {
    justify-content: center !important;
    position: relative;
  }

  /* Center logo */
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
  }

  /* Buttons stay on the right */
  .nav-btns {
    position: absolute;
    right: 20px;
  }
}

/* Mobile: logo left */
@media (max-width: 991px) {
  .navbar .container-fluid {
    justify-content: space-between !important;
  }

  .navbar-brand {
    position: relative;
    left: auto;
    transform: none;
  }

  .nav-btns {
    position: relative;
    right: 0;
  }
}

/* First Section */

/* ------------------------------
   COUPON SECTION
-------------------------------*/
.ap-section {
  background: #faf8f3; /* Soft cream */
  transition: background 0.3s ease;
}

body.dark-mode .ap-section {
  background: #1e1f22;
}

/* Section Title */
.section-title {
  font-weight: 800;
  color: #3d3d3d;
  text-align: center;
}

body.dark-mode .section-title {
  color: #f7f4ee;
}

/* Coupon List Wrapper */
.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Coupon Cards */
.coupon-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

body.dark-mode .coupon-card {
  background: #2a2c30; /* deep charcoal */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* Left Side */
.coupon-left {
  width: 110px; /* fixed width */
  min-width: 110px; /* never shrink */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center text */
  align-items: flex-start; /* align left */
}

.discount-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  word-break: break-word;
  text-transform: uppercase;
}

body.dark-mode .discount-value {
  color: #f7f4ee;
}

/* Center Info Section */
.coupon-center {
  flex: 1;
  padding: 0 15px;
}

.coupon-title {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 0;
  color: #222;
}

body.dark-mode .coupon-title {
  color: #ffffff;
}

.subtext {
  font-size: 13px;
  color: #666;
}

body.dark-mode .subtext {
  color: #cfcfcf;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}

.type-code {
  background: #ede7dd;
  color: #444;
}

.type-sale {
  background: #dde7d9;
  color: #3c7042;
}

body.dark-mode .type-code {
  background: #494a4d;
  color: #f7f4ee;
}

body.dark-mode .type-sale {
  background: #3a4a3e;
  color: #dcead8;
}

/* Right Side Button */
.coupon-right {
  text-align: right;
}

.coupon-btn {
  background: #7a5f4a;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 700;
  transition: 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.coupon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

body.dark-mode .coupon-btn {
  background: #ede7dd; /* warm beige */
  color: #1f1f1f; /* dark text */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* Mobile Layout */
@media (max-width: 768px) {
  .coupon-card {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
  }

  .coupon-left {
    width: 100%;
  }

  .discount-value {
    font-size: 34px;
  }

  .coupon-center {
    padding: 15px 0;
  }

  .coupon-right {
    width: 100%;
  }

  .coupon-btn {
    width: 100%;
  }
}

/* MOBILE LAYOUT — MATCHES THE SECOND SCREENSHOT */
@media (max-width: 768px) {
  .coupon-card {
    flex-direction: row;
    align-items: center;
    padding: 16px 14px;
    text-align: left;
    border-radius: 12px;
  }

  /* LEFT: Discount text */
  .coupon-left {
    width: auto;
    text-align: left;
    margin-right: 14px;
  }

  .discount-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
  }

  /* CENTER: Title, badge, subtext */
  .coupon-center {
    flex: 1;
    padding: 0;
  }

  .coupon-title {
    font-size: 16px;
    font-weight: 700;
    margin: 3px 0 2px 0;
  }

  .subtext {
    font-size: 12px;
  }

  /* BADGES */
  .badge {
    font-size: 11px;
    padding: 3px 8px;
    margin-bottom: 4px;
  }

  /* RIGHT: Arrow Button */
  .coupon-right {
    width: auto;
    margin-left: 10px;
  }

  .coupon-btn {
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 14px;
    min-width: 110px;
  }

  /* OPTIONAL: If you want the arrow-only button like screenshot #2 */
  .coupon-btn {
    padding: 10px 14px;
    min-width: auto;
  }
}

/* Hide arrow on desktop */
.mobile-arrow {
  display: none;
  font-size: 28px;
  font-weight: 700;
  color: #222;
}

body.dark-mode .mobile-arrow {
  color: #fff;
}

/* Mobile Arrow + Hide Button */
@media (max-width: 768px) {
  /* Hide desktop button */
  .desktop-btn {
    display: none !important;
  }

  /* Show mobile arrow */
  .mobile-arrow {
    display: inline-block;
    padding: 6px 2px;
    margin-left: 6px;
  }

  /* Make arrow tappable */
  .coupon-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .coupon-arrow {
    cursor: pointer;
  }

  /* Optional: Slight hover behavior */
  .mobile-arrow:hover {
    transform: translateX(3px);
    transition: 0.15s ease;
  }
}

/* End First Section */

/* Part of First Section */

/* Make entire coupon card behave like a button */
.coupon-card {
  cursor: pointer;
}

/* Prevent pointer on inner elements changing the feel */
.coupon-card * {
  cursor: inherit;
}

/* ---------------------------
   COUPON MODAL STYLING
----------------------------*/
.coupon-modal {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 22px 26px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Dark theme modal */
body.dark-mode .coupon-modal {
  background: #2a2c30;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Reuse existing close-btn styling (top-right X) */

/* Header: logo + title */
.coupon-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.coupon-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1ece4; /* warm beige */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coupon-logo-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body.dark-mode .coupon-logo-wrap {
  background: #3a3c40;
}

.coupon-modal-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 2px;
  color: #888;
}

body.dark-mode .coupon-modal-label {
  color: #bcbcbc;
}

.coupon-modal-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

body.dark-mode .coupon-modal-title {
  color: #f7f4ee;
}

/* Description */
.coupon-modal-desc {
  font-size: 14px;
  margin: 8px 0 18px;
  color: #555;
}

body.dark-mode .coupon-modal-desc {
  color: #d0d0d0;
}

/* Code box */
.coupon-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf8f3;
  border-radius: 999px;
  padding: 10px 12px 10px 18px;
  margin-bottom: 18px;
  border: 1px solid #f1ece4;
}

body.dark-mode .coupon-code-box {
  background: #232429;
  border-color: #3a3c42;
}

#couponCode {
  font-family:
    "Nunito Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d3d3d;
}

body.dark-mode #couponCode {
  color: #f7f4ee;
}

/* Copy button */
.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  background: #e1d7c8;
  color: #3d3d3d;
}

.copy-code-btn i {
  font-size: 14px;
}

.copy-code-btn.copied {
  background: #b9c3ac; /* sage tint */
  color: #1f271f;
}

body.dark-mode .copy-code-btn {
  background: #3a3c40;
  color: #f7f4ee;
}

body.dark-mode .copy-code-btn.copied {
  background: #6d8a75;
  color: #ffffff;
}

/* Shop button */
.coupon-shop-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  background: #7a5f4a; /* deep brown */
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(60, 46, 36, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.coupon-shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(60, 46, 36, 0.5);
  background: #694f3b;
}

body.dark-mode .coupon-shop-btn {
  background: #ede7dd; /* warm beige */
  color: #1f1f1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

body.dark-mode .coupon-shop-btn:hover {
  background: #f7f4ee;
}

/* Modal small screens */
@media (max-width: 576px) {
  .coupon-modal {
    padding: 22px 18px 24px;
  }

  .coupon-modal-title {
    font-size: 17px;
  }

  #couponCode {
    font-size: 15px;
  }
}

/* Center aligned modal header */
.coupon-modal-header.centered-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* Centered logo specifically for the modal */
.coupon-logo-wrap.centered-logo {
  margin: 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1ece4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coupon-logo-wrap.centered-logo img {
  width: 44px;
  height: 44px;
}

/* Dark mode logo background */
body.dark-mode .coupon-logo-wrap.centered-logo {
  background: #3a3c40;
}

/* Ensure modal title and label are centered */
.text-center {
  text-align: center !important;
}

/* Featured first card: subtle highlight */
.coupon-card.coupon-featured {
  position: relative;
  border: 2px solid #dde7d9; /* soft sage border */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

/* Little pill label sitting on the card */
.coupon-card.coupon-featured::before {
  content: "Today’s Top Offer";
  position: absolute;
  top: -14px;
  left: 28px;
  background: #dde7d9; /* soft sage */
  color: #3c7042; /* sage text */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Dark mode variant */
body.dark-mode .coupon-card.coupon-featured {
  border-color: #4a4f49; /* muted sage/charcoal */
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

body.dark-mode .coupon-card.coupon-featured::before {
  background: #3a4a3e; /* deep sage */
  color: #dcead8; /* light sage */
}

/* End Part of First Section */

/* Second Section */

/* ============================
   PRODUCTS SECTION — HERO HEADER
============================ */
.ap-products-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  background: #f1ece4; /* warm beige */
  padding: 40px 40px;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

body.dark-mode .ap-products-hero {
  background: #242528;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.ap-products-hero-left img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.ap-products-hero-right {
  text-align: center;
  padding: 10px 20px;
}

.ap-hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #3d3d3d;
  margin-bottom: 14px;
}

body.dark-mode .ap-hero-title {
  color: #f7f4ee;
}

.ap-hero-sub {
  font-size: 16px;
  color: #5a5a5a;
  margin-bottom: 18px;
  line-height: 1.6;
}

body.dark-mode .ap-hero-sub {
  color: #cccccc;
}

.ap-hero-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #7a5f4a; /* deep brown accent */
}

body.dark-mode .ap-hero-highlight {
  color: #ede7dd;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .ap-products-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
    gap: 24px;
  }

  .ap-hero-title {
    font-size: 28px;
  }
}

/* subsection */

/* ============================
   PRODUCT SUBSECTION — 10 ITEMS
============================ */

.ap-product-catalog {
  margin-top: 60px;
}

.catalog-title {
  font-weight: 800;
  text-align: center;
  color: #3d3d3d;
}

body.dark-mode .catalog-title {
  color: #f7f4ee;
}

.ap-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

/* Product Card */
.ap-cat-card {
  position: relative;
  text-align: center;
  padding-bottom: 10px;
}

/* Sale Tag */
.ap-sale-tag {
  position: absolute;
  top: -6px;
  left: -6px;
  background: #ede7dd;
  color: #3d3d3d;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
}

body.dark-mode .ap-sale-tag {
  background: #3a3c40;
  color: #f7f4ee;
}

/* Product Image */
.ap-cat-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.ap-cat-card:hover .ap-cat-img {
  transform: translateY(-6px);
}

/* Swatches */
.ap-swatch-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 14px 0;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.swatch-more {
  width: auto;
  height: auto;
  font-size: 11px;
  padding: 2px 5px;
  background: #faf8f3;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #555;
  text-align: center;
  line-height: 1.1;
}

body.dark-mode .swatch-more {
  background: #1e1f22;
  border-color: #444;
  color: #ccc;
}

/* Product Name */
.ap-cat-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

body.dark-mode .ap-cat-name {
  color: #fff;
}

/* Pricing */
.ap-cat-price {
  margin-top: 4px;
  font-size: 15px;
}

.price-main {
  font-weight: 800;
  color: #3d3d3d;
}

body.dark-mode .price-main {
  color: #f7f4ee;
}

.price-compare {
  margin-left: 6px;
  text-decoration: line-through;
  color: #aaa;
}

body.dark-mode .price-compare {
  color: #666;
}

/* End Second Section */

/* Third Section */

/* =====================================
   SAVINGS CONTENT SECTION
===================================== */
.ap-savings-section {
  background: #faf8f3; /* Soft cream */
  padding-top: 80px;
  padding-bottom: 80px;
}

body.dark-mode .ap-savings-section {
  background: #1e1f22;
}

/* HERO INTRO */
.ap-savings-hero {
  max-width: 760px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.ap-saving-title {
  font-size: 34px;
  font-weight: 800;
  color: #3d3d3d;
  margin-bottom: 14px;
}

body.dark-mode .ap-saving-title {
  color: #f7f4ee;
}

.ap-saving-sub {
  color: #6a6a6a;
  font-size: 17px;
  line-height: 1.7;
}

body.dark-mode .ap-saving-sub {
  color: #d0d0d0;
}

/* EDITORIAL TEXT */
.ap-saving-editorial {
  max-width: 850px;
  margin: 0 auto 60px auto;
  font-size: 16px;
  color: #444;
  line-height: 1.75;
}

body.dark-mode .ap-saving-editorial {
  color: #d3d3d3;
}

.ap-saving-editorial p {
  margin-bottom: 18px;
}

/* SECTION HEADINGS */
.ap-block-heading {
  font-size: 26px;
  font-weight: 800;
  color: #3d3d3d;
  margin-bottom: 26px;
  text-align: center;
}

body.dark-mode .ap-block-heading {
  color: #f7f4ee;
}

/* FEATURE GRID */
.ap-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.ap-feature-box {
  background: #ffffff;
  padding: 22px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

body.dark-mode .ap-feature-box {
  background: #2a2c30;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.ap-feature-box h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #3d3d3d;
}

body.dark-mode .ap-feature-box h4 {
  color: #fff;
}

.ap-feature-box p {
  color: #666;
  line-height: 1.65;
}

body.dark-mode .ap-feature-box p {
  color: #d0d0d0;
}

/* STEPS */
.ap-steps {
  max-width: 760px;
  margin: 0 auto 50px auto;
  padding-left: 20px;
  color: #444;
  line-height: 1.7;
  font-size: 16px;
}

body.dark-mode .ap-steps {
  color: #d0d0d0;
}

.ap-steps li {
  margin-bottom: 14px;
}

/* PRO TIPS */
.ap-tips {
  max-width: 760px;
  margin: 0 auto 50px auto;
  color: #444;
  line-height: 1.7;
  font-size: 16px;
  padding-left: 20px;
}

body.dark-mode .ap-tips {
  color: #d0d0d0;
}

.ap-tips li {
  margin-bottom: 12px;
}

/* FAQ */
.ap-faq {
  max-width: 860px;
  margin: 0 auto;
}

.ap-faq-item {
  background: #ffffff;
  padding: 22px 22px;
  margin-bottom: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

body.dark-mode .ap-faq-item {
  background: #2a2c30;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

.ap-faq-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #3d3d3d;
}

body.dark-mode .ap-faq-item h4 {
  color: #fff;
}

.ap-faq-item p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

body.dark-mode .ap-faq-item p {
  color: #d2d2d2;
}

/* End Third Section */

/* Footer */

/* ============================
        PREMIUM FOOTER
============================= */
.ap-footer {
  background: #f1ece4; /* warm beige */
  padding: 60px 0 40px;
  margin-top: 80px;
  border-top: 1px solid #e6e0d7;
}

body.dark-mode .ap-footer {
  background: #242528;
  border-color: #3a3c40;
}

.ap-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.ap-footer-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #3d3d3d;
  letter-spacing: 1px;
}

body.dark-mode .ap-footer-title {
  color: #f7f4ee;
}

.ap-footer-desc {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

body.dark-mode .ap-footer-desc {
  color: #d0d0d0;
}

.ap-footer-legal {
  margin-top: 20px;
}

.ap-footer-text {
  font-size: 14px;
  line-height: 1.65;
  color: #777;
  max-width: 760px;
  margin: 0 auto 14px;
}

body.dark-mode .ap-footer-text {
  color: #bdbdbd;
}

.ap-footer-copy {
  margin-top: 16px;
  font-size: 14px;
  color: #3d3d3d;
  font-weight: 700;
}

body.dark-mode .ap-footer-copy {
  color: #f7f4ee;
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .ap-footer-title {
    font-size: 26px;
  }
  
  .ap-footer-desc {
    font-size: 14px;
  }

  .ap-footer-text {
    font-size: 13px;
  }

  .ap-footer-copy {
    font-size: 13px;
  }
}

/* end Footer */


/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background: #555;
}
