/* Custom Style overrides and enhancements for Desiora Theme */

/* Header & Navigation — see assets/css/header.css, navigation.css, mobile.css, responsive.css */

/* Legacy class aliases kept for compatibility */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e293b 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Visual Card & Glow Orbs */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

.orb-primary {
    background: var(--primary);
    top: -50px;
    left: -50px;
}

.orb-secondary {
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
}

.hero-card {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.hero-card:hover {
    transform: translateY(-10px) scale(1.02) translateZ(0);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.25);
    background: rgba(248, 250, 252, 0.95);
}

.hero-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--text-main);
    transform: translateZ(0);
    transition: var(--transition-smooth);
}

.hero-card:hover h3 {
    color: var(--accent);
}

.hero-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    transform: translateZ(0);
}

.card-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition-smooth);
}

.hero-card:hover .card-bar {
    width: 100%;
}

/* Main Posts & Grid Section */
.posts-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-main) !important;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Post Cards */
.card-post {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-post:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium);
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.card-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.entry-meta a {
    color: var(--text-muted);
}

.entry-meta a:hover {
    color: var(--primary);
}

.entry-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--text-main);
}

.entry-title a:hover {
    color: var(--primary);
}

.entry-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.entry-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sidebar & Layout Pages */
.index-layout,
.main-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 80px;
}

.main-layout {
    grid-template-columns: 1fr;
}

.widget-area {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius);
    height: fit-content;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

/* Footer — see assets/css/footer.css */

.footer-widgets {
    margin-bottom: 40px;
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-tagline {
    color: var(--text-muted);
    margin: 5px 0 0 0;
    font-size: 0.85rem;
}

.footer-copyright {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-copyright p {
    margin: 5px 0;
}

.theme-credit a {
    font-weight: 600;
}

/* Responsive layout adjustments */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-description {
        margin: 0 auto 40px auto;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .index-layout {
        grid-template-columns: 1fr;
    }
    
    .site-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-premium);
    }
    
    .main-navigation.is-open ul {
        display: flex;
    }
}

/* Cart Badge Styling */
.mini-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding-right: 15px; /* space for the badge */
}

    .mini-cart__count {
        position: absolute;
        top: -10px;
        right: 0;
        background: var(--accent, #f59e0b);
        color: var(--bg-dark, #0f172a);
        font-size: 0.75rem;
        font-weight: bold;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        line-height: 1;
    }
    
    /* Wishlist Button Styling */
    ul.products li.product {
        position: relative;
    }
    
    .desiora-wishlist-absolute {
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 99;
    }
    
    .desiora-wishlist-absolute .yith-wcwl-add-button a, 
    .desiora-wishlist-absolute .yith-wcwl-wishlistaddedbrowse a, 
    .desiora-wishlist-absolute .yith-wcwl-wishlistexistsbrowse a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #ffffff;
        color: var(--secondary) !important;
        border-radius: 50%;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transition: var(--transition-smooth);
        font-size: 0 !important; /* Hide text */
    }
    
    .desiora-wishlist-absolute .yith-wcwl-add-button a i, 
    .desiora-wishlist-absolute .yith-wcwl-wishlistaddedbrowse a i, 
    .desiora-wishlist-absolute .yith-wcwl-wishlistexistsbrowse a i {
        font-size: 16px !important; /* Show icon */
        margin: 0 !important;
    }
    
    .desiora-wishlist-absolute .yith-wcwl-add-button a span,
    .desiora-wishlist-absolute .yith-wcwl-wishlistaddedbrowse a span,
    .desiora-wishlist-absolute .yith-wcwl-wishlistexistsbrowse a span {
        display: none !important;
    }
    
    .desiora-wishlist-absolute .yith-wcwl-add-button a:hover, 
    .desiora-wishlist-absolute .yith-wcwl-wishlistaddedbrowse a:hover, 
    .desiora-wishlist-absolute .yith-wcwl-wishlistexistsbrowse a:hover {
        background: var(--secondary);
        color: #ffffff !important;
        transform: scale(1.1);
    }
    
    .desiora-wishlist-absolute .yith-wcwl-add-to-wishlist span.feedback {
        display: none !important;
    }
    
    /* Single Product Wishlist Button */
    .desiora-wishlist-wrapper .yith-wcwl-add-to-wishlist {
        margin-top: 15px;
    }
    
    .desiora-wishlist-wrapper .yith-wcwl-add-button a, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse a, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistexistsbrowse a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(30, 58, 138, 0.1);
        color: var(--primary) !important;
        border: 1px solid rgba(30, 58, 138, 0.2);
        border-radius: var(--border-radius);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        transition: var(--transition-smooth);
    }
    
    .desiora-wishlist-wrapper .yith-wcwl-add-button a:hover, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse a:hover, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistexistsbrowse a:hover {
        background: var(--primary);
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    }
    
    .desiora-wishlist-wrapper .yith-wcwl-add-button a, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse a, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistexistsbrowse a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(30, 58, 138, 0.1);
        color: var(--primary) !important;
        border: 1px solid rgba(30, 58, 138, 0.2);
        border-radius: var(--border-radius);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        transition: var(--transition-smooth);
    }
    
    .desiora-wishlist-wrapper .yith-wcwl-add-button a:hover, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse a:hover, 
    .desiora-wishlist-wrapper .yith-wcwl-wishlistexistsbrowse a:hover {
        background: var(--primary);
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    }

/* Uniform Banner Sizing for Home Page */
.home-editor-content .wp-block-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.home-editor-content .wp-block-cover {
    min-height: unset !important;
    aspect-ratio: 21 / 9;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

@media (max-width: 768px) {
    .home-editor-content .wp-block-image img,
    .home-editor-content .wp-block-cover {
        aspect-ratio: 16 / 9;
    }
}

/* Text Utility Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* ==========================================================================
   Contact Us Page
   ========================================================================== */
.contact-page {
    background: #ffffff;
    color: #1a1a1a;
    padding: 80px 0 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-page__container {
    max-width: 1100px;
}

.contact-page__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.contact-page__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.contact-page__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.contact-page__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.contact-page__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 72px;
}

/* Form */
.contact-form__group {
    margin-bottom: 24px;
}

.contact-form__group label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.contact-form__group input,
.contact-form__group textarea,
.contact-page .wpcf7-form input[type="text"],
.contact-page .wpcf7-form input[type="email"],
.contact-page .wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus,
.contact-page .wpcf7-form input:focus,
.contact-page .wpcf7-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
    color: #9ca3af;
}

.contact-form__group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form__terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.contact-form__terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #1a1a1a;
    cursor: pointer;
}

.contact-form__terms label {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    cursor: pointer;
}

.contact-form__terms a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form__terms a:hover {
    color: #374151;
}

.contact-form__submit,
.contact-page .wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form__submit:hover,
.contact-page .wpcf7-form input[type="submit"]:hover {
    background: #333333;
}

.contact-form__submit:active,
.contact-page .wpcf7-form input[type="submit"]:active {
    transform: scale(0.99);
}

/* Benefits */
.contact-benefits {
    margin-bottom: 48px;
}

.contact-benefits__title {
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.contact-benefits__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-benefits__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #374151;
}

.contact-benefits__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Locations */
.contact-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-location__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.contact-location p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #6b7280;
}

/* Alternate contact channels */
.contact-page__alt {
    text-align: center;
}

.contact-page__alt-title {
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 28px;
}

.contact-channels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-channel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-channel:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
}

.contact-channel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #1a1a1a;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .contact-page {
        padding: 60px 0 80px;
    }

    .contact-page__body {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-bottom: 56px;
    }

    .contact-page__header {
        margin-bottom: 48px;
    }

    .contact-locations {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .contact-page {
        padding: 48px 0 64px;
    }

    .contact-channels {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-channel {
        justify-content: center;
    }
}

/* WooCommerce Overrides (Shortcodes & Gutenberg Blocks) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__product {
    text-align: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product .wc-block-components-product-title,
.wc-block-components-product-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    color: var(--text-main) !important;
}

.woocommerce ul.products li.product .button,
.wc-block-grid__product .wp-block-button__link {
    margin: 15px auto 0 auto !important;
    display: inline-block;
}

.woocommerce ul.products li.product .price,
.wc-block-grid__product .wc-block-components-product-price,
.wc-block-components-product-price {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    display: block;
}

/* Force custom editor titles to be black */
.editor-content-wrapper h1,
.editor-content-wrapper h2,
.editor-content-wrapper h3,
.editor-content-wrapper h4,
.editor-content-wrapper h5,
.editor-content-wrapper h6,
.editor-content-wrapper .wp-block-heading {
    color: #000000 !important;
}

/* WooCommerce Order Tracking Form Styling */
.woocommerce-form-track-order .form-row {
    margin-bottom: 25px;
}
.woocommerce-form-track-order label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 500;
}
.woocommerce-form-track-order input[type="text"],
.woocommerce-form-track-order input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    transition: all 0.3s ease;
}
.woocommerce-form-track-order input[type="text"]:focus,
.woocommerce-form-track-order input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.8);
}
.woocommerce-form-track-order .button {
    width: 100%;
    padding: 16px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}
.woocommerce-form-track-order .button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
