/* 
 * WooCommerce Custom Notices Styles
 * Theme: GrayIndia (Minimalist/Dark)
 */

/* Container Reset */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background-color: #f8f8f8 !important;
    /* Light Gray Background matching theme */
    color: #1a1a1a !important;
    /* Primary Text */
    border-top: 3px solid #1a1a1a !important;
    /* Default Theme Border */
    padding: 20px 30px 20px 60px !important;
    /* Space for icon */
    margin-bottom: 30px !important;
    position: relative !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Remove default pseudo-elements (the old woo icons) */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none !important;
}

/* Custom Icons via Material Symbols */
.woocommerce-message::after,
.woocommerce-error::after,
.woocommerce-info::after {
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Success - Green */
.woocommerce-message {
    border-top-color: #1a1a1a !important;
    /* Keep Theme Primary or Green? Let's use Green for success indicator */
    border-top: 3px solid #4caf50 !important;
}

.woocommerce-message::after {
    content: "check_circle";
    color: #4caf50;
}

/* Error - Red */
.woocommerce-error {
    border-top: 3px solid #ef4444 !important;
}

.woocommerce-error::after {
    content: "error";
    color: #ef4444;
}

/* Info - Blue (or Theme Primary if general info) */
.woocommerce-info {
    border-top: 3px solid #3b82f6 !important;
}

.woocommerce-info::after {
    content: "info";
    color: #3b82f6;
}

/* Buttons (e.g. "View Cart") */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
    float: none !important;
    /* Flex handles layout */
    background-color: #1a1a1a !important;
    /* Theme Primary */
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    border: 1px solid #1a1a1a !important;
    transition: all 0.3s ease !important;
    margin-left: auto !important;
    /* Push to right */
    white-space: nowrap !important;
}

.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #fff !important;
}

/* Links inside text */
.woocommerce-message a:not(.button),
.woocommerce-error a:not(.button),
.woocommerce-info a:not(.button) {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {

    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
        padding-left: 20px !important;
        /* Remove iconIndent */
        padding-top: 40px !important;
        /* Space for icon top */
    }

    .woocommerce-message::after,
    .woocommerce-error::after,
    .woocommerce-info::after {
        top: 20px !important;
        left: 20px !important;
        transform: none !important;
    }

    .woocommerce-message .button,
    .woocommerce-error .button,
    .woocommerce-info .button {
        width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
    }
}

/* -------------------------------------------------------------------------- */
/*  Primary Button Overrides (Theme Colors)                                   */
/* -------------------------------------------------------------------------- */

/* Single Product Add to Cart */
.single_add_to_cart_button,
button.single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce button.button.alt.disabled {
    background-color: #1a1a1a !important;
    /* Theme Primary */
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Secondary Buttons */
.woocommerce button.button:not(.alt),
.woocommerce a.button:not(.alt) {
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.woocommerce button.button:not(.alt):hover,
.woocommerce a.button:not(.alt):hover {
    background-color: #e5e5e5 !important;
    color: #000 !important;
}

/* -------------------------------------------------------------------------- */
/*  My Account Page Form Styles (Inter Font)                                   */
/* -------------------------------------------------------------------------- */

/* All account page headings */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.01em !important;
}

.woocommerce-MyAccount-content h2 {
    font-size: 22px !important;
    margin-bottom: 20px !important;
}

.woocommerce-MyAccount-content h3 {
    font-size: 18px !important;
    margin-bottom: 16px !important;
}

/* Form labels */
.woocommerce-MyAccount-content label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #999 !important;
    display: block !important;
    margin-bottom: 6px !important;
}

/* Form inputs */
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="number"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="tel"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus,
.woocommerce-MyAccount-content input[type="number"]:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    border-color: #1a1a1a !important;
}

/* Form row spacing */
.woocommerce-MyAccount-content .woocommerce-form-row,
.woocommerce-MyAccount-content .form-row {
    margin-bottom: 16px !important;
}

/* Submit buttons */
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    padding: 14px 28px !important;
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin-top: 8px !important;
}

.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    background-color: #333 !important;
}

/* Paragraph text styling */
.woocommerce-MyAccount-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Address display */
.woocommerce-MyAccount-content address {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.8 !important;
    font-style: normal !important;
    padding: 20px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
}

/* Fieldset styling */
.woocommerce-MyAccount-content fieldset {
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 24px !important;
    margin-top: 24px !important;
}

.woocommerce-MyAccount-content fieldset legend {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    padding: 0 8px !important;
}

/* Edit link */
.woocommerce-MyAccount-content a.edit {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #96a38c !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

.woocommerce-MyAccount-content a.edit:hover {
    color: #1a1a1a !important;
}

/* -------------------------------------------------------------------------- */
/*  Product Card Styles (Matches Product Carousel Widget)                      */
/* -------------------------------------------------------------------------- */

/* Card hover: scale up */
.gry-product-card:hover img {
    transform: scale(1.05) !important;
}

/* Overlay: full opacity on hover */
.gry-product-card:hover>div:nth-child(2) {
    opacity: 1 !important;
}

/* Text: slide up on hover */
.gry-product-card:hover>div:last-child>div {
    transform: translateY(0) !important;
}

/* Price HTML color — force white/60 on card price */
.gry-card-price,
.gry-card-price *,
.gry-card-price .woocommerce-Price-amount,
.gry-card-price .woocommerce-Price-currencySymbol,
.gry-card-price del,
.gry-card-price ins {
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: 'Crimson Pro', serif !important;
    font-style: italic !important;
}

.gry-card-price del {
    opacity: 0.5 !important;
}

/* Mobile: adjust card spacing */
@media (max-width: 767px) {
    .gry-product-card>div:last-child {
        bottom: 12px !important;
        left: 12px !important;
        right: 12px !important;
    }

    .gry-product-card>div:last-child h3 {
        font-size: 14px !important;
    }

    .gry-card-price,
    .gry-card-price * {
        font-size: 13px !important;
    }

    .gry-product-card>div:last-child>div {
        transform: translateY(0) !important;
    }
}