/*
Theme Name: Immortal Medicals
Theme URI: https://immortalmedicals.com/
Author: Antigravity
Author URI: https://immortalmedicals.com/
Description: WooCommerce theme for Immortal Medicals based on exact Shopify port.
Version: 1.0.1
License: Proprietary
Text Domain: immortal-theme
*/

/* Core styles are loaded from the Shopify base.css and component files in functions.php and template files. */

/* ==========================================================================
   WooCommerce Customer Account & Password Reset Styling
   ========================================================================== */

/* Constrain standard page container width on account pages */
.woocommerce-account .sva-page-container {
    max-width: 1000px;
}

/* Center, constrain and style forms on login and password reset pages */
.woocommerce-form-login, 
.woocommerce-ResetPassword {
    border: 1px solid rgba(18, 18, 18, 0.08) !important;
    border-radius: 8px !important;
    padding: 30px !important;
    background: #ffffff !important;
    max-width: 500px !important;
    margin: 40px auto !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
}

/* Fix Lost Password inline form elements to stack cleanly */
.woocommerce-ResetPassword p.form-row {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px !important;
}

/* Labels */
.woocommerce-form-login label,
.woocommerce-ResetPassword label {
    font-family: 'Brixton', Georgia, serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #121212 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Inputs styling in Shopify style */
.woocommerce-form-login input.input-text,
.woocommerce-ResetPassword input.input-text {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid rgba(18, 18, 18, 0.15) !important;
    border-radius: 4px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    font-family: 'Brixton', Georgia, serif !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #121212 !important;
}

.woocommerce-form-login input.input-text:focus,
.woocommerce-ResetPassword input.input-text:focus {
    border-color: #D4AF37 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #D4AF37 !important;
}

/* Submit Buttons in Gold-Gradient style */
.woocommerce-form-login button.button,
.woocommerce-ResetPassword button.button,
.woocommerce-account button.button {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(90deg, #907542 0%, #F7D98C 50%, #907542 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    font-family: 'Brixton', Georgia, serif !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-form-login button.button:hover,
.woocommerce-ResetPassword button.button:hover,
.woocommerce-account button.button:hover {
    background: linear-gradient(90deg, #907542 0%, #F7D98C 50%, #907542 100%) !important;
    opacity: 0.85 !important;
    color: #000000 !important;
}

/* Remember me alignment */
.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 400 !important;
    color: #555555 !important;
    margin-bottom: 20px !important;
    margin-top: 10px !important;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
}

/* Lost Password Link */
.woocommerce-LostPassword {
    text-align: center !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

.woocommerce-LostPassword a {
    color: #b78a1c !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-family: 'Brixton', Georgia, serif !important;
}

.woocommerce-LostPassword a:hover {
    text-decoration: underline !important;
}

/* Centering main titles on login and password reset pages */
.woocommerce-account:not(.logged-in) h1.sva-page-title,
.woocommerce-account:not(.logged-in) .sva-page-header,
.woocommerce-account:not(.logged-in) h2 {
    text-align: center !important;
}

/* Support responsive two-column Login/Register forms if enabled */
@media screen and (min-width: 769px) {
    .woocommerce-account .u-columns.col2-set {
        display: flex !important;
        gap: 40px !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
    }
    .woocommerce-account .u-column1,
    .woocommerce-account .u-column2 {
        flex: 1 !important;
        width: 50% !important;
        float: none !important;
    }
}

/* Logged-in Account Dashboard layout */
@media screen and (min-width: 769px) {
    .woocommerce-account.logged-in .woocommerce {
        display: flex !important;
        gap: 40px !important;
        align-items: flex-start !important;
    }
    .woocommerce-MyAccount-navigation {
        flex: 0 0 240px !important;
        background: #fafafa !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        padding: 10px 0 !important;
    }
    .woocommerce-MyAccount-content {
        flex: 1 !important;
    }
}

/* Account Navigation links list */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation li {
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation a {
    display: block !important;
    padding: 12px 20px !important;
    color: #121212 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: background 0.15s, color 0.15s !important;
    font-family: 'Brixton', Georgia, serif !important;
}

.woocommerce-MyAccount-navigation li:last-child a {
    border-bottom: none !important;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #ffffff !important;
    color: #D4AF37 !important;
    border-left: 3px solid #D4AF37 !important;
    font-weight: 600 !important;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #f5f5f5 !important;
    color: #D4AF37 !important;
}

/* WooCommerce tables customization */
.woocommerce-MyAccount-content table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    font-size: 15px !important;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: #fdfdfd !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06) !important;
    padding: 12px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Addresses panel cards */
.woocommerce-MyAccount-content address {
    font-style: normal !important;
    line-height: 1.6 !important;
    background: #fafafa !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-top: 15px !important;
    font-family: 'Brixton', Georgia, serif !important;
}

.woocommerce-MyAccount-content .addresses .title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.woocommerce-MyAccount-content .addresses .title h3 {
    margin: 0 !important;
}

/* System Alerts */
.woocommerce-error, 
.woocommerce-info, 
.woocommerce-message {
    padding: 12px 20px !important;
    border-radius: 6px !important;
    margin-bottom: 24px !important;
    list-style: none !important;
    font-size: 15px !important;
    font-family: 'Brixton', Georgia, serif !important;
}

.woocommerce-error {
    background-color: #fff5f5 !important;
    border: 1px solid #ffc9c9 !important;
    color: #c92a2a !important;
}

.woocommerce-info {
    background-color: #f7f9fc !important;
    border: 1px solid #d0ebff !important;
    color: #1c7ed6 !important;
}

.woocommerce-message {
    background-color: #f4fbf7 !important;
    border: 1px solid #c3e6cb !important;
    color: #2b8a3e !important;
}
