/* Add this to your main CSS file if styling is missing */
.login_wrap {
    background: #fff;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.07);
    padding: 40px;
    border-radius: 10px;
}

.login_wrap h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login_input_group {
    margin-bottom: 20px;
}

.login_input_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login_input_group input {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 5px;
    outline: none;
}

.login_input_group input:focus {
    border-color: #ddd;
    /* Replace with your primary color */
}

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

.create_account {
    margin-top: 20px;
    text-align: center;
}

/* Container to align checkbox and text */
.custom-checkbox-container {
    display: flex;
    align-items: center;
    /* Vertically center the items */
    gap: 8px;
    /* Space between checkbox and text */
    padding-left: 0;
    /* Bootstrap often adds padding, this resets it if needed */
    margin-bottom: 10px;
}

/* Style the checkbox itself */
.custom-checkbox-container .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    /* Reset default margins */
    border: 1px solid #ced4da;
    /* Light gray border like the image */
    border-radius: 4px;
    /* Slight rounded corners */
    cursor: pointer;
    margin-left: 0;
    padding: 0;
}

/* Style the Label text */
.custom-checkbox-container .form-check-label {
    font-size: 15px;
    cursor: pointer;
    font-weight: 400;
    user-select: none;
    /* Prevents text highlighting when clicking repeatedly */
}



/* Optional: Focus state for accessibility */
.custom-checkbox-container .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}


.single_input select.form-select {
    border: none;
    font-size: 14px;
    padding: 15px 20px;
}

/* Style for Minicart Quantity Buttons */
.qty_btn {
    border: 1px solid #ddd;
    background: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.qty_btn:hover {
    background: #ff3c00;
    color: #fff;
    border-color: #ff3c00;
}

.qty_value {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.mini_cart li {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.mini_cart .del_icon {
    font-size: 14px;
    transition: 0.3s;
}


/* Container resets */
.menu_item {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.professional-dropdown li.cat-item {
    margin-right: 0;
    width: 100%;
}

.nav-item-category {
    position: relative;
}

/* The "Categories" Button */
.category-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333 !important;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-trigger span,
.cat-item span {
    color: #333 !important;
    font-weight: 500;
}

.category-trigger:hover {
    background: #f8f9fa;
    color: #007bff;
    /* Primary color */
}

/* Main Dropdown List */
.professional-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 270px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    padding: 10px 0;
    display: none;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
}

.nav-item-category:hover .professional-dropdown {
    display: block;
}

/* Category Items */
.cat-item {
    position: static;
    /* Important for full-width flyout */
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #444;
    font-size: 14px;
    transition: background 0.2s;
}

.cat-link:hover {
    background: #f0f7ff;
    color: #007bff;
}

.cat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

.default-icon {
    color: #333;
    font-size: 14px;
}

/* Subcategory Flyout (The Professional Look) */
.subcategory-flyout {
    position: absolute;
    top: 0;
    left: 270px;
    /* Aligned to the side of main menu */
    width: 400px;
    min-height: 100%;
    background: #fff;
    border-left: 1px solid #eee;
    box-shadow: 15px 10px 30px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: none;
    border-radius: 0 8px 8px 0;
}

.cat-item:hover .subcategory-flyout {
    display: block;
}

.flyout-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.flyout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns for subcategories */
    gap: 10px;
}

.sub-link {
    font-size: 14px;
    color: #555;
    padding: 5px 0;
    transition: color 0.2s;
}

.sub-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.flyout-arrow {
    font-size: 10px;
    color: #bbb;
}


/* Ensure the list item is positioned relatively */
.search_li {
    position: relative;
    display: flex;
    align-items: center;
}

.search_icon_trigger {
    cursor: pointer;
    display: block;
}

.search_icon_trigger i {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* The Popover Box */
.search_form_container {
    position: absolute;
    top: 100%;
    /* Appears right below the icon */
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 9999;
    width: 300px;

    /* FIX: Reset the line-height inherited from .menu_icon */
    line-height: normal !important;
    text-align: left;
}

/* Reset styles for the internal form elements */
.search_form_container select,
.search_form_container input {
    height: 40px !important;
    /* Force a standard height */
    line-height: 40px !important;
    margin-bottom: 10px;
    width: 100%;
    border: 1px solid #ddd;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 14px;
}

.search_form_container .input_wrapper {
    display: flex;
    position: relative;
}

.search_form_container .input_wrapper input {
    margin-bottom: 0;
    padding-right: 45px;
}

.search_form_container .input_wrapper button {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-left: none;
    cursor: pointer;
    line-height: 40px;
    /* Fix button icon centering */
}


.ecommerce-zoom {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 8px;
    background-repeat: no-repeat;
    /* This determines the zoom level (200% = 2x zoom) */
    background-size: 0%;
}

.ecommerce-zoom img {
    transition: opacity 0.3s;
    display: block;
    width: 100%;
}

/* When hovering, hide the main image slightly and show the background zoom */
.ecommerce-zoom:hover img {
    opacity: 0;
}

.ecommerce-zoom:hover {
    background-size: 250%;
    /* Adjust for more or less zoom */
}

.coupon-container {
    padding: 5px;
}

.coupon-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
    min-height: 120px;
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Left Section - Compact and Bold */
.coupon-badge {
    background: linear-gradient(135deg, #0062ff, #004ecc);
    color: white;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.is-exclusive .coupon-badge {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.coupon-badge .value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.coupon-badge .value span {
    font-size: 14px;
    margin-left: 2px;
    color: #fff;
}

.coupon-badge .label {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* Separator */
.coupon-separator {
    width: 20px;
    position: relative;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-separator .dot-line {
    border-left: 2px dashed #e0e6ed;
    height: 70%;
}

/* Semi-circle cutouts */
.cutout {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #f8f9fa;
    /* Matches modal background */
    border: 1px solid #eef0f2;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.cutout.top {
    top: -10px;
}

.cutout.bottom {
    bottom: -10px;
}

/* Right Section Details */
.coupon-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exclusive-tag {
    font-size: 9px;
    font-weight: 700;
    color: #00b09b;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.coupon-code {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1d23;
    letter-spacing: 0.5px;
}

.coupon-desc {
    font-size: 11px;
    color: #64748b;
    margin: 4px 0 12px 0;
    line-height: 1.4;
}

.coupon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expiry {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* The Correctpill button */
.copy-btn {
    background: #f1f5f9;
    border: none;
    color: #0062ff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #e2e8f0;
}

.copy-btn.copied {
    background: #00b09b;
    color: white;
}