/* ============================================
   THE LADIES LOFT — Responsive Styles
   ============================================ */

/* ---- Large Desktop: 1400px+ ---- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .hero {
    height: 600px;
  }

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

/* ---- Tablet/Small Laptop: 768px – 1199px ---- */
@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

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

  .newsletter-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .hero-content {
    max-width: 500px;
  }

  .tiles-grid {
    gap: 16px;
  }

  .banner-tile h3 {
    font-size: 1.3rem;
  }

  .tracking-inner {
    padding: 36px 28px;
  }
}

/* ---- Tablet Portrait: 768px – 1023px ---- */
@media (max-width: 1023px) {
  .header-actions .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .search-bar {
    max-width: 320px;
  }

  .hero {
    height: 460px;
  }

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

  .hero-content p {
    font-size: 14px;
  }
}

/* ---- Mobile: < 768px ---- */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .announcement-bar {
    font-size: 11px;
    padding: 6px 12px;
  }

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

  .search-bar {
    display: none;
  }

  .header-main {
    gap: 8px;
    padding: 10px 0;
  }

  .logo-main {
    font-size: 18px;
  }

  .logo-the {
    font-size: 9px;
  }

  .header-actions {
    gap: 2px;
    margin-left: auto;
  }

  .header-actions .btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .header-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: 0;
    right: 0;
  }

  .hide-mobile {
    display: none;
  }

  .category-nav {
    padding: 0;
  }

  .category-nav-list {
    padding: 0 16px;
    gap: 0;
  }

  .category-nav-list li a {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Hero */
  .hero {
    height: 400px;
  }

  .hero-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 8px;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
  }

  .hero-controls {
    bottom: 12px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  /* Banner Tiles */
  .tiles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .banner-tile {
    padding: 24px 20px;
    min-height: 120px;
  }

  .banner-tile h3 {
    font-size: 1.1rem;
  }

  .banner-tile p {
    font-size: 13px;
  }

  /* Categories */
  .categories {
    padding: 40px 0;
  }

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

  .category-card {
    padding: 18px 8px;
    border-radius: 12px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
  }

  .category-icon svg {
    width: 22px;
    height: 22px;
  }

  .category-card span {
    font-size: 11px;
  }

  /* Flash Sale */
  .flash-sale {
    padding: 40px 0;
  }

  .flash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-unit {
    padding: 8px 10px;
    min-width: 48px;
  }

  .countdown-unit span {
    font-size: 18px;
  }

  .countdown-unit small {
    font-size: 8px;
  }

  .countdown-sep {
    font-size: 16px;
  }

  .flash-scroll {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .flash-card {
    min-width: 180px;
    max-width: 180px;
  }

  .flash-card .product-card-body h3 {
    font-size: 12px;
  }

  .flash-nav-btn {
    width: 32px;
    height: 32px;
  }

  /* Products */
  .products {
    padding: 40px 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-group {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-bar select {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 8px 10px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card-image {
    border-radius: 12px 12px 0 0;
  }

  .product-card-body {
    padding: 10px 12px 0;
  }

  .product-card-body h3 {
    font-size: 12px;
    line-height: 1.3;
  }

  .product-category-label {
    font-size: 9px;
  }

  .product-price .current {
    font-size: 13px;
  }

  .product-price .original {
    font-size: 11px;
  }

  .product-card-footer {
    padding: 8px 12px 12px;
  }

  .add-to-cart-btn {
    padding: 8px 10px;
    font-size: 11px;
    gap: 4px;
  }

  .add-to-cart-btn svg {
    width: 12px;
    height: 12px;
  }

  .product-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .wishlist-btn {
    width: 30px;
    height: 30px;
  }

  .wishlist-btn svg {
    width: 14px;
    height: 14px;
  }

  .load-more-wrap {
    margin-top: 24px;
  }

  /* Newsletter */
  .newsletter {
    padding: 40px 0;
  }

  .newsletter-inner {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .newsletter-inner h2 {
    font-size: 1.3rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-input-group input {
    font-size: 14px;
  }

  .newsletter-input-group .btn {
    width: 100%;
  }

  /* Cart Drawer */
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
    right: -100%;
  }

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

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

  .cart-item-image {
    width: 64px;
    height: 72px;
    border-radius: 8px;
  }

  .cart-item-details h4 {
    font-size: 13px;
  }

  .cart-item-price {
    font-size: 13px;
  }

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

  .cart-drawer-footer .btn {
    font-size: 12px;
  }

  /* Wishlist Drawer */
  .wishlist-drawer {
    width: 100%;
    max-width: 100vw;
  }

  .wishlist-drawer-body {
    padding: 16px;
  }

  .wishlist-item {
    gap: 12px;
  }

  .wishlist-item-image {
    width: 56px;
    height: 64px;
  }

  .wishlist-item-details h4 {
    font-size: 12px;
  }

  .wishlist-item-actions {
    gap: 6px;
  }

  .wishlist-item-actions .btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  /* Auth Modal */
  .modal {
    width: 92vw;
    max-width: 92vw;
    border-radius: 16px;
  }

  .modal-body {
    padding: 28px 20px;
  }

  .auth-form h2 {
    font-size: 1.3rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select {
    padding: 10px 12px;
    font-size: 14px;
  }

  /* Newsletter Modal */
  .newsletter-modal-body {
    padding: 24px 18px;
  }

  .newsletter-modal-body h2 {
    font-size: 1.2rem;
  }

  /* Order Tracking */
  .order-tracking {
    padding: 40px 0;
  }

  .tracking-inner {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .tracking-form {
    flex-direction: column;
  }

  .tracking-form input {
    font-size: 14px;
  }

  .tracking-form .btn {
    width: 100%;
  }

  .tracking-steps {
    padding-left: 20px;
  }

  .tracking-card h4 {
    font-size: 15px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 0;
  }

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

  .footer-tagline {
    max-width: 100%;
  }

  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-col li a {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 0;
  }

  .payment-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  /* Cookie Banner */
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-content p {
    font-size: 12px;
  }

  .cookie-btns .btn {
    font-size: 11px;
    padding: 8px 14px;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 13px;
  }

  /* Quick View Modal */
  .quickview-modal {
    width: 95%;
    border-radius: 16px;
  }

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

  .quickview-image {
    border-radius: 16px 16px 0 0;
    max-height: 260px;
    overflow: hidden;
  }

  .quickview-details {
    padding: 20px 18px 24px;
  }

  .quickview-details h2 {
    font-size: 18px;
  }

  .quickview-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  /* Mobile Drawer */
  .mobile-drawer {
    width: 85%;
    max-width: 320px;
  }
}

/* ---- Small Mobile: < 480px ---- */
@media (max-width: 479px) {
  .container {
    padding: 0 12px;
  }

  .hero {
    height: 360px;
  }

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

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

  .hero-content p {
    font-size: 12px;
  }

  .hero-cta .btn {
    font-size: 11px;
    padding: 9px 16px;
  }

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

  .category-card {
    padding: 14px 6px;
  }

  .category-icon {
    width: 40px;
    height: 40px;
  }

  .category-icon svg {
    width: 20px;
    height: 20px;
  }

  .category-card span {
    font-size: 10px;
  }

  .countdown-unit {
    padding: 6px 8px;
    min-width: 42px;
  }

  .countdown-unit span {
    font-size: 16px;
  }

  .flash-card {
    min-width: 160px;
    max-width: 160px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card-body {
    padding: 8px 10px 0;
  }

  .product-card-body h3 {
    font-size: 11px;
  }

  .product-price .current {
    font-size: 12px;
  }

  .product-card-footer {
    padding: 6px 10px 10px;
  }

  .add-to-cart-btn {
    padding: 7px 8px;
    font-size: 10px;
    border-radius: 6px;
  }

  .newsletter-inner {
    padding: 24px 14px;
  }

  .newsletter-inner h2 {
    font-size: 1.1rem;
  }

  .tiles-grid {
    gap: 8px;
  }

  .banner-tile {
    padding: 20px 16px;
    min-height: 100px;
    border-radius: 12px;
  }

  .banner-tile h3 {
    font-size: 1rem;
  }

  .tracking-inner {
    padding: 20px 14px;
  }

  .modal-body {
    padding: 24px 16px;
  }

  .auth-form h2 {
    font-size: 1.1rem;
  }

  .wishlist-item-actions {
    flex-direction: column;
  }

  .wishlist-item-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cart-item {
    gap: 10px;
  }

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

  .cart-item-details h4 {
    font-size: 12px;
  }

  .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .footer-col h4 {
    font-size: 13px;
  }

  .footer-col li a {
    font-size: 12px;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}

/* ---- Very Small: < 360px ---- */
@media (max-width: 359px) {
  .logo-main {
    font-size: 16px;
  }

  .header-actions .btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .header-icon-btn {
    width: 32px;
    height: 32px;
  }

  .hero {
    height: 320px;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .product-card-body h3 {
    font-size: 10px;
  }

  .add-to-cart-btn {
    font-size: 9px;
    padding: 6px;
  }

  .add-to-cart-btn svg {
    display: none;
  }
}

/* ---- Landscape phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 300px;
  }

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

  .hero-cta {
    flex-direction: row;
  }

  .hero-cta .btn {
    width: auto;
  }
}

/* ---- Touch device optimization ---- */
@media (hover: none) and (pointer: coarse) {
  .add-to-cart-btn {
    min-height: 44px;
  }

  .wishlist-btn {
    min-width: 36px;
    min-height: 36px;
  }

  .header-icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .filter-bar select {
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
  }

  .category-nav-list li a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}
