/**
 * HoneyFeel Store - Flipkart-Inspired Responsive Design System
 * Palette: Honey gold / amber primary, Flipkart blue & dark accents, neutral greys
 */

:root {
    /* Brand Colors */
    --hf-primary: #f59e0b;
    /* Honey gold */
    --hf-primary-hover: #d97706;
    /* Amber hover */
    --hf-primary-dark: #b45309;
    /* Deep honey */
    --hf-primary-light: #fffbeb;
    /* Pale honey tint */
    --hf-accent-blue: #2874f0;
    /* Flipkart signature blue */
    --hf-accent-blue-hover: #1259c7;

    /* Neutrals & Text */
    --hf-text-dark: #212121;
    --hf-text-muted: #878787;
    --hf-text-light: #ffffff;
    --hf-bg-body: #f1f2f4;
    --hf-bg-card: #ffffff;
    --hf-border: #e0e0e0;
    --hf-border-light: #f0f0f0;

    /* Semantics */
    --hf-success: #388e3c;
    --hf-success-bg: #e8f5e9;
    --hf-danger: #d32f2f;
    --hf-danger-bg: #ffebee;
    --hf-warning: #ff9f00;
    --hf-warning-bg: #fff8e1;
    --hf-info: #0288d1;
    --hf-info-bg: #e1f5fe;

    /* Spacing & Layout */
    --hf-radius-xs: 2px;
    --hf-radius-sm: 4px;
    --hf-radius-md: 8px;
    --hf-radius-lg: 12px;
    --hf-radius-full: 9999px;

    --hf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --hf-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.10);
    --hf-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

    --hf-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hf-touch-target: 44px;
}

/* CSS Reset & Core Baseline */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--hf-font-sans);
    background-color: var(--hf-bg-body);
    color: var(--hf-text-dark);
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Accessible Focus States */
:focus-visible {
    outline: 2px solid var(--hf-accent-blue);
    outline-offset: 2px;
}

/* Container */
.hf-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   HEADER & NAVIGATION (Flipkart Inspired)
   ========================================================================== */
.hf-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--hf-shadow-sm);
}

.hf-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
}

.hf-logo a {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.hf-brand-honey {
    font-size: 22px;
    font-weight: 800;
    color: var(--hf-primary-dark);
    letter-spacing: -0.5px;
}

.hf-brand-feel {
    font-size: 22px;
    font-weight: 800;
    color: var(--hf-text-dark);
}

.hf-logo-tagline {
    font-size: 10px;
    color: var(--hf-text-muted);
    font-style: italic;
    margin-top: 3px;
}

/* Search Bar with Autocomplete Suggestions */
.hf-search-wrap {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.hf-search-form {
    display: flex;
    background: #f0f5ff;
    border: 1px solid #d4e2f8;
    border-radius: var(--hf-radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.hf-search-form:focus-within {
    background: #ffffff;
    border-color: var(--hf-accent-blue);
    box-shadow: 0 0 0 2px rgba(40, 116, 240, 0.15);
}

.hf-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    min-height: var(--hf-touch-target);
}

.hf-search-form button {
    border: none;
    background: transparent;
    padding: 0 14px;
    cursor: pointer;
    color: var(--hf-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--hf-touch-target);
    min-height: var(--hf-touch-target);
}

.hf-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--hf-border);
    border-radius: 0 0 var(--hf-radius-sm) var(--hf-radius-sm);
    box-shadow: var(--hf-shadow-md);
    margin-top: 2px;
    display: none;
    z-index: 1050;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
}

.hf-search-suggestions li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--hf-text-dark);
    font-size: 13px;
    border-bottom: 1px solid var(--hf-border-light);
}

.hf-search-suggestions li a:hover {
    background: var(--hf-primary-light);
}

/* Header Navigation */
.hf-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.hf-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    min-height: var(--hf-touch-target);
    cursor: pointer;
}

.hf-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hf-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--hf-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
    line-height: 15px;
}

/* Category Menu Row (Flipkart-style) */
.hf-cat-nav {
    background: #ffffff;
    border-top: 1px solid var(--hf-border-light);
    border-bottom: 1px solid var(--hf-border);
}

.hf-cat-list {
    display: flex;
    list-style: none;
    gap: 24px;
    padding: 8px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.hf-cat-list a {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    padding: 4px 6px;
    display: inline-block;
    transition: color 0.15s ease;
}

.hf-cat-list a:hover {
    color: var(--hf-primary-hover);
}

/* Mobile Search Expand & Drawer */
.hf-menu-toggle,
.hf-mobile-search-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    min-width: var(--hf-touch-target);
    min-height: var(--hf-touch-target);
    align-items: center;
    justify-content: center;
    color: var(--hf-text-dark);
}

.hf-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hf-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: #ffffff;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.hf-drawer.open {
    transform: translateX(0);
}

.hf-drawer-backdrop.open {
    display: block;
    opacity: 1;
}

.hf-drawer-header {
    background: var(--hf-primary-dark);
    color: #ffffff;
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hf-drawer-links {
    list-style: none;
    padding: 12px 0;
    overflow-y: auto;
}

.hf-drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hf-text-dark);
    border-bottom: 1px solid var(--hf-border-light);
    min-height: var(--hf-touch-target);
}

.hf-drawer-links a:hover {
    background: var(--hf-primary-light);
}

/* ==========================================================================
   BUTTONS & FORM INPUTS
   ========================================================================== */
.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--hf-radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    min-height: var(--hf-touch-target);
    transition: all 0.15s ease;
    text-align: center;
    user-select: none;
}

.hf-btn:disabled,
.hf-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.hf-btn-primary {
    background: var(--hf-primary);
    color: #ffffff;
}

.hf-btn-primary:hover {
    background: var(--hf-primary-hover);
}

.hf-btn-blue {
    background: var(--hf-accent-blue);
    color: #ffffff;
}

.hf-btn-blue:hover {
    background: var(--hf-accent-blue-hover);
}

.hf-btn-login {
    background: #ffffff;
    color: var(--hf-accent-blue);
    border-color: #dbdbdb;
    padding: 6px 20px;
    font-weight: 600;
}

.hf-btn-login:hover {
    background: #f0f5ff;
}

.hf-btn-outline {
    background: transparent;
    color: var(--hf-text-dark);
    border-color: var(--hf-border);
}

.hf-btn-outline:hover {
    border-color: #999999;
    background: #fafafa;
}

.hf-btn-danger {
    background: var(--hf-danger);
    color: #ffffff;
}

.hf-btn-danger:hover {
    background: #b71c1c;
}

.hf-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

.hf-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    min-height: 48px;
}

.hf-btn-block {
    width: 100%;
}

/* Forms */
.hf-form-group {
    margin-bottom: 16px;
}

.hf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

.hf-input,
.hf-select,
.hf-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius-sm);
    background: #ffffff;
    color: var(--hf-text-dark);
    min-height: var(--hf-touch-target);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hf-input:focus,
.hf-select:focus,
.hf-textarea:focus {
    border-color: var(--hf-accent-blue);
    box-shadow: 0 0 0 2px rgba(40, 116, 240, 0.15);
    outline: none;
}

.hf-input.error,
.hf-select.error,
.hf-textarea.error {
    border-color: var(--hf-danger);
    background: #fffafa;
}

.hf-form-error {
    font-size: 12px;
    color: var(--hf-danger);
    margin-top: 4px;
}

/* ==========================================================================
   PRODUCT CARD (Flipkart Style)
   ========================================================================== */
.hf-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.hf-product-card {
    background: #ffffff;
    border-radius: var(--hf-radius-sm);
    box-shadow: var(--hf-shadow-sm);
    border: 1px solid var(--hf-border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 14px;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hf-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hf-shadow-md);
}

.hf-card-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a0a0a0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.15s ease;
}

.hf-card-fav-btn:hover,
.hf-card-fav-btn.active {
    color: #e53935;
    background: #ffffff;
    transform: scale(1.1);
}

.hf-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: var(--hf-radius-xs);
    position: relative;
    padding: 6px;
}

.hf-card-img-wrap a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-card-img-wrap img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.hf-product-card:hover .hf-card-img-wrap img {
    transform: scale(1.05);
}

.hf-card-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--hf-text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 36px;
    margin-bottom: 8px;
    word-break: break-word;
}

.hf-card-title a {
    color: inherit;
    transition: color 0.15s ease;
}

.hf-card-title a:hover {
    color: var(--hf-accent-blue);
}

.hf-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.hf-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.hf-card-mrp {
    font-size: 12px;
    color: var(--hf-text-muted);
    text-decoration: line-through;
}

.hf-card-discount {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--hf-success);
}

/* ==========================================================================
   ALERTS, BADGES, MODALS, TOASTS & SKELETON LOADERS
   ========================================================================== */
/* Badges */
.hf-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--hf-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hf-badge-success {
    background: var(--hf-success-bg);
    color: var(--hf-success);
    border: 1px solid #c8e6c9;
}

.hf-badge-danger {
    background: var(--hf-danger-bg);
    color: var(--hf-danger);
    border: 1px solid #ffcdd2;
}

.hf-badge-warning {
    background: var(--hf-warning-bg);
    color: #d97706;
    border: 1px solid #ffecb3;
}

.hf-badge-info {
    background: var(--hf-info-bg);
    color: var(--hf-info);
    border: 1px solid #b3e5fc;
}

/* Modals */
.hf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hf-modal-backdrop.open {
    display: flex;
    opacity: 1;
}

.hf-modal {
    background: #ffffff;
    border-radius: var(--hf-radius-md);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--hf-shadow-lg);
    overflow: hidden;
    animation: hfModalSlide 0.2s ease;
}

@keyframes hfModalSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hf-border);
}

.hf-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.hf-modal-footer {
    padding: 12px 20px;
    background: #f9fafb;
    border-top: 1px solid var(--hf-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Toast Notifications */
.hf-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hf-toast {
    background: #212121;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--hf-radius-sm);
    box-shadow: var(--hf-shadow-lg);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    animation: hfToastIn 0.25s ease;
}

@keyframes hfToastIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Skeleton Loaders */
.hf-skeleton {
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: hfShimmer 1.5s infinite;
    border-radius: var(--hf-radius-sm);
}

@keyframes hfShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hf-skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
}

.hf-skeleton-title {
    width: 85%;
    height: 18px;
    margin-bottom: 8px;
}

.hf-skeleton-price {
    width: 45%;
    height: 22px;
}

/* Pagination */
.hf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin-top: 32px;
}

.hf-pagination a,
.hf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius-sm);
    background: #ffffff;
    color: var(--hf-text-dark);
    font-size: 13px;
    font-weight: 500;
}

.hf-pagination a:hover {
    background: var(--hf-primary-light);
    border-color: var(--hf-primary);
}

.hf-pagination .active span {
    background: var(--hf-primary-dark);
    color: #ffffff;
    border-color: var(--hf-primary-dark);
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (360px phones, 768px tablets, 1200px desktop)
   ========================================================================== */
@media (max-width: 1200px) {
    .hf-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .hf-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .hf-header-main {
        height: 56px;
        gap: 10px;
    }

    .hf-menu-toggle,
    .hf-mobile-search-btn {
        display: flex;
    }

    .hf-search-wrap {
        display: none;
    }

    .hf-search-wrap.mobile-expanded {
        display: block;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        padding: 8px 16px;
        background: #ffffff;
        box-shadow: var(--hf-shadow-md);
        z-index: 1010;
        max-width: 100%;
    }

    .hf-cat-nav {
        display: none;
    }

    .hf-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hf-product-card {
        padding: 10px;
    }

    .hf-card-fav-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    .hf-card-fav-btn svg {
        width: 15px;
        height: 15px;
    }

    .hf-card-title {
        font-size: 12.5px;
        min-height: 34px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .hf-card-price {
        font-size: 14px;
    }

    .hf-card-mrp {
        font-size: 11px;
    }

    .hf-card-discount {
        font-size: 11px;
    }

    .hf-toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 360px) {
    .hf-container {
        padding: 0 8px;
    }

    .hf-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .hf-product-card {
        padding: 8px;
    }

    .hf-card-title {
        font-size: 11.5px;
        min-height: 30px;
    }
}

/* ==========================================================================
   FOOTER (Flipkart & Modern E-Commerce Style)
   ========================================================================== */
.hf-footer {
    background: #172337;
    color: #ffffff;
    margin-top: auto;
    font-size: 12px;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hf-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
    padding: 40px 16px 32px;
}

.hf-footer-col {
    display: flex;
    flex-direction: column;
}

.hf-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hf-footer-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}

.hf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hf-footer-links li a {
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}

.hf-footer-links li a:hover {
    color: #f59e0b;
    padding-left: 4px;
}

.hf-footer-col p {
    color: #cbd5e1;
    margin-bottom: 8px;
    font-size: 13px;
}

.hf-footer-col strong {
    color: #ffffff;
}

.hf-footer-bottom {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    position: relative;
    z-index: 20;
}

.hf-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.hf-footer-copyright {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* Dev Line below footer (matching Reference Img 2 with generous spacing) */
.hf-dev-credit-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 10px;
    padding-top: 8px;
}

.hf-dev-cl-label {
    color: #94a3b8;
    font-weight: 600;
    margin-right: 6px;
}

.hf-dev-cl-link {
    color: #f1f5f9;
    font-weight: 800;
    text-decoration: none;
    padding: 2px 4px;
    transition: color 0.15s ease;
}

.hf-dev-cl-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.hf-dev-cl-sep {
    color: #64748b;
    font-weight: 400;
    margin: 0 10px;
    user-select: none;
}

/* ==========================================================================
   FLOATING DEVELOPER BADGE (Near bottom-left, appears on scroll to bottom)
   ========================================================================== */
.hf-dev-floating-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    pointer-events: none;
}

.hf-dev-floating-widget.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hf-dev-credit-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.hf-dev-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    padding: 6px 9px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.4), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
    transition: all 0.22s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hf-dev-trigger-btn:hover,
.hf-dev-trigger-btn:focus-visible {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.5);
    outline: none;
}

.hf-dev-label {
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cbd5e1;
    display: inline-block;
    transition: color 0.2s ease;
}

.hf-dev-trigger-btn:hover .hf-dev-label {
    color: #ffffff;
}

.hf-dev-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    line-height: 0;
}

.hf-creo-logo-img {
    display: block;
    width: 36px;
    height: 46px;
    object-fit: contain;
    background: #ffffff;
}

/* Developer Details Popup Card */
.hf-dev-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 14px);
    left: 0;
    width: 310px;
    background: #ffffff;
    border: 1.5px solid #0f172a;
    border-radius: 6px;
    box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.42), 0 8px 18px -4px rgba(0, 0, 0, 0.2);
    padding: 20px 22px;
    z-index: 1200;
    text-align: left;
    animation: hfDevPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hf-dev-popup.active {
    display: block;
}

@keyframes hfDevPopIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.hf-dev-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.hf-dev-popup-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Popup Header */
.hf-dev-popup-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hf-dev-popup-brand-wrap {
    display: flex;
    align-items: center;
    max-height: 38px;
    overflow: hidden;
}

.hf-dev-brand-text-svg {
    display: block;
    height: 32px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}

/* Divider Line */
.hf-dev-popup-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0 14px;
}

/* Contact Links List */
.hf-dev-popup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hf-dev-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: 6px;
    transition: all 0.18s ease;
}

.hf-dev-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.hf-dev-item-text {
    word-break: break-all;
    transition: color 0.18s ease;
}

.hf-dev-item:hover {
    background: #f8fafc;
    color: #008080;
}

.hf-dev-item:hover .hf-dev-item-icon {
    color: #008080;
}

.hf-dev-item:hover .hf-dev-item-text {
    color: #008080;
}

/* Mobile responsive: hide developer floating widget & popup; reduce credit line font size */
@media (max-width: 768px) {
    .hf-dev-floating-widget {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .hf-dev-popup {
        display: none !important;
    }

    .hf-dev-credit-line {
        font-size: 10.5px !important;
        gap: 3px !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.3px !important;
    }

    .hf-dev-cl-label {
        font-size: 10px !important;
        margin-right: 2px !important;
    }

    .hf-dev-cl-link {
        font-size: 10.5px !important;
        padding: 1px 2px !important;
    }

    .hf-dev-cl-sep {
        margin: 0 4px !important;
        font-size: 9px !important;
    }
}

@media (max-width: 900px) {
    .hf-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 30px 16px 24px;
    }
}

@media (max-width: 540px) {
    .hf-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 16px 20px;
    }

    .hf-footer-title {
        margin-bottom: 8px;
        font-size: 13px;
    }
}

/* Mobile Bottom Navigation Bar (Prompt 14) */
.hf-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid var(--hf-border);
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.hf-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--hf-text-muted);
    font-size: 10px;
    font-weight: 600;
    position: relative;
    padding: 4px 0;
}

.hf-bottom-nav-item svg {
    margin-bottom: 2px;
}

.hf-bottom-nav-item.active,
.hf-bottom-nav-item:hover {
    color: var(--hf-honey-dark);
}

.hf-bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 16px);
    background: var(--hf-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    padding: 0 4px;
}

@media (max-width: 767px) {
    .hf-bottom-nav {
        display: flex;
    }

    body:not(.hf-no-bottom-nav) {
        padding-bottom: 60px;
    }
}

/* ==========================================================================
   CROSS-BROWSER & FIREFOX RESPONSIVE HARDENING
   Resolves CSS Grid overflow, input min-width, button focus, & fluid scaling
   ========================================================================== */

/* 1. Global Box-Sizing & Grid Item Containment */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.hf-container,
.hf-card,
.hf-checkout-grid,
.hf-cart-grid,
.hf-product-grid,
.hf-form-group,
.hf-search-wrap,
.hf-header-main {
    min-width: 0;
    box-sizing: border-box;
}

.hf-checkout-grid>div,
.hf-cart-grid>div,
.hf-product-grid>div,
.hf-address-label,
.hf-address-label>div {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 2. Cross-Browser Input & Select Normalization */
.hf-input,
.hf-select,
.hf-textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
}

/* 3. Firefox-Specific Cleanups */
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Firefox inputs have an intrinsic size attribute that can cause flex/grid overflow */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"] {
    min-width: 0;
}

/* 4. Fluid Sticky Cards */
.hf-sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 10;
    width: 100%;
    max-width: 100%;
}

/* 5. Generic Responsive Form Rows */
.hf-form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hf-form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 680px) {

    .hf-form-row-2,
    .hf-form-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 6. Utility Spin Animation */
.hf-spin {
    animation: hfSpin 0.9s linear infinite;
}

@keyframes hfSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}