/* =============================================
   RUHUNA TECMART — RESPONSIVE STYLES
   Mobile & tablet breakpoints
   ============================================= */

/* ── Tablet: 768px - 1024px ── */
@media (max-width: 1024px) {
  :root {
    --nav-h: 64px;
  }

  .container {
    padding: 0 var(--sp-4);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  .collection-grid {
    grid-template-columns: 1fr 1fr;
  }

  .collection-card.featured {
    grid-row: auto;
    min-height: 320px;
  }

  .original-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  /* About Page — Tablet */
  .abt-story-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .abt-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .abt-uni-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .abt-hero-stats {
    gap: var(--sp-5);
    padding: var(--sp-6) var(--sp-6);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    flex-wrap: wrap;
    gap: var(--sp-6);
  }

  .step-connector {
    display: none;
  }

  .hero-trust-badges {
    gap: var(--sp-4);
  }

  .community-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-glass-card {
    padding: var(--sp-10) var(--sp-6);
  }

  .promo-posters-grid {
    gap: var(--sp-4);
    margin-bottom: var(--sp-10);
  }

  .poster-body {
    grid-template-columns: 1fr 240px;
    gap: var(--sp-5);
  }

  .poster-img-container {
    width: 230px;
    height: 250px;
  }
}

/* ── Mobile: < 768px ── */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .section {
    padding: var(--sp-16) 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: var(--sp-8);
  }

  /* Navigation - Mobile Dropdown Menu Card (Directly Below Navbar) */
  .navbar .container {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    height: auto;
    max-height: calc(100vh - var(--nav-h) - 30px);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2200;
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  /* Hamburger button on mobile */
  .nav-hamburger {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all var(--t-fast);
  }

  .nav-hamburger:hover {
    border-color: var(--blue-600);
  }

  .nav-hamburger span {
    width: 20px;
  }

  /* Search in mobile dropdown */
  .nav-search {
    position: relative;
    width: 100%;
    margin-bottom: 6px;
  }

  .nav-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    display: block;
    pointer-events: none;
  }

  .nav-search-input {
    width: 100%;
    opacity: 1;
    padding: 11px 16px 11px 38px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0F172A;
    transition: all var(--t-fast);
  }

  .nav-search-input:focus {
    background: #FFFFFF;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
  }

  .nav-search.open .nav-search-input {
    width: 100%;
  }

  /* Nav Links in mobile dropdown */
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F172A;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
  }

  .nav-link-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0F172A;
  }

  .nav-link-arrow {
    display: inline-block;
    color: #64748B;
    font-size: 1.05rem;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: var(--blue-700);
    transform: translateY(-1px);
  }

  .nav-link:hover .nav-link-arrow {
    color: var(--blue-600);
    transform: translateX(3px);
  }

  .nav-link.active {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: var(--blue-700);
    font-weight: 700;
  }

  .nav-link.active .nav-link-title {
    color: var(--blue-700);
  }

  .nav-link.active .nav-link-arrow {
    color: var(--blue-600);
    transform: translateX(3px);
  }

  .nav-link.nav-link-admin {
    background: #EFF6FF;
    border-color: #DBEAFE;
    color: var(--blue-700);
    font-weight: 700;
  }

  .nav-link.nav-link-admin .nav-link-title {
    color: var(--blue-700);
  }

  .nav-link.nav-link-admin .nav-link-arrow {
    color: var(--blue-600);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cart-badge {
    position: static;
    display: inline-flex;
    margin-left: 6px;
    transform: none !important;
    opacity: 1 !important;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
  }

  /* Mobile overlay when menu is open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Hero Mobile — Perfectly Balanced Vertical Spacing */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-h) + 1.8rem) var(--sp-4) 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    padding: 0 var(--sp-2);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-pill-badge {
    font-size: 0.78rem;
    padding: 6px 16px;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }

  .hero-logo-frame {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.18;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }

  .hero-tagline {
    font-size: 0.92rem;
    font-weight: 600;
    color: #BAE6FD;
    letter-spacing: 0.35px;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .hero-subtext {
    display: block !important;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(241, 245, 249, 0.88);
    max-width: 340px;
    margin: 0 auto 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  }

  .hero-trust-badges {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
    gap: 15px;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  .stat-item {
    padding: var(--sp-5) var(--sp-3);
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .promo-posters-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-8);
  }

  .promo-poster-card {
    padding: var(--sp-6) var(--sp-5);
    border-radius: 20px;
  }

  .poster-body {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--sp-6);
    align-items: center;
  }

  .poster-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
  }

  .poster-img-container {
    width: 100%;
    max-width: 380px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .poster-product-img {
    width: 100%;
    height: 100%;
    max-width: 360px;
    max-height: 310px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.16));
  }

  .poster-float-tag {
    bottom: -4px;
    right: -2px;
    padding: 4px 10px;
  }

  .poster-content {
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .poster-title {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: var(--sp-2);
  }

  .poster-desc {
    font-size: 0.85rem;
    max-width: 320px;
    margin: 0 auto var(--sp-4);
  }

  .poster-perks {
    align-items: center;
    font-size: 0.82rem;
  }

  .poster-cta-row {
    justify-content: center;
    width: 100%;
  }

  .poster-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.92rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
  }

  .feature-card {
    padding: var(--sp-5) var(--sp-4);
  }

  .feature-card-icon {
    font-size: 1.8rem;
  }

  .feature-card-title {
    font-size: 0.95rem;
  }

  .feature-card-text {
    font-size: 0.78rem;
  }

  /* University carousel */
  .university-logo-item {
    width: 76px;
    height: 76px;
    padding: 10px;
  }

  /* ── Order Steps — Modern Connected Card Flow on Mobile ── */
  .steps-section {
    padding: var(--sp-12) 0 !important;
  }

  .steps-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 4px !important;
  }

  .step-item {
    max-width: 100% !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 50px 1fr !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 14px !important;
    align-items: start !important;
    text-align: left !important;
    padding: 15px 16px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
    position: relative !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .step-item:active {
    transform: scale(0.99) !important;
    border-color: var(--blue-500) !important;
  }

  .step-icon-wrapper {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    align-self: center !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    background: #EFF6FF !important;
    border: 1.5px solid #BFDBFE !important;
    color: var(--blue-600) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .step-icon-wrapper svg {
    width: 24px !important;
    height: 24px !important;
  }

  .step-connector {
    display: none !important;
  }

  .step-number {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: var(--blue-600) !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 2px !important;
    text-transform: uppercase !important;
  }

  .step-title {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin-bottom: 3px !important;
    line-height: 1.25 !important;
  }

  .step-desc {
    grid-column: 2 !important;
    grid-row: 3 !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    color: #64748B !important;
  }

  /* ── Checkout Details Entry Mobile Experience ── */
  .checkout-modal {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    overflow-y: hidden !important;
  }

  .checkout-modal-content {
    padding: 20px 16px max(28px, env(safe-area-inset-bottom, 28px)) !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    border-radius: 22px 22px 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.3) !important;
    border-bottom: none !important;
  }

  .checkout-modal-close {
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
  }

  .checkout-form {
    gap: 12px !important;
    width: 100% !important;
  }

  .checkout-form-group {
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 5px !important;
  }

  .checkout-form-group label {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #1E293B !important;
  }

  .checkout-form-group input,
  .checkout-form-group textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* Prevents auto zoom */
    line-height: 1.4 !important;
    padding: 12px 14px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    border: 1.5px solid #CBD5E1 !important;
    background: #F8FAFC !important;
    color: #0F172A !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  .checkout-form-group textarea {
    min-height: 74px !important;
    resize: vertical !important;
  }

  .checkout-form-group input:focus,
  .checkout-form-group textarea:focus {
    background: #FFFFFF !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none !important;
  }

  .checkout-form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Collections */
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 220px;
  }

  .collection-card.featured {
    min-height: 280px;
  }

  .collection-card-title {
    font-size: 1.2rem;
  }

  .collection-card.featured .collection-card-title {
    font-size: 1.5rem;
  }

  /* Original section */
  .original-grid {
    grid-template-columns: 1fr;
  }

  .original-image {
    order: -1;
  }

  /* Featured products */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .product-card-info {
    padding: var(--sp-3);
  }

  .product-card-name {
    font-size: 0.85rem;
  }

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

  .product-card-cart-btn {
    width: 34px;
    height: 34px;
  }

  /* Mobile: Clean square framing with zoomed full-bleed image */
  .product-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    background: #F8FAFC;
  }

  .product-card-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    transform: scale(1.08);
  }

  .product-stock-pill {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  /* FAQ */
  .faq-question {
    padding: var(--sp-4);
  }

  .faq-question h3 {
    font-size: 0.88rem;
  }

  .faq-answer p {
    padding: 0 var(--sp-4) var(--sp-4);
    font-size: 0.85rem;
  }

  /* Community Glassmorphic Hub */
  .community-glass-card {
    padding: var(--sp-8) var(--sp-4);
    border-radius: 20px;
  }

  .community-social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .community-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .community-btn-primary,
  .community-btn-whatsapp {
    justify-content: center;
    width: 100%;
  }

  .community-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .community-location-chip {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-3);
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* WhatsApp float */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* About page — Mobile */
  .abt-hero {
    padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-10);
  }

  .abt-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .abt-hero-sub {
    font-size: 0.92rem;
  }

  .abt-hero-stats {
    flex-wrap: wrap;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
  }

  .abt-stat-divider {
    display: none;
  }

  .abt-stat {
    flex: 1 1 40%;
  }

  .abt-stat-num {
    font-size: 1.3rem;
  }

  .abt-story-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .abt-story-visual {
    order: -1;
  }

  .abt-mv-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .abt-why-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .abt-why-card {
    padding: var(--sp-8) var(--sp-5);
  }

  .abt-uni-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
  }

  .abt-uni-card {
    padding: var(--sp-4) var(--sp-3);
  }

  .abt-uni-card img {
    width: 44px;
    height: 44px;
  }

  .abt-uni-card span {
    font-size: 0.65rem;
  }

  .abt-tl-track {
    padding-left: 30px;
  }

  .abt-tl-dot {
    left: -23px;
    width: 12px;
    height: 12px;
  }

  .abt-tl-line {
    left: 10px;
  }

  .abt-tl-card {
    padding: var(--sp-5) var(--sp-5);
  }

  .abt-cta-card {
    padding: var(--sp-8) var(--sp-5);
  }

  .abt-cta-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .abt-contact-card {
    padding: 18px 16px;
  }

  .abt-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .abt-cta-btn-primary,
  .abt-cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Legal pages */
  .legal-page {
    padding-top: calc(var(--nav-h) + var(--sp-8));
  }

  .legal-page h1 {
    font-size: 1.5rem;
  }
}

/* ── Small Mobile: < 480px ── */
@media (max-width: 480px) {
  .hero-pill-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-tagline {
    font-size: 0.88rem;
  }

  .hero-subtext {
    font-size: 0.8rem;
  }

  .stats-grid {
    gap: var(--sp-2);
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .promo-poster-card {
    padding: var(--sp-5) var(--sp-4);
    border-radius: 18px;
  }

  .poster-img-container {
    width: 100%;
    max-width: 340px;
    height: 290px;
  }

  .poster-product-img {
    max-width: 320px;
    max-height: 280px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
  }

  .feature-card {
    padding: var(--sp-4) var(--sp-3);
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
  }

  .product-card-info {
    padding: var(--sp-2);
  }

  .product-card-name {
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
  }

  .product-card-price {
    font-size: 0.85rem;
  }

  .product-card-rating {
    display: none;
  }

  .product-card-cart-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* Small mobile: Maintain clean edge-to-edge square framing */
  .product-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    background: #F8FAFC;
  }

  .product-card-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    transform: scale(1.08);
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .community-social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .social-glass-btn {
    padding: 10px;
    gap: 8px;
  }

  .social-glass-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .social-glass-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .social-glass-name {
    font-size: 0.85rem;
  }

  .social-glass-hint {
    font-size: 0.72rem;
  }

  .community-contact-card {
    padding: 10px 14px;
    gap: 10px;
  }

  .contact-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .contact-card-value {
    font-size: 0.88rem;
  }

  .footer-about {
    font-size: 0.8rem;
  }

  /* Toast on mobile */
  .toast-notification {
    top: calc(var(--nav-h) + 12px);
    left: 50%;
    right: auto;
    bottom: auto;
    padding: 8px 14px;
    font-size: 0.82rem;
    max-width: calc(100vw - 28px);
    border-radius: 40px;
  }

  /* Welcome Card on mobile */
  .rtm-welcome-card {
    top: calc(var(--nav-h) + 10px);
    width: calc(100vw - 24px);
    padding: 10px 14px;
    gap: 10px;
    border-radius: 16px;
  }
  .rwc-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .rwc-greeting {
    font-size: 0.86rem;
  }
  .rwc-sub {
    font-size: 0.74rem;
  }
}

/* ── Touch optimization ── */
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .product-card-cart-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .faq-question {
    min-height: 48px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-whatsapp {
    min-height: 44px;
  }

  /* Disable hover effects that don't work on touch */
  .product-card:hover {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .glass-card:hover {
    transform: none;
  }

  .collection-card:hover {
    transform: none;
  }
}

/* ── Landscape mobile ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero-logo {
    width: 60px;
    height: 60px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: var(--sp-2);
  }

  .hero-tagline {
    font-size: 0.8rem;
    margin-bottom: var(--sp-4);
  }
}

/* ── Print styles ── */
@media print {

  .navbar,
  .preloader,
  .whatsapp-float,
  .back-to-top,
  .nav-hamburger {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .page {
    display: block !important;
    opacity: 1 !important;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .university-track {
    animation: none;
  }

  .hero-video {
    display: none;
  }
}

/* ── Dark mode already default, but light mode override ── */
@media (prefers-color-scheme: light) {
  /* Keep dark theme as intentional design choice */
}

/* ── Landscape mobile ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero-logo {
    width: 60px;
    height: 60px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: var(--sp-2);
  }

  .hero-tagline {
    font-size: 0.8rem;
    margin-bottom: var(--sp-4);
  }
}

/* ── Print styles ── */
@media print {

  .navbar,
  .preloader,
  .whatsapp-float,
  .back-to-top,
  .nav-hamburger {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .page {
    display: block !important;
    opacity: 1 !important;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .university-track {
    animation: none;
  }

  .hero-video {
    display: none;
  }
}

/* ── Dark mode already default, but light mode override ── */
@media (prefers-color-scheme: light) {
  /* Keep dark theme as intentional design choice */
}