/* sellpg_navbar.css */
:root {
  --font-primary:
    "Nunito", sans-serif; /* Assuming Nunito is a desired font, or use a fallback */
  --bg-main: #f5f5f5;
  --text-primary: #2f3a4a;
  --text-dark: #212529;
  --text-muted: #9c9ea4;
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --bg-accent: #ebf7f9; /* Updated footer background color */
  --text-light: #2f3a4a; /* Changed to a darker color for light background */
  --border-light: #e5e7eb;
}

.navbar-sellpg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #f8f9fa;
  box-shadow: none;
  font-family: var(--font-primary);
  position: relative;
  z-index: 10;
  border-top: 5px solid #28a745;
  border-bottom: 1px solid #e5e7eb;
}

.navbar-sellpg .logo-sellpg {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  color: var(--text-dark);
}

.navbar-sellpg .logo-sellpg svg {
  height: 50px;
  width: 50px;
  color: #2f3a4a;
  filter: none;
}
.navbar-sellpg .logo-text-sellpg {
  font-size: 1.75rem;
  font-weight: 900;
  color: #2f3a4a;
  text-shadow: none;
}

.navbar-sellpg .nav-controls-sellpg {
  display: flex;
  gap: 15px;
  align-items: center;
}

.navbar-sellpg .language-btn-sellpg {
  background-color: #ffffff;
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: none;
}

.navbar-sellpg .cart-btn-sellpg {
  background-color: #ffffff;
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: none;
}

.navbar-sellpg .language-btn-sellpg:hover,
.navbar-sellpg .cart-btn-sellpg:hover {
  border-color: #9ca3af;
}

.navbar-sellpg .nav-controls-sellpg .language-btn-sellpg span {
  vertical-align: middle;
}

/* Language Modal Styles */
.language-modal-sellpg {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  overflow: hidden;
}

.language-modal-popup-content-sellpg {
  background-color: var(--bg-main);
  padding: 20px;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  position: relative;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.language-modal-popup-content-sellpg h2 {
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 25px;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.close-language-modal-btn-sellpg {
  color: var(--text-muted);
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

.close-language-modal-btn-sellpg:hover,
.close-language-modal-btn-sellpg:focus {
  color: var(--text-dark);
  text-decoration: none;
}

.language-grid-sellpg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  overflow-y: auto;
  padding: 10px 20px 20px 20px;
  flex-grow: 1;
}

.language-item-sellpg-modal {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  background: var(--bg-main);
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  cursor: pointer;
  text-align: left;
  border: none;
}

.language-item-sellpg-modal:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.language-item-sellpg-modal img {
  /* Flags are hidden in this modal version */
  display: none;
}

.language-item-sellpg-modal .native-lang-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  text-transform: none;
}

.language-item-sellpg-modal .english-lang-name {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-primary);
  text-transform: none;
}

@media (max-width: 768px) {
  .language-grid-sellpg {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
  }
  .language-modal-popup-content-sellpg {
    padding: 15px;
  }
  .language-modal-popup-content-sellpg h2 {
    font-size: 1.5rem;
    margin-top: 15px;
    margin-bottom: 20px;
  }
  .language-item-sellpg-modal {
    padding: 10px;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .language-item-sellpg-modal .native-lang-name,
  .language-item-sellpg-modal .english-lang-name {
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .language-grid-sellpg {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The .btn .btn-outline-dark classes for the Cart button will come from Bootstrap */

/* Pagination Buttons */
.pagination-btn-sellpg {
  padding: 0.75rem 2.8rem; /* Copied from .btn-lg */
  font-size: 1rem; /* Copied from .btn-lg */
  line-height: 1.5; /* Copied from .btn-lg */
  border-radius: 0.3rem; /* Copied from .btn-lg */
  border: 1px solid transparent;
  cursor: pointer;
  margin: 0 0.25rem; /* Basic margin, .mr-2 was 0.5rem for previous */
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.pagination-btn-sellpg--previous {
  margin-right: 0.5rem; /* Specific margin for previous button, like Bootstrap's mr-2 */
}

.pagination-btn-sellpg--active {
  color: #fff; /* White text */
  background-color: #3bb3c3; /* Teal background - matching active tab */
  border-color: #3bb3c3; /* Teal border */
}

.pagination-btn-sellpg--active:hover {
  background-color: #2e8c99; /* Darker teal for hover */
  border-color: #2a818d;
}

.pagination-btn-sellpg--disabled {
  color: #fff; /* White text */
  background-color: #6c757d; /* Bootstrap secondary color (gray) */
  border-color: #6c757d;
  opacity: 0.65; /* Standard Bootstrap disabled opacity */
  cursor: not-allowed;
  pointer-events: none; /* Prevent clicks */
}

/* sellpg_navbar.css - Appended Footer Styles */

.f-info-spacer-sellpg {
  height: 6rem;
  margin-top: 6rem;
  background-color: var(
    --bg-accent
  ); /* Ensures spacer uses the new accent color */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px; /* Adjust based on layout needs */
  /* If you want the wavy clip-path, ensure it's correctly defined for your use case. 
       For simplicity, I'm omitting it here, but you can add it back.
       e.g., clip-path: path('M0 20 Q50 0, 100 20 ... Z'); 
    */
}

.footer-sellpg {
  background-color: var(--bg-accent); /* Or your desired footer background */
  padding: 15px 20px;
  font-size: 14px;
  border-top: 0px solid var(--bg-accent); /* Or a border color like var(--border-light) */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px; /* Adjust as needed */
  font-family: var(--font-primary); /* Ensure font consistency */
}

.footer-top-sellpg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr; /* Adjust as needed */
  gap: 30px;
  padding-top: 50px; /* Adjusted from 100px for a potentially shorter spacer */
  padding-bottom: 10px;
  background-color: var(--bg-accent); /* Match footer background */
}

.footer-top-sellpg h4 {
  margin-bottom: 20px; /* Slightly reduced margin */
  font-size: 1.1rem; /* Slightly reduced size */
  font-weight: 900;
  color: var(
    --text-primary
  ); /* Or var(--text-light) if on dark background - kept as primary for light bg */
  text-transform: uppercase;
  background-color: transparent; /* Ensure no overriding background */
}

.footer-top-text-sellpg {
  background-color: transparent; /* Ensure no overriding background */
  color: var(--text-primary); /* Changed to primary for light background */
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

.footer-top-text-sellpg p {
  margin-bottom: 15px; /* Adjust spacing */
  background-color: transparent; /* Ensure no overriding background */
  color: var(--text-primary); /* Changed to primary for light background */
}

.footer-top-text-sellpg p svg {
  margin-right: 8px; /* Switched to margin-right for consistency */
  vertical-align: middle;
  background-color: transparent; /* Ensure no overriding background */
  fill: var(--text-primary); /* Changed to primary for light background */
}

.footer-bottom-sellpg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light); /* Light divider for light background */
  background-color: var(--bg-accent); /* Match footer background */
  padding-top: 10px;
  color: var(--text-primary); /* Changed to primary for light background */
}

.footer-bottom-sellpg div {
  background-color: transparent; /* Ensure no overriding background */
  padding: 5px 0px; /* Removed horizontal padding to rely on parent padding */
}

.footer-sellpg a {
  text-decoration: none;
  color: var(--text-primary); /* Changed to primary for light background */
  margin-left: 15px;
  background-color: transparent; /* Ensure no overriding background */
}

.footer-sellpg a:hover {
  text-decoration: underline;
}

#copyright-sellpg {
  background-color: transparent; /* Ensure no overriding background */
  color: var(--text-primary); /* Changed to primary for light background */
  padding: 5px 0px; /* Removed horizontal padding */
  display: inline-block;
}

/* Offcanvas Cart Styles */
/* Removing all offcanvas styles that were previously added here */

/* Cart Modal Styles */
.cart-modal-sellpg {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1050; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Changed from auto */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  backdrop-filter: blur(5px);
  font-family: var(--font-primary, sans-serif);

  /* Added for right alignment */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cart-modal-content-sellpg {
  background-color: #fefefe;
  padding: 20px;
  border: none;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  border-radius: 16px;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);

  /* Right alignment and height */
  margin: 0;
  margin-right: 2rem;
  height: 90vh;
}

.cart-modal-header-sellpg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.cart-modal-title-sellpg {
  font-size: 1.25rem; /* UPDATED - Was 1.5rem */
  font-weight: bold;
  color: var(--text-dark, #212529);
  margin: 0;
}

.close-cart-modal-btn-sellpg {
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-muted, #9c9ea4);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-cart-modal-btn-sellpg:hover {
  color: var(--text-dark, #212529);
}

.cart-modal-body-sellpg {
  padding: 20px; /* Added padding */
  text-align: center;
  flex-grow: 1; /* Allows body to fill space if header/footer are small */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Aligns content to the top instead of centering vertically */
  align-items: stretch; /* Stretches children to fill width */
}

.cart-modal-body-sellpg p {
  font-size: 1rem;
  color: var(--text-muted, #9c9ea4);
  margin-bottom: 25px;
}

.start-order-btn-sellpg {
  background-color: #3bb3c3; /* Teal color from theme */
  border-color: #3bb3c3;
  color: #fff;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 0.3rem;
  cursor: pointer;
  margin-bottom: 20px; /* Space for the swirl */
}

.start-order-btn-sellpg:hover {
  background-color: #2e8c99; /* Darker teal */
  border-color: #2a818d;
}

.cart-swirl-sellpg {
  display: block; /* Or inline-block, depending on layout */
  margin: 20px auto; /* Center the swirl */
  max-width: 150px; /* Adjust size as needed */
}

/* New Cart Item Styles */
.cart-items-list-sellpg {
  max-height: 300px; /* Adjust as needed, for scrollability */
  overflow-y: auto;
  margin-bottom: 20px;
  width: 100%; /* Ensure it takes full width of its container */
}

.cart-item-sellpg {
  display: flex; /* Use flexbox for layout */
  justify-content: space-between; /* Push left and right columns apart */
  align-items: flex-start; /* Align items to the top */
  margin-bottom: 15px; /* Increased margin slightly for better separation */
  padding-bottom: 15px; /* Increased padding slightly */
  border-bottom: 1px solid #eee;
  width: 100%; /* Ensure it takes full width */
}

.cart-item-left-column-sellpg {
  display: flex; /* Use flex for image and info */
  align-items: flex-start; /* Align image and info block to the top */
  margin-right: 10px; /* Space between left column and quantity */
}

.cart-item-image-placeholder-sellpg {
  width: 50px; /* Adjust size as needed */
  height: 50px;
  background-color: #e0e0e0; /* Grey color */
  border-radius: 4px;
  margin-right: 10px; /* Space between placeholder and item info */
  flex-shrink: 0; /* Prevent shrinking */
}

.cart-item-info-sellpg {
  /* Was .cart-item-details-sellpg */
  display: flex;
  flex-direction: column; /* Stack name, price, remove button */
  justify-content: flex-start; /* UPDATED - Was center, to pack items to the top */
  flex-grow: 1;
}

.cart-item-info-sellpg h6 {
  /* Was .cart-item-details-sellpg h6 */
  font-size: 0.9rem;
  margin-bottom: 2px; /* UPDATED - Was 4px */
  font-weight: 600; /* Ensure name is bold as in image */
  line-height: 1.1; /* UPDATED - Was 1.2 */
  text-align: left; /* Explicitly align left */
}

.cart-item-info-sellpg .cart-item-price-sellpg {
  /* Was .cart-item-price-sellpg */
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 3px; /* UPDATED - Was 6px */
  font-weight: normal; /* Ensure price is not bold, unlike image name */
  text-align: left; /* Explicitly align left */
  margin-left: 0; /* Ensure no unintended left margin */
  line-height: 1.1; /* ADDED */
}

.cart-item-info-sellpg .cart-item-remove-btn-sellpg {
  /* Was .cart-item-remove-btn-sellpg */
  font-size: 0.75rem;
  color: #e74c3c;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-align: left; /* Ensure remove button text is left-aligned */
  line-height: 1.1; /* ADDED */
}

.cart-item-right-column-sellpg {
  display: flex;
  align-items: center; /* Vertically center quantity input if desired */
  /* This column will naturally be on the right due to justify-content: space-between on .cart-item-sellpg */
}

.cart-item-quantity-sellpg input {
  width: 50px;
  text-align: center;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  /* margin-left: 10px; REMOVED - right column handles alignment */
}

.cart-summary-sellpg {
  padding-top: 15px;
  border-top: 1px solid #ddd; /* Separator for summary */
}

.cart-subtotal-sellpg {
  display: flex;
  justify-content: space-between;
  font-size: 1rem; /* UPDATED - Was 1.1rem */
  font-weight: bold;
  margin-bottom: 15px;
}

.checkout-btn-sellpg {
  background-color: #3bb3c3; /* Teal color matching the theme */
  border-color: #3bb3c3;
  color: white;
  padding: 8px 12px; /* UPDATED - Was 10px 15px */
  font-size: 0.9rem; /* UPDATED - Was 1rem */
  font-weight: 600;
}

.checkout-btn-sellpg:hover {
  background-color: #329ea9; /* Darker teal on hover */
  border-color: #329ea9;
}

.cart-empty-message-sellpg {
  text-align: center;
  color: #777;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Ensure the start order button and swirl are hidden by default if the cart summary is present */
.cart-modal-body-sellpg .start-order-btn-sellpg,
.cart-modal-body-sellpg .cart-swirl-sellpg {
  display: none; /* Initially hidden, JS will show if cart is empty */
}

/* General Responsive Styles */

/* Tablets and Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar-sellpg {
    padding: 1rem 1.5rem; /* Reduce padding slightly */
  }
  .navbar-sellpg .logo-sellpg {
    font-size: 1.4rem; /* Slightly smaller logo text */
    margin-left: 0; /* Adjusted for hidden logo text */
  }
  .navbar-sellpg .logo-sellpg svg {
    height: 60px; /* Adjusted to match language button */
  }
  .navbar-sellpg .logo-sellpg .logo-text-sellpg {
    /* ADDED */
    display: none; /* Hide logo text */
  }
  .hero-section h1 {
    font-size: 3rem; /* Reduce hero heading */
  }
  .hero-graphic {
    font-size: 12rem; /* Reduce background graphic */
  }
  .custom-card-container {
    padding-left: 30px;
    padding-right: 30px;
    /* Adjust grid for slightly smaller cards if needed, but minmax might handle it */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }
  .footer-top-sellpg {
    grid-template-columns: 1.5fr repeat(4, 1fr); /* Adjust footer columns */
    gap: 20px;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .navbar-sellpg {
    padding: 0.8rem 1rem;
  }
  .navbar-sellpg .logo-sellpg {
    font-size: 1.2rem;
    margin-left: 0; /* Adjusted for hidden logo text */
  }
  .navbar-sellpg .logo-sellpg svg {
    height: 50px;
  }
  .navbar-sellpg .language-btn-sellpg,
  .navbar-sellpg .cart-btn-sellpg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .hero-section {
    padding: 120px 0; /* Reduce hero padding */
    margin-bottom: 80px;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-graphic {
    font-size: 8rem;
    transform: translate(
      -50%,
      -60%
    ); /* May need to adjust vertical centering */
  }
  .nav-tabs .nav-item {
    margin-right: 15px; /* Reduce space between tabs */
  }
  .nav-tabs .nav-link {
    padding: 0.6rem 1.5rem; /* Smaller tabs */
    font-size: 0.9rem;
  }
  .custom-card-container {
    grid-template-columns: 1fr; /* Stack cards in a single column */
    padding-left: 20px;
    padding-right: 20px;
    gap: 15px;
  }
  .card {
    max-width: 100%; /* Allow cards to fill column */
  }
  /* Bootstrap col-md-4 and col-md-8 for card image/body should stack automatically */
  /* If not, we can force it: .card .row > [class*="col-"] { flex-basis: 100%; max-width: 100%; } */

  .footer-top-sellpg {
    grid-template-columns: 1fr 1fr; /* 2 columns for footer */
    gap: 25px;
    padding-top: 30px;
  }
  .footer-top-text-sellpg {
    text-align: center; /* Center footer text for 2-column layout */
  }
  .footer-top-text-sellpg p svg {
    display: inline-block; /* Icon next to text again */
    margin: 0 5px 0 0;
  }
  .footer-bottom-sellpg {
    flex-direction: column; /* Stack copyright and links */
    text-align: center;
  }
  .footer-sellpg a {
    margin: 5px 10px;
  }
  .cart-modal-sellpg {
    width: 90%; /* Wider cart modal on tablets */
  }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .navbar-sellpg {
    padding: 0.5rem 1rem; /* Adjusted padding */
    justify-content: space-between; /* ADDED - Ensure controls are pushed to the right */
  }

  .navbar-sellpg .logo-sellpg {
    margin-left: 0; /* FROM ORIGINAL - keep, good for when text is hidden */
  }

  .navbar-sellpg .logo-sellpg .logo-text-sellpg {
    display: none; /* Hide logo text */
  }

  .navbar-sellpg .nav-controls-sellpg {
    gap: 10px; /* Reduce gap between buttons */
  }

  .navbar-sellpg .language-btn-sellpg,
  .navbar-sellpg .cart-btn-sellpg {
    padding: 0.5rem 0.8rem; /* Smaller padding for smaller buttons */
    font-size: 0.9rem; /* Smaller font size */
  }

  .hero-section {
    padding: 80px 0; /* Further reduce hero padding */
    margin-bottom: 60px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-graphic {
    font-size: 6rem;
    transform: translate(-50%, -65%); /* Adjust centering */
  }
  .nav-tabs {
    flex-direction: column; /* Stack tabs vertically */
    align-items: stretch; /* Make tabs take full width */
  }
  .nav-tabs .nav-item {
    margin-right: 0; /* Remove right margin when stacked */
    margin-bottom: 10px;
    width: 100%; /* Make nav items take full width */
  }
  .nav-tabs .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .custom-card-container {
    padding-left: 0px;
    padding-right: 0px;
    grid-template-columns: minmax(0, 1fr); /* Single column, full width */
    gap: 10px;
  }
  .card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.5rem !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word;
    border: 1px solid #a0d8e0; /* Ensure border is visible */
  }
  .card .card-body {
    padding: 0.5rem !important;
  }
  .card .row > .col-md-4,
  .card .row > .col-md-8 {
    flex-basis: 100% !important; /* Force stack */
    max-width: 100% !important; /* Force stack */
    width: 100% !important; /* Ensure full width when stacked */
    padding-left: 5px; /* Minimal horizontal padding within card columns */
    padding-right: 5px;
  }
  .card .form-inline {
    display: flex; /* Use flex for better control of children */
    flex-direction: column; /* Stack input and button */
    align-items: stretch; /* Make children take full width */
    width: 100%;
  }
  .card .form-inline .form-control {
    width: 100% !important; /* Override Bootstrap's inline style if any */
    margin-right: 0; /* Remove right margin */
    margin-bottom: 0.5rem; /* Space between input and button */
  }
  .card .form-inline .btn {
    width: 100%;
    margin-right: 0; /* Ensure no side margin */
    margin-bottom: 0.5rem; /* Consistent bottom margin */
  }
  .card .form-inline .form-control:last-child,
  .card .form-inline .btn:last-child {
    margin-bottom: 0;
  }

  .card .card-img, /* General rule for card images */
    .card img {
    /* More specific if needed */
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
  }

  .promo-banner-sellpg {
    font-size: 0.85rem;
    padding: 8px 0;
  }
  .footer-top-sellpg {
    grid-template-columns: 1fr; /* Single column footer */
    gap: 20px;
  }
  .footer-top-text-sellpg {
    text-align: left; /* Align text to left for single column stack */
  }
  .footer-top-text-sellpg p svg {
    display: inline-block;
    margin: 0 5px 0 0;
  }
  .cart-modal-sellpg {
    width: 95%;
    padding: 15px;
  }
  .cart-modal-title-sellpg {
    font-size: 1.1rem;
  }
  .cart-item-image-placeholder-sellpg {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
  .cart-item-info-sellpg h6 {
    font-size: 0.8rem;
  }
  .cart-item-info-sellpg .cart-item-price-sellpg,
  .cart-item-info-sellpg .cart-item-remove-btn-sellpg {
    font-size: 0.7rem;
  }
  .cart-item-quantity-sellpg input {
    width: 40px;
    font-size: 0.8rem;
  }
  .subtotal-amount-sellpg {
    font-size: 0.9rem;
  }
  .checkout-btn-sellpg {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  /* === ADDITIONS/MODIFICATIONS FOR USER REQUEST === */
  .navbar-sellpg .logo-sellpg .logo-text-sellpg {
    display: none; /* Hide logo text */
  }

  /* .navbar-sellpg .logo-sellpg { */
  /* margin-left: 0; /* Adjust logo margin if text is hidden */
  /* } */

  .navbar-sellpg .nav-controls-sellpg {
    gap: 10px; /* Reduce gap between buttons */
  }

  .navbar-sellpg .language-btn-sellpg,
  .navbar-sellpg .cart-btn-sellpg {
    padding: 0.5rem 0.8rem; /* Smaller padding for smaller buttons */
    font-size: 0.9rem; /* Smaller font size */
  }
  /* Ensure the language grid in the modal is single column on very small screens */
  .language-grid-sellpg {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Extra Small Phones (max-width: 360px) */
@media (max-width: 360px) {
  .custom-card-container {
    margin-left: -7px; /* Reduce outer horizontal space */
    margin-right: -7px; /* Reduce outer horizontal space */
    /* Existing styles like padding-left/right: 0px from 480px media query will still apply if not overridden */
  }
}

/* Cart Modal adjustments for small screens */
@media (max-width: 480px) {
  .cart-modal-sellpg {
    /* Revert to centered for small screens */
    display: block;
    overflow: auto; /* Enable scroll if needed */
  }

  .cart-modal-content-sellpg {
    margin: 15% auto;
    height: auto;
    max-height: 80vh;
  }
}
