/* ========================================
   PREMIUM MOBILE PRODUCT PAGE
   Modern E-commerce Layout
   ======================================== */

@media (max-width: 768px) {

  /* Reset and base styles - ONLY ON PRODUCT PAGES */
  .product-page {
    background: #f5f5f5 !important;
  }

  .product-page .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  /* Hide all desktop content - ONLY ON PRODUCT PAGES */
  .product-page .mb-xl-14.mb-6 > .row {
    display: none !important;
  }

  .product-page .mb-8 {
    display: none !important;
  }

  /* Full-width hero section with product image */
  .mobile-product-hero {
    position: relative;
    width: 100vw;
    height: 400px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 -30px 0;
    overflow: visible;
  }

  .mobile-hero-image {
    position: relative;
    width: 90%;
    max-width: 350px;
    height: 350px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    margin-top: 20px;
  }

  .mobile-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Floating price tag */
  .mobile-floating-price {
    position: absolute;
    bottom: -25px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    font-size: 24px;
    font-weight: 800;
    z-index: 10;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  /* Product title section */
  .mobile-product-title {
    background: white;
    margin: 40px 0 0 0;
    padding: 25px 20px 20px 20px;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
  }

  /* Star rating under title */
  .mobile-rating {
    padding: 0 20px 15px 20px;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-rating .stars {
    color: #ffa500;
    font-size: 16px;
  }

  .mobile-rating .rating-text {
    font-size: 14px;
    color: #666;
  }

  /* Quick action buttons - BUY NOW section */
  .mobile-cta-section {
    background: white;
    padding: 20px;
    margin: 0;
  }

  .mobile-cta-primary {
    width: 100%;
    padding: 18px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    border: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
  }

  .mobile-cta-primary:active {
    transform: scale(0.97) !important;
  }

  .mobile-cta-secondary {
    width: 100%;
    padding: 15px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    border: 2px solid #667eea !important;
    background: white !important;
    color: #667eea !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  /* Trust indicators */
  .mobile-trust-strip {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 10px;
  }

  .mobile-trust-item {
    text-align: center;
    flex: 1;
  }

  .mobile-trust-item i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
  }

  .mobile-trust-item.secure i { color: #10b981; }
  .mobile-trust-item.delivery i { color: #f59e0b; }
  .mobile-trust-item.returns i { color: #6366f1; }

  .mobile-trust-item span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    display: block;
  }

  /* Key features section */
  .mobile-features-section {
    background: white;
    margin: 10px 0;
    padding: 25px 20px;
  }

  .mobile-features-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-features-section h2:before {
    content: "✨";
    font-size: 24px;
  }

  .mobile-feature-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
  }

  .mobile-feature-item:last-child {
    border-bottom: none;
  }

  .mobile-feature-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .mobile-feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    flex: 1;
  }

  /* Product description */
  .mobile-description-section {
    background: white;
    margin: 10px 0;
    padding: 25px 20px;
  }

  .mobile-description-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-description-section h2:before {
    content: "📝";
    font-size: 24px;
  }

  .mobile-description-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
  }

  /* Sticky bottom bar */
  .mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
  }

  .mobile-sticky-price {
    flex: 0 0 auto;
  }

  .mobile-sticky-price .label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .mobile-sticky-price .price {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
  }

  .mobile-sticky-button {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-sticky-button:active {
    transform: scale(0.97);
  }

  /* Add padding to main content */
  .mobile-product-main {
    padding-bottom: 90px !important;
  }

  /* Why buy section */
  .mobile-why-buy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10px 0;
    padding: 30px 20px;
    color: white;
  }

  .mobile-why-buy h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
  }

  .mobile-why-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
  }

  .mobile-why-item i {
    font-size: 30px;
    margin-right: 15px;
    color: #ffd700;
  }

  .mobile-why-item div {
    flex: 1;
  }

  .mobile-why-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
  }

  .mobile-why-item span {
    font-size: 13px;
    opacity: 0.9;
  }

  /* Merchant/seller badge */
  .mobile-merchant-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 20px 15px 20px;
  }

  .mobile-merchant-badge i {
    color: #667eea;
  }

  /* Image badge for "NEW" or special offers */
  .mobile-badge-new {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(255,71,87,0.4);
  }

  /* Divider */
  .mobile-divider {
    height: 10px;
    background: #f5f5f5;
  }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
  .mobile-product-hero,
  .mobile-product-title,
  .mobile-rating,
  .mobile-cta-section,
  .mobile-trust-strip,
  .mobile-features-section,
  .mobile-description-section,
  .mobile-sticky-bar,
  .mobile-why-buy,
  .mobile-merchant-badge,
  .mobile-divider,
  .mobile-floating-price {
    display: none !important;
  }

  .mobile-product-main {
    padding-bottom: 0 !important;
  }
}
