/*
Theme Name: webconsist
Author: mriganga karmakar
Description: Fully-fledged WordPress theme for Soko All Out Solutions
Version: 1.0.1
Text Domain: webconsist
*/

/* ==========================================================================
   SAFE WOOCOMMERCE UI BRANDING (Pure CSS Override)
   Brand Colors: Primary Gold #D8972B | Dark #0A0F1C | Gray-50 #F9FAFB
   ========================================================================== */

/* 1. Global WooCommerce Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #D8972B !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.75rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(216, 151, 43, 0.3) !important;
    transition: all 0.3s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #b07a1f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(216, 151, 43, 0.4) !important;
}

/* 2. On-Sale Badges */
.woocommerce span.onsale {
    background-color: #D8972B !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 9999px !important;
    padding: 4px 12px !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

/* 3. Prices & Amounts */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-Price-amount {
    color: #111827 !important; /* Deep dark charcoal for high contrast pricing */
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Strikethrough old price for items on sale */
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
    color: #9CA3AF !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    margin-right: 0.35rem !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
    color: #D8972B !important; /* Sale price highlighted in Brand Gold */
    font-weight: 800 !important;
    background: transparent !important;
}

/* 4. Minimalist Modern Product Cards Grid */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border-radius: 1.5rem !important;
    padding: 1.25rem !important;
    border: 1px solid #F3F4F6 !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08) !important;
}

.woocommerce ul.products li.product img {
    border-radius: 1.25rem !important;
    margin-bottom: 1rem !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.03) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.35 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.woocommerce ul.products li.product a.button {
    margin-top: 1rem !important;
    width: 100% !important;
    text-align: center !important;
    background-color: #D8972B !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    box-shadow: 0 4px 14px rgba(216, 151, 43, 0.3) !important;
}

/* 5. Inputs & Form Controls */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-input-wrapper input {
    border-radius: 0.75rem !important;
    border: 1.5px solid #E5E7EB !important;
    padding: 0.75rem 1rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: border-color 0.2s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #D8972B !important;
    outline: none !important;
}

/* 6. Message Banners & Info Boxes */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 1rem !important;
    border-top-color: #D8972B !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #D8972B !important;
}

/* 7. My Account Dashboard & Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 28%;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #F3F4F6;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0.5rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #D8972B !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 68%;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #F3F4F6;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
        margin-bottom: 2rem !important;
    }
}

/* 8. My Account Login & Register Cards */
.woocommerce-account .u-columns.col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1 1 300px;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #F3F4F6;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.woocommerce-account h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 1.25rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* 9. Minimalist UX Tables (Orders, Downloads, Cart) */
.woocommerce table.shop_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #F3F4F6 !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
}

.woocommerce table.shop_table th {
    background-color: #F9FAFB !important;
    color: #4B5563 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #F3F4F6 !important;
}

.woocommerce table.shop_table td {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #F3F4F6 !important;
    color: #1F2937 !important;
    font-size: 0.95rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.woocommerce table.shop_table tr:last-child td {
    border-bottom: none !important;
}

/* 10. Minimalist UX Quantity Inputs */
.woocommerce .quantity input.qty {
    border-radius: 0.75rem !important;
    border: 1.5px solid #E5E7EB !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    width: 4rem !important;
}

/* 11. Minimalist Cart Totals Box */
.woocommerce .cart-collaterals .cart_totals {
    background: #ffffff !important;
    border-radius: 1.5rem !important;
    padding: 2rem !important;
    border: 1px solid #F3F4F6 !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04) !important;
}

/* 12. Branded 'Proceed to Checkout' Button (Pure CSS - 100% Safe) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #D8972B !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 1rem 2rem !important;
    border-radius: 9999px !important;
    display: block !important;
    width: 100% !important;
    box-shadow: 0 10px 25px -5px rgba(216, 151, 43, 0.4) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.025em !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #b07a1f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px -5px rgba(216, 151, 43, 0.5) !important;
}

/* 13. WooCommerce Gutenberg Block Buttons (.wc-block-components-button__text UI Only) */
.wc-block-components-button,
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link,
.wc-block-cart__submit-button,
.wc-block-checkout__submit-button {
    background-color: #D8972B !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.75rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(216, 151, 43, 0.3) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
}

.wc-block-components-button__text {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: 0.02em !important;
}

.wc-block-components-button:hover,
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover,
.wc-block-cart__submit-button:hover,
.wc-block-checkout__submit-button:hover {
    background-color: #b07a1f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(216, 151, 43, 0.4) !important;
}

/* ==========================================================================
   14. CONTACT FORM 7 STYLING & BRAND INTEGRATION (100% UNIVERSAL & SOLID)
   ========================================================================== */
.wpcf7-form {
    position: relative;
    width: 100%;
    display: block;
}

/* Ensure paragraph tags inside CF7 do NOT hide elements */
.wpcf7-form p {
    margin-bottom: 0.875rem !important;
    display: block !important;
    width: 100% !important;
}

.wpcf7-form br {
    display: none !important;
}

/* Labels inside CF7 */
.wpcf7-form label {
    display: block !important;
    width: 100% !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    margin-bottom: 0.25rem !important;
}

.wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
}

/* Universal Inputs: Inputs, Emails, Tels, Selects, Textareas */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea,
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-select,
.wpcf7-textarea,
.cf7-input,
.cf7-select,
.cf7-textarea {
    width: 100% !important;
    background-color: #F9FAFB !important; /* bg-gray-50 */
    color: #0A0F1C !important;
    border-radius: 0.75rem !important; /* rounded-xl / 12px */
    padding: 0.875rem 1.25rem !important;
    outline: none !important;
    border: 1px solid #E5E7EB !important; /* border-gray-200 */
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Custom Dropdown Chevron Icon for Select Elements */
.wpcf7-form select,
.wpcf7-select,
.cf7-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 1.25rem 1.25rem !important;
    padding-right: 3rem !important;
    cursor: pointer !important;
}

/* Focus States */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-select:focus,
.wpcf7-textarea:focus,
.cf7-input:focus,
.cf7-select:focus,
.cf7-textarea:focus {
    border-color: #D8972B !important;
    box-shadow: 0 0 0 4px rgba(216, 151, 43, 0.15) !important;
    background-color: #ffffff !important;
}

.wpcf7-form textarea,
.wpcf7-textarea,
.cf7-textarea {
    resize: none !important;
    min-height: 100px !important;
}

/* Universal Submit Button: Brand Gold Pill */
.wpcf7-form input[type="submit"],
.wpcf7-submit,
.cf7-submit {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #D8972B !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.875rem 1.75rem !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(216, 151, 43, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-top: 0.75rem !important;
    letter-spacing: -0.01em !important;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover,
.cf7-submit:hover {
    background-color: #b07a1f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px -5px rgba(216, 151, 43, 0.5) !important;
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-submit:active,
.cf7-submit:active {
    transform: scale(0.98) !important;
}

/* CF7 Response Banners */
.wpcf7-response-output {
    border-radius: 0.75rem !important;
    padding: 0.875rem 1.25rem !important;
    margin: 1rem 0 0 0 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    text-align: center !important;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: #ECFDF5 !important;
    border: 1px solid #10B981 !important;
    color: #065F46 !important;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background-color: #FEF2F2 !important;
    border: 1px solid #EF4444 !important;
    color: #991B1B !important;
}

.wpcf7-not-valid-tip {
    color: #EF4444 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.wpcf7-spinner {
    margin-left: 10px !important;
    vertical-align: middle !important;
}

/* ==========================================================================
   DYNAMIC ENTRY CONTENT STYLING (Privacy Policy & WordPress Pages)
   ========================================================================== */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4B5563;
}
.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
    color: #4B5563;
}
.entry-content a {
    color: #D8972B;
    font-weight: 700;
    text-decoration: underline;
}
.entry-content blockquote {
    border-left: 4px solid #D8972B;
    background-color: #F9FAFB;
    padding: 1rem 1.25rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
}
