/* ==========================================================================
   Fallback Native Styles (When Elementor/WooCommerce are inactive)
   ========================================================================== */

/* 1. Header Layout Fixes */
.luminy-header {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.luminy-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
}

.luminy-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.luminy-header__search {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Fix Logo Colors (Remove gradient) */
.luminy-header__logo-text {
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
    color: #111827 !important;
}

/* Unify Action Icons (Remove yellow background from cart) */
.luminy-header__action-icon,
.luminy-header__action-icon--cart {
    background: transparent !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.luminy-header__action-icon:hover,
.luminy-header__action-icon--cart:hover {
    color: var(--color-primary, #4f46e5) !important;
    background: transparent !important;
    transform: translateY(-2px) !important;
}

.luminy-header__action-icon--wishlist {
    position: relative;
}

/* Unify Badge Colors */
.luminy-cart-badge {
    background-color: #ef4444 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.luminy-search-form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.luminy-search-form:focus-within {
    background: #ffffff;
    border-color: var(--color-primary, #4f46e5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.luminy-search-input {
    border: none;
    background: transparent;
    padding: 10px 20px 10px 45px; /* Added left padding for the icon */
    width: 100%;
    outline: none;
    font-family: inherit;
}

.luminy-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
}

/* 2. Top Bar UI Polish */
.luminy-top-bar {
    background: #111827;
    color: #f3f4f6;
    font-size: 13px;
    padding: 8px 0;
}

.luminy-top-bar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.luminy-top-bar a {
    color: #f3f4f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.luminy-top-bar a:hover {
    color: #fff;
    opacity: 0.8;
}

/* Fix Delivery Icon Color */
.luminy-top-bar__icon-delivery {
    color: inherit !important;
    margin-right: 6px;
}

.luminy-top-bar__center {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #ffffff; /* Added bright white color to stand out */
}

/* 3. Main Content & Sidebar Grid (Default Blog Layout) */
main.with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 992px) {
    main.with-sidebar {
        grid-template-columns: 7fr 3fr;
        align-items: start;
    }
}

/* 4. Sidebar Widget Styling */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb; /* Slightly darker border since shadow is gone */
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    color: #111827;
}

/* 6. Default Blog Post Styling */
.luminy-post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.luminy-post-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.luminy-post-card .entry-title {
    margin: 0 0 12px 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.luminy-post-card .entry-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.luminy-post-card .entry-title a:hover {
    color: var(--color-primary, #4f46e5);
}

.luminy-post-card .entry-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.luminy-post-card .post-thumbnail {
    margin: -32px -32px 24px -32px; /* Pull image to edges of card */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.luminy-post-card .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.luminy-post-card .entry-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 24px;
}

.luminy-post-card .entry-content p:last-child {
    margin-bottom: 0;
}

.luminy-post-card .entry-footer {
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #6b7280;
}

.luminy-post-card .cat-links a {
    color: var(--color-primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
}

.luminy-post-card .cat-links a:hover {
    text-decoration: underline;
}

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

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.widget ul li a:hover {
    color: var(--color-primary, #4f46e5);
    transform: translateX(4px);
}

/* 5. Default Search Widget Styling */
.widget_search .search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget_search .search-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s ease;
}

.widget_search .search-field:focus {
    border-color: var(--color-primary, #4f46e5);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.widget_search .search-submit {
    background: var(--color-primary, #111827);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.widget_search .search-submit:hover {
    opacity: 0.9;
}
