/* ================================================
   Responsive Styles for Earthen Beauty
   Mobile-First Audit — All Breakpoints
================================================ */

/* ===================================
   TABLET (max-width: 992px)
=================================== */
@media screen and (max-width: 992px) {

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .about-teaser-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-teaser-image {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .filter-group {
    margin-bottom: 0;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gift-box-builder {
    grid-template-columns: 1fr;
  }

  .gift-box-preview {
    position: static;
  }

  /* Customer Portal Modal */
  .customer-portal-card {
    max-width: 95vw;
    max-height: 92vh;
  }

  .customer-modal-card {
    max-width: 95vw;
  }
}

/* ===================================
   TABLET & MOBILE NAVIGATION (max-width: 900px)
=================================== */
@media screen and (max-width: 900px) {

  /* Hamburger */
  .hamburger {
    display: flex;
  }

  .nav-center {
    position: static;
  }

  .nav-links,
  .nav-pill-capsule {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for mobile browsers */
    background: #faf6ee;
    border-left: 1px solid var(--border-card);
    border-radius: 0 !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 85px 24px 30px;
    gap: 8px;
    box-shadow: -6px 0 30px rgba(30, 32, 34, 0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow-y: auto;
  }

  .nav-links.active,
  .nav-pill-capsule.active {
    right: 0;
  }

  .nav-links li,
  .nav-pill-capsule li {
    width: 100%;
  }

  .nav-links a,
  .nav-pill-capsule a {
    width: 100%;
    color: var(--charcoal) !important;
    font-size: 1.02rem;
    padding: 12px 18px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-links a:hover,
  .nav-pill-capsule a:hover {
    background: rgba(30, 32, 34, 0.05);
    color: var(--charcoal) !important;
  }

  .nav-links a.active,
  .nav-pill-capsule a.active {
    background: var(--charcoal);
    color: #ffffff !important;
    border-color: var(--charcoal);
  }

  .nav-item-icon {
    font-size: 1.15rem;
  }

  /* Header actions compact spacing */
  .header-actions {
    gap: 6px;
  }

  /* Cart btn: hide text label, only show icon + count */
  .cart-btn .cart-label-text {
    display: none;
  }
  .cart-btn {
    padding: 8px 12px;
    gap: 4px;
  }

  /* Admin Studio button: smaller on tablet */
  .header-admin-studio-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
    gap: 4px;
  }
}

/* ===================================
   MOBILE (max-width: 768px)
=================================== */
@media screen and (max-width: 768px) {

  /* -- ANNOUNCEMENT BAR -- */
  .top-announcement-bar {
    font-size: 0.62rem;
    padding: 6px 12px;
    gap: 8px;
    letter-spacing: 1px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
  }

  /* Hide the middle dots on very small bars to save space */
  .top-announcement-bar .bar-dot {
    display: none;
  }

  /* Only show the free-shipping message on mobile */
  .top-announcement-bar span:first-child,
  .top-announcement-bar .bar-highlight {
    display: none;
  }

  .top-announcement-bar span:last-child {
    display: inline;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
  }

  /* -- HEADER -- */
  .header .container {
    padding: 0 14px;
    gap: 10px;
  }

  .header {
    padding: 0 0 10px;
  }

  .logo h1 {
    font-size: 1.35rem;
  }

  .logo span {
    font-size: 0.85rem;
  }

  /* Header action btns touch targets */
  .header-action-btn {
    width: 36px;
    height: 36px;
  }

  .header-action-btn svg {
    width: 16px;
    height: 16px;
  }

  /* -- HERO SECTION -- */
  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .hero-btn {
    padding: 12px 32px;
    font-size: 0.85rem;
    letter-spacing: 1.4px;
  }

  /* Hero search pill */
  .hero-search-wrap {
    max-width: 92%;
    margin-bottom: 24px;
  }

  .hero-search-wrap input {
    font-size: 0.82rem;
    padding: 14px 50px 14px 20px;
    letter-spacing: 1.2px;
  }

  .hero-search-wrap input::placeholder {
    font-size: 0.72rem;
    letter-spacing: 1.2px;
  }

  .hero-search-wrap .hero-search-submit-btn {
    right: 8px;
    width: 36px;
    height: 36px;
  }

  /* Hero glow */
  .hero-glow {
    width: 260px;
    height: 260px;
  }

  .scroll-indicator {
    bottom: 18px;
  }

  /* -- CATEGORIES -- */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-card {
    height: 200px;
  }

  .category-card-overlay {
    padding: 18px 14px 16px;
  }

  .category-card-overlay h3 {
    font-size: 1.1rem;
  }

  .category-card-overlay p {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  /* -- PRODUCTS GRID -- */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-image {
    height: 170px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .product-info .product-category {
    font-size: 0.75rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 1rem;
  }

  .add-to-cart-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .product-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }

  /* -- SECTION TITLES -- */
  .section-title {
    margin-bottom: 36px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 0.92rem;
  }

  .section-eyebrow {
    font-size: 0.65rem;
    padding: 4px 12px;
    letter-spacing: 1.5px;
  }

  /* -- ABOUT TEASER -- */
  .about-teaser-image {
    height: 250px;
  }

  .about-teaser-single {
    padding: 10px 12px;
  }

  .about-teaser-single h2 {
    font-size: 1.8rem;
  }

  .about-teaser-single h3.about-script-subtitle {
    font-size: 1.6rem;
  }

  .about-teaser-text-wrap p {
    font-size: 0.95rem;
  }

  .about-btn {
    padding: 12px 28px;
    font-size: 0.82rem;
    letter-spacing: 1px;
  }

  /* -- ABOUT PAGE -- */
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-story-image {
    position: static;
  }

  .about-founder-img {
    height: 380px;
  }

  .about-story-text h2 {
    font-size: 1.9rem;
  }

  .about-story-tagline {
    font-size: 1.4rem;
  }

  .about-founder-badge {
    padding: 12px 14px;
    gap: 12px;
  }

  .about-founder-badge .badge-info strong,
  .about-founder-badge .founder-badge-name {
    font-size: 1.1rem;
  }

  .about-founder-badge .badge-info span,
  .about-founder-badge .founder-badge-sub {
    font-size: 0.76rem;
    letter-spacing: 1px;
  }

  .about-pillar-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .value-card {
    padding: 24px 16px;
  }

  .value-card .value-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .value-card h3 {
    font-size: 1rem;
  }

  .value-card p {
    font-size: 0.82rem;
  }

  /* -- SCENT CLUB NEWSLETTER -- */
  .scent-club-card {
    padding: 28px 16px 22px;
    margin-bottom: 32px;
    border-radius: 16px;
  }

  .scent-club-title {
    font-size: 1.55rem;
  }

  .scent-club-desc {
    font-size: 0.85rem;
  }

  .scent-club-input-wrap {
    flex-direction: column;
    padding: 12px 14px;
    border-radius: 16px;
    gap: 12px;
  }

  .scent-club-input {
    width: 100%;
    text-align: center;
  }

  .scent-club-input-icon {
    display: none;
  }

  .scent-club-btn {
    width: 100%;
    justify-content: center;
  }

  .scent-club-perks {
    gap: 10px 14px;
  }

  .scent-club-perk {
    font-size: 0.76rem;
  }

  /* -- FOOTER -- */
  .footer {
    padding: 45px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding-right: 0; /* Remove WhatsApp clearance on mobile - it sits differently */
  }

  .footer-legal-links {
    justify-content: center;
    gap: 6px 8px;
    font-size: 0.78rem;
  }

  .footer-legal-links a {
    font-size: 0.78rem;
  }

  /* -- CART PANEL -- */
  .cart-panel {
    width: 100%;
    left: -100%;
  }

  .cart-footer {
    padding: 16px 18px;
  }

  .cart-summary-row {
    font-size: 0.84rem;
  }

  .cart-total-row .cart-total-price {
    font-size: 1.2rem;
  }

  .checkout-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .cart-trust-badges {
    font-size: 0.7rem;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cart-compliance-consent {
    font-size: 0.72rem;
  }

  /* Free shipping tracker on mobile */
  .free-shipping-tracker {
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .tracker-header {
    font-size: 0.78rem;
  }

  .free-shipping-unlock-toast {
    font-size: 0.78rem;
    padding: 8px 14px;
    top: 62px;
  }

  /* -- SHOP PAGE -- */
  .shop-hero h1,
  .about-hero h1,
  .contact-hero h1,
  .custom-hero h1,
  .policy-hero h1 {
    font-size: 1.9rem;
  }

  .shop-hero,
  .about-hero,
  .contact-hero,
  .custom-hero {
    padding: 120px 0 45px;
  }

  .shop-hero p,
  .about-hero p,
  .contact-hero p,
  .custom-hero p {
    font-size: 0.92rem;
  }

  /* -- SEARCH PAGE -- */
  .search-hero {
    padding: 110px 0 40px;
  }

  .search-hero h1 {
    font-size: 1.7rem;
  }

  .search-page-bar-wrap {
    max-width: 90%;
  }

  .search-page-bar-wrap input {
    font-size: 0.82rem;
    padding: 14px 50px 14px 20px;
    letter-spacing: 1px;
  }

  .search-results-count {
    font-size: 0.88rem;
  }

  /* -- POLICY PAGES -- */
  .policy-hero {
    padding: 115px 16px 38px;
  }

  .policy-hero h1 {
    font-size: 1.8rem;
  }

  .policy-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .policy-block h2 {
    font-size: 1.15rem;
  }

  .policy-block p {
    font-size: 0.88rem;
  }

  .policy-contact-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .policy-contact-actions {
    width: 100%;
  }

  .policy-contact-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  /* -- CONTACT PAGE -- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info-card {
    padding: 24px 18px;
  }

  .contact-info-item .info-icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  /* -- CUSTOM PAGE -- */
  .custom-option-card {
    padding: 22px 16px;
  }

  .custom-option-card h2 {
    font-size: 1.3rem;
  }

  .bulk-products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .base-selector {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .gift-items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .custom-nav-pills {
    gap: 8px;
    padding: 0 8px;
  }

  .custom-nav-pill {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .bulk-custom-quote-banner {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .bulk-custom-quote-banner h3 {
    font-size: 1.25rem;
  }

  .bulk-quote-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* -- SECTIONS PADDING -- */
  .categories-section,
  .featured-section,
  .about-teaser,
  .values-section,
  .about-story,
  .contact-section,
  .custom-options {
    padding: 55px 0;
  }

  /* -- SEARCH MODAL -- */
  .search-overlay {
    padding: 60px 12px 30px;
  }

  .search-modal-content {
    margin: 0;
    border-radius: 12px;
  }

  .search-modal-header {
    padding: 14px 16px;
  }

  .search-modal-header input {
    font-size: 0.95rem;
  }

  .search-result-item {
    padding: 8px 10px;
    gap: 10px;
  }

  .search-result-img {
    width: 42px;
    height: 42px;
  }

  .search-result-info h4 {
    font-size: 0.88rem;
  }

  /* -- CUSTOMER AUTH MODALS -- */
  .customer-modal-overlay {
    padding: 12px;
  }

  .customer-modal-card {
    max-width: 100%;
    border-radius: 16px;
  }

  .customer-modal-header {
    padding: 22px 18px 16px;
  }

  .customer-modal-header h3 {
    font-size: 1.25rem;
  }

  .customer-modal-body {
    padding: 18px 18px 22px;
  }

  .auth-form-group input,
  .auth-form-group textarea,
  .auth-form-group select {
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  .checkout-address-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* -- CUSTOMER PORTAL -- */
  .customer-portal-card {
    max-width: 100%;
    max-height: 95vh;
    max-height: 95dvh;
    border-radius: 16px;
  }

  .customer-portal-header {
    padding: 18px 16px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cp-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .cp-name-row h3 {
    font-size: 1.15rem;
  }

  .cp-email-text {
    font-size: 0.78rem;
  }

  .cp-tabs-bar {
    padding: 10px 14px;
    gap: 4px;
  }

  .cp-tab-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .customer-portal-body {
    padding: 18px 16px 22px;
  }

  .cp-order-card {
    padding: 14px;
  }

  .cp-order-header {
    flex-direction: column;
    gap: 8px;
  }

  .cp-delivery-pill {
    padding: 10px 12px;
    gap: 10px;
  }

  .cp-delivery-icon {
    font-size: 1.2rem;
  }

  .cp-delivery-title {
    font-size: 0.82rem;
  }

  .cp-order-item-row {
    gap: 10px;
  }

  .cp-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }

  .cp-item-name {
    font-size: 0.82rem;
  }

  .cp-item-meta {
    font-size: 0.72rem;
  }

  .cp-item-total {
    font-size: 0.84rem;
  }

  .cp-order-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* -- CART NOTIFICATION TOAST -- */
  .cart-notification {
    font-size: 0.82rem;
    padding: 12px 22px;
    bottom: 22px;
    max-width: 90vw;
    text-align: center;
  }

  /* -- WHATSAPP BUTTONS -- */
  .whatsapp-btn,
  .whatsapp-btn-luxury {
    padding: 11px 20px;
    font-size: 0.88rem;
  }

  .detail-whatsapp-btn {
    width: 100%;
    justify-content: center;
  }

  /* -- PROFILE DROPDOWN -- */
  .profile-dropdown-menu {
    right: -10px;
    min-width: 200px;
  }
}

/* ===================================
   SMALL MOBILE (max-width: 480px)
=================================== */
@media screen and (max-width: 480px) {

  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
    letter-spacing: 0.02em;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .hero-btn {
    padding: 11px 28px;
    font-size: 0.8rem;
  }

  .hero-search-wrap input {
    padding: 12px 44px 12px 16px;
    font-size: 0.78rem;
  }

  .hero-search-wrap input::placeholder {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .category-card {
    height: 165px;
  }

  .category-card-overlay h3 {
    font-size: 0.95rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-image {
    height: 140px;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 0.82rem;
  }

  .product-price {
    font-size: 0.92rem;
  }

  .product-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .add-to-cart-btn {
    width: 100%;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  /* Section titles */
  .section-title h2 {
    font-size: 1.55rem;
  }

  .section-title h2::after {
    width: 50px;
    margin-top: 10px;
  }

  .section-title p {
    font-size: 0.85rem;
  }

  .section-title {
    margin-bottom: 28px;
  }

  /* About teaser */
  .about-teaser-single h2 {
    font-size: 1.5rem;
  }

  .about-teaser-single h3.about-script-subtitle {
    font-size: 1.35rem;
  }

  /* Logo */
  .logo h1 {
    font-size: 1.2rem;
  }

  .logo span {
    font-size: 0.78rem;
  }

  /* Floating WhatsApp */
  .floating-whatsapp-wrap {
    bottom: 16px;
    right: 16px;
  }

  .floating-whatsapp-tooltip {
    display: none !important;
  }

  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }

  /* Cart panel */
  .cart-panel {
    width: 100vw;
  }

  .cart-header {
    padding: 16px 16px;
  }

  .cart-body {
    padding: 12px 16px;
  }

  .cart-footer {
    padding: 14px 16px;
  }

  .cart-item {
    gap: 10px;
  }

  .cart-item-image {
    width: 52px;
    height: 52px;
  }

  .cart-item-details h4 {
    font-size: 0.82rem;
  }

  .cart-item-price {
    font-size: 0.85rem;
  }

  /* Bulk orders */
  .bulk-qty-presets-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .bulk-preset-pill {
    padding: 5px 0;
    font-size: 0.72rem;
  }

  .bulk-stepper-capsule {
    height: 44px;
  }

  .bulk-step-btn {
    width: 40px;
  }

  .bulk-step-input {
    font-size: 1.15rem;
    width: 55px;
  }

  .bulk-custom-quote-banner {
    padding: 18px 14px;
  }

  .bulk-card-body {
    padding: 16px;
  }

  /* Base selector */
  .base-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .gift-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Search modal */
  .search-modal-content {
    margin: 0 4px;
  }

  .search-modal-results {
    max-height: 320px;
  }

  /* Values grid */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .value-card {
    padding: 20px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .value-card .value-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* About page founder */
  .about-founder-img {
    height: 320px;
  }

  .about-founder-frame {
    border-radius: 16px;
  }

  .about-founder-badge {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .about-founder-badge .badge-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .about-founder-badge .badge-info strong,
  .about-founder-badge .founder-badge-name {
    font-size: 0.95rem;
  }

  .about-founder-badge .badge-info span,
  .about-founder-badge .founder-badge-sub {
    font-size: 0.68rem;
  }

  /* Footer compact */
  .footer-brand .logo h1 {
    font-size: 1.2rem;
  }

  .footer-brand p {
    font-size: 0.85rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

  .social-links a svg {
    width: 16px;
    height: 16px;
  }

  /* Customer portal on very small screens */
  .cp-user-banner {
    gap: 12px;
  }

  .cp-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .cp-name-row h3 {
    font-size: 1.05rem;
  }

  .cp-tabs-bar {
    padding: 8px 10px;
    gap: 3px;
  }

  .cp-tab-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }

  /* Scent club extras */
  .scent-club-badge {
    font-size: 0.68rem;
    padding: 5px 12px;
  }

  .scent-club-title {
    font-size: 1.35rem;
  }

  /* Hero page overlaps */
  .shop-hero,
  .about-hero,
  .contact-hero,
  .custom-hero {
    padding: 110px 0 35px;
  }

  .shop-hero h1,
  .about-hero h1,
  .contact-hero h1,
  .custom-hero h1 {
    font-size: 1.65rem;
  }

  /* Contact form */
  .submit-btn {
    width: 100%;
    text-align: center;
  }

  /* Policy hero badges */
  .policy-hero .policy-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .policy-section {
    padding: 35px 12px 60px;
  }

  /* Profile dropdown from edge */
  .profile-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    min-width: 100%;
    animation: slideUpMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  }

  @keyframes slideUpMenu {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===================================
   EXTRA SMALL MOBILE (max-width: 360px)
=================================== */
@media screen and (max-width: 360px) {

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.82rem;
  }

  .category-card {
    height: 145px;
  }

  .product-image {
    height: 120px;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .logo span {
    font-size: 0.72rem;
  }

  .scent-club-title {
    font-size: 1.2rem;
  }

  .cp-tab-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
}

/* ===================================
   SAFE OVERFLOW PROTECTION
=================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent images from breaking layouts */
img {
  max-width: 100%;
  height: auto;
}

/* Fix iOS input zoom (font-size < 16px triggers zoom) */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Safe touch target sizes for mobile (WCAG 2.5.8) */
@media screen and (max-width: 768px) {
  button, 
  a, 
  input[type="checkbox"], 
  .filter-option {
    min-height: 44px;
    /* Ensure all interactive elements are at least 44px tall for easy tapping */
  }

  /* Exceptions for inline text links */
  p a, .footer-links a, .footer-legal-links a, .policy-block a {
    min-height: unset;
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }

  @media screen and (max-width: 768px) {
    .hero {
      min-height: 85dvh;
    }
  }
}

/* ==========================================================================
   DEEP MOBILE & TABLET OPTIMIZATIONS (Smartphones, Small Phones, Phablets, Tabs)
   Zero Glitch, Zero Horizontal Overflow, Fluid Touch-First UX
   ========================================================================== */

/* Universal Mobile Base Enhancements */
@media screen and (max-width: 900px) {
  /* Mobile Navigation Drawer Account Integrations */
  .nav-mobile-account-item {
    display: block !important;
    width: 100% !important;
    border-top: 1px solid rgba(44, 36, 32, 0.08);
    margin-top: 6px;
    padding-top: 6px;
  }

  .nav-mobile-account-item a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-weight: 600;
  }

  /* Shop Page: Sleek Horizontal Category Pill Carousel */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .filter-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(44, 36, 32, 0.04);
  }

  .filter-sidebar h3 {
    display: none;
  }

  #filter-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
  }

  #filter-container::-webkit-scrollbar {
    display: none;
  }

  .filter-group {
    display: inline-flex;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .filter-group h4 {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--warm-cream);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    margin-bottom: 0;
    white-space: nowrap;
    min-height: 40px;
    transition: all 0.2s ease;
  }

  .filter-group.active h4,
  .filter-group h4.active {
    background: var(--terracotta);
    color: #ffffff !important;
    border-color: var(--terracotta);
    box-shadow: 0 3px 10px rgba(184, 92, 56, 0.25);
  }

  #filter-container > .filter-option {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--warm-cream);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
    transition: all 0.2s ease;
  }

  #filter-container > .filter-option.active {
    background: var(--terracotta);
    color: #ffffff !important;
    border-color: var(--terracotta);
    box-shadow: 0 3px 10px rgba(184, 92, 56, 0.25);
  }
}

/* Screen sizes <= 768px (Phones & Small Tablets) */
@media screen and (max-width: 768px) {
  /* Safe touch areas and body scroll stabilization */
  body.modal-open {
    overflow: hidden;
  }

  /* Customer Auth Modal (Sign In / Register) */
  .customer-modal-overlay {
    padding: 10px;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2200;
  }

  .customer-modal-card {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 36, 32, 0.3);
  }

  .customer-modal-header {
    padding: 20px 18px 14px;
    flex-shrink: 0;
    position: relative;
  }

  .customer-modal-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    background: rgba(44, 36, 32, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .customer-modal-close:hover,
  .customer-modal-close:active {
    background: var(--terracotta);
    color: #ffffff;
  }

  .auth-tabs {
    padding: 10px 16px 0;
    flex-shrink: 0;
    gap: 8px;
  }

  .auth-tab-btn {
    min-height: 44px;
    font-size: 0.88rem;
    border-radius: 50px;
  }

  .customer-modal-body {
    padding: 18px 18px 24px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  .auth-form-group {
    margin-bottom: 14px;
  }

  .auth-form-group label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .auth-form-group input,
  .auth-form-group textarea,
  .auth-form-group select {
    padding: 12px 14px;
    font-size: 16px !important;
    border-radius: 12px;
    min-height: 46px;
  }

  .auth-submit-btn {
    min-height: 48px;
    font-size: 0.95rem;
    padding: 13px 20px;
    border-radius: 50px;
    width: 100%;
  }

  /* Customer Account Portal & Orders Modal */
  .customer-portal-card {
    max-width: 100%;
    width: 100%;
    height: 92vh;
    height: 92dvh;
    max-height: 92dvh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 36, 32, 0.3);
  }

  .customer-portal-header {
    padding: 16px 16px 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--warm-cream);
    border-bottom: 1px solid var(--border-subtle);
  }

  .cp-user-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
  }

  .cp-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .cp-user-meta {
    overflow: hidden;
  }

  .cp-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .cp-name-row h3 {
    font-size: 1.08rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .cp-badge-verified {
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  .cp-email-text {
    font-size: 0.74rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  /* Horizontal swipeable tabs bar */
  .cp-tabs-bar {
    padding: 8px 12px;
    gap: 6px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
  }

  .cp-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .cp-tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 40px;
    border-radius: 50px;
  }

  .customer-portal-body {
    padding: 16px 14px 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  /* Orders Cards inside Portal */
  .cp-order-card {
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border-subtle);
  }

  .cp-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .cp-order-num {
    font-size: 0.98rem;
  }

  .cp-order-date {
    font-size: 0.74rem;
  }

  .cp-delivery-pill {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .cp-delivery-icon {
    font-size: 1.25rem;
  }

  .cp-delivery-title {
    font-size: 0.82rem;
  }

  .cp-delivery-sub {
    font-size: 0.7rem;
  }

  .cp-order-item-row {
    gap: 10px;
    padding: 6px 0;
  }

  .cp-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .cp-item-name {
    font-size: 0.82rem;
  }

  .cp-item-meta {
    font-size: 0.72rem;
  }

  .cp-item-total {
    font-size: 0.86rem;
  }

  .cp-order-address-box {
    padding: 8px 10px;
    font-size: 0.76rem;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .cp-order-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
  }

  .cp-order-total-block {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.88rem;
    background: #faf6ee;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
  }

  .cp-order-total-block strong {
    font-size: 1.1rem;
  }

  .cp-tracking-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cp-tracking-pill {
    width: 100%;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  /* Invoice Download Button on Mobile: Prominent & Touch-Friendly */
  .cp-invoice-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.86rem;
    border-radius: 12px;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(184, 92, 56, 0.18);
  }

  /* Flipkart Style Dynamic Pricing on Mobile Product Cards */
  .product-card-price-row {
    gap: 5px;
    align-items: baseline;
    flex-wrap: wrap;
  }

  .product-mrp-cut {
    font-size: 0.78rem;
  }

  .product-discount-badge {
    font-size: 0.7rem;
    padding: 1px 5px;
  }

  /* Flipkart Style Pricing on Product Detail Page */
  .product-flipkart-deal-banner .deal-pill {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .product-flipkart-price-row {
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
  }

  .product-detail-price-val {
    font-size: 1.8rem;
  }

  .product-detail-mrp-cut {
    font-size: 1.15rem;
  }

  .product-detail-discount-tag {
    font-size: 1.25rem;
  }

  /* Mobile Sticky Bottom Action Bar for product.html */
  .mobile-sticky-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    box-shadow: 0 -4px 20px rgba(44, 36, 32, 0.12);
    z-index: 998;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .msab-price-wrap {
    display: flex;
    flex-direction: column;
  }

  .msab-price {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--forest-green);
    line-height: 1.2;
  }

  .msab-mrp-cut {
    font-size: 0.76rem;
    color: #878787;
    text-decoration: line-through;
  }

  .msab-btn-wrap {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }

  .msab-cart-btn {
    padding: 10px 14px;
    background: var(--warm-cream);
    color: var(--charcoal);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    min-height: 42px;
  }

  .msab-buy-btn {
    padding: 10px 18px;
    background: var(--terracotta);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    min-height: 42px;
    box-shadow: 0 4px 12px rgba(184, 92, 56, 0.25);
  }

  /* Cart Drawer Mobile Polish */
  .cart-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .cart-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  .checkout-btn {
    min-height: 48px;
    font-size: 0.94rem;
  }

  /* Header action buttons touch area */
  .header-action-btn, 
  .cart-btn,
  .hamburger {
    min-height: 40px;
  }
}

/* Extra Small Phones (max-width: 380px) */
@media screen and (max-width: 380px) {
  .logo h1 {
    font-size: 1.15rem;
  }

  .cp-name-row h3 {
    max-width: 130px;
  }

  .cp-email-text {
    max-width: 130px;
  }

  .cp-tab-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .product-detail-price-val {
    font-size: 1.5rem;
  }

  .msab-price {
    font-size: 1.05rem;
  }

  .msab-buy-btn {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .msab-cart-btn {
    padding: 9px 10px;
    font-size: 0.75rem;
  }
}

