.tree ul {
    padding-top: 20px; 
    position: relative;
    display: flex;
    justify-content: center;
}

.tree li {
    float: left; 
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 10px 5px 0 5px;
}

/* Connecting lines using pseudo-elements */
.tree li::before, .tree li::after {
    content: '';
    position: absolute; 
    top: 0; 
    right: 50%;
    border-top: 1px solid #ccc;
    width: 50%; 
    height: 20px;
}
.tree li::after {
    right: auto; 
    left: 50%;
    border-left: 1px solid #ccc;
}

/* Remove connectors from single child or edges */
.tree li:only-child::after, .tree li:only-child::before { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 1px solid #ccc; border-radius: 0 5px 0 0; }
.tree li:first-child::after { border-radius: 5px 0 0 0; }

/* Vertical line from parent to child list */
.tree ul ul::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 50%;
    border-left: 1px solid #ccc;
    width: 0; 
    height: 20px;
}

/* Styling the node box */
.node-content {
    border: 1px solid #ccc;
    padding: 10px;
    display: inline-block;
    border-radius: 5px;
    background-color: #fff;
    min-width: 30px;
    transition: all 0.5s;
    max-width: 120px;
}

.node-content:hover {
    background: #eef4ff;
    border: 1px solid #3490dc;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Makes it a circle */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

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

.user-details-card {
    position: absolute;
    top: 110%; /* Shows below the node */
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 100; /* Ensure it stays above tree lines */
    text-align: left;
    font-size: 13px;
}

.user-details-card p {
    margin: 5px 0;
    color: #333;
}

.btn-edit {
    display: block;
    text-align: center;
    background: #3490dc;
    color: white;
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    margin-top: 10px;
}
.btn-edit:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-edit:active {
    transform: translateY(0);
}

.avatar {
  display: block;
  margin-left: auto;
  margin-right: auto ;
}



/* Fix for the very first top-level line */
.tree > ul > li.status-active::before, 
.tree > ul > li.status-active::after {
    border-top: 0 none;
}
/* Level 2 Specific Styling */
.level-2-big .node-content {
    min-height: 100px; /* Wider box */
   
  /*   transform: scale(1.1); Slightly larger overall */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.level-2-big .avatar {
    width: 60px !important;  /* Bigger circle */
    height: 60px !important;
    font-size: 28px !important; /* Bigger letter */
    line-height: 60px;
    margin-bottom: 10px;
}

.level-2-big .name {
    font-size: 16px; /* Larger font */
    font-weight: bold;
    display: block;
}

/* Adjust lines for the bigger nodes */
.level-2-big {
    margin-bottom: 15px;
}

.active-avatar-border {
    outline: 3px solid #3490dc;
    outline-offset: 2px;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.avatar:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.close-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #e0e0e0;
}

/* The actual "X" */
.close-lines {
  position: relative;
  width: 20px;
  height: 20px;
}

.close-lines::before,
.close-lines::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px; /* Thickness of the X */
  background-color: #333;
}

.close-lines::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-lines::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.close-btn {
  position: absolute;
  top: 10px;    /* Distance from the top */
  right: 10px;  /* Distance from the right */
  
  /* Reset default button styles */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.btn-icon-edit {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.2s;
}
.btn-icon-edit:hover {
    color: #007bff; /* Turns blue on hover */
}
.btn-tree-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    color: #ffffff;
    width: 100%; /* Makes buttons uniform width in the card */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Specific Style for Replace Button (Teal/Cyan) */
.btn-replace {
   
    background-color: #fce4ec; /* Very light pink */
    color: #d81b60;           /* Dark pink text */
    border: 1px solid #f8bbd0;
}

.btn-replace:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-replace:active {
    transform: translateY(0);
}

/* Icons inside buttons */
.btn-tree-action i {
    font-size: 14px;
}

/* Ensure the buttons stack nicely if there are multiple */
.card-body hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
} 
.replace-form-container {
    padding: 10px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    animation: fadeIn 0.3s ease;
}

/* Header within the card */
.replace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.back-link {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

.back-link:hover { color: #fe5502; }

.replace-badge {
    background: #e1f5fe;
    color: #0288d1;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Information alert */
.alert-info-mini {
    background: #fff8e1;
    border-left: 3px solid #ffb300;
    padding: 8px;
    font-size: 11px;
    color: #856404;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Custom Form Groups */
.form-group-custom {
    margin-bottom: 12px;
    text-align: left;
}

.form-group-custom label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #444;
    margin-bottom: 4px;
}

.form-group-custom input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color 0.2s;
}

.form-group-custom input:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.1);
}

/* Submit Button */
.btn-confirm-replace {
    width: 100%;
    background: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-confirm-replace:hover {
    background: #218838;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-danger-confirm {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse-red 1.5s infinite;
}

/* Optional pulse effect to draw attention */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.btn-danger-confirm:hover {
    background: #bd2130;
}
.modern-tree-form {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
}

.form-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Label and Input styling */
.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #28a745;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Password section differentiation */
.password-section {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Action Buttons */
.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.btn-cancel-flat {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel-flat:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-save-modern {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}
.add-node-button {
    width: 50px;
    height: 50px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #64748b;
}

.add-node-button:hover {
    border-color: #28a745;
    background: #f0fff4;
    color: #28a745;
    transform: translateY(-2px);
}

.add-node-button i {
    font-size: 20px;
    margin-bottom: 5px;
}

.add-node-button span {
    font-size: 11px;
    font-weight: 700;
}

/* Ensure the empty LI still shows the tree lines */
.empty-slot::before, .empty-slot::after {
    border-top: 2px solid #ccc !important;
}
[x-cloak] { display: none !important; }

[x-cloak] { 
    display: none !important; 
}

/* The Overlay */
.popup-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: 9999; /* Ensure it is above everything */
}

/* The Content Box */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.status-active::before, 
.status-active::after {
    border-top: 2px solid #28a745 !important;
}

/* Vertical line going DOWN from an active node to its children */
.status-active > ul::before {
    border-left: 2px solid #28a745 !important;
}

/* --- Inactive Status (Red) --- */
/* Horizontal lines connecting to this node */
.status-inactive::before, 
.status-inactive::after {
    border-top: 2px solid #dc3545 !important;
}

/* Vertical line going DOWN from an inactive node to its children */
.status-inactive > ul::before {
    border-left: 2px solid #dc3545 !important;
}
html {
    scroll-behavior: smooth;
}

/* Add this if you have a fixed header so the title isn't hidden */
#mlm-section {
    scroll-margin-top: 100px; 
}
.btn-mlm {
    background-color: #fe5502;
    color: #ffffff !important; /* Ensures text stays white */
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none; /* Removes the underline */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(254, 85, 2, 0.2);
    border: none;
}

.btn-mlm:hover {
    background-color: #e64d02;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(254, 85, 2, 0.3);
    text-decoration: none;
    color: #ffffff !important;
}
.tree-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 50px;
    zoom: 0.7; /* Quickly shrinks the tree to fit more content */
}
.btn-action-shared {
        /* Forces both to behave the same way */
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* Height and Width */
        width: 100%;       /* Fills the flex container */
        height: 45px;      /* Fixed height ensures they match perfectly */
        
        /* Reset default styles */
        padding: 0 15px;
        text-decoration: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        white-space: nowrap; /* Keeps text on one line */
        box-sizing: border-box;
    }

    /* Keep your specific colors */
    .btn-replace {
        background-color: #fce4ec; /* Very light pink */
        color: #d81b60;           /* Dark pink text */
        border: 1px solid #f8bbd0;
    }

    .btn-mlm {
        background-color: #007bff;
        color: white;
    }


.tree-wrapper {
    width: 100%;           /* Occupy full width of the content area */
    overflow-x: auto;      /* Add horizontal scrollbar if content overflows */
    overflow-y: auto;   
     /* Prevent vertical scroll if not needed */
     scroll-behavior: smooth;
    white-space: nowrap;   /* Ensure items stay in a single horizontal row */
    padding: 20px;         /* Optional: gives the tree some breathing room */
}

/* Optional: Make the scrollbar look cleaner */
.tree-wrapper::-webkit-scrollbar {
    height: 8px;
}
.tree-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.parent-root-wrapper {
    position: relative;
    padding-bottom: 20px; /* Space for the line */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The vertical thread */
.parent-root-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;          /* Thickness of the thread */
    height: 20px;        /* Height matching the padding */
    background-color: #28a745; /* Match your existing green color */
    transform: translateX(-50%);
}
.readonly {
    pointer-events: none; /* Disables all clicks, hovers, and events */
    cursor: default;      /* Ensures the mouse doesn't turn into a hand/pointer */
    user-select: none;    /* Prevents highlighting text inside the node */
}

 .referral-card {
    font-family: sans-serif;
    max-width: 300px;
}

.referral-card label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.copy-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.copy-input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e0e7ff; /* Light blue/grey border */
    border-radius: 8px;
    background-color: #f8faff;
    font-size: 1rem;
    color: #444;
    outline: none;
}

.copy-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 4px;
    display: flex;
    align-items: center;
}

.hidden {
    display: none;
}
/* Base Button Styling */
.btn-copy {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:active {
    transform: scale(0.98);
}

/* Color Classes */
.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-500:hover {
    background-color: #2563eb;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-green-500:hover {
    background-color: #16a34a;
}

.total-clone {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 500px;
}

.breakdown-container {
    background: #f8fafd;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    list-style: none;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.breakdown-table th {
    text-align: left;
    color: #666;
    font-weight: 400;
    padding-bottom: 12px;
}

.breakdown-table td {
    padding: 10px 0;
    color: #111;
}

.breakdown-table .logic-text {
    color: #555;
    font-style: italic;
    font-family: 'Georgia', serif; /* Simulates the math font in image */
}

.breakdown-table .text-right {
    text-align: right;
    font-weight: 600;
}

.export-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.export-btn {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Optional: Total Price Styling */
.total-price-wrap {
    font-weight: bold;
    font-size: 1.2rem;
    padding-top: 10px;
}


.crown-node-gold {
    position: relative;
}

.crown-node-gold::before {
    content: "";
    position: absolute;
    top: -18px; /* Adjusted for your specific avatar size */
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 16px;
    background-color: #ffd700;
    /* Creating the 3-point crown shape */
    clip-path: polygon(0% 100%, 0% 20%, 20% 50%, 50% 0%, 80% 50%, 100% 20%, 100% 100%);
    z-index: 5;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

/* 2. Responsive Wrapper for the Tree Node */
.node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 200px; /* Limits size on desktop */
    margin: 0 auto;
}

.node-content {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* 3. Avatar Responsiveness */
.avatar {
    width: 60px;   /* Standard size */
    height: 60px;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

/* 4. Details Card (Pop-up) Responsiveness */
.user-details-card {
    position: fixed; /* Better for mobile to avoid jumping */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;      /* Almost full width on mobile */
    max-width: 400px; 
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 8px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .name {
        font-size: 0.85rem;
    }

    .node-actions .btn {
        padding: 4px 8px; /* Smaller buttons on mobile */
    }
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999; /* Just below the details card */
}
 
 .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Change this to the number of lines you want */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    min-height: 3em; /* Optional: Reserves space so 1-line titles don't shrink the box */
}

.product-col {
    display: flex;
}

/* The card itself */
.single-product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Forces card to fill the column height */
    width: 100%;
}

/* Ensure the text area pushes the price to the bottom */
.part-txt {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
 

.main-footer {
    padding-top: 20px !important;
    padding-bottom: 0 !important;
}
.uniform-image {
  width: 300px;  /* Set your desired width */
  height: 200px; /* Set your desired height */
  object-fit: cover; /* Crops the image to fill the box without distortion */
  border-radius: 8px; /* Optional: adds rounded corners */
}

.single-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    max-width: 300px; /* Adjust based on your grid */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.single-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Image Handling */
 

.uniform-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image isn't cropped or stretched */
    display: block;
}

/* Text Content */
.part-txt {
    padding: 0px;
    text-align: center;
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-name a {
    text-decoration: none;
    color: #333;
    text-transform: capitalize;
}

/* Pricing Style */
.price-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.old-price {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
}

.current-price {
    font-size: 1.25rem;
    color: rgb(10 179 156); /* Professional red, or use #000 for ultra-formal */
    font-weight: bold;
    margin: 0;
}

.product-name {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Number of lines to show */
        -webkit-box-orient: vertical;  
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5; /* Adjust based on your font */
        max-height: 4.5em; /* line-height * 3 */
    }

.payment-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #111;
}

/* MAIN ROW */
.payment-methods {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    flex-wrap: nowrap;        /* 🔥 ONE ROW FIX */
    padding-bottom: 8px;
}

/* Hide scrollbar (optional) */
.payment-methods::-webkit-scrollbar {
    display: none;
}

/* ITEM */
.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;            
}

/* ICON CIRCLE */
.icon-wrap {
    width: 56px;
    height: 56px;
    background: #f2f2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ICON IMAGE */
.icon-wrap img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* LABEL */
.payment-item span {
    font-size: 12px;
    color: #444;
    text-align: center;
    white-space: nowrap;
}

/* Desktop */
@media (min-width: 640px) {
    .icon-wrap {
        width: 40px;
        height: 40px;
    }

    .icon-wrap img {
        width: 36px;
        height: 36px;
    }
}

/* Ensure the carousel track allows items to stretch */
.owl-stage {
    display: flex;
}

/* Force the carousel item and the card to take full height */
.owl-item, 
.single-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ensure the text area expands to push the price to the bottom if needed */
.part-txt {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Optional: Keep product names consistent */
.product-name {
    min-height: 3em; /* Adjust based on your font size to fit 2 lines */
}

.related-product-slider .owl-stage {
    display: flex;
    display: -webkit-flex;
}

/* 2. Force every item to take up 100% of the available height */
.related-product-slider .owl-item {
    display: flex;
    flex: 1 0 auto;
}

/* 3. Make the card itself a flex column */
.related-product-slider .single-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff; /* Ensure background fills the space */
}

/* 4. Push the price container to the bottom */
.related-product-slider .part-txt {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This pushes the content below it to the bottom */
}

.related-product-slider .price-container {
    margin-top: auto; /* Aligns prices perfectly at the bottom */
    padding-top: 10px;
}

/* 5. Keep images consistent */
.uniform-image {
    width: 100%;
    height: 200px; /* Set a fixed height for images */
    object-fit: cover; /* Prevents stretching */
}
/* General Banner Styling */
.banner-inner {
    padding: 40px 0; /* Standard padding */
    background-color: #f8f9fa; /* Example background */
    overflow: hidden;
}

.breadcrumb-txt ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.responsive-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    word-wrap: break-word; /* Prevents long names from breaking the layout */
}

/* Mobile Specific Adjustments (Screens smaller than 768px) */
@media (max-width: 767px) {
    .banner-inner {
        padding: 20px 0; /* Reduce padding on mobile */
    }

    .responsive-title {
        font-size: 18px; /* Smaller font for mobile screens */
        text-align: center; /* Optional: centers the title on mobile */
    }

    .breadcrumb-txt {
        max-height: none !important; /* Remove the height restriction to allow wrapping */
    }
}

 
.object-contain {
    -o-object-fit: contain;
    object-fit: contain;
}
.w-fit {
    width: -moz-fit-content;
    width: fit-content;
}
.payments-icon {
        display: flex;
        background-color: #fff !important;
        flex-wrap: initial;       /* Allows icons to wrap on mobile */
        justify-content: center; /* Centers the icons */
        align-items: center;
        gap: 10px;             /* Space between icons */
        padding:0px 1px;
    }

    .payments-icon a {
        display: inline-block; 
    }

    .payments-icon img {
        width: 80px !important;  /* Forces width */
        height: 80px !important; /* Forces height */
        object-fit: scale-down;     /* Ensures logo isn't squished */
    }

    /* Mobile optimization */
    @media (max-width: 480px) {
        .payments-icon {
            gap: 10px;          /* Tighter spacing on small phones */
        }
        .payments-icon img {
            width: 60px !important;  /* Slightly smaller on very small screens if needed */
            height: 60px !important;
        }
    }

    .header .bottom-header {
    padding: 5px 0;
}