/* ============================================================
   RESPONSIVE.CSS — MS LIFESTYLE
   Tablet, mobile, and small-screen overrides
   ============================================================ */

/* ----- LARGE DESKTOP (1200px+) ----- */
@media (min-width: 1200px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* ----- SMALL DESKTOP / LAPTOP (992px - 1199px) ----- */
@media (max-width: 1199px) {
  .container {
    padding: 0 1.8rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
  }

  .look-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .look-image {
    aspect-ratio: 16/9;
  }

  .product-detail-body {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ----- TABLET LANDSCAPE (820px - 991px) ----- */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  .header-inner {
    gap: 0.8rem;
  }
  .logo-img {
    height: 34px;
  }
  .header-actions .header-action-btn {
    min-width: 36px;
    min-height: 36px;
  }

  .hero {
    min-height: 85vh;
  }
  .hero-content {
    padding: 6rem 0 4rem;
  }
  .hero-title {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
  }
  .hero-description {
    font-size: 1rem;
  }

  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .philosophy-body {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .aesthetics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-view-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .quick-view-image img {
    max-height: 300px;
    object-fit: cover;
  }

  .product-detail-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-detail-image img {
    max-height: 350px;
    object-fit: cover;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .newsletter-input-group {
    flex-direction: column;
  }
  .newsletter-input-group .btn {
    width: 100%;
  }
}

/* ----- TABLET PORTRAIT (576px - 819px) ----- */
@media (max-width: 819px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .aesthetics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    padding: 1.5rem;
    max-height: 95vh;
  }
  .quick-view-body {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    max-width: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand {
    grid-column: span 2;
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .checkout-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ----- MOBILE LARGE (480px - 575px) ----- */
@media (max-width: 575px) {
  :root {
    --container-padding: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .section-header {
    margin-bottom: 1.8rem;
  }

  .hero {
    min-height: 80vh;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-scroll-indicator {
    display: none;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .category-card img {
    aspect-ratio: 4/3;
  }
  .category-info {
    padding: 1rem 0.5rem;
  }
  .category-info h3 {
    font-size: 1rem;
  }
  .category-info p {
    font-size: 0.75rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .product-info {
    padding: 0.7rem 0.5rem 0.8rem;
  }
  .product-name {
    font-size: 0.85rem;
  }
  .product-category {
    font-size: 0.6rem;
  }
  .product-price {
    font-size: 0.95rem;
  }
  .product-rating {
    font-size: 0.7rem;
  }
  .product-actions .btn-add-cart {
    font-size: 0.65rem;
    padding: 0.4rem 0.5rem;
  }
  .product-actions .btn-wishlist-sm {
    width: 32px;
    height: 32px;
  }
  .product-quick-view {
    display: none; /* hide on mobile to avoid clutter, use tap on card */
  }

  .aesthetics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .aesthetic-card h3 {
    font-size: 1.4rem;
  }
  .aesthetic-card p {
    font-size: 0.75rem;
  }

  .look-content {
    grid-template-columns: 1fr;
  }
  .look-image {
    aspect-ratio: 4/3;
  }
  .look-hotspot {
    width: 26px;
    height: 26px;
    font-size: 0.6rem;
  }
  .look-product-item {
    padding: 0.6rem 0.8rem;
  }
  .look-product-item img {
    width: 48px;
    height: 48px;
  }
  .look-product-item .info h4 {
    font-size: 0.85rem;
  }
  .look-product-item .price {
    font-size: 0.8rem;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .why-card {
    padding: 1rem 0.5rem;
  }
  .why-card h3 {
    font-size: 1rem;
  }
  .why-card p {
    font-size: 0.8rem;
  }

  .reviews {
    padding: 2.5rem 0;
  }
  .review-item {
    padding: 0 0.5rem;
  }
  .review-item .review-text {
    font-size: 0.95rem;
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }

  .newsletter-title {
    font-size: 1.6rem;
  }
  .newsletter-text {
    font-size: 0.9rem;
  }
  .newsletter-input-group input {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-col h4 {
    font-size: 0.75rem;
  }
  .footer-col ul li a {
    font-size: 0.8rem;
  }
  .footer-logo {
    height: 30px;
  }

  .cart-drawer {
    max-width: 100%;
    width: 100%;
  }
  .cart-item img {
    width: 60px;
    height: 60px;
  }
  .cart-item .details h4 {
    font-size: 0.85rem;
  }

  .modal-content {
    padding: 1rem;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .quick-view-body {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .quick-view-image img {
    max-height: 200px;
  }
  .quick-view-info h2 {
    font-size: 1.4rem;
  }
  .quick-view-info .price {
    font-size: 1.2rem;
  }
  .quick-view-actions {
    flex-direction: column;
  }
  .quick-view-actions .btn {
    width: 100%;
  }

  .product-detail-image img {
    max-height: 250px;
  }
  .product-detail-info h2 {
    font-size: 1.5rem;
  }
  .product-detail-info .price {
    font-size: 1.3rem;
  }
  .product-detail-related .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-body {
    padding: 0 0.5rem;
  }

  .scroll-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
  }

  .toast {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    max-width: 90%;
  }

  .mobile-nav-panel {
    width: 80%;
    padding: 1.5rem 1rem;
  }
  .mobile-nav-link {
    font-size: 1.3rem;
  }

  .search-overlay {
    padding-top: 5vh;
  }
  #searchInput {
    font-size: 1.1rem;
  }
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ----- MOBILE SMALL (320px - 479px) ----- */
@media (max-width: 479px) {
  .container {
    padding: 0 0.8rem;
  }

  .logo-img {
    height: 28px;
  }
  .header-actions .header-action-btn {
    min-width: 32px;
    min-height: 32px;
  }
  .header-actions {
    gap: 0.3rem;
  }
  .badge-count {
    width: 16px;
    height: 16px;
    font-size: 0.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.85rem;
  }
  .hero-content {
    padding: 5rem 0 3rem;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .category-info h3 {
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .product-name {
    font-size: 0.75rem;
  }
  .product-price {
    font-size: 0.85rem;
  }
  .product-actions .btn-add-cart {
    font-size: 0.55rem;
    padding: 0.3rem 0.4rem;
  }
  .product-actions .btn-wishlist-sm {
    width: 28px;
    height: 28px;
  }
  .product-rating {
    font-size: 0.6rem;
  }
  .product-badge {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
    top: 0.4rem;
    left: 0.4rem;
  }

  .aesthetics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .aesthetic-card .overlay {
    padding: 1rem 0.8rem;
  }
  .aesthetic-card h3 {
    font-size: 1.2rem;
  }
  .aesthetic-card p {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }
  .aesthetic-card .btn-sm {
    font-size: 0.6rem;
    padding: 0.2rem 0.8rem;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .why-card {
    padding: 0.8rem 0.3rem;
  }
  .why-icon {
    font-size: 1.8rem;
  }
  .why-card h3 {
    font-size: 0.9rem;
  }
  .why-card p {
    font-size: 0.75rem;
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-about {
    font-size: 0.75rem;
  }

  .cart-drawer {
    padding: 0;
  }
  .cart-header {
    padding: 0.8rem 1rem;
  }
  .cart-header h2 {
    font-size: 1.2rem;
  }
  .cart-body {
    padding: 0.8rem 1rem;
  }
  .cart-item {
    gap: 0.8rem;
  }
  .cart-item img {
    width: 50px;
    height: 50px;
  }
  .cart-item .details h4 {
    font-size: 0.8rem;
  }
  .cart-item .qty-control button {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  .cart-footer {
    padding: 0.8rem 1rem;
  }

  .quick-view-info h2 {
    font-size: 1.2rem;
  }
  .quick-view-info .price {
    font-size: 1.1rem;
  }
  .quick-view-info .qty-selector input {
    width: 40px;
  }

  .product-detail-info h2 {
    font-size: 1.3rem;
  }
  .product-detail-info .price {
    font-size: 1.1rem;
  }

  .modal-close {
    top: 0.6rem;
    right: 0.6rem;
  }
  .modal-close svg {
    width: 22px;
    height: 22px;
  }

  .search-overlay {
    padding-top: 3vh;
  }
  #searchInput {
    font-size: 0.95rem;
  }
  .search-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .checkout-form .form-group {
    margin-bottom: 0.8rem;
  }
  .checkout-form input,
  .checkout-form select {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    min-height: 40px;
  }
}

/* ----- FOLDABLE / VERY SMALL (under 320px) ----- */
@media (max-width: 319px) {
  .container {
    padding: 0 0.4rem;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .product-info {
    padding: 0.4rem 0.3rem;
  }
  .product-name {
    font-size: 0.7rem;
  }
  .product-price {
    font-size: 0.75rem;
  }
  .product-actions .btn-add-cart {
    font-size: 0.5rem;
    padding: 0.2rem 0.3rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-description {
    font-size: 0.75rem;
  }
}

/* ----- REDUCED MOTION ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll-indicator {
    animation: none;
  }
  .product-card:hover .product-image-wrap img {
    transform: none;
  }
  .category-card:hover img {
    transform: none;
  }
  .aesthetic-card:hover img {
    transform: none;
  }
  .social-grid img:hover {
    transform: none;
  }
  .product-card:hover {
    transform: none;
  }
  .category-card:hover {
    transform: none;
  }
  .scroll-top {
    transition: opacity 0.2s;
  }
  .cart-drawer {
    transition: transform 0.2s ease;
  }
  .mobile-nav-panel {
    transition: transform 0.2s ease;
  }
  .modal-overlay {
    transition: opacity 0.2s;
  }
}

/* ----- PRINT STYLES (optional) ----- */
@media print {
  .site-header,
  .hero-scroll-indicator,
  .scroll-top,
  .cart-overlay,
  .modal-overlay,
  .search-overlay,
  .mobile-nav-overlay,
  .newsletter,
  .social-section,
  .reviews,
  .why-ms,
  .shop-the-look,
  .aesthetics,
  .categories,
  .products-section .product-actions,
  .product-quick-view,
  .product-wishlist-btn,
  .header-actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: #f5f0eb;
  }
  .hero-bg {
    position: relative;
    height: auto;
  }
  .hero-bg::after {
    display: none;
  }
  .hero-content {
    padding: 1rem 0;
    color: #000;
  }
  .hero-title {
    color: #000;
  }
  .hero-description {
    color: #333;
  }
  .btn {
    border: 1px solid #000;
    color: #000;
    background: transparent;
  }
  .philosophy-content {
    grid-template-columns: 1fr 1fr;
  }
  .brand-philosophy {
    background: #f5f0eb;
    color: #000;
  }
  .philosophy-body {
    color: #333;
  }
  .footer-grid {
    display: block;
  }
  .footer-col {
    margin-bottom: 1rem;
  }
}