/* ==========================================================================
   ARJWAN RESPONSIVE BREAKPOINTS (Mobile First Focus)
   ========================================================================== */

/* Large Desktop (> 1200px) */
@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .products-grid:not(.products-grid-scroll) {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* Tablet & iPad (< 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 75px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex !important;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid-scroll {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    overflow-x: visible !important;
  }

  .products-grid:not(.products-grid-scroll) {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-snippet-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-cards {
    grid-template-columns: 1fr;
  }

  .showrooms-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-story-image {
    height: 300px;
  }

  .about-circle-emblem {
    width: 240px;
    height: 240px;
  }

  .about-circle-emblem .emblem-inner img {
    width: 65px;
    height: 65px;
  }

  .about-circle-emblem .emblem-title {
    font-size: 1.15rem;
  }

  .page-hero-title {
    font-size: 2.2rem;
  }

  .page-hero-desc {
    font-size: 1rem;
  }
}

/* Mobile Screen (< 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid rgba(217, 160, 68, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .transparent-header,
  .transparent-header.scrolled {
    background: rgba(10, 10, 10, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(217, 160, 68, 0.25);
  }

  .header-inner {
    height: 68px !important;
  }

  .header-actions {
    gap: 12px;
    align-items: center;
  }

  /* Increase tap targets for one-handed reachability (44px) */
  .circle-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .circle-action-btn.mobile-toggle {
    background: rgba(217, 160, 68, 0.15);
    border-color: rgba(217, 160, 68, 0.35);
    color: var(--primary-gold);
  }

  .circle-action-btn:active {
    transform: scale(0.9);
  }

  .circle-action-btn i {
    font-size: 1.05rem;
  }

  /* Improve Logo Size and Hierarchy */
  .logo {
    gap: 10px;
  }

  .logo-icon {
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 2px 8px rgba(217, 160, 68, 0.3));
  }

  .logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -0.2px;
  }

  .logo-subtitle {
    display: block;
    font-size: 0.65rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-top: 1px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-drawer-actions {
    display: none !important;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .section-header {
    margin-bottom: 30px;
  }

  /* Hero Section Mobile (Matching 320-380px requested spec) */
  .hero-section {
    height: 420px;
    min-height: 360px;
    max-height: 450px;
  }

  .hero-content {
    padding-top: 30px;
    text-align: right;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .hero-container {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 90%;
    color: #E5E7EB;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin: 0;
  }

  .hero-buttons .btn-luxury,
  .hero-buttons .btn-outline-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 8px;
  }
  
  .hero-side-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    opacity: 0.5;
  }

  .hero-side-arrow.prev {
    right: 8px;
  }

  .hero-side-arrow.next {
    left: 8px;
  }

  .hero-pagination {
    bottom: 14px;
  }

  /* Category Horizontal Scroll on Mobile */
  .category-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 14px;
    gap: 14px;
    padding: 10px 14px 20px 14px;
    margin: 0 -14px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .category-grid::-webkit-scrollbar {
    display: none !important;
  }
  .category-card {
    min-width: 120px;
    scroll-snap-align: center;
    padding: 18px 12px;
    flex-shrink: 0;
  }
  .category-icon-box {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  .category-name {
    font-size: 0.85rem;
  }

  /* Products Horizontal Scroll on Mobile home page */
  .products-grid-scroll {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 14px;
    gap: 16px;
    padding: 10px 14px 25px 14px;
    margin: 0 -14px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .products-grid-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .products-grid-scroll .product-card {
    min-width: 250px;
    max-width: 260px;
    scroll-snap-align: center;
    flex-shrink: 0;
    margin: 0;
  }

  /* About Section Mobile */
  .about-concept-section {
    padding: 50px 0;
  }

  .about-header-wrap {
    margin-bottom: 20px;
  }

  .about-badge {
    font-size: 0.8rem;
    padding: 5px 14px;
  }

  .about-headline {
    font-size: 1.6rem;
  }

  .about-intro {
    font-size: 0.92rem;
  }

  .about-showcase {
    margin: 15px 0 30px;
  }

  .about-circle-emblem {
    width: 200px;
    height: 200px;
    padding: 15px;
  }

  .about-circle-emblem .emblem-inner img {
    width: 55px;
    height: 55px;
  }

  .about-circle-emblem .emblem-title {
    font-size: 1.05rem;
  }

  .about-circle-emblem .emblem-sub {
    font-size: 0.72rem;
  }

  .about-circle-emblem .emblem-tag {
    font-size: 0.75rem;
    padding: 3px 12px;
    top: -12px;
  }

  .about-circle-emblem .emblem-footer {
    font-size: 0.7rem;
    padding: 3px 10px;
    bottom: -12px;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .about-card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
  }

  .about-card-content h3 {
    font-size: 0.98rem;
  }

  .about-card-content p {
    font-size: 0.84rem;
  }

  /* About Story Mobile */
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }

  .about-story-title {
    font-size: 1.6rem;
  }

  .about-story-para {
    font-size: 0.95rem;
  }

  .about-story-image {
    height: 240px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 25px 16px;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.88rem;
  }

  /* Page Hero Mobile */
  .page-hero-section {
    padding: 40px 0 30px;
  }

  .page-hero-title {
    font-size: 1.8rem;
  }

  .page-hero-desc {
    font-size: 0.92rem;
  }

  /* Products Filter Mobile — شريط أفقي قابل للسحب بالإصبع */
  .cat-filter-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 5px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    white-space: nowrap;
  }
  .cat-filter-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .cat-filter-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
    border-radius: var(--radius-full);
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }

  /* Products filter mobile search bar */
  .catalogue-top-bar {
    flex-direction: column;
    gap: 12px;
  }

  .search-box-wrap {
    max-width: 100%;
  }

  /* Products grid scroll - compact on small phones */
  .products-grid-scroll .product-card {
    min-width: 180px;
  }

  /* Footer Mobile - Right Aligned Luxury Layout (Matching Reference) */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: right;
    align-items: flex-start;
  }

  .footer-desc {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .footer-social-bar {
    justify-content: flex-start;
  }

  .footer-col-title {
    text-align: right;
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-links a {
    justify-content: flex-start;
    font-size: 0.88rem;
  }

  .footer-contact-item {
    justify-content: flex-start;
    font-size: 0.88rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .slider-arrow {
    display: none;
  }

  /* Cart Drawer Mobile */
  .cart-drawer {
    width: 320px;
    max-width: 85vw;
  }

  /* Quick Contact Widget Mobile */
  .quick-contact-widget {
    bottom: 20px;
    left: 16px;
  }

  .quick-contact-main-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    animation: qc-pulse 2.5s ease-in-out infinite;
  }

  .quick-option-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  /* Buttons Mobile */
  .btn {
    padding: 12px 22px;
    font-size: 0.92rem;
  }

  .btn-sm {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

/* Extra Small Screens (< 576px) */
@media (max-width: 576px) {
  .top-bar {
    display: none;
  }

  .hero-section {
    min-height: 440px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.88rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  /* Products grid - compact on small phones */
  .products-grid:not(.products-grid-scroll) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .products-grid:not(.products-grid-scroll) .product-card {
    border-radius: 10px;
  }
  .products-grid:not(.products-grid-scroll) .product-img-wrap {
    height: 130px;
  }
  .products-grid:not(.products-grid-scroll) .product-info {
    padding: 8px 8px;
  }
  .products-grid:not(.products-grid-scroll) .product-title {
    font-size: 0.82rem;
    margin-bottom: 4px;
    line-height: 1.25;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .products-grid:not(.products-grid-scroll) .product-rating {
    font-size: 0.68rem;
    margin-bottom: 6px;
    gap: 2px;
  }
  .products-grid:not(.products-grid-scroll) .stars i {
    font-size: 0.65rem;
  }
  .products-grid:not(.products-grid-scroll) .product-price-box {
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .products-grid:not(.products-grid-scroll) .current-price {
    font-size: 0.92rem;
  }
  .products-grid:not(.products-grid-scroll) .currency {
    font-size: 0.72rem;
  }
  .products-grid:not(.products-grid-scroll) .old-price {
    font-size: 0.72rem;
  }
  .products-grid:not(.products-grid-scroll) .product-actions {
    grid-template-columns: 1fr auto auto;
    gap: 4px;
  }
  .products-grid:not(.products-grid-scroll) .btn-sm {
    padding: 6px 8px;
    font-size: 0.72rem;
    border-radius: 6px;
  }
  .products-grid:not(.products-grid-scroll) .discount-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
    top: 6px;
    right: 6px;
  }
  .products-grid:not(.products-grid-scroll) .wishlist-btn {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    top: 6px;
    left: 6px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .about-headline {
    font-size: 1.4rem;
  }

  .about-circle-emblem {
    width: 170px;
    height: 170px;
  }

  .about-circle-emblem .emblem-inner img {
    width: 48px;
    height: 48px;
  }

  .about-circle-emblem .emblem-title {
    font-size: 0.95rem;
  }

  .stat-num {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }
}

/* Very Small Screens (< 400px) */
@media (max-width: 400px) {
  .products-grid:not(.products-grid-scroll) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .products-grid:not(.products-grid-scroll) .product-img-wrap {
    height: 180px;
  }

  .products-grid:not(.products-grid-scroll) .product-info {
    padding: 6px 5px;
  }

  .products-grid:not(.products-grid-scroll) .product-title {
    font-size: 0.75rem;
  }

  .products-grid:not(.products-grid-scroll) .current-price {
    font-size: 0.82rem;
  }

  .products-grid:not(.products-grid-scroll) .btn-sm {
    padding: 5px 5px;
    font-size: 0.68rem;
  }

  .products-grid-scroll .product-card {
    min-width: 155px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .category-card {
    min-width: 105px;
    padding: 14px 10px;
  }

  .category-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .category-name {
    font-size: 0.78rem;
  }
}

/* Size Guide Mobile Responsiveness */
@media (max-width: 768px) {
  .guide-hero-title {
    font-size: 1.8rem;
  }

  .live-calc-card {
    padding: 24px 18px;
    margin-bottom: 35px;
  }

  .calc-title {
    font-size: 1.35rem;
  }

  .calc-inputs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .rec-box-inner {
    flex-direction: column;
    gap: 10px;
  }

  .room-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .horizontal-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .horizontal-feature-card {
    padding: 20px 16px;
    gap: 15px;
  }
  .horizontal-feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .horizontal-feature-content h3 {
    font-size: 1.1rem;
  }
  .horizontal-feature-content p {
    font-size: 0.88rem;
  }
}

/* Installment Section Mobile Responsiveness */
@media (max-width: 992px) {
  .installment-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .installment-content {
    text-align: center;
    align-items: center;
  }
  
  .installment-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .installment-card {
    text-align: right;
  }
  
  .installment-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .installment-title {
    font-size: 1.9rem;
  }
  
  .installment-subtitle {
    font-size: 0.95rem;
  }
  
  .zero-digit {
    font-size: 4.8rem;
  }
  
  .percent-sign {
    font-size: 2.5rem;
  }
  
  .emblem-3d-box {
    padding: 30px 35px;
  }
  
  .floating-badge {
    font-size: 0.78rem;
    padding: 7px 14px;
  }
  
  .badge-top-right {
    top: 0;
    right: -5px;
  }
  
  .badge-middle-left {
    left: -10px;
  }
  
  .badge-bottom-right {
    bottom: 60px;
    right: -5px;
  }
  
  .installment-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .installment-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Showcase Gallery Mobile Responsiveness */
@media (max-width: 768px) {
  .showcase-card {
    width: 200px;
    height: 200px;
    border-radius: 14px;
  }
  .showcase-slider-track {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .showcase-card {
    width: 160px;
    height: 160px;
    border-radius: 12px;
  }
  .showcase-slider-track {
    gap: 12px;
  }
}

/* ==========================================================================
   ABOUT US / STORY SECTION MOBILE OPTIMIZATION
   ========================================================================== */

@media (max-width: 768px) {
  .section-padding {
    padding: 35px 0 !important;
  }
  .about-story-image {
    height: 250px !important;
  }
  .about-hero, .page-hero-section {
    min-height: 240px !important;
    padding: 80px 0 40px 0 !important;
  }
  .about-story-grid {
    gap: 25px !important;
    margin-bottom: 35px !important;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: 25px 0 !important;
  }
  .about-story-image {
    height: 200px !important;
  }
  .about-hero, .page-hero-section {
    min-height: 180px !important;
    padding: 60px 0 30px 0 !important;
  }
  .about-story-title {
    font-size: 1.65rem !important;
    margin-bottom: 12px !important;
  }
  .about-story-para {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
  }
  /* Showroom CTA buttons displayed side-by-side on mobile screen */
  .visit-us-cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }
  .visit-us-cta-buttons .btn {
    flex: 1 !important;
    font-size: 0.82rem !important;
    padding: 10px 6px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    justify-content: center !important;
  }
}


/* ==========================================================================
   DEFINITIVE OVERRIDE — Mobile Category Filter Horizontal Scroll
   Mobile Only: ≤ 992px  |  Desktop: UNCHANGED
   Last rule in file = highest cascade priority
   ========================================================================== */
@media (max-width: 992px) {
  .filter-sidebar .cat-filter-list,
  aside .cat-filter-list,
  .filter-group .cat-filter-list,
  .catalogue-layout .cat-filter-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 8px 16px 12px !important;
    margin: 0 -15px !important;
    width: calc(100% + 30px) !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .filter-sidebar .cat-filter-list::-webkit-scrollbar,
  aside .cat-filter-list::-webkit-scrollbar,
  .filter-group .cat-filter-list::-webkit-scrollbar,
  .catalogue-layout .cat-filter-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .filter-sidebar .cat-filter-btn,
  aside .cat-filter-btn,
  .filter-group .cat-filter-list .cat-filter-btn,
  .catalogue-layout .cat-filter-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
    padding: 10px 18px !important;
    font-size: 0.95rem !important;
    border-radius: 9999px !important;
    scroll-snap-align: start !important;
    background: #1A1A1A !important;
    border: 1px solid #333 !important;
    color: #DDD !important;
  }

  .filter-sidebar .cat-filter-btn.active,
  .filter-sidebar .cat-filter-btn:hover,
  aside .cat-filter-btn.active,
  aside .cat-filter-btn:hover,
  .filter-group .cat-filter-list .cat-filter-btn.active,
  .filter-group .cat-filter-list .cat-filter-btn:hover,
  .catalogue-layout .cat-filter-btn.active,
  .catalogue-layout .cat-filter-btn:hover {
    background: var(--primary-gold) !important;
    color: #000 !important;
    border-color: var(--primary-gold) !important;
    font-weight: 700 !important;
    transform: none !important;
  }
}

