/* ==========================================================================
   TIME WORLD - 100% ALL-DEVICE MOBILE FIRST RESPONSIVE SYSTEM
   Universal Polish for 320px, 360px, 375px, 390px, 412px, 768px, 1024px+
   Guaranteed Zero Button Clipping | Ultra-Clean Typography | 0ms Lag
   ========================================================================== */

/* Universal Responsive Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero-desc {
    margin: 0 auto var(--space-md);
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-countdown-box {
    margin: 0 auto;
  }

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

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

  .quick-view-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 1.25rem;
  }
}

/* All Mobile Screens (<= 768px down to 320px) */
@media (max-width: 768px) {
  /* Ultra-smooth scrolling & hardware acceleration */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    touch-action: pan-y;
  }

  body {
    padding-bottom: 68px;
  }

  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fixed Mobile Bottom Bar */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(8, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    z-index: 200;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.85);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.15s ease;
    white-space: nowrap;
  }

  .mobile-nav-item.active, .mobile-nav-item:active {
    color: var(--gold-light);
  }

  .mobile-nav-item svg {
    width: 19px;
    height: 19px;
  }

  .mobile-nav-badge {
    position: absolute;
    top: 0px;
    right: 4px;
    background: #e11d48;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
  }

  /* Header & Navbar */
  .site-header {
    padding: 0;
  }

  .navbar {
    height: 54px;
    padding: 0 8px;
  }

  .brand-logo-img {
    height: 30px;
    max-width: 120px;
  }

  .header-search {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-actions .action-btn-text {
    display: none;
  }

  .nav-actions .action-btn {
    padding: 0.3rem;
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
  }

  /* Announcement Ticker */
  .announcement-bar {
    font-size: clamp(0.7rem, 2.8vw, 0.8rem) !important;
    padding: 0.35rem 0.5rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 1rem 0 1.25rem;
  }

  .hero-badge-tag {
    font-size: clamp(0.62rem, 2.5vw, 0.7rem);
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    display: inline-block;
  }

  .hero-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.22;
    margin-bottom: 0.45rem;
    word-break: break-word;
  }

  .hero-desc {
    font-size: clamp(0.78rem, 3.2vw, 0.86rem);
    line-height: 1.45;
    margin-bottom: 0.85rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    white-space: nowrap;
    text-align: center;
  }

  .hero-countdown-box {
    padding: 0.45rem 0.6rem;
    gap: 0.3rem;
    width: 100%;
    justify-content: space-between;
  }

  .time-block {
    min-width: 34px;
    padding: 0.2rem 0.25rem;
  }

  .time-val {
    font-size: 0.92rem;
  }

  .time-unit {
    font-size: 0.55rem;
  }

  /* Trust Strip */
  .trust-strip {
    padding: 0.85rem 0;
    margin-bottom: 1rem;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .trust-item {
    gap: 0.35rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem 0.3rem;
    border-radius: 6px;
  }

  .trust-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .trust-icon svg {
    width: 13px;
    height: 13px;
  }

  .trust-title {
    font-size: clamp(0.66rem, 2.4vw, 0.74rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trust-desc {
    font-size: clamp(0.56rem, 2vw, 0.62rem);
    line-height: 1.2;
  }

  /* Category & Filter Bar */
  .section-header {
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .section-title {
    font-size: clamp(1.2rem, 4.8vw, 1.45rem);
  }

  .section-desc {
    font-size: 0.78rem;
  }

  .filter-controls-wrap {
    background: #090c12 !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.5rem !important;
    margin-bottom: 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .category-tabs {
    display: flex !important;
    gap: 0.35rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 3px !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }

  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .category-tab {
    padding: 0.35rem 0.65rem !important;
    font-size: clamp(0.72rem, 2.6vw, 0.78rem) !important;
    border-radius: 16px !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
  }

  .category-tab.active {
    background: var(--gold-gradient) !important;
    color: #000 !important;
    font-weight: 800 !important;
    border-color: transparent !important;
    box-shadow: 0 2px 10px rgba(212,175,55,0.4) !important;
  }

  .sort-select-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.4rem !important;
  }

  .sort-label {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
  }

  .custom-select {
    flex: 1 !important;
    font-size: 0.78rem !important;
    padding: 0.35rem 0.5rem !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 6px !important;
    color: #fff !important;
  }

  /* ========================================================================
     STRICT 2-COLUMN MOBILE PRODUCTS GRID (NO MATTER SCREEN WIDTH)
     ======================================================================== */
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .product-card {
    background: #0a0d14 !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
  }

  .product-card:active {
    transform: scale(0.98) !important;
    border-color: var(--gold-primary) !important;
  }

  .product-badge-wrap {
    top: 5px !important;
    left: 5px !important;
    gap: 3px !important;
  }

  .product-badge-wrap .badge {
    font-size: 0.58rem !important;
    padding: 0.12rem 0.35rem !important;
    border-radius: 3px !important;
    white-space: nowrap !important;
  }

  .product-actions-floating {
    top: 5px !important;
    right: 5px !important;
    gap: 3px !important;
  }

  .card-action-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.75rem !important;
    background: rgba(0, 0, 0, 0.75) !important;
  }

  .card-action-btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  .product-media {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    background: #050608 !important;
  }

  .product-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    display: block !important;
  }

  .product-quick-view-overlay {
    display: none !important;
  }

  .product-content {
    padding: 6px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .product-brand {
    font-size: 0.6rem !important;
    letter-spacing: 0.5px !important;
    color: var(--gold-primary) !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .product-title {
    font-size: clamp(0.72rem, 2.7vw, 0.78rem) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
    height: 2.5em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #fff !important;
    cursor: pointer !important;
    word-break: break-word !important;
  }

  .product-rating-wrap {
    margin-bottom: 3px !important;
    font-size: 0.64rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .product-rating-wrap strong {
    font-size: 0.64rem !important;
  }

  .rating-count {
    font-size: 0.58rem !important;
  }

  .product-price-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 3px !important;
    flex-wrap: wrap !important;
    margin-top: auto !important;
    margin-bottom: 5px !important;
    white-space: nowrap !important;
  }

  .current-price {
    font-size: clamp(0.82rem, 3.2vw, 0.92rem) !important;
    font-weight: 800 !important;
    color: var(--gold-primary) !important;
    font-family: var(--font-heading) !important;
  }

  .old-price {
    font-size: 0.64rem !important;
    color: var(--text-muted) !important;
    text-decoration: line-through !important;
  }

  .product-btn-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .product-btn-group .btn {
    padding: 0.45rem 0.3rem !important;
    font-size: clamp(0.68rem, 2.5vw, 0.76rem) !important;
    border-radius: 6px !important;
    flex: 1 !important;
    font-weight: 700 !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Quick View Modal - Single Column Luxury Layout */
  .quick-view-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .qv-thumb {
    width: 48px !important;
    height: 48px !important;
  }

  .quick-view-btn-group {
    flex-direction: column !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  .quick-view-btn-group .btn {
    width: 100% !important;
    padding: 0.7rem !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* Modals Touch-Friendly Bottom Sheet */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    z-index: 5000 !important;
  }

  .modal-card {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    max-height: 90vh !important;
    padding: 1.15rem 0.75rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .modal-close-btn {
    top: 8px !important;
    right: 8px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 1.2rem !important;
  }

  /* Form Elements on Mobile */
  .form-input, .form-select, .form-textarea {
    font-size: 0.86rem !important;
    padding: 0.6rem 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Floating WhatsApp */
  .floating-actions {
    bottom: 66px !important;
    right: 10px !important;
  }

  .float-btn {
    width: 42px !important;
    height: 42px !important;
  }

  /* Toast Social Proof Notification */
  .toast-container {
    bottom: 66px !important;
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100vw - 16px) !important;
    z-index: 300 !important;
  }

  .toast-card {
    padding: 0.55rem 0.75rem !important;
    gap: 0.55rem !important;
    background: rgba(9, 12, 18, 0.97) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
  }

  .toast-thumb {
    width: 36px !important;
    height: 36px !important;
    border-radius: 4px !important;
  }

  .toast-text {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
  }

  .toast-time {
    font-size: 0.62rem !important;
  }

  /* Luxury VIP Footer on Mobile */
  .footer-vip-box {
    flex-direction: column !important;
    padding: 1.15rem 0.85rem !important;
    text-align: center !important;
    gap: 0.85rem !important;
    margin-bottom: 1.75rem !important;
  }

  .footer-vip-info h3 {
    justify-content: center !important;
    font-size: 1.1rem !important;
  }

  .footer-vip-form {
    width: 100% !important;
    flex-direction: column !important;
    max-width: 100% !important;
  }

  .footer-grid-luxury {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 1.75rem !important;
  }

  .footer-social-strip {
    justify-content: flex-start !important;
  }

  .footer-trust-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  .footer-bottom-bar {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.45rem !important;
  }
}

/* Extra Small Screens (<= 360px down to 320px e.g. iPhone SE, Galaxy A01) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.25rem !important;
  }

  .product-brand {
    font-size: 0.56rem !important;
  }

  .product-title {
    font-size: 0.68rem !important;
  }

  .current-price {
    font-size: 0.78rem !important;
  }

  .product-btn-group .btn {
    font-size: 0.62rem !important;
    padding: 0.32rem 0.15rem !important;
  }

  .time-block {
    min-width: 30px !important;
    padding: 0.15rem !important;
  }

  .time-val {
    font-size: 0.82rem !important;
  }
}
