
/* ============================
   Global Variables
============================ */

  body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: #f9f6f3;
    color: #333;
  }
  
  h1{
      font-family: var(--font-heading);
      font-size: 2rem;
      margin-bottom: 1rem;
  }
  
      a {
      text-decoration: none;
      color: inherit;
      }
  
      .boldText {
          font-family: var(--font-heading);
          font-size: 80px;
          /* font-weight: bold; */
          color: #103cc0;
      }
  
  
  
  .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    /* border: 1px solid #822121; */
  }
  
  .product-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    /* border: 1px solid #9d3333; */
  }
  
  .image-gallery {
    display: flex;
    flex-direction: column;
  }
  
  .main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .thumbnail-row {
    display: flex;
    gap: 0.5rem;
  }
  
  .thumbnail-row img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  .seller-info .card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
  }
  
  .avatar {
    width: 60px;
    height: 60px;
    background: #bfc3d2;
    border-radius: 50%;
    margin: 0 auto 1rem;
  }
  
  .tag {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
  }

  /* End Header area */


  
  .primary-btn, .secondary-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
  }
  
  .primary-btn {
    background-color: #103cc0;
    color: white;
  }
  
  .secondary-btn {
    background-color: #fff;
    border: 1px solid #103cc0;
    color: #103cc0;
  }
  
  .about {
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin: 10px 5px; */
    margin-top: 2rem;
    /* border: #103cc0 1px solid; */
    /* background: white; */
    /* border-radius: 10px; ; */
  }
    .title-area h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .price-area 
    {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .price-area h2
    {
        font-size: 1.5rem;
        font-weight: bold;

    }

   .listing-details {
    padding: 1.2rem;
    background: white;
    border-radius: 10px;
    margin-top: 1rem;
    /* border: 1px solid #ddd; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* max-width: 70%; */
  }
  
  .product-description {
    margin-top: 1rem;
    border: #103cc0 1px solid;
    background: white;
    border-radius: 10px;
    padding: 0.6rem; 
    /* max-width: 70%; */
  }
  
  .product-description h2 {
    margin: 1rem 0.5rem;
    margin-bottom: 0.1rem;
    
  }
  
  .details {
    font-size: 1rem;
    color: #555;
    /* margin: 1rem 0; */
    /* border: 1px solid #9d3333; */
    margin: 0.5rem 0.5rem;
    /* background: white; */

  }
  hr {
    border: none;
    border-top: 1px solid #ccc; /* Light gray line */
    margin: 20px 0; /* Add spacing above and below */
}

    section {
        margin-bottom: 2rem;
    }

    .features-area {
        margin-top: 0.01rem;
        padding: 0.01rem;
        /* border: 1px solid #ccc; */
        border-radius: 8px;
    }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
    
    .safety-tips {
        background-color: #f9f9f9;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .violation-report {
        /* background-color: #f9f9f9; */
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #ccc;
    }

    .similar-listings {
        margin-top: 2rem;
        display: grid;
        /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
        gap: 1rem;
        /* align-items: start; */
        /* margin-top: 1rem; */
        padding: 1rem;
        border-radius: 8px;
    
    }

    .similar-listings h2 {
        margin-bottom: 1rem;
        text-align: left; /* Align the heading to the left */
        grid-column: 1 / -1; 
      
    }
        
    
    .similar-listings .card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 1rem;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .similar-listings .card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* .similar-listings .card img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    .similar-listings .card img {
        width: 100%;
        border-radius: 8px;
        height: 150px;
        object-fit: cover;
    } */
    .similar-listings .card h3 {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }
    .similar-listings .card p {
        font-size: 1rem;
        color: #555;
    }
    .similar-listings .card .price {
        font-size: 1.5rem;
        color: #103cc0;
        font-weight: bold;
    }
    .similar-listings .card .btn {
        background-color: #103cc0;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        text-decoration: none;
    }
    .similar-listings .card .btn:hover {
        background-color: #0d2a8c;
    }
    .similar-listings .card .btn:active {
        background-color: #0b1f6a;
    }

    /* horizontal form  */

    .horizontal-card {
        display: flex;
        align-items: center;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 0.5rem;
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }
    
    .horizontal-card:hover {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    
    .horizontal-card img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 1rem;
    }
    
    .card-details {
        flex: 1;
    }
    
    .card-details h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .card-details p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #333;
    }
    
    /* .primary-btn {
        background-color: #103cc0;
        color: #fff;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .primary-btn:hover {
        background-color: #0056b3;
    } */

    .location i {
        color: #103cc0;
        margin-right: 0.5rem;
    }

    .card-details .price {
        font-size: 1.2rem;
        font-weight: bold;
        color: #103cc0;
        margin-bottom: 0.5rem;
    }
    
    .card-details .location {
        font-size: 0.9rem;
        color: #555;
        margin-bottom: 1rem;
    }

    /* end horizontal form  */

    

  /* start google ads sesction  */

  /* Google Ads Styling */
.ad-space {
  margin: 1rem 0;
  text-align: center;
}

.ad-horizontal {
  width: 100%;
  max-width: 728px; /* Standard leaderboard size */
  margin: 1rem auto;
}



 /* ===== BASE STYLES ===== */
        :root {

            /* --dark: #222;
            --gray-dark: #767676;
            --gray-medium: #DDD; */
            --gray-light: #F7F7F7;
            --white: #FFF;
            --black: #000;
            --overlay: rgba(0, 0, 0, 0.85);
            /* --transition: all 0.3s ease;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            --border-radius: 12px; */
        }
/* 

        /* ===== MEDIA GALLERY ===== */
        .media-gallery {
            position: relative;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            background: var(--white);
            margin-bottom: 24px;
        }

        .main-preview {
            position: relative;
            width: 100%;
            height: 60vh;
            max-height: 600px;
            min-height: 400px;
            background: var(--gray-light);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: zoom-in;
        }

        .main-preview img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: var(--transition);
        }

        .main-preview video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            outline: none;
        }

        .thumbnails {
            display: flex;
            gap: 8px;
            padding: 12px;
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--gray-medium) var(--gray-light);
        }

        .thumbnails::-webkit-scrollbar {
            height: 4px;
        }

        .thumbnails::-webkit-scrollbar-thumb {
            background: var(--gray-medium);
            border-radius: 2px;
        }

        .thumb {
            position: relative;
            min-width: 80px;
            height: 60px;
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .thumb:hover {
            border-color: var(--gray-dark);
        }

        .thumb.active {
            border-color: var(--primary);
        }

        .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-badge {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.7);
            color: var(--white);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }

        .fullscreen-btn {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.7);
            color: var(--white);
            border: none;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: var(--transition);
            z-index: 10;
        }

        .fullscreen-btn:hover {
            background: rgba(0, 0, 0, 0.9);
        }

        /* ===== FULLSCREEN MODAL ===== */
        #mediaModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--overlay);
            z-index: 1000;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #mediaModal.show {
            display: flex;
            opacity: 1;
        }

        .media-container {
            position: relative;
            width: 90%;
            height: 80%;
            max-width: 1400px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #fullscreenImage {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            cursor: grab;
            transition: transform 0.2s ease-out;
        }

        #fullscreenImage.zoomed {
            cursor: grabbing;
            transform: scale(2);
        }

        #fullscreenVideo {
            width: 100%;
            height: 100%;
            max-height: 90vh;
            outline: none;
        }

        .media-nav {
            display: flex;
            align-items: center;
            gap: 24px;
            margin-top: 20px;
            color: var(--white);
        }

        .media-nav button {
            background: none;
            border: none;
            color: var(--white);
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: var(--transition);
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-nav button:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        #mediaCounter {
            font-size: 16px;
            min-width: 60px;
            text-align: center;
        }

        .close-btn {
            position: absolute;
            top: 30px;
            right: 30px;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: var(--white);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-btn:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: rotate(90deg);
        }

        .media-actions {
            position: absolute;
            bottom: 30px;
            right: 30px;
            display: flex;
            gap: 12px;
        }

        .media-actions button {
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: var(--white);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 16px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-actions button:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        /* ===== LOADING STATES ===== */
        .loader {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.8);
            z-index: 10;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--gray-medium);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 12px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ===== QUALITY SELECTOR ===== */
        .quality-selector {
            position: absolute;
            bottom: 80px;
            right: 30px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 4px;
            padding: 8px 0;
            z-index: 20;
            display: none;
        }

        .quality-selector.show {
            display: block;
        }

        .quality-option {
            color: var(--white);
            padding: 8px 16px;
            cursor: pointer;
            font-size: 14px;
            white-space: nowrap;
        }

        .quality-option:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .quality-option.active {
            color: var(--primary);
            font-weight: 500;
        }





        

        /* ===== MOBILE OPTIMIZATIONS ===== */
        @media (max-width: 768px) {
            .main-preview {
                height: 50vh;
                min-height: 300px;
            }
            
            .thumb {
                min-width: 60px;
                height: 45px;
            }
            
            .media-container {
                width: 100%;
                height: 70%;
                padding: 0 10px;
            }
            
            .close-btn {
                top: 15px;
                right: 15px;
                width: 36px;
                height: 36px;
            }
            
            .media-actions {
                bottom: 15px;
                right: 15px;
            }
            
            .media-nav {
                margin-top: 10px;
            }
            
            .media-nav button {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            
            #mediaCounter {
                font-size: 14px;
            }
        }

        /* ===== TOUCH GESTURES ===== */
        @media (hover: none) {
            #fullscreenImage {
                touch-action: pan-x pan-y pinch-zoom;
            }
            
            .main-preview {
                cursor: pointer;
            }
        }

        