/*!
Theme Name:   Storefront MMCA Child
Theme URI:    https://mobilemaxcaraudio.com/
Description:  Child theme of Storefront for Mobile Max Car Audio. Contains all MMCA customizations (custom styles, functions, review bar, tracking, checkout tweaks) so the Storefront parent stays pristine and updatable.
Author:       Polanco Tech
Author URI:   https://polancotech.com/
Template:     storefront
Version:      1.0.0
Requires PHP: 5.6.0
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  mmca
*/

/* ==========================================================================
   grecaptcha badge hide (was inline <style> in parent header.php)
   ========================================================================== */
.grecaptcha-badge {
	visibility: hidden !important;
}

/* ==========================================================================
   MMCA custom styles (migrated verbatim from parent custom.css)
   ========================================================================== */
/*for images in articles*/
a.display-inline {
	display: inline;
}

/*for home slider*/
.page-template-template-homepage .entry-content {
	max-width: 100%;
}

.page-template-template-homepage .type-page {
	margin-bottom: 0px;
}
/* Outer container */
.mobilemax-slider-outer {
    display: block;
}

/* Desktop: 3-col 2-row grid */
.mobilemax-slider-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
}

.mobilemax-slide-item {
    display: block;
    overflow: hidden;
}

.mobilemax-slide-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Drag hint hidden on desktop */
.mobilemax-drag-hint {
    display: none;
}

/* Mobile: horizontal swipe slider */
@media (max-width: 600px) {

    .mobilemax-slider-wrapper {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        padding: 16px 0 0 0;
        scrollbar-width: none;
    }

    .mobilemax-slider-wrapper::-webkit-scrollbar {
        display: none;
    }

    .mobilemax-slider-wrapper:active {
        cursor: grabbing;
    }

    .mobilemax-slide-item {
        flex-shrink: 0;
        width: calc(70vw - 20px);
        scroll-snap-align: start;
    }

    .mobilemax-slide-item img {
        pointer-events: none;
    }

    /* Drag hint sits below scroll track, always visible */
    .mobilemax-drag-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        opacity: 0.4;
        padding: 0;
        pointer-events: none;
    }

    .mobilemax-drag-hint svg {
        width: 15px;
        height: 15px;
    }

    .mobilemax-drag-hint span {
        font-size: 11px;
        font-family: sans-serif;
        color: #555;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
}

/*for home page*/
.review-text {
	text-align: center;
	font-size: 1.7em;
}

.flex-container-home {
	display: flex;
	flex-direction: row;
}

@media only screen and (max-width: 768px) {
	.review-text {
		font-size: 1.1em;
	}

	.flex-container-home {
		display: flex;
		flex-direction: column;
	}

	.page-template-template-homepage .entry-header h1 {
		font-size: 2em;
	}

	.woocommerce-grouped-product-list-item {
		display: flex;
		flex-direction: column-reverse;
	}

}

.content-area .site-main {
	padding-top: 0px !important;
}

.single_add_to_cart_button.button.alt{
    width:100%;
}

.mmca-review-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 9px 24px;
    text-decoration: none;
    font-family: inherit;
    color: inherit;
    background-color: #d2d3d3;
}


.mmca-review-bar__google {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1;
    flex-shrink: 0;
}
.mmca-review-bar__google .g-b { color: #4285F4; }
.mmca-review-bar__google .g-r { color: #EA4335; }
.mmca-review-bar__google .g-y { color: #FBBC05; }
.mmca-review-bar__google .g-g { color: #34A853; }

.mmca-review-bar__divider {
    display: inline-block;
    width: 1px;
    height: 17px;
    background: currentColor;
    opacity: .25;
    flex-shrink: 0;
}

.mmca-review-bar__stars {
    color: #f5a623;
    font-size: 17px;
    letter-spacing: 1px;
    line-height: 1;
    flex-shrink: 0;
}

.mmca-review-bar__rating {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.mmca-review-bar__count {
    font-size: 14px;
    opacity: .65;
    white-space: nowrap;
}

.mmca-review-bar__cta {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Desktop — show full text, hide short */
.mmca-rating--short,
.mmca-count--short {
    display: none;
}

/* Mobile — swap to short versions */
@media (max-width: 480px) {
    .mmca-review-bar { gap: 8px; padding: 8px 12px; }
    .mmca-review-bar__google { font-size: 13px; }
    .mmca-review-bar__stars  { font-size: 14px; }
    .mmca-review-bar__rating { font-size: 13px; }
    .mmca-review-bar__cta    { font-size: 11px; }
    .mmca-rating--full  { display: none; }
    .mmca-rating--short { display: inline; }
    .mmca-count--full   { display: none; }
    .mmca-count--short  { display: inline; }
}

.woocommerce p.stock.available-on-backorder,
.woocommerce p.backorder_notification,
.woocommerce-cart p.backorder_notification,
.woocommerce-checkout p.backorder_notification {
    font-weight: 700;
    font-size: 1.1em;
}