html, body {
  overflow-x: hidden;
}
/* Custom CSS overrides and additions for Shop Page */
/* Comic Neue Font Faces (local only, no fallback) */
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-Regular.woff2') format('woff2'),
       url('fonts/ComicNeue-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-Bold.woff2') format('woff2'),
       url('fonts/ComicNeue-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-Italic.woff2') format('woff2'),
       url('fonts/ComicNeue-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-BoldItalic.woff2') format('woff2'),
       url('fonts/ComicNeue-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

body, .modal-content, .offcanvas, .main-header, .main-nav, .category-btn, .bundle-card, .business-status-container, .site-footer, .buy-now-btn, .copy-button, .status-details, .status-indicator, .header-logo, .theme-toggle-switch, .offcanvas-nav-link, .offcanvas-tab-btn, .promotions-bar, .bundle-card-content, .bundle-network, .bundle-size, .bundle-price, .categories-bar, .product-title, .product-info, .product-price, .buy-product-btn, .product-card, .product-img, .product-overlay, .shop-search-heading, .search-input, .alert, .page-loader-message, .page-loader-spinner, .footer-emoji {
  font-family: 'Comic Neue' !important;
}


/* --- Root Variables (Duplicated for shop-styles.css) --- */
:root {
    --text: #1f2937; /* Dark gray for light mode text */
    --card: #ffffff; /* White for light mode cards */
    --input: #f3f4f6; /* Light gray for input background */
    --border: #e5e7eb; /* Light gray for borders */
    --button: #3b82f6; /* Blue for primary button */
    --button-text: #ffffff; /* White for button text */
    --bg-body: #f9fafb; /* Light background for body */
    --success-color: #10b981; /* Tailwind's emerald-500 */
    --error-color: #ef4444; /* Tailwind's red-500 */
    /* Custom offcanvas colors for glass-morph */
    --offcanvas-glass-bg: rgba(30, 30, 30, 0.2); /* Dark transparent for light mode */
    --offcanvas-glass-border: rgba(255, 255, 255, 0.1); /* Light border for glass */
    --offcanvas-glass-text: #f8f9fa; /* Light text for dark offcanvas */
    /* Product card glass-morph */
    --product-card-glass-bg: rgba(255, 255, 255, 0.8); /* More opaque white for light mode */
    --product-card-glass-border: rgba(255, 255, 255, 0.5);
    --product-overlay-bg: rgba(255, 255, 255, 0.7); /* Slightly more transparent overlay */
    --product-overlay-text: #1f2937; /* Dark text for overlay in light mode */
}

/* --- Dark Mode Variables (Duplicated for shop-styles.css) --- */
body.dark {
    --text: #e5e7eb; /* Light gray for dark mode text */
    --card: #1f2937; /* Dark gray for dark mode cards */
    --input: #374151; /* Darker gray for input background */
    --border: #4b5563; /* Medium gray for borders */
    --button: #60a5fa; /* Lighter blue for primary button */
    --button-text: #ffffff; /* White for button text */
    --bg-body: #111827; /* Dark background for body */
    --success-color: #34d399; /* Lighter emerald */
    --error-color: #f87171; /* Lighter red */
    --offcanvas-glass-bg: rgba(15, 23, 42, 0.4); /* Even darker transparent for dark mode */
    --offcanvas-glass-border: rgba(255, 255, 255, 0.05); /* Even lighter border */
    --offcanvas-glass-text: #cbd5e1; /* Lighter text for dark offcanvas */
    --product-card-glass-bg: rgba(31, 41, 55, 0.9); /* More opaque dark for dark mode */
    --product-card-glass-border: rgba(75, 85, 99, 0.5);
    --product-overlay-bg: rgba(31, 41, 55, 0.9); /* More opaque dark for overlay in dark mode */
    --product-overlay-text: #e5e7eb; /* Light text for overlay in dark mode */
}

/* --- Base Body Styles (Duplicated for shop-styles.css) --- */
body {
    font-family: 'Comic Sans MS' !important;
    background: #fffde4 !important;
    color: var(--text);
    margin: 0;
    padding-top: 4rem; /* Space for fixed header */
    transition: none !important;
    min-height: 100vh; /* Ensure body takes full height */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Needed for ::before pseudo-element */
    z-index: 0; /* Ensure it's behind content for overlay */
}

body.dark {
    background: #18181c !important;
}

/* Background Overlay for image opacity (Duplicated for shop-styles.css) */
body::before {
    /* Remove or make overlay more subtle since gradient is now used */
    background-color: transparent !important;
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind content */
}

body.overflow-hidden {
    overflow: hidden; /* Prevent scrolling when offcanvas/modal is open */
}

/* --- Header Styles (Duplicated for shop-styles.css) --- */
.main-header {
    background: #18181c !important;
    color: #f8fafc !important;
    border-bottom: 2px solid #e11d48;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 4rem;
    width: 100%;
    z-index: 100;
}

/* Remove header scrolled shadow */
.main-header.scrolled {
  box-shadow: none !important;
}

.header-logo {
    height: 32px; /* Adjust logo size */
    width: auto;
}

/* Hamburger Menu Toggle Button (Duplicated for shop-styles.css) */
.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10; /* Ensure it's above other header elements if needed */
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Animation for 'is-active' state (X icon) (Duplicated for shop-styles.css) */
.menu-toggle-btn.is-active .hamburger-icon {
    background-color: transparent; /* Hide middle bar */
}

.menu-toggle-btn.is-active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle-btn.is-active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- Offcanvas Menu Custom Styles (Duplicated for shop-styles.css) --- */
.offcanvas {
    font-family: 'Comic Sans MS' !important;
    /* Glass-morph effect */
    background-color: var(--offcanvas-glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--offcanvas-glass-border) !important;
    color: var(--offcanvas-glass-text) !important; /* Ensure light text */

    border-radius: 1.5rem !important; /* More rounded edges */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important; /* Prominent shadow */
    max-width: 320px !important; /* Fixed max width for desktop */
    height: calc(100vh - 2rem) !important; /* Full height minus top/bottom margin */
    margin: 1rem !important; /* Add some margin from edges on desktop */
    top: 1rem !important; /* Align with top margin */
    bottom: 1rem !important; /* Align with bottom margin */
}
/* Specific adjustment for offcanvas-start to ensure margin is on the right (Duplicated for shop-styles.css) */
.offcanvas-start {
    left: 0;
    right: auto;
    transform: translateX(-100%); /* Default Bootstrap for start */
    border-top-right-radius: 1.5rem !important;
    border-bottom-right-radius: 1.5rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
/* Override Bootstrap's specific transform for offcanvas-start when showing (Duplicated for shop-styles.css) */
.offcanvas-start.showing, .offcanvas-start.show:not(.hiding) {
    transform: translateX(1rem) !important; /* Adjust to account for margin */
}
.offcanvas-start.hiding {
    transform: translateX(-100%) !important;
}


.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1.5rem 1rem 1.5rem; /* Adjust padding */
}

.offcanvas-title {
    color: var(--offcanvas-glass-text) !important;
    font-weight: 600;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make Bootstrap close icon white */
}

.offcanvas-body {
    padding: 1.5rem; /* Consistent padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-align content */
    justify-content: flex-start; /* Align content to top within body */
    gap: 1.5rem;
}

.offcanvas-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px; /* Limit width */
    margin-bottom: 1.5rem;
    align-items: flex-start; /* Left-align nav links */
}

.offcanvas-nav-link {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--offcanvas-glass-text); /* Use offcanvas text color */
    text-align: left; /* Left-align text */
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    width: 100%; /* Take full width of parent */
}
.offcanvas-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.offcanvas-nav-link.active {
    background-color: var(--button);
    color: var(--button-text);
}

.offcanvas-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Left-align tabs */
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.offcanvas-tab-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background for tabs */
    color: var(--offcanvas-glass-text); /* Use offcanvas text color */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.offcanvas-tab-btn.active {
    background-color: var(--button);
    color: var(--button-text);
    border-color: var(--button);
}
.offcanvas-tab-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Theme Toggle (Header specific styling) (Duplicated for shop-styles.css) */
.header-theme-toggle {
    position: relative; /* Needed for slider's absolute positioning */
    display: inline-block; /* Ensure it takes up space in flex container */
    margin-right: 1rem; /* Space between toggle and hamburger */
    flex-shrink: 0; /* Prevent it from shrinking */
}
/* Fix for the slider appearance (Duplicated for shop-styles.css) */
.theme-toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}
.theme-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
  transition: background 0.4s, box-shadow 0.3s;
  border-radius: 32px;
  box-shadow: 0 2px 8px #e11d4840;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
}
.theme-toggle-switch .icon {
  font-size: 1.1em;
  z-index: 2;
  transition: color 0.3s, opacity 0.3s;
  pointer-events: none;
}
.theme-toggle-switch .icon.sun {
  color: #ffb300;
  opacity: 1;
}
.theme-toggle-switch .icon.moon {
  color: #6c63ff;
  opacity: 0.7;
}
.theme-toggle-switch .slider:before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px #e11d4840;
  transition: transform 0.4s, background 0.4s;
  z-index: 1;
  transform: translateX(0);
}
.theme-toggle-switch input:checked + .slider {
  background: linear-gradient(90deg, #23232b 0%, #e11d48 100%);
}
.theme-toggle-switch input:checked + .slider:before {
  transform: translateX(28px);
  background: #23232b;
}
.theme-toggle-switch input:checked + .slider .icon.sun {
  opacity: 0.5;
}
.theme-toggle-switch input:checked + .slider .icon.moon {
  opacity: 1;
}


/* General button styles (Duplicated for shop-styles.css) */
button {
    padding: 0.9rem 1.5rem;
    background: var(--button);
    color: var(--button-text);
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem; /* Tailwind's rounded-lg */
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, opacity 0.3s, transform 0.2s;
}
button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Loading Overlay (Duplicated for shop-styles.css) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Higher than modals */
    transition: opacity 0.3s ease;
    opacity: 1;
}
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Allow clicks through when hidden */
}

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

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


/* Modal styles (Duplicated for shop-styles.css) */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Darker overlay for modals */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0; /* Start hidden for transition */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks through when not active */
}
.modal.modal-active {
    opacity: 1;
    pointer-events: auto; /* Enable clicks when active */
}
.modal.hidden {
    display: none; /* Fallback for initial state or if JS fails */
}

.modal-content {
    background: var(--card);
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    min-width: 320px;
    max-width: 90vw;
    position: relative;
    text-align: center;
    transform: translateY(20px); /* Start slightly off for slide-in */
    transition: transform 0.3s ease;
}
.modal.modal-active .modal-content {
    transform: translateY(0); /* Slide into place */
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.modal-content input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--input);
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.modal-content button {
    width: 100%;
    margin-top: 1rem;
}
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    color: #9ca3af; /* Tailwind's gray-400 */
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.close:hover {
    color: var(--error-color);
}
.receipt {
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
    color: var(--text);
}
.receipt p {
    margin: 0.5rem 0;
}
.receipt strong {
    color: var(--text);
}

/* Phone Number Validation Feedback (Duplicated for shop-styles.css) */
.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Copy Button for Payment Number (Duplicated for shop-styles.css) */
.payment-number-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-bottom: 0.5rem; /* Adjust margin */
}

.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem; /* Smaller padding */
    font-size: 0.8rem; /* Smaller font size */
    background-color: #4a90e2; /* A shade of blue */
    color: white;
    border-radius: 0.25rem; /* Slightly rounded */
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    width: auto; /* Override 100% width */
    margin-left: 0.5rem; /* Space from number */
    margin-top: 0 !important; /* Override button margin-top */
    flex-shrink: 0; /* Prevent shrinking on small screens */
    position: relative; /* For icon positioning */
    overflow: hidden; /* Hide overflowing icon during transition */
}
.copy-button:hover {
    background-color: #357ABD;
    opacity: 0.9;
}

.copy-icon-svg, .tick-icon-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1); /* Start at scale 1 */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.copy-icon-svg.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.tick-icon-svg {
    opacity: 0; /* Start hidden */
    transform: translate(-50%, -50%) scale(0); /* Start scaled down */
    color: var(--success-color); /* Green for tick */
}

.tick-icon-svg:not(.hidden) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Business Status (Duplicated for shop-styles.css) */
.business-status-container {
    position: fixed;
    left: 1.5rem; /* 24px */
    bottom: 1.5rem; /* 24px */
    padding: 0.5rem 1.25rem; /* Adjusted padding */
    border-radius: 9999px; /* Full pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 999;
    display: flex;
    flex-direction: column; /* Allow details to stack */
    align-items: flex-start; /* Align content to left */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: var(--card);
    color: var(--text);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100px; /* Ensure it doesn't collapse too much */
    max-width: 250px; /* Limit width */
    overflow: hidden; /* Hide overflowing text when collapsed */
    border: 3px solid #e11d48 !important;
    border-radius: 1rem !important;
}

.business-status-container.expanded {
    border-radius: 0.75rem; /* Rounded rectangle when expanded */
    padding: 1rem 1.25rem; /* More padding when expanded */
    min-width: 180px;
    align-items: center; /* Center content when expanded */
}

.status-indicator {
    display: flex;
    align-items: center;
    width: 100%; /* Take full width to center dot and text */
    justify-content: center; /* Center the dot and text */
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    display: inline-block;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.business-status-container.open .status-dot {
    background: var(--success-color);
}
.business-status-container.closed .status-dot {
    background: var(--error-color);
}

.status-details {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280; /* Tailwind gray-500 */
    text-align: center;
    width: 100%;
}


/* WhatsApp Button (Duplicated for shop-styles.css) */
#helpButton {
    position: fixed;
    bottom: 1.5rem; /* 24px */
    right: 1.5rem; /* 24px */
    background-color: #25d366; /* WhatsApp green */
    padding: 0.875rem; /* 14px */
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 1000;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#helpButton:hover {
    transform: scale(1.1);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Shop Product Card Specifics */
#shop-products-container > div { /* Target the grid container within main */
    padding-top: 0; /* Adjust padding as main has it */
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.product-card {
    position: relative; /* Needed for overlay positioning */
    background: rgba(255,249,196,0.78); /* More yellowish glass for light mode */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--product-card-glass-border); /* Subtle border */
    border-radius: 0.75rem; /* Tailwind's rounded-xl */
    overflow: hidden; /* Ensures image corners are rounded */
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 140px;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    height: 260px;
    border: 3px solid transparent !important;
    border-top: 3px solid #e11d48 !important;
    border-radius: 1.25rem !important;
    transition: box-shadow 0.25s cubic-bezier(.4,1.6,.4,1), transform 0.22s cubic-bezier(.4,1.6,.4,1);
}
body.dark .product-card {
  background: rgba(31,41,55,0.82); /* For dark mode, keep var(--product-card-glass-bg) if set, but increase transparency */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-card {
    border-bottom-width: 3px !important;
    border-left-width: 3px !important;
    border-right-width: 3px !important;
}

.product-card:hover {
  box-shadow: 0 8px 32px 0 #22c55e55, 0 2px 8px #22c55e22;
  transform: translateY(-7px);
}

.product-img {
    width: 100%;
    max-width: 100%;
    height: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
    background: #222;
    display: block;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--product-overlay-bg); /* Semi-transparent overlay */
    backdrop-filter: blur(3px); /* Lighter blur for overlay */
    -webkit-backdrop-filter: blur(3px);
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border at top of overlay */
    border-radius: 0 0 0.75rem 0.75rem; /* Rounded bottom corners */
    text-align: center;
    color: var(--product-overlay-text); /* Text color for overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-title {
    font-size: 1.1rem; /* Smaller title for overlay */
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: inherit; /* Inherit color from overlay */
}

.product-description {
    display: none;
}
.product-info {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  flex: 1 0 auto;
  padding-bottom: 48px; /* Add space for the buy button */
}
.product-title, .product-price {
  text-align: center;
  width: 100%;
}
.product-price {
  color: #22c55e !important;
  font-weight: 700;
  text-shadow: 0 1px 4px #16a34a33;
}
.buy-product-btn {
  width: 100%;
  background: #e11d48 !important;
  color: #fff !important;
  border-radius: 0 0 0.75rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 36px;
  height: 36px;
  transition: background 0.3s, color 0.3s;
}
button, .buy-product-btn {
  transition: background-color 0.3s, opacity 0.3s;
}
.buy-product-btn:hover {
  /* Remove opacity, background, color, and text-shadow changes on hover */
  opacity: 1 !important;
  background: #e11d48 !important;
  color: #fff !important;
  font-weight: 700;
  text-shadow: none !important;
}
.buy-product-btn .cart-icon, .buy-product-btn:hover .cart-icon {
  display: none !important;
}
@media (min-width: 600px) {
  .product-card {
    width: 180px;
    height: 300px;
  }
  .product-img {
    height: 150px;
    max-height: 150px;
  }
}
@media (min-width: 900px) {
  .product-card {
    width: 210px;
    height: 340px;
  }
  .product-img {
    height: 180px;
    max-height: 180px;
  }
}

/* Increase product card height for all cards */
.product-card {
  height: 320px;
  min-height: 320px;
}
@media (min-width: 600px) {
  .product-card {
    height: 370px;
    min-height: 370px;
  }
}
@media (min-width: 900px) {
  .product-card {
    height: 410px;
    min-height: 410px;
  }
}

/* Greyish side border for product cards in light mode */
body.light-mode .product-card, html[data-theme='light'] .product-card {
  border-left: 2px solid #e5e7eb;
  border-right: 2px solid #e5e7eb;
}

/* Fix: Stronger selector for black side border in light mode */
body:not(.dark) .product-card {
  border-left: 2px solid #000 !important;
  border-right: 2px solid #000 !important;
  border-bottom: 3px solid #b2d200 !important;
  border-image: none;
}

@media (prefers-color-scheme: light) {
  .product-card {
    border-left: 2px solid #e5e7eb;
    border-right: 2px solid #e5e7eb;
  }
}

.product-share-buttons {
  margin-bottom: 0.7em !important;
}

/* Mobile Adjustments (Duplicated for shop-styles.css) */
@media (max-width: 768px) { /* md breakpoint for Tailwind */
    body {
        padding-top: 4rem; /* Adjust padding for fixed header on mobile */
    }
    .main-header {
        height: 4rem;
    }
    .header-logo {
        height: 28px;
    }
    .menu-toggle-btn {
        width: 36px;
        height: 36px;
    }
    .hamburger-icon,
    .hamburger-icon::before,
    .hamburger-icon::after {
        width: 20px;
    }
    .hamburger-icon::before {
        top: -7px;
    }
    .hamburger-icon::after {
        top: 7px;
    }

    /* Bootstrap Offcanvas Mobile Adjustments */
    .offcanvas {
        max-width: 90vw !important; /* Wider on mobile */
        margin: 0 !important; /* No margin on mobile */
        border-radius: 0 !important; /* No rounded corners on mobile for full edge-to-edge */
        top: 0 !important; /* Full height on mobile */
        bottom: 0 !important;
        height: 100vh !important;
    }
    .offcanvas-start.showing, .offcanvas-start.show:not(.hiding) {
        transform: translateX(0) !important; /* No margin offset on mobile */
    }

    .offcanvas-body {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .offcanvas-header .btn-close {
        font-size: 1.2rem; /* Smaller close button */
    }
    .offcanvas-title {
        font-size: 1.25rem; /* Smaller title */
    }
    .offcanvas-nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
    }
    .offcanvas-tabs {
        gap: 0.5rem;
    }
    .offcanvas-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    /* Theme toggle in header is already small and green */

    #shop-products-container > div { /* Adjust for shop page on mobile */
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Two cards per line on smaller screens */
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    .product-card {
        max-width: 100%; /* Allow cards to fill column width */
    }
    .product-img {
        height: 150px; /* Slightly smaller image on mobile */
    }
    .product-title {
        font-size: 1rem;
    }
    .product-description {
        font-size: 0.75rem;
    }
    .product-price {
        font-size: 0.9rem;
    }
    .add-to-cart-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .business-status-container {
        left: 1rem;
        bottom: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .business-status-container.expanded {
        padding: 0.8rem 1rem;
    }
    .status-dot {
        width: 10px;
        height: 10px;
    }
    #helpButton {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
}

/* Modals are shared, so their mobile styles are already in place */
#number-modal-title{
  margin-top:20px;
}

/* Page Loader Styles */
.page-loader-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  color: #222;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.5s ease;
}
body.dark .page-loader-overlay {
  background: #18181b;
  color: #fff;
}
.page-loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.page-loader-message {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-loader-message .loader-heading {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.page-loader-message .loader-subtext {
  font-size: 1.1rem;
  font-weight: normal;
}
.page-loader-spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #ff1744;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.site-footer {
  border-top: 2px solid #e11d48;
  background: linear-gradient(0deg, #18181b 0%, #23232b 100%);
  color: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  padding: 1.5rem 1.5rem 90px 1.5rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-bottom: 4rem; /* Increased for extra space at the bottom */
}
.site-footer h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: #ff1744;
  text-shadow: 0 2px 8px #fff2, 0 1px 0 #e11d48;
}
.site-footer p {
  margin-bottom: 0.25rem;
  color: #e0e0e0;
  font-size: 1.08rem;
  text-shadow: 0 1px 4px #0008;
}
.site-footer .text-sm {
  font-size: 1.08rem;
  color: #fff;
  margin-top: 0.5rem;
  text-shadow: 0 1px 4px #0008;
}
.site-footer a {
  color: #ff1744 !important;
  font-weight: bold;
  text-decoration: none !important;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff !important;
  background: #e11d48;
  border-radius: 0.25rem;
  padding: 0 0.25em;
}
.site-footer .footer-emoji {
  font-size: 1.2em;
  color: #ffeb3b;
  filter: drop-shadow(0 1px 2px #e11d48cc);
  margin: 0 0.1em;
}
@media (max-width: 600px) {
  .site-footer {
    padding: 1rem 0.5rem 90px 0.5rem;
    border-radius: 1rem 1rem 0 0;
  }
  .site-footer h2 {
    font-size: 1.3rem;
  }
}
body.dark .site-footer {
  background: linear-gradient(0deg, #23232b 0%, #18181b 100%);
  color: #e0e0e0;
}
body.dark .site-footer h2 {
  color: #ff8fa3;
  text-shadow: 0 2px 8px #0006, 0 1px 0 #e11d48;
}
body.dark .site-footer p,
body.dark .site-footer .text-sm {
  color: #e0e0e0;
  text-shadow: 0 1px 4px #000a;
}
body.dark .site-footer a {
  color: #ff8fa3 !important;
}
body.dark .site-footer a:hover {
  color: #fff !important;
  background: #e11d48;
}
body.dark .site-footer .footer-emoji {
  color: #ffe066;
  filter: drop-shadow(0 1px 2px #e11d48cc);
}
.main-header .main-nav-link.active {
    color: #e11d48 !important;
    font-weight: 700;
    position: relative;
}
.main-header .main-nav-link.active::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 4px;
    background: #e11d48;
    border-radius: 2px;
    box-shadow: 0 2px 8px #e11d4840;
}

.shop-status-alert {
  background: #f87171 !important; /* Light mode: soft red */
  color: #18181c !important;
  border: none !important;
  box-shadow: 0 2px 8px #e11d4840;
}
body.dark .shop-status-alert, html.dark .shop-status-alert {
  background: rgba(225, 29, 72, 0.85) !important; /* Dark mode: deep red, semi-transparent */
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px #e11d48cc;
}

.shop-search-filter {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 32px auto;
    display: flex;
    align-items: center;
}
.shop-search-filter .search-input {
    width: 100%;
    padding: 0.55rem 0.9rem;
    border-top: 3px solid #e11d48;
    border-bottom: 3px solid #e11d48;
    border-left: none;
    border-right: none;
    border-radius: 0.7rem;
    font-size: 1rem;
    font-style: italic;
    color: #e11d48;
    background: #fff;
    box-shadow: 0 2px 12px #e11d4810;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0;
}
.shop-search-filter .search-input:focus {
    border-color: #e11d48;
    box-shadow: 0 2px 16px #e11d4820;
}

body.dark .shop-search-filter .search-input, html.dark .shop-search-filter .search-input {
  background: #23232b;
  color: #fff;
  border-color: #e11d48;
}
body.dark .shop-search-filter .search-icon, html.dark .shop-search-filter .search-icon {
  color: #e11d48;
  border-right: 2px solid #e11d48;
  background: transparent;
}
.shop-search-filter .search-input::placeholder {
  color: #23232b;
  opacity: 0.7;
  font-size: 0.93rem;
  font-style: italic;
  transition: opacity 0.25s;
}
.shop-search-filter .search-input::-webkit-input-placeholder {
  color: #23232b;
  opacity: 0.7;
  font-size: 0.93rem;
  font-style: italic;
  transition: opacity 0.25s;
}
body.dark .shop-search-filter .search-input::placeholder, html.dark .shop-search-filter .search-input::placeholder {
  color: #d1d5db;
  opacity: 0.6;
  font-style: italic;
}
body.dark .shop-search-filter .search-input::-webkit-input-placeholder, html.dark .shop-search-filter .search-input::-webkit-input-placeholder {
  color: #d1d5db;
  opacity: 0.6;
  font-style: italic;
}
.shop-search-filter .search-input:focus::placeholder,
.shop-search-filter .search-input:focus::-webkit-input-placeholder {
  opacity: 0;
  transition: opacity 0.25s;
}
h1.text-3xl {
  border: 3px solid #e11d48;
  border-radius: 1rem;
  background: #ffe4e6;
  color: #e11d48;
  padding: 0.5rem 1.5rem;
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 800;
  box-shadow: 0 2px 8px #e11d4815;
  margin-left: auto;
  margin-right: auto;
}
.theme-bg-border {
  background: #fff0f3;
  border: 2.5px solid #e11d48;
  color: #e11d48;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
body.dark .theme-bg-border, html.dark .theme-bg-border {
  background: #2a0036;
  border-color: #e11d48;
  color: #fff0f3;
}
#shop-products-container {
  text-align: center;
}
body.dark h1.text-3xl, html.dark h1.text-3xl {
  background: rgba(225, 29, 72, 0.15);
  color: #fff;
  border-color: #e11d48;
}

@media (max-width: 600px) {
  .shop-search-filter {
    max-width: 75vw;
  }
}

.theme-bottom-border {
  border-bottom: 4.5px solid #e11d48;
  color: #e11d48;
  background: none;
  border-radius: 0;
  transition: border-color 0.2s, color 0.2s;
}
body.dark .theme-bottom-border, html.dark .theme-bottom-border {
  border-bottom: 4.5px solid #fff0f3;
  color: #fff0f3;
}
.theme-bottom-border {
  border-bottom: 4.5px solid #e11d48;
  border-top: 1.2px solid #d1d5db;
  border-left: 1.2px solid #d1d5db;
  border-right: 1.2px solid #d1d5db;
  color: #e11d48;
  background: none;
  border-radius: 0.7em;
  transition: border-color 0.2s, color 0.2s;
}
body.dark .theme-bottom-border, html.dark .theme-bottom-border {
  border-bottom: 4.5px solid #fff0f3;
  border-top: 1.2px solid #444;
  border-left: 1.2px solid #444;
  border-right: 1.2px solid #444;
  color: #fff0f3;
}

/* Category Bar - Reduce gap and button size */
.categories-bar {
  gap: 0.25rem !important; /* Minimal gap between buttons */
}
.category-btn {
  padding: 0.4rem 1rem !important; /* Smaller padding */
  font-size: 0.95rem !important; /* Slightly smaller text */
  min-width: 72px;
  min-height: 32px;
}
@media (max-width: 600px) {
  .category-btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.92rem !important;
    min-width: 60px;
    min-height: 28px;
  }
}

/* Unselectable text for non-interactive elements */
.main-header, .main-nav, .main-nav-link, .categories-bar, .category-btn, .bundle-card, .bundle-card-content, .bundle-network, .bundle-size, .bundle-price, .site-footer, .promotions-bar, .business-status-container, .status-indicator, .status-details, .header-logo, .theme-toggle-switch, .offcanvas-nav-link, .offcanvas-tab-btn, .product-card, .product-title, .product-info, .product-price, .product-img, .product-overlay, .shop-search-heading, .alert, .footer-emoji, h1, h2, h3, h4, h5, h6, label, .shop-status-alert, .shop-search-heading, .status-dot, .status-text, .status-details, .page-loader-spinner {
  user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  -moz-user-select: none !important;
}

/* Allow selection for interactive elements */
input, textarea, button, a, .form-control, .search-input, .buy-product-btn, .copy-button {
  user-select: text !important;
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  -moz-user-select: text !important;
}

.help-instructions-btn {
  background: #fffde4;
  color: #b91c1c;
  font-weight: 500;
  padding: 0.55em 1.1em;
  border-radius: 0.6em;
  font-size: 1em;
  box-shadow: 0 2px 8px #e11d4822;
  cursor: pointer;
  border: 2.5px solid #e11d48;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
body.dark .help-instructions-btn {
  background: #e11d48;
  color: #fff;
  border: 2.5px solid #111827;
}
.help-instructions-btn:focus {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
}

.whatsapp-link {
  color: #25d366;
  font-weight: 500;
  font-size: 1em;
  text-decoration: none;
  transition: color 0.18s, text-decoration 0.18s;
}
.whatsapp-link:hover, .whatsapp-link:focus {
  text-decoration: underline;
  color: #128c7e;
}
body.dark .whatsapp-link {
  color: #25d366;
}