:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #2E294E;
    --hov-primary: #2E294E;
    --soft-primary: rgba(233, 233, 240, 1);
    --secondary: #8f97ab;
    --soft-secondary: rgba(143, 151, 171, 0.15);
    --success: #0abb75;
    --soft-success: rgba(10, 187, 117, 0.15);
    --info: #25bcf1;
    --soft-info: rgba(37, 188, 241, 0.15);
    --warning: #ffc519;
    --soft-warning: rgba(255, 197, 25, 0.15);
    --danger: #ef486a;
    --soft-danger: rgba(239, 72, 106, 0.15);
    --light: #f2f3f8;
    --dark: #111723;
    --soft-dark: rgba(42, 50, 66, 0.15);
    --gunmetal-blue: #2D4059;
    --dodger-blue: #D1DBE5;
    --preorder-orange: #FF6002;
    --preorder-primary: #f77b0b;
    --preorder-primary: #FF6002;
    --preorder-green: #32A687;
    --preorder-yellow: #FFB503;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;



    --algrano-primary-color: #00796b; 
    --algrano-secondary-color: #4db6ac; 
    --algrano-accent-color: #ff8f00; 
    --algrano-text-color: #37474f; 
    --algrano-text-muted-color: #78909c; 
    --algrano-bg-light-green: #e8f5e9; 
    --algrano-border-color: #d0d9e0; 
    --algrano-white-color: #ffffff;
    --algrano-success-color: #2e7d32; 
    --algrano-light-gray-bg: #f8f9fa; 
    --algrano-gallery-bg-color: #fdfdfd; 
    --algrano-tag-bg-color: var(--algrano-white-color); 
    --algrano-tag-text-color: var(--algrano-primary-color); 
    --algrano-tag-border-color: var(--algrano-primary-color); 
    --algrano-font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}



.signup-container-wrapper {
    max-width: 1100px;
    width: 100%;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    overflow: hidden;
}

.signup-image-col {
    padding: 0;
    position: relative;
}

.signup-image-col .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-box {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: var(--secondary-base);
    color: #fff;
    padding: 1.5rem;
    border-radius: 0.375rem;
}

.testimonial-box .fa-quote-left { 
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.testimonial-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-box .author {
    font-size: 0.8rem;
    font-weight: 600;
}

.signup-form-col {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.account-type-selector {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.account-type-option {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--soft-light);
    border-radius: 0.375rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.account-type-option:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--soft-primary);
}

.account-type-option.active {
    border-color: var(--primary);
    background-color: var(--soft-primary);
}
.account-type-option.active .icon-wrapper i {
    color: var(--primary);
}
.account-type-option.active .type-name { 
    color: var(--primary);
}

.account-type-option .icon-wrapper {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-base); 
}

.account-type-option .type-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dark);
}

.form-control {
    border-radius: 0.375rem;
    border: 1px solid var(--soft-light);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--soft-primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-label {
    font-size: 0.875rem;
    color: var(--secondary);
}

.btn-signup {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-signup:hover {
    background-color: var(--hov-primary);
    border-color: var(--hov-primary);
    color: #fff;
}

.terms-text {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin-top: 1rem;
}
.terms-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.terms-text a:hover {
    text-decoration: underline;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}
.login-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.login-link a:hover {
    text-decoration: underline;
}

.account-form-content {
    
}

.loading-indicator {
    display: none;
    text-align: center;
    margin-top: 10px;
    color: var(--secondary);
}
.loading-indicator .fa-spinner {
    margin-right: 8px; 
}


@media (max-width: 991.98px) {
    .signup-image-col {
        min-height: 300px; 
        max-height: 40vh;
    }
    .testimonial-box {
        position: static; 
        margin: 1rem;
        bottom: auto; left: auto; right: auto;
    }
    .signup-form-col {
        padding: 2rem 1.5rem;
    }
}
@media (max-width: 767.98px) {
    .account-type-selector {
        flex-direction: column;
    }
        .testimonial-box {
        font-size: 0.9rem;
    }
        .testimonial-box p {
        font-size: 0.8rem;
    }
}

.top-navbar .dropdown, 
.top-navbar .dropleft, 
.top-navbar .dropright, 
.top-navbar .dropup {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-custom-interactive {
    border-color: var(--primary);
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-custom-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-custom-interactive:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-custom-interactive:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.5);                                                 /* إذا لم يكن --bs-primary-rgb معرفًا، يمكنك استخدام rgba(230, 46, 4, 0.5) بناءً على لون --primary الخاص بك */
}

.login-hover::after {
    content: '';
    height: 5px;
    width: 100%;
    background-color: var(--secondary-base);    
}


/* تأكد من وضع هذا الكود في ملف CSS الخاص بك بعد تضمين Bootstrap */

/* التعديلات الخاصة بك لجعل .container يأخذ مساحة أكبر جدًا */
@media (min-width: 576px) {
    .container { max-width: 100% !important; } /* يمكنك ترك هذا كما هو للشاشات الصغيرة نسبياً */
}
@media (min-width: 768px) {
    .container { max-width: 99% !important; } /* زيادة قليلة */
}
@media (min-width: 992px) {
    .container { max-width: 99% !important; } /* زيادة معقولة */
}
@media (min-width: 1200px) {
    /* زيادة أكبر هنا للشاشات الكبيرة */
    .container { max-width: 98% !important; } /* كان 1140px أو 1180px في الأمثلة السابقة */
}
@media (min-width: 1400px) {
    .container { max-width: 98% !important; } /* كان 1320px أو 1360px */
}
/* @media (min-width: 1600px) {
    .container { max-width: 1800px !important; } 
}
@media (min-width: 1900px) {
    .container { max-width: 2200px !important; } 
}
@media (min-width: 2400px) {
    .container { max-width: 2600px !important; }
}
@media (min-width: 2800px) { 
    .container { max-width: 3000px !important; }
} */

/* أو إذا كنت تفضل أن تأخذ الحاوية دائمًا نسبة مئوية كبيرة من الشاشة
   على الشاشات الكبيرة جدًا، مع عدم وجود حد أقصى فعلي أو حد أقصى كبير جدًا: */
/*
@media (min-width: 1900px) {
    .container {
        width: 95%;  // اجعلها تأخذ 95% من عرض الشاشة
        max-width: none !important; // لإلغاء أي حد أقصى مسبق إذا أردت أن تكون دائمًا 95%
        // أو
        // max-width: 3200px !important; // إذا كنت لا تزال تريد حدًا أقصى نهائيًا ولكنه كبير جدًا
    }
}
*/


.search-input-box>input {
    border-radius: 5px !important;
}

.shadow-out,
.hov-shadow-out:hover {
    z-index: 2 !important;
    box-shadow: 0px 5px 10px rgb(0 0 0 / 16%) !important;
    /* box-shadow: 0px 2px 30px -7px rgb(0 0 0 / 30%) !important; */
}


/* Banner Styles */
.banner-container {
    /* Container for the banner */
}

.banner-link {
    overflow: hidden;
    border-radius: 0.375rem; /* Standard rounding, can be adjusted */
    /* Shadow using --dark-rgb variable for the color base */
    box-shadow: 0 0.125rem 0.375rem rgba(var(--dark-rgb), 0.1);
    display: block;
    position: relative;
}

.banner-img {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.35s ease-in-out;
    height: 160px; /* Default height for smallest screens */
}

/* --- Responsive Heights (Fixed Pixel Breakpoints) --- */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .banner-img {
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .banner-img {
        height: 200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .banner-img {
        height: 240px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .banner-img {
        height: 300px;
    }
}

/* Extra Extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .banner-img {
        height: 320px;
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay background using --dark-rgb variable for the color base */
    background-color: rgba(var(--dark-rgb), 0.15);
    opacity: 0; /* Hidden by default, shown on hover */
    transition: opacity 0.35s ease-in-out;
    pointer-events: none; /* Allows clicks to go through to the link if overlay has no interactive content */
}

.banner-link:hover .banner-img {
    transform: scale(1.03); /* Subtle zoom effect on image hover */
}

.banner-link:hover .banner-overlay {
    opacity: 1; /* Show overlay on hover */
}

/* Optional: Styles for text if you uncomment it in the HTML */
.banner-text-content {
    /* If you add text, you might want the overlay to be always visible or more opaque */
    pointer-events: auto; /* Make text interactive if needed */
}

.banner-text-content h2,
.banner-text-content p {
    /* Ensure text color contrasts with the overlay/image. Example using --white: */
    /* color: var(--white); */ /* Apply this via inline style or a dedicated class like .text-banner-primary */
    
    /* Text shadow using --dark-rgb variable for the color base */
    text-shadow: 1px 1px 3px rgba(var(--dark-rgb), 0.5);
}

.shop-header-nav {
        /* The py-2 and shadow-sm from Bootstrap handle basic styling.
        You could add a border-top or border-bottom here if desired,
        e.g., border-bottom: 1px solid var(--bs-border-color, #dee2e6); */
    }

.shop-nav-menu {
    border-bottom: 1px solid var(--bs-border-color, #e9ecef); /* Soft line under the nav */
    /* For spacing between items if they wrap or if you prefer margins over padding for separation: */
    /* gap: 0.5rem; Use if items are less likely to wrap extensively and you want space managed by parent */
}

.shop-nav-item {
    display: inline-block;
    padding: 0.8rem 1rem; /* Vertical and horizontal padding */
    margin: 0 0.25rem; /* Small margin for separation, especially on wrap */
    font-size: 0.875rem; /* Approx 14px. Adjust as needed. Original fs-13 is ~13px */
    font-weight: 500; /* Medium weight - less stark than fw-700 for all items */
    color: var(--black); /* Using your --gray variable for inactive items */
    text-decoration: none;
    text-align: center;
    border-bottom: 3px solid transparent; /* Space for active/hover indicator */
    transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 0.75; /* Slightly reduced opacity for non-active items */
    position: relative;
    margin-bottom: -1px; /* Aligns the item's border with the parent's border-bottom */
}

.shop-nav-item:hover,
.shop-nav-item:focus { /* Added focus for accessibility */
    color: var(--primary);
    opacity: 1;
    text-decoration: none;
    border-bottom-color: var(--primary);
}

.shop-nav-item.active {
    color: var(--primary);
    font-weight: 600; /* Slightly bolder for active item */
    border-bottom-color: var(--primary);
    opacity: 1;
}

/* Responsive adjustments */
@media (min-width: 768px) { /* md breakpoint */
    .shop-nav-item {
        font-size: 0.95rem; /* Slightly larger on medium screens and up */
        padding: 0.8rem 1.25rem; /* More horizontal padding */
        margin: 0 0.5rem;
    }
    .shop-nav-menu {
      /* If using gap, you might increase it here:
      gap: 1rem; */
    }
}










        /* body {
            font-family: var(--algrano-font-family-sans-serif);
            background-color: var(--algrano-light-gray-bg); 
            color: var(--algrano-text-color);
            font-size: 15px; 
            line-height: 1.55;
        } */

        /* General Algrano Link Style */
        .algrano-link {
            color: var(--algrano-primary-color);
            text-decoration: none;
        }
        .algrano-link:hover {
            color: var(--algrano-secondary-color);
        }

        .algrano-product-page-container {
            margin-top: 1.5rem; 
            margin-bottom: 2.5rem;
        }

        .algrano-breadcrumb { /* Custom class for breadcrumb container */
            font-size: 0.875rem;
            margin-bottom: 1rem; 
        }
        .algrano-breadcrumb .breadcrumb-item a {
            color: var(--algrano-text-muted-color);
            font-weight: 500;
        }
        .algrano-breadcrumb .breadcrumb-item.active {
            color: var(--algrano-text-color);
        }
        .algrano-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            color: var(--algrano-text-muted-color);
        }

        /* Image Gallery Styles */
        .algrano-image-gallery-wrapper {
            background-color: var(--algrano-white-color); 
            padding: 1rem;
            border-radius: 0.5rem; 
            border: 1px solid var(--algrano-border-color);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
        }
        .algrano-main-product-image-container {
            margin-bottom: 1rem; 
        }
        .algrano-main-product-image {
            width: 100%;
            height: auto; 
            max-height: 450px; 
            object-fit: cover; 
            border: 1px solid var(--algrano-border-color);
            border-radius: 0.375rem; 
            background-color: var(--algrano-light-gray-bg); 
        }
        .algrano-thumbnail-grid .col-md-3,
        .algrano-thumbnail-grid .col-4 { 
             padding-left: 0.25rem; 
             padding-right: 0.25rem; 
             margin-bottom: 0.5rem; 
        }
        .algrano-thumbnail-grid img.algrano-product-thumbnail { 
            border: 2px solid transparent; 
            border-radius: 0.25rem;
            cursor: pointer;
            transition: border-color 0.2s ease-in-out, opacity 0.2s ease-in-out, transform 0.2s ease;
            opacity: 0.8; 
            width: 100%; 
            aspect-ratio: 1/1; 
            object-fit: cover;
        }
        .algrano-thumbnail-grid img.algrano-product-thumbnail:hover {
            opacity: 1;
            transform: scale(1.03); 
            border-color: var(--algrano-secondary-color);
        }
        .algrano-thumbnail-grid img.algrano-product-thumbnail.active {
            border-color: var(--algrano-primary-color);
            opacity: 1;
            box-shadow: 0 0 0 2px var(--algrano-primary-color); 
        }

        /* Product Info Card Styles */
        .algrano-product-info-card, .algrano-product-actions-card {
            background-color: var(--algrano-white-color);
            padding: 1.5rem; 
            border-radius: 0.5rem;
            border: 1px solid var(--algrano-border-color);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 1.5rem; 
        }
        .algrano-product-actions-card { 
             padding-top: 1.25rem;
             padding-bottom: 1.25rem;
        }


        .algrano-product-title {
            font-size: 1.5rem; 
            font-weight: 600; 
            color: var(--algrano-text-color);
            margin-bottom: 0.25rem; 
            line-height: 1.3;
        }
        .algrano-product-short-description {
            font-size: 0.9rem; 
            color: var(--algrano-text-muted-color);
            margin-bottom: 0.75rem;
            white-space: wrap;
            word-spacing: wrap;
            text-wrap: wrap;
            overflow-wrap: break-word; /* This is the key property */
        }
        .algrano-product-tags .algrano-badge { /* Custom class for tags */
            background-color: var(--algrano-tag-bg-color);
            color: var(--algrano-tag-text-color); 
            font-weight: 500;
            padding: 0.3em 0.65em; 
            border: 1px solid var(--algrano-tag-border-color); 
            margin-right: 0.4rem;
            margin-bottom: 0.4rem;
            border-radius: 1rem; 
            font-size: 0.75rem; 
        }
        /* Specific tag colors using modifier classes */
        .algrano-product-tags .algrano-badge-arabica { --algrano-tag-text-color: #78909c; --algrano-tag-border-color: #cfd8dc; }
        .algrano-product-tags .algrano-badge-berry { --algrano-tag-text-color: #c62828; --algrano-tag-border-color: #ef9a9a; }
        .algrano-product-tags .algrano-badge-chocolate { --algrano-tag-text-color: #4e342e; --algrano-tag-border-color: #a1887f; }
        .algrano-product-tags .algrano-badge-cane-sugar { --algrano-tag-text-color: #ef6c00; --algrano-tag-border-color: #ffcc80; }


        .algrano-seller-info {
            padding-top: 0.75rem; 
        }
        .algrano-seller-logo-placeholder {
            width: 32px;
            height: 32px;
            background-color: var(--algrano-light-gray-bg);
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: var(--algrano-text-muted-color);
            border: 1px solid var(--algrano-border-color);
            margin-right: 0.75rem;
        }
        .algrano-seller-name {
            font-weight: 600;
            color: var(--algrano-text-color);
            font-size: 0.95rem; 
        }
        .algrano-seller-subtext {
            font-size: 0.8rem; 
            color: var(--algrano-success-color); 
            font-weight: 500;
        }
        .algrano-seller-subtext i {
            color: var(--algrano-success-color); 
        }

        .algrano-key-info-box {
            background-color: var(--algrano-white-color); 
            border: 2px solid var(--algrano-primary-color); 
            border-radius: 0.375rem;
            padding: 0.75rem 1rem; 
            margin-bottom: 1rem; 
        }
        .algrano-key-info-box .algrano-price {
            font-size: 1.25rem; 
            font-weight: 600; 
            color: var(--algrano-text-color); 
        }
        .algrano-key-info-box .algrano-info-text {
            font-size: 0.9rem; 
            color: var(--algrano-text-color); 
        }
        .algrano-key-info-box .algrano-info-text strong {
            font-weight: 600;
        }
        
        .algrano-delivery-insurance-info {
            font-size: 0.85rem;
            color: var(--algrano-text-muted-color);
            padding-left: 0.25rem; 
        }
        .algrano-delivery-insurance-info i {
            margin-right: 0.5rem;
            font-size: 1.1em; 
            color: var(--algrano-text-muted-color);
        }
        .algrano-delivery-insurance-info .algrano-link { /* Use general link class */
            font-size: 0.85rem;
            font-weight: 500;
        }

        .algrano-auth-cta-link-section { 
            text-align: center; 
            margin-top: 1.25rem; 
            font-size: 0.95rem;
        }
        .algrano-auth-cta-link-section .algrano-link { /* Use general link class */
            font-weight: 600;
        }

        .algrano-product-details-accordion { margin-top: 1.5rem; } 
        .algrano-product-details-accordion .accordion-item {
            border: 1px solid var(--algrano-border-color); margin-bottom: -1px; 
        }
        .algrano-product-details-accordion .accordion-item:first-of-type {
            border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem;
        }
        .algrano-product-details-accordion .accordion-item:last-of-type {
            border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; margin-bottom: 0;
        }
        .algrano-product-details-accordion .accordion-button { /* Keep Bootstrap's accordion-button for functionality */
            font-weight: 600; font-size: 0.95rem; color: var(--algrano-text-color);
            background-color: var(--algrano-white-color); box-shadow: none; padding: 0.9rem 1.1rem; 
        }
        .algrano-product-details-accordion .accordion-button:not(.collapsed) {
            color: var(--algrano-primary-color); background-color: var(--algrano-light-gray-bg); 
        }
        .algrano-product-details-accordion .accordion-button:focus {
            box-shadow: 0 0 0 0.2rem rgba(0, 121, 107, 0.25); 
        }
        .algrano-product-details-accordion .accordion-body {
            padding: 0.75rem 1.1rem; font-size: 0.875rem;
        }

        .algrano-info-list { list-style: none; padding-left: 0; }
        .algrano-info-list li {
            display: flex; justify-content: space-between; padding: 0.5rem 0; 
            border-bottom: 1px solid #eef2f2; font-size: 0.875rem; 
        }
        .algrano-info-list li:last-child { border-bottom: none; }
        .algrano-info-list .algrano-label { color: var(--algrano-text-muted-color); margin-right: 0.5rem; }
        .algrano-info-list .algrano-value { font-weight: 500; color: var(--algrano-text-color); text-align: right; }
        .algrano-info-list .algrano-value .algrano-sub-value {
            display: block; font-size: 0.75rem; font-weight: normal; color: var(--algrano-text-muted-color);
        }

        .algrano-payment-options-list li { font-size: 0.875rem; }
        .algrano-payment-options-list i {
            color: var(--algrano-primary-color); font-size: 1.4rem; margin-right: 0.75rem !important; 
        }
        .algrano-payment-options-list strong { font-weight: 500; }

        .algrano-action-buttons .algrano-btn-outline-custom { /* Custom button class */
            color: var(--algrano-primary-color); border-color: var(--algrano-primary-color);
            font-weight: 500; font-size: 0.9rem; padding: 0.5rem 1rem; 
        }
        .algrano-action-buttons .algrano-btn-outline-custom:hover {
            background-color: var(--algrano-primary-color); color: var(--algrano-white-color);
        }
        
        .gemini-feature-btn, .gemini-output { display: none !important; }


        @media (max-width: 767.98px) { 
            .algrano-product-title { font-size: 1.3rem; }
            .algrano-key-info-box .algrano-price { font-size: 1.15rem; }
            .algrano-auth-cta-link-section { text-align: center; }
            .algrano-product-info-card, .algrano-product-actions-card { padding: 1rem; }
            .algrano-action-buttons { flex-direction: column; }
            .algrano-action-buttons .btn { width: 100%; } /* Keep Bootstrap .btn for button base */
            .algrano-action-buttons .btn + .btn { margin-top: 0.5rem; }
            .algrano-thumbnail-grid .col-4 { width: 33.3333%; }
        }
        @media (min-width: 768px) and (max-width: 991.98px) { 
            .algrano-product-details-accordion .accordion-button { font-size: 0.9rem; padding: 0.8rem 1rem; }
            .algrano-info-list li, .algrano-payment-options-list li { font-size: 0.85rem; }
            .algrano-thumbnail-grid .col-md-3 { width: 25%; }
        }
         @media (min-width: 992px) { 
            .algrano-thumbnail-grid .col-lg-3 { width: 25%; }
        }

   .product-grid-gallery {
        /* max-width: 1200px; /* You can set a max-width for the gallery container */
        /* margin: auto; */ /* If using max-width */
    }

    .gallery-grid-item {
        overflow: hidden;
        background-color: #f0f0f0; /* Background for when image is loading or fails */
        border-radius: 0.25rem; /* Optional: if you want rounded corners */
        /* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */ /* Optional: subtle shadow */
        width: 100%;
        height: 100%; /* Crucial for object-fit to work as expected within Bootstrap cols */
        min-height: 200px; /* Minimum height for items, adjust as needed */
    }

    .gallery-grid-item.gallery-grid-item-large {
        min-height: 300px; /* Larger min-height for the prominent image */
    }


    .gallery-grid-item img.lazyload:not([src*="placeholder.jpg"]) { /* Style after real image starts loading */
        width: 100%;
        height: 100%;
        object-fit: cover; /* This makes the image cover the area, cropping if needed */
        display: block;
    }
    .gallery-grid-item img[src*="placeholder.jpg"] { /* Style for the initial placeholder */
        width: 100%;
        height: 100%;
        object-fit: contain; /* Show the whole placeholder */
        opacity: 0.5;
    }


    /* Ensure Bootstrap columns correctly dictate the height for gallery items */
    .product-grid-gallery .row > [class*="col-"] {
        display: flex; /* Makes column a flex container */
        flex-direction: column; /* Children stack vertically */
    }

    .product-grid-gallery .row > [class*="col-"] > .gallery-grid-item {
        flex-grow: 1; /* Allows gallery item to grow and fill the column's height */
    }


    /* Fallback placeholder item styling (if you uncomment the HTML for it) */
    .gallery-grid-item.placeholder-item {
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        /* font-style: italic; */
        /* content: "No Image"; You can't use content on a div directly like this,
        but you could add a child span or use a background image. */
    }

    /* Small screen adjustments */
    @media (max-width: 767.98px) { /* Bootstrap's md breakpoint */
        .gallery-grid-item,
        .gallery-grid-item.gallery-grid-item-large {
            min-height: 200px; /* Consistent minimum height on smaller screens */
            /* Or you could set to 'auto' if you prefer natural image height stacking */
        }
    }
    @media (max-width: 575.98px) { /* Bootstrap's sm breakpoint */
        .gallery-grid-item,
        .gallery-grid-item.gallery-grid-item-large {
            min-height: 150px; /* Even smaller min-height for extra small screens */
        }
    }


        .custom-product .custom-product__top {
        aspect-ratio: 4/2.5;
    }

    .custom-product .custom-product__top__image {
        width: 100%;
        height: 100%;
        /* object-fit: contain;
        object-position: center; */
    }
          .info-card-container {
            max-width: 450px; /* Example width, adjust as needed */
            width: 100%;
        }

        .detailed-info-card {
            border: 1px solid #dee2e6; /* Subtle border like in image */
            box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
            border-radius: 0.375rem; /* Bootstrap's default card radius */
            /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
            display: flex;
            flex-direction: column;
            justify-content: between; /* Space between items */
            height: 100%; /* Ensure it takes full height */
        }

        .detailed-info-card .card-body {
            padding: 1.5rem; /* Generous padding */
        }

        .detailed-info-card .product-id {
            /* font-size: 0.8rem; Small */
            color: #6c757d; /* text-muted */
            margin-bottom: 0.25rem;
        }

        .detailed-info-card .product-title {
            font-size: 1.2rem; 
            font-weight: 600; 
            color: #212529;
            margin-bottom: 0.125rem;
            line-height: 1.2;
        }

        .detailed-info-card .product-subtitle {
            /* font-size: 1rem; */
            color: #495057;
            margin-bottom: 0.25rem;
        }

        .detailed-info-card .supplier-info p {
            /* font-size: 0.9rem; */
            color: #495057;
            margin-bottom: 0.1rem; /* Reduced margin for multi-line supplier */
            line-height: 1.4;
        }

        .detailed-info-card .checkmark-icon {
            color: #198754; /* Bootstrap's text-success color */
            /* font-size: 1.25rem; Adjust size of Font Awesome icon */
            /* If using an image/SVG:
            width: 20px;
            height: 20px;
            */
        }
        
        .detailed-info-card .details-section {
            margin-top: .5rem; /* Space above details */
        }

        .detailed-info-card .detail-item {
            padding-top: 0.6rem;
            padding-bottom: 0.6rem;
            border-bottom: 1px solid #f0f0f0; /* Very light separator for items */
        }
        .detailed-info-card .detail-item:last-child {
            border-bottom: none; /* No border for the last item */
        }

        .detailed-info-card .detail-label {
            /* font-size: 0.9rem; */
            color: #212529; /* Darker than value labels in previous designs */
        }

        .detailed-info-card .detail-value {
            /* font-size: 0.9rem; */
            color: #495057; /* Slightly lighter than label or same */
            font-weight: 500; /* Medium weight */
        }

        .detailed-info-card .flag-icon {
            width: 20px;
            height: auto;
            margin-right: 8px;
            vertical-align: middle;
            border: 1px solid #ddd; /* Optional subtle border for flag */
        }
        
        .detailed-info-card .card-footer-custom {
            padding: 1rem 1.5rem; /* Match card-body horizontal padding */
            background-color: transparent;
            border-top: 1px solid #f0f0f0; /* Light separator if footer is distinct */
        }

        .detailed-info-card .footer-logo {
            width: 32px; /* Adjust as needed */
            height: auto;
        }

        .custom-product {
            display: flex;
            flex-direction: column;
        }
        .payment-method-icon-container {
            width: 50px; /* Adjust to your desired typical width for these logos */
            /* height: 32px; */ /* Optional: Set a fixed height if all logos should conform to this box.
                                If you set a fixed height, object-fit on the image becomes more important. */
            margin-right: 0.75rem; /* Consistent spacing, similar to Bootstrap's mr-2/me-2 */
            display: inline-flex; /* Allows it to sit nicely with text and use align-items */
            align-items: center;   /* Vertically center the image if container is taller */
            justify-content: center; /* Horizontally center image if it's narrower than container */
            vertical-align: middle; /* Helps with inline alignment next to text */
        }

        .payment-method-icon {
            display: block; /* Removes any extra space below the image */
            max-width: 100%; /* Ensures image is never wider than its container */
            height: auto;    /* CRITICAL: Maintains the image's original aspect ratio */
            /* max-height: 32px; */ /* Optional: If you have a fixed height on container and want to ensure image doesn't overflow it */
            border: 1px solid #dee2e6; /* A clean, light border */
            /* border-radius: 5px; */ /* You have this inline, or you can move it here */
            object-fit: contain; /* Recommended if container has fixed W & H. Ensures entire image is visible, scaled down, letterboxed if necessary.
                                    Use 'cover' if you want it to fill the space and crop.
                                    Use 'scale-down' to show image at natural size if smaller, or scale down if larger. */
        }