/* ──────────────────────────────────────────────────
   Storefront – Global Styles
   Annjai Packaging
   ────────────────────────────────────────────────── */

body {
    background: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* ── Global Link Styling (Logo Dark Color: #111827) ── */
a:not(.nav-link):not(.dropdown-item):not(.navbar-brand):not(.btn) {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:not(.nav-link):not(.dropdown-item):not(.navbar-brand):not(.btn):hover {
    color: #1f2937;
    text-decoration: underline;
}

/* Ensure text-primary links and btn-link across all pages use the logo dark color #111827 */
a.text-primary,
button.text-primary,
.btn-link,
a.btn-link {
    color: #111827 !important;
    text-decoration: none;
}

a.text-primary:hover,
button.text-primary:hover,
.btn-link:hover,
a.btn-link:hover {
    color: #1f2937 !important;
    text-decoration: underline !important;
}

/* ── Navbar ── */
.navbar {
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.navbar-brand img {
    height: 42px;
}

.navbar-brand span {
    font-size: 1.15rem;
}

.navbar-nav .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    padding: 1rem 0.85rem;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #111827;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 2.5px;
    background: #111827;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.show .nav-link::after {
    transform: scaleX(1);
}

/* Override Bootstrap dropdown-toggle caret so it doesn't conflict with our ::after underline */
.navbar-nav .dropdown-toggle::after {
    position: static;
    display: inline-block;
    margin-left: 0.3em;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-item.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ── Hover-triggered dropdown (desktop) ── */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
    }

    .navbar-nav .nav-item.dropdown:hover>.nav-link {
        color: #111827;
    }

    .navbar-nav .nav-item.dropdown:hover>.nav-link::after {
        transform: scaleX(1);
    }
}

/* ── Mega Menu / Dropdown ── */
.navbar-nav .dropdown-menu {
    margin-top: 0 !important;
    border: none;
    border-top: 3px solid #111827;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
    padding: 0.5rem 0;
    min-width: 240px;
    animation: dropFade 0.2s ease;
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.mega-menu {
    min-width: 280px;
    max-width: 340px;
}

.dropdown-item {
    font-size: 0.875rem;
    padding: 0.55rem 1.25rem;
    color: #374151;
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
    padding-left: 1.5rem;
}

/* ── Product Card ── */
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.sidebar {
    background: #fff;
    border-right: 1px solid #e5e7eb;
}

/* ── Action Buttons ── */
.navbar .btn {
    font-size: 0.82rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

/* ── Cart Badge ── */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
    border-radius: 50px;
    background: #dc3545;
    color: #fff;
    text-align: center;
    font-weight: 600;
    display: none;
}

.cart-badge.show {
    display: inline-block;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ── Toast ── */
.toast-container {
    z-index: 1090;
}

/* ──────────────────────────────────────────────────
   Global Dark Banner & Footer High-Contrast (WCAG AAA)
   Brand Palette: Ink Charcoal (#111827), Seal Orange (#D96B27),
   Kraft Brown (#8B5E3C), Warm Paper Cream (#F9F6F0)
   ────────────────────────────────────────────────── */

/* Dark Containers & Footer Background */
.bg-dark,
footer.bg-dark,
.page-header-banner {
    background-color: #111827 !important;
    color: #ffffff !important;
}

/* Headings in Dark Containers (100% Crisp White - 15.8:1 Contrast) */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #ffffff !important;
}

/* Subtitles, Paragraphs & Muted Text in Dark Containers (WCAG AAA - 13.5:1 Contrast) */
.bg-dark .text-white-50,
.bg-dark .text-muted,
.bg-dark p,
.bg-dark span:not(.badge),
.bg-dark div,
footer .text-white-50,
footer .text-muted,
footer p,
footer span,
footer li {
    color: #F3F4F6 !important;
    opacity: 1 !important;
}

/* Footer & Dark Container Links (High-Contrast with Seal Orange Hover Accent) */
footer a,
footer a.text-white-50,
.bg-dark a:not(.btn) {
    color: #E5E7EB !important;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

footer a:hover,
footer a.text-white-50:hover,
.bg-dark a:not(.btn):hover {
    color: #D96B27 !important; /* Seal Orange Brand Accent */
    text-decoration: underline !important;
}

/* Footer Divider Line */
footer hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Badges inside Dark Containers (Warm Paper Cream & Kraft Brown Accent) */
.bg-dark .badge.bg-light,
.bg-dark .badge.bg-secondary-subtle {
    background-color: #F9F6F0 !important;
    color: #111827 !important;
    border: 1px solid #8B5E3C !important;
    font-weight: 600;
}

/* Footer Responsive Accordion Styles */
@media (min-width: 768px) {
    .footer-collapse {
        display: block !important;
        height: auto !important;
    }
    .footer-accordion-btn {
        pointer-events: none;
        cursor: default;
    }
}
@media (max-width: 767.98px) {
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 12px;
    }
    .footer-accordion-btn:not(.collapsed) .bi-chevron-down {
        transform: rotate(180deg);
    }
    .transition-transform {
        transition: transform 0.2s ease-in-out;
    }
}

/* Hide Admin Bar Strip for Logged-In Users */
html {
    margin-top: 0 !important;
}
#wpadminbar {
    display: none !important;
}

/* ──────────────────────────────────────────────────
   Sidebar Styling (Matching Laravel Storefront Design)
   ────────────────────────────────────────────────── */
#sidebar h3,
#sidebar .widget-title,
#sidebar .wp-block-search .wp-block-search__label,
#sidebar h2,
#sidebar .wp-block-heading {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    display: block !important;
    width: 100% !important;
    color: #111827 !important;
    padding: 0 0 10px 0 !important;
    margin: 0 0 16px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    text-align: left !important;
    font-family: 'Inter', sans-serif !important;
    border-bottom: 2px solid #111827 !important;
    letter-spacing: 0 !important;
    text-transform: capitalize !important;
}

#sidebar .widget {
    padding: 24px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff !important;
}

#sidebar form {
    text-align: left !important;
}

#sidebar input[type="search"],
#sidebar .wp-block-search .wp-block-search__input {
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    color: #111827 !important;
}

#sidebar input[type="submit"],
#sidebar .wp-block-search .wp-block-search__button {
    background-color: #111827 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 18px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0 !important;
    transition: background-color 0.2s ease !important;
    width: 100% !important;
    margin-top: 8px !important;
}

#sidebar input[type="submit"]:hover,
#sidebar .wp-block-search .wp-block-search__button:hover {
    background-color: #1f2937 !important;
}

#sidebar ul li {
    padding: 6px 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

#sidebar ul li:last-child {
    border-bottom: none !important;
}

#sidebar ul li a {
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: color 0.15s ease !important;
}

#sidebar ul li a:hover {
    color: #D96B27 !important;
    text-decoration: underline !important;
}

/* ──────────────────────────────────────────────────
   Category Badges (No Blue Highlighted Background)
   ────────────────────────────────────────────────── */
.single-post-category,
.post-categories,
ul.post-categories {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.single-post-category span.category {
    font-weight: 600 !important;
    color: #111827 !important;
    font-size: 0.9rem !important;
    margin-right: 6px !important;
}

.post-categories li,
ul.post-categories li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.post-categories li a,
ul.post-categories li a,
.single-post-category a,
.post-categories a {
    background: transparent !important;
    background-color: transparent !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    text-decoration: none !important;
    clip-path: none !important;
    transition: all 0.2s ease !important;
}

.post-categories li a:hover,
ul.post-categories li a:hover,
.single-post-category a:hover,
.post-categories a:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    border-color: #111827 !important;
    text-decoration: none !important;
}

/* ──────────────────────────────────────────────────
   Buttons Styling (Matching Laravel Storefront Buttons)
   ────────────────────────────────────────────────── */
.more-btn a,
.more-button,
a.more-btn,
#footer .more-button,
#sidebar .more-button,
a.custom_read_more,
.single-post .more-btn a,
.page-content .more-btn a,
input[type="submit"],
button[type="submit"],
.submit,
a.button,
.button,
.wp-block-button__link,
.wp-block-search__button {
    background: #111827 !important;
    background-color: #111827 !important;
    color: #ffffff !important;
    border: 1px solid #111827 !important;
    border-radius: 6px !important;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    clip-path: none !important;
    display: inline-block !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    text-decoration: none !important;
}

.more-btn a:hover,
.more-button:hover,
a.more-btn:hover,
#footer .more-button:hover,
#sidebar .more-button:hover,
a.custom_read_more:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.submit:hover,
a.button:hover,
.button:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover {
    background: #1f2937 !important;
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border-color: #1f2937 !important;
    text-decoration: none !important;
}

.more-btn:before,
.more-button:before,
.more-btn a::after {
    display: none !important;
    content: none !important;
}

/* ──────────────────────────────────────────────────
   Global Typography & Colors (Matching Laravel App)
   Font Family: 'Inter', sans-serif
   Heading Color: #111827 (Ink Charcoal)
   Body Text Color: #374151
   Muted Meta Color: #4b5563
   Hover Brand Color: #D96B27 (Seal Orange)
   ────────────────────────────────────────────────── */

html, body, div, p, span, h1, h2, h3, h4, h5, h6,
article, section, aside, header, footer, nav,
input, textarea, select, button, label, a, li, blockquote {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

body {
    color: #374151 !important;
    background-color: #ffffff !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-title a,
.single-post h1,
.entry-title,
.entry-title a,
.post-title,
.post-title a,
.widget-title,
.comments-title,
.comment-reply-title {
    color: #111827 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Headings inside links hover */
.section-title a:hover,
.entry-title a:hover,
.post-title a:hover {
    color: #D96B27 !important;
}

/* Body Content & Paragraphs */
.entry-content,
.entry-content p,
.new-text p,
.post-main-box p,
p {
    color: #374151 !important;
    line-height: 1.65 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Post Info / Meta Icons & Text */
.post-info,
.post-info span,
.post-info a,
.post-info i,
.entry-date,
.entry-author,
.entry-comments,
.entry-time {
    color: #4b5563 !important;
    font-family: 'Inter', sans-serif !important;
}

.post-info a:hover {
    color: #D96B27 !important;
    text-decoration: underline !important;
}

/* Form Inputs & Labels */
label, input, textarea, select {
    font-family: 'Inter', sans-serif !important;
    color: #111827 !important;
}



