:root {
  --primary-color: #28a745;
  --secondary-color: #218838;
  --text-color: #333;
  --light-gray: #f5f7fa;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}


/*
 * Styles for the post image container.
 * This sets a maximum height and ensures the image
 * fits properly within that space.
 */
.product-image {
    position: relative;
    max-height: 500px; 
    width: 100%;
    overflow: hidden; /* This is important to crop the image if it exceeds the max-height */
}

/*
 * These styles ensure the actual image scales correctly.
 * 'object-fit' is key here.
 */
.post-image {
    width: 100%;
    height: 100%;
    /* Alternatively, you can use 'cover' to fill the space and crop the image: */
    /* object-fit: cover; */
}

/* Video thumbnail container - Facebook style */
.post-video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Hide the actual video element and show poster/thumbnail */
.post-video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none; /* Prevent default video controls */
}

.post-video-container:hover .post-video {
    transform: scale(1.02);
}

/* Play button overlay - Facebook style */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.post-video-container:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.video-play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.video-play-button:active {
    transform: scale(1.05);
}

.video-play-button i {
    font-size: 32px;
    color: #1877f2;
    margin-left: 4px; /* Slight offset to center the play icon visually */
}

/* Video duration badge */
.video-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

/* Hide original video controls when showing thumbnail */
.post-video-container .custom-controls {
    display: none;
}

/* Loading state */
.video-thumbnail-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.video-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Video quality indicator */
.video-quality-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    z-index: 3;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button i {
        font-size: 24px;
    }
    
    .post-video {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-play-button i {
        font-size: 20px;
    }
    
    .post-video {
        height: 200px;
    }
    
    .post-video-container {
        border-radius: 8px;
    }
}

/* Hover effects for better UX */
.post-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(24, 119, 242, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.post-video-container:hover::after {
    opacity: 1;
}

/* Pulse animation for play button when video is loading */
.video-play-button.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(24, 119, 242, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* --- Styles to add/update in your main.css file --- */

/* Basic styling for images during lazy loading */
img.lazy-loading {
    /* This background color acts as a visible placeholder if the tiny GIF isn't enough */
    background-color: #f0f0f0; /* Light gray background */

    transition: filter 0.5s ease-out; /* Smooth transition when blur is removed */
}

img.lazy-loading.loaded {
    
    /* Optional: Add a fade-in effect */
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}


/* Performance optimizations for video controls */
.post-video-container {
    /* Use GPU acceleration for smoother animations */
    transform: translateZ(0);
    will-change: transform;
    /* Contain layout recalculations */
    contain: layout style;
}

.post-video {
    /* Optimize video rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Reduce paint operations */
    will-change: transform;
}

.custom-controls {
    /* Optimize control overlay */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Use compositor for smooth transitions */
    will-change: opacity, transform;
    /* Reduce repaints during hover */
    contain: layout;
}

/* Optimize progress bar animations */
.progress-bar,
.buffered-bar {
    /* Use transform instead of width changes for better performance */
    transform: translateZ(0);
    will-change: transform;
    contain: strict;
}

/* Optimize seek preview */
.seek-preview {
    /* Reduce paint operations */
    will-change: transform, opacity;
    contain: layout style;
    /* Use GPU acceleration */
    transform: translateZ(0);
}

/* Optimize hover effects */
.control-button {
    /* Reduce repaints on hover */
    will-change: background-color, transform;
    transform: translateZ(0);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.control-button:hover {
    /* Use transform instead of changing dimensions */
    transform: translateZ(0) scale(1.1);
}

/* Optimize volume slider */
.volume-slider {
    will-change: transform;
    contain: layout;
}

/* Smooth scrolling optimizations */
.post {
    /* Contain layout changes to individual posts */
    contain: layout style;
    /* Optimize for scroll performance */
    transform: translateZ(0);
}

/* Optimize for smooth scrolling over video areas */
.post-video-container:hover {
    /* Prevent unnecessary repaints during scroll */
    contain: layout style paint;
}

/* Reduce layout thrashing during scroll */
.post-video-container * {
    /* Prevent unnecessary layout recalculations */
    will-change: auto;
}

/* Override will-change during scroll for better performance */
.post-video-container.scrolling * {
    will-change: auto !important;
}

/* Optimize media queries for better performance */
@media (prefers-reduced-motion: reduce) {
    .custom-controls,
    .control-button,
    .progress-bar,
    .seek-preview {
        transition: none !important;
        animation: none !important;
    }
}

/* Better scrolling on mobile */
@media (max-width: 768px) {
    .post-video-container {
        /* Optimize touch scrolling */
        -webkit-overflow-scrolling: touch;
        /* Better mobile performance */
        transform: translate3d(0, 0, 0);
    }
}


/* Styling for videos during lazy loading */
.post-video-container {
    position: relative;
    background-color: #000; /* Black background for videos */
    display: flex; /* To center loading spinner */
    justify-content: center;
    align-items: center;
    min-height: 250px; /* Ensure video container has a height */
}

.post-video-container .post-video {
    width: 100%;
    height: auto;
    display: block;
}

.post-video.lazy-loading {
    /* Hide the video itself while loading, show only placeholder/spinner */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.post-video.lazy-loading.loaded {
    opacity: 1; /* Fade in video once loaded */
}
/* This is the key container for the image */
.post-image-wrapper {
    position: relative; /* Essential for positioning the badge */
    width: 100%;
    /* The magic here: use padding-top to create a 1:1 aspect ratio */
    /* For a standard square image: */
    padding-top: 75%; 
    /* If you prefer a rectangular aspect ratio, e.g., 4:3 */
    /* padding-top: 75%; */
    /* Or 16:9 */
    /* padding-top: 56.25%; */
    overflow: hidden; /* Hides any part of the image that overflows */
}

/* Style the image itself to fill the new container */
.post-image-wrapper img.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    object-fit: cover; /* This is crucial. It makes the image fill the container without distortion. */
    cursor: pointer;
}

/* Update the badge position to work with the new wrapper */
.post-image-wrapper .badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.post-image{
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.checkout-product-btn {
  background: #fff;
  color: #28a745;
  border: solid 1px #fff; /* Removed border */
  border-bottom: #28a745;
  box-shadow: 0 0 10px #ddd;
  padding: 8px 16px;
  border-radius: 8px;
  width: 100%;
  font-size: 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
}

.checkout-product-btn i {
  margin-right: 8px;
}

.media-card {
  flex: 1; /* Allows media to take available space */
  position: relative;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 70px; /* Ensure media card has a minimum height */
  scroll-behavior: smooth;
}

.product-image {
  /* *** FIX FOR DESKTOP DISTORTION *** */
  /* Changed from 100vw to 100% to size relative to its parent container */
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures entire image/video is visible */
  display: block;
  max-height: 800px; /* Max height for the media */
  min-height: 50px;
  scroll-behavior: smooth;
}

.product-card {
  flex: 1; /* Allows details to take available space */
  background-color: #fff; /* White background for details */
  display: flex;
  flex-direction: column;
  min-height: 50px;
  justify-content: space-between; /* Pushes content and actions apart */
  scroll-behavior: smooth;
}

.product-title {
  font-size: 16px;
  color: #333;
  margin-top: 5px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-description{
  margin-left: -5px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  gap: 15px; /* Gap between grid items */
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
  background-color: #ffff; /* Light background for each detail item */
  border-radius: 6px;
  padding: 10px;
  border-left: 1px solid #28a745;
}

.detail-icon {
  font-size: 13px;
  color: #28a745; /* Icon color */
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #e6f7ed; /* Light background for icon */
}

.detail-label {
  font-size: 0.7em;
  color: #888;
  font-weight: 600px;
  text-transform: uppercase;
}

.detail-value {
  font-size: 0.7em;
  color: #555;
  font-weight: 600px;
}

.price-value {
  color: #e44d3a; /* Distinct color for price */
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #22c55e;
  color: white;
  z-index: 0;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.follow-button {
  background: #fff;
}

a {
  text-decoration: none;
}
/* Enhanced Post Display Styles for Social E-commerce Platform */

/* Promote Button Styles */
.promote-button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px #ddd;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin: 0 !important;
}

.promote-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #f3f8f1;
  background: #f3f8f1;
}

/* Promoted Posts Container - Enable horizontal scrolling */
.promoted-posts-container {
  position: relative;
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: hidden; /* Prevent vertical scrolling */
  margin-bottom: 1rem;
  display: none;
  background: #fff;
  border-radius: 15px;
  padding: 1rem;
  width: 160px;
  min-height: 280px; /* Increased height to accommodate content */
  scrollbar-width: thin; /* Firefox scrollbar styling */
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent; /* Firefox scrollbar color */
}

/* Webkit scrollbar styling */
.promoted-posts-container::-webkit-scrollbar {
  height: 8px; /* Scrollbar height */
}

.promoted-posts-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.promoted-posts-container::-webkit-scrollbar-track {
  background: transparent;
}

/* Promoted Posts Row - Adjusted for scrolling */
.promoted-posts-row {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease-in-out; /* Keep for auto-rotation animations */
  position: relative;
  top: 0;
  left: 0;
  padding: 0;
  width: max-content; /* Allow row to expand based on content */
  /* Space between rows if multiple are visible */
}

/* Individual Promoted Post - Fixed sizing */
.promoted-post {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 300px; /* Fixed width */
  flex: 0 0 300px; /* Flex: grow shrink basis */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Promoted Badge */
.promoted-badge {
  position: absolute;
  top: 35px;
  right: 80px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 3px 6px;
  border-radius: 12px;
  font-size: 0.5rem;
  font-weight: bold;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.promoted-badge i {
  font-size: 0.3rem;
}

/* Promoted Header */
.promoted-header {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.promoted-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.promoted-user-info {
  flex: 1;
  min-width: 0; /* Allow text to truncate */
}

.promoted-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  margin-top: -18px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promoted-time {
  position: relative;
  top: -4px; /* Negative moves it up */
  font-size: 0.70rem;
  display: none;
  color: #666;
  white-space: nowrap;
}

/* Promoted Media */
.promoted-media {
  position: relative;
  width: 100%;
}

.promoted-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.promoted-video-container {
  position: relative;
  width: 100%;
  height: 150px;
  background: #000;
}

.promoted-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Promoted Product Info */
.promoted-product-info {
  padding: 1rem;
  flex-grow: 1;
}

.promoted-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promoted-price {
  font-size: 1rem;
  font-weight: bold;
  color: #e74c3c;
  margin: 0.3rem 0;
}

.promoted-location {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Promoted Actions */
.promoted-actions {
  padding: 1rem;
  padding-top: 0;
}

.button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Optional gap between buttons */
}

.promoted-cta-button {
  width: 49.9%;
  background: #28a745;
  color: white;
  border: none;
  padding: 00.7rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  margin: 0; /* Remove margin */
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-decoration: none;
}

.promoted-cta-button:hover {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.promoted-cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .promoted-posts-container {
    padding: 0.5rem;
    margin-bottom: 1rem;
    min-height: 260px;
  }

  .promoted-posts-row {
    gap: 0.5rem;
  }

  .promoted-post {
    width: 240px;
    flex: 0 0 240px;
  }

  .promoted-header {
    padding: 0.8rem;
  }

  .promoted-product-info {
    padding: 0.8rem;
  }

  .promoted-actions {
    padding: 0.8rem;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .promoted-post {
    width: 200px;
    flex: 0 0 200px;
  }

  .promoted-image,
  .promoted-video-container {
    height: 120px;
  }
}
.promote-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px #fff;
}

.promote-button i {
  font-size: 14px;
  animation: pulse 2s infinite;
}

/* Animation for the bullhorn icon */


.post-time::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
}

.post-image {
  width: 100%;
  height: auto;
  max-height:700px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.post-image:hover {
  transform: scale(1.02);
}

/* Custom Controls Enhancement */
.custom-controls {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(12px);
  border-radius: 0 0 16px 16px;
  padding: 16px;
}

.control-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 16px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.control-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.progress-container {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), #20c997);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
  #posts-container {
    max-width: 100%;
    padding: 8px;
  }
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #ddd;
  cursor: pointer;
}

.buy-now-button:disabled {
  background: #f0fdf4;
  color: #166534;
 border: 1px solid #bbf7d0;
  cursor: not-allowed;
  opacity: 0.9;
}

.buy-now-button button {
  background: #28a745;
  color: #fff;
}

.gallery-image {
  width: 100%;
  max-width: 700px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 2px;
  width: 100%;
  max-width: 400px;
  max-height: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modern-modal.show .modal-content {
  transform: translateY(0);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

h1 {
  font-size: 16px;
  margin: 20px 0 20px 5px;
}

.side-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20000;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px #ddd;
  height: 100vh;
  width: 70%;
}

.side-bar ul {
  list-style: none;
  padding-top: 20px;
  margin-left: 5px;
}

.side-bar li {
  margin-bottom: 10px;
  border: 0.1px solid #fff;
  padding: 10px;
  border-end-end-radius: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px #ddd;
  margin-right: 3px;
}

.side-bar .active {
  color: #ddd;
}

.side-bar a {
  text-decoration: none;
  color: var(--primary-color);
  padding-right: 10%;
}

.side-bar i {
  margin-right: 20px;
}

.profile-sec{
  width: 100%;
  border-bottom: 0.1px solid #fff;
  padding-bottom: 5px;
  display: flex;
  box-shadow: 0 0 10px #ddd;
}

.profile-sec img {
  border: 0.1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 100%;
  width: 45px;
  height: 45px;
  object-fit: cover;
  margin-left: 5px;
  margin-top: 10px;
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 15px;
  cursor: pointer;
  position: fixed;
  z-index: 2;
  margin-bottom: 9px;
  margin-left: 20px;
  margin-top: 20px;
}

.menu-icon div {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  text-align: center;
}

  .category-filter {
  top: 70px;
  z-index: 80;
  background: #fff;
  width: 100vw;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  margin: 0 auto;
}

.category-scroll {
  display: inline-flex;
  overflow-x: auto;
  gap: 8px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex: 0 auto;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  color: #333;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-btn:hover {
  background-color: #e9ecef;
}

.category-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.category-scroll-wrapper {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

@media (min-width: 768px) {
  .category-scroll-wrapper {
    margin: 0 auto;
  }
  .category-filter{
       
  }
  #posts-container {
    max-width: 600px;
    min-width: 320px;
    margin: 0 calc(1200px / 2);
  }
}

.create-post-container {
  text-align: center;
  position: relative;
  align-items: center;
  margin: 0 auto;
  box-shadow: 0 0 10px #ddd;
  padding: 10px 0;
  border: 1px solid #fff;
}

.post-input {
  margin-bottom: 0;
  border: 1px solid white;
  width: 48.5%;
  height: 40px;
  margin-top: 70px;
  box-shadow: 0 0 10px #ddd;
  border-radius: 30px;
  color: grey;
}

.header-section {
  position: fixed;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  top: 0;
  height: 50px;
  text-align: center;
  align-items: center;
}

#posts-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 90px;
  /* Ensure it has a max-width and centers on desktop if not already */
}

.post {
  background-color: #ffffff;
  border: none;
  margin-bottom: 5px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 8px;
  margin-left: 0;
  margin-right: 0;
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid #E8ECEF;
}

.user-pic {
  border: 1px solid #F4F2F8;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.post-user-info {
  flex-grow: 1;
}

.post-user-name {
  font-weight: 600;
  margin-left: -10px;
  margin: 0;
  font-size: 15px;
  color: black;
  text-decoration: none;
}

.post-time {
  font-size: 13px;
  font-weight: 600px;
  color: #6B7280;
  margin-top: -5px;
}

.dm-serif-display-regular {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-display-regular-italic {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: italic;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  height: 38px;
  margin-bottom: 6px;
  background-color: #ffff;
}
p {
  font-weight: 450;
  font-size: 15px;
}

.post-actions button {
  background: none;
  border: none;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.post-actions button:hover {
  color: #2A6A6A;
}

.post-actions i {
  color: var(--primary-color);
  font-size: 16px;
  margin: 5px;
}

.post-container {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 5px;
  gap: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-pic {
  position: fixed;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0.1px solid #F4F1F8;
  margin-left: 60px;
  border-radius: 50%;
  margin-top: 10px;
}

.profile-pic a {
  display: inline-block;
  padding: 10px;
  color: white;
  background-color: var(--primary-color);
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.profile-pic a:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.profile-pic a:active {
  background-color: var(--primary-color);
  transform: scale(0.98);
}

#send-msg {
  position: fixed;
  bottom: 0;
  display: block;
}

#Username {
  margin-left: 80px;
  margin-top: -50px;
  font-weight: bold;
}

#pic {
  width: 60px;
  border: 1px solid black;
  box-shadow: 0 0 10px #ddd;
  border-radius: 50%;
}

#navbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: white;
  box-shadow: 0 0 10px #ddd;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  /* CHANGE: Use a 'bottom' transition instead of 'transform' */
  transition: bottom 0.3s ease-in-out;
}

/* * CORRECTED: Hide the nav bar by changing its 'bottom' property.
 * This is a pure vertical movement and won't interfere with translateX.
 */
#navbar.nav-hidden {
  bottom: -100px; /* Use a value larger than the navbar's height */
}

#navbar ul {
  display: flex;
  max-width: 900px;
  justify-content: center;
  padding: 10px 0;
  list-style: none;
  margin: 0 auto;
  width: 100%;
}

#navbar li {
  flex: 1;
  text-align: center;
}

#navbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #28a745;
  font-size: 12px;
  padding: 8px;
  transition: color 0.2s;
}

#navbar a.active {
  color: #28a745;
  font-weight: 500;
}

#navbar a i {
  font-size: 14px;
  margin-bottom: 5px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  padding: 10px;
  height: 35px;
  width: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

/* --- Media Queries for Desktop --- */
@media (min-width: 900px) {
  #navbar {
    top: -4px;
    bottom: auto;
    left: auto;
    right: 0px;
    transform: none;
    max-width: 400px;
    background-color: transparent;
    box-shadow: none;
  }
  
  /* On desktop, the nav bar should always be visible, so no hidden state is needed */
  #navbar.nav-hidden {
    /* Reset the bottom property so the element is not hidden */
    bottom: auto; 
    /* The desktop version will also be fixed at the top, so no need for translateY */
    transform: none; 
  }

  #navbar a span:not(.notification-badge):not(.icon-with-badge) {
    display: none;
  }
}


.icon-badge-wrapper {
  position: relative;
  display: inline-block;
}

.icon-with-badge {
  position: relative;
  display: inline-block;
}

/* Notification badge (already provided by you, kept intact) */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  text-align: center;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.post-box {
  background-color: #fff;
  border: 1px solid white;
  max-width: 600px;
  position: relative;
  align-items: center;
  margin: 0 auto;
  box-shadow: 0 0 10px #ddd;
  padding: 10px 0 20px;
  margin-top: 5px;
}



.post-menu {
  position: relative;
  cursor: pointer;
  margin-left: auto;
}

.toast-message {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
  z-index: 1000;
  max-width: 90%;
  word-wrap: break-word;
  visibility: hidden;
  font-family: 'Poppins', sans-serif;
}

.toast-message.show {
  opacity: 1;
  bottom: 70px;
  visibility: visible;
}

.like-count,
.comment-count {
  color: var(--primary-color);
}

.follow-button {
  color: var(--primary-color);
  cursor: pointer;
  border: none;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-right: 5%;
  margin-top: -10px;
}

.follow-button:hover {
  background-color: #f3f8f1;
  color: #FFFFFF;
}

.follow-button:disabled {
  background-color: #fff;
  cursor: not-allowed;
  color: var(--primary-color);
}

.post-options {
  position: relative;
  display: inline-block;
  
  margin-top: -10px;
}

.post-options-button {
  border: none;
  cursor: pointer;
  background: none;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 0;
}

.post-options-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 10000;
  min-width: 150px;
}

.post-options-menu.show,
.post-options-menu.active {
  display: block;
}

.post-options-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-options-menu li {
  padding: 10px;
  cursor: pointer;
}

.post-options-menu li:hover {
  background-color: #f5f5f5;
}

.post-options-menu button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.post-options-menu button:hover {
  color: #f3f8f1;
}

.buy button {
  background: #28a745;
  padding: 8px;
  color: #fff;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 4px;
  width: 48.1%;
  margin: 1.5px;
  height: 38px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy {
  justify-content: space-between;
}

.buy button:hover {
  background-color: #f3f8f1;
  color: #28a745;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.buy button:disabled {
background: #f1f3f8;
      color: #28a745;
      border: 1px solid #fff;
      box-shadow: 0 0 10px #ddd;
}

.buy button:active {
  transform: scale(0.96);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.report-modal,
.share-modal,
.delete-confirmation-modal,
.modern-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000000;
}

.report-modal-content,
.share-modal-content,
.delete-modal-content {
  background-color: white;
  border-radius: 12px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

.delete-modal-content {
  max-width: 400px;
  background: #f8f9fa;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-modal-header,
.share-modal-header,
.delete-modal-header,
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-modal-header {
  background: #f8f9fa;
}

.report-modal-header h3,
.share-modal-header h3,
.delete-modal-header h3,
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.close-modal,
.close-share-modal,
.close-delete-modal {
  font-size: 24px;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
}

.close-modal:hover,
.close-share-modal:hover,
.close-delete-modal:hover {
  color: #333;
}

.report-modal-body,
.share-modal-body,
.delete-modal-body,
.modal-body {
  padding: 20px;
}

.delete-modal-body {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  text-align: center;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.report-reason {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.report-reason:hover {
  background-color: #f0f0f0;
}

.report-reason input {
  margin-right: 12px;
}

.other-reason-container {
  margin-top: 15px;
}

.other-reason-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
}

.report-modal-footer,
.delete-modal-footer,
.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  gap: 10px;
}

.delete-modal-footer {
  background: #f8f9fa;
}

.report-modal-footer button,
.delete-modal-footer button,
.modal-footer button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-report,
.cancel-delete,
.secondary-button {
  background-color: #f0f0f0;
  color: #333;
}

.cancel-report:hover,
.cancel-delete:hover,
.secondary-button:hover {
  background-color: #e0e0e0;
}

.submit-report {
  background-color: #ff4444;
  color: white;
}

.submit-report:hover {
  background-color: #cc0000;
}

.submit-report:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.share-option:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.share-option i {
  font-size: 24px;
  margin-bottom: 8px;
}

.share-option[data-platform="whatsapp"] i {
  color: #25D366;
}
.share-option[data-platform="facebook"] i {
  color: #1877F2;
}
.share-option[data-platform="twitter"] i {
  color: #1DA1F2;
}
.share-option[data-platform="telegram"] i {
  color: #0088CC;
}

.share-option span {
  font-size: 12px;
  color: #555;
}

.share-link-container {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.share-link-input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-family: inherit;
  background-color: #f9f9f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-link-button {
  padding: 0 15px;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-link-button:hover {
  background-color: #e0e0e0;
}

.copy-link-button i {
  color: #555;
}

.modern-modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modern-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-icon {
  margin-bottom: 16px;
}

.modal-icon svg {
  width: 48px;
  height: 48px;
}

.modal-body p {
  margin: 8px 0;
  color: #333;
  font-size: 16px;
}

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

.danger-button {
  padding: 10px 16px;
  border-radius: 6px;
  background-color: #e74c3c;
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.danger-button:hover {
  background-color: #c0392b;
}

.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.danger-button.loading .button-text {
  display: none;
}

.danger-button.loading .button-loader {
  display: block;
}

.confirm-delete {
  background: #dc3545;
  color: #fff;
  border: none;
}

.confirm-delete:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.media-card img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.action-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
}

.action-button i {
  font-size: 16px;
}

.like-button:hover i {
  color: #e0245e;
}

.reply-button:hover i,
.share-button:hover i {
  color: #f1f3f8;
}






.

.buy:hover {
  background: #f3f8f1;
  transform: translateY(-1px);
}

.buy:active {
  transform: translateY(0);
}

.dark-mode .buy {
  background: linear-gradient(135deg, #3a3b3c, #2d2e2f);
}

.dark-mode .buy:hover {
  background: linear-gradient(135deg, #4a4b4c, #3a3b3c);
}

#messages-badge {
  margin-right: 18px;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .delete-modal-content {
    width: 95%;
  }

  .delete-modal-header h3 {
    font-size: 16px;
  }

  .delete-modal-body {
    font-size: 14px;
    padding: 16px;
  }

  .cancel-delete,
  .confirm-delete {
    font-size: 13px;
    padding: 6px 12px;
  }
}



.user-suggestions-wrapper {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-suggestions-wrapper h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.user-suggestions-row {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px; /* For scrollbar visibility */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar for most browsers */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.user-suggestions-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.user-suggestion-card {
  flex: 0 0 auto;
  width: 150px; /* Adjust as needed */
  text-align: center;
  scroll-snap-align: start;
  background-color: #f0f2f5;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Distribute space */
}

.user-suggestion-card .user-info-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%; /* Ensure link takes full width for text overflow */
}

.user-suggestion-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid #ddd;
}

.user-suggestion-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%; /* Ensure ellipsis works */
}

.user-suggestion-follow-btn {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85em;
  width: 90%;
  margin-top: 5px;
  transition: background-color 0.2s ease;
}

.user-suggestion-follow-btn:hover {
  background-color: #0056b3;
}

.user-suggestion-follow-btn:disabled {
  background-color: #fff;
  cursor: not-allowed;
}

.post-header .follow-button[disabled] {
  background-color: #28a745; /* Green for 'Following' */
  color: #fff;
  cursor: default;
}

@media (min-width: 900px) {
  .main-layout {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
  }

 .sidebar {
  width: 200px;
  height: calc(100vh - 80px);
  position: fixed;
  top: 100px; /* place it under header if needed */
  z-index: 1;
  padding-top: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
}

/* Left sidebar */
.sidebar.left {
  left: 0;
}

/* Right sidebar */
.sidebar.right {
  right: 0;
  
}

.sidebar iframe {
  width: 90%;
  height: 100%;
  border: none;
}

  .feed {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
  }
}
@media (max-width: 899px) {
       .sidebar {
    display: none;
}
  .feed {
    padding: 10px;
  }
}


/*
 * This media query targets screens smaller than 768px.
 * It removes the horizontal padding from the main posts container
 * to allow post images to touch the screen edges on mobile.
 */
@media (max-width: 767px) {
  #posts-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
}

/*
 * This media query targets screens smaller than 768px.
 * It removes the horizontal padding from the main posts container
 * to allow post images to touch the screen edges on mobile.
 */
@media (max-width: 767px) {
  #posts-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /*
   * Keep a consistent horizontal padding for the text content
   * inside the post, but only on the sides.
   */
  .post-header,
  .post-description-text,
  .product-details, /* If this is a separate element */
  .product-title,
  .post-description-text p,
  .buy,
  .post-actions {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Reset the padding for the post container itself to allow media to break out */
  .post {
    padding-left: 0;
    padding-right: 0;
  }

  /*
   * The media-card and its children (image, video)
   * now take up the full width of the #posts-container.
   */
  .media-card,
  .post-video-container {
    border-radius: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
  }

  .post-image {
    width: 100%;
    border-radius: 0; /* Remove rounded corners for edge-to-edge effect */
  }

  /* Apply the same logic to the promoted posts */
  .promoted-post-row {
    padding-left: 10px; /* Add some padding to the container for scrolling */
    padding-right: 10px;
  }
}
/*
 * This media query targets screens smaller than 768px.
 * It removes the horizontal padding from the main posts container
 * to allow post images to touch the screen edges on mobile.
 */
@media (max-width: 767px) {
  #posts-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* ... other rules remain the same ... */

  /*
   * The media-card and its children (image, video)
   * now take up the full width of the #posts-container.
   */
  .media-card,
  .post-video-container {
    border-radius: 0 !important; /* Force no border radius on the container */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
  }

  /* Force no border radius on the image itself */
  .post-image {
    width: 100%;
    border-radius: 0 !important; /* Force no border radius on the image */
  }

  /* Apply the same logic to the promoted posts */
  .promoted-post-row {
    padding-left: 10px; /* Add some padding to the container for scrolling */
    padding-right: 10px;
  }
}

/* Quantity display styling */
.quantity-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.quantity-value {
    font-weight: 600;
    color: #2e7d32;
}

/* For promoted posts quantity */
.promoted-quantity {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.promoted-quantity::before {
    content: '📦';
    font-size: 12px;
}

/* Low stock warning */
.quantity-value[data-quantity="1"],
.quantity-value[data-quantity="2"],
.quantity-value[data-quantity="3"] {
    color: #ff9800;
    font-weight: 700;
}

.promoted-quantity[data-quantity="1"],
.promoted-quantity[data-quantity="2"], 
.promoted-quantity[data-quantity="3"] {
    color: #ff9800;
}

/* Out of stock styling */
.quantity-value[data-quantity="0"] {
    color: #dc3545;
    font-weight: 700;
}

.promoted-quantity[data-quantity="0"] {
    color: #dc3545;
}

.promoted-quantity[data-quantity="0"]::before {
    content: '❌';
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .promoted-quantity {
        font-size: 12px;
    }
    
    .quantity-value {
        font-size: 13px;
    }
}