/* =========================================
   DESKTOP FULL-PAGE LAYOUT
   Proper header, body, and footer for PC
========================================= */

/* --- App Header Full-Width Fix --- */
@media (min-width: 768px) {
  .app-header {
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
  }
}

/* --- Desktop Full-Width Override --- */
@media (min-width: 1200px) {
  .body-wrap {
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* --- Desktop Header (Sticky Navigation) --- */
@media (min-width: 1200px) {
  .desktop-nav-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    padding: 0.625rem 2rem !important;
    transition: box-shadow 0.3s ease;
  }

  .desktop-nav-bar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  }

  .desktop-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .desktop-nav-link {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .desktop-nav-link:hover {
    background: rgba(0, 128, 128, 0.08) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
  }

  .desktop-nav-link.active {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 128, 128, 0.3) !important;
  }

  .desktop-nav-link.active:hover {
    color: #fff !important;
    transform: translateY(-1px);
  }

  .desktop-nav-link i {
    font-size: 1.125rem !important;
  }

  /* Hero adjustments for desktop */
  .hero-v2 {
    border-radius: 0 !important;
    min-height: 300px !important;
    max-height: 380px !important;
    padding-bottom: 3rem !important;
    overflow: hidden !important;
  }

  .hero-v2::after {
    height: 36px !important;
    border-radius: 2rem 2rem 0 0 !important;
  }

  .hero-v2-header {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem 3rem !important;
  }

  .hero-v2-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem 3rem 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  .hero-v2-greeting {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .hero-v2-welcome {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }

  .hero-v2-search {
    flex: 1 !important;
    max-width: 560px !important;
    margin-bottom: 0 !important;
  }

  .hero-v2-search-inner {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 16px !important;
  }

  .hero-v2-location-row {
    margin-top: 0 !important;
  }

  .hero-v2-title {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.75rem !important;
  }

  /* Full-Width Body Content */
  .home-v2-body {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 3rem !important;
  }

  .home-v2-body .container-fluid {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home-v2-section {
    margin-bottom: 3.5rem !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Quick Actions - wider on desktop */
  .hero-v2-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 100% !important;
    gap: 1.5rem !important;
    overflow-x: visible !important;
    padding: 0 !important;
  }

  .hero-v2-action-card {
    padding: 1.75rem 1rem !important;
    border-radius: 24px !important;
    flex: unset !important;
    min-width: unset !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
  }

  .hero-v2-action-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1) !important;
  }

  .hero-v2-action-icon {
    width: 64px !important;
    height: 64px !important;
    font-size: 1.625rem !important;
    border-radius: 20px !important;
  }

  .hero-v2-action-card > span {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: var(--gray-800) !important;
  }

  /* Categories - single row on desktop */
  .home-v2-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 200px)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    overflow-x: visible !important;
    gap: 2.5rem !important;
    justify-content: center !important;
    justify-items: center !important;
  }

  .home-v2-cat-item {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .home-v2-cat-icon {
    width: 100px !important;
    height: 100px !important;
    border-radius: 24px !important;
  }

  .home-v2-cat-name {
    font-size: 0.9375rem !important;
    margin-top: 0.75rem !important;
  }

  /* Stores - auto-fit grid */
  .home-v2-stores-scroll {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    overflow-x: visible !important;
    gap: 1.5rem !important;
  }

  .home-v2-store-card {
    flex: unset !important;
    max-width: unset !important;
    border-radius: 20px !important;
  }

  .home-v2-store-banner {
    height: 130px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  /* Products scroll - responsive grid */
  .home-v2-products-scroll {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    overflow-x: visible !important;
    gap: 1.5rem !important;
  }

  .home-v2-product-card {
    flex: unset !important;
  }

  .home-v2-product-img img,
  .home-v2-product-placeholder {
    height: 180px !important;
    object-fit: cover !important;
  }

  /* Featured Products - 4 columns */
  .home-v2-body .row.g-3 > .col-6 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }

  /* Trust badges */
  .home-v2-trust-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    padding: 1.75rem 2rem !important;
  }

  /* Section titles */
  .home-v2-section-title {
    font-size: 1.625rem !important;
  }

  .home-v2-section-head {
    margin-bottom: 1.5rem !important;
  }

  /* CTA and banners full-width */
  .home-v2-cta-banner {
    padding: 4rem 3rem !important;
    border-radius: 28px !important;
  }

  .home-v2-cta-title {
    font-size: 2.25rem !important;
  }

  .home-v2-follow-banner {
    padding: 2.5rem 3rem !important;
    border-radius: 28px !important;
  }

  /* Promo card wider */
  .hero-v2-promo-card {
    max-width: 100% !important;
    border-radius: 24px !important;
  }
}

/* --- Desktop Footer --- */
.desktop-footer {
  display: none;
}

@media (min-width: 1200px) {
  .desktop-footer {
    display: block;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 0;
    margin-top: 4rem;
  }

  .desktop-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .desktop-footer-brand {
    max-width: 320px;
  }

  .desktop-footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }

  .desktop-footer-brand h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
  }

  .desktop-footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
  }

  .desktop-footer-social {
    display: flex;
    gap: 0.75rem;
  }

  .desktop-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .desktop-footer-social a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }

  .desktop-footer-links h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
  }

  .desktop-footer-links a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.375rem 0;
    transition: all 0.2s ease;
  }

  .desktop-footer-links a:hover {
    color: #fff;
    padding-left: 4px;
  }

  .desktop-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .desktop-footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
  }

  .desktop-footer-bottom .bi-heart-fill {
    font-size: 0.75rem;
  }
}

/* --- Larger Desktop (1600px+) --- */
@media (min-width: 1600px) {
  .desktop-nav-inner {
    gap: 0.75rem !important;
  }

  .desktop-nav-link {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
  }

  .home-v2-body {
    padding: 0 4rem !important;
  }

  .hero-v2-header {
    padding: 1rem 4rem !important;
  }

  .hero-v2-content {
    padding: 1rem 4rem 0 !important;
  }

  .desktop-footer-inner,
  .desktop-footer-bottom {
    max-width: 1520px;
  }

  .home-v2-products-scroll {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }

  .home-v2-body .row.g-3 > .col-6 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}

/* --- Ultra-Wide (1920px+) --- */
@media (min-width: 1920px) {
  .home-v2-body {
    padding: 0 5rem !important;
  }

  .hero-v2-header {
    padding: 1rem 5rem !important;
  }

  .hero-v2-content {
    padding: 1rem 5rem 0 !important;
  }

  .desktop-footer-inner,
  .desktop-footer-bottom {
    max-width: 1720px;
  }

  .hero-v2-title {
    font-size: 3.25rem !important;
  }

  .home-v2-products-scroll {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }

  .home-v2-body .row.g-3 > .col-6 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }

  .home-v2-section-title {
    font-size: 1.875rem !important;
  }
}
