/* ══════════════════════════════════════════════
   product-single.css
   Path: /assets/css/product-single.css (in your child theme)
   ══════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────── */
:root {
    /* Brand colours */
    --clr-primary:   #031951;   /* Navy */
    --clr-accent:    #f15e27;   /* Orange */
    --clr-lime:      #d4ff34;   /* Lime yellow */
    --clr-grey:      #a8a8a9;   /* Mid grey */
    --clr-bg:        #ffffff;
    --clr-black:     #000000;

    /* UI colours derived from brand */
    --clr-muted:     #f5f6f8;
    --clr-border:    #e0e2e7;
    --clr-text:      #000000;
    --clr-text-soft: #a8a8a9;

    --radius:   8px;
    --gap:      2rem;

    --tab-active-bg:    var(--clr-primary);
    --tab-active-color: #ffffff;
}

/* ── Container — matches site breakpoints ─────── */
.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 1.5rem;   /* desktop side padding */
}

/* iPad (up to 980px) → max-width 720px */
@media ( max-width: 980px ) {
    .container {
        max-width: 720px;
        padding-inline: 1.5rem;
    }
}

/* Mobile (up to 600px) → full width, 20px padding */
@media ( max-width: 600px ) {
    .container {
        max-width: 100%;
        padding-inline: 20px;
    }
}

/* ── Reset / base ────────────────────────────── */
.product-single-wrap *,
.product-single-wrap *::before,
.product-single-wrap *::after {
    box-sizing: border-box;
}

.product-single-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ══════════════════════════════════════════════
   HERO — Two column layout
   ══════════════════════════════════════════════ */
.product-hero {
    padding: 100px 20px;
    background: var(--clr-bg);
}

.product-hero__inner {
	display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
    background: url(https://dmd.huddleupcreative.com/wp-content/uploads/2026/05/Single-Product-Banner.webp);
    border-left: 15px solid #151f6d;
}

@media ( max-width: 768px ) {
	.product-tabs__nav{
		display:block!important;
	}
	.tab-btn {
        width: 100% !important;
        box-sizing: border-box !important;
}
	.product-aside-banners .container{
		flex-direction:column;
	}
    .product-hero__inner {
        padding-top: 50px;
        padding-bottom: 50px;
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

/* Breadcrumb */
.product-breadcrumb {
    font-size: 0.8rem;
    color: var(--clr-text-soft);
    margin-bottom: 0.75rem;
}
.product-breadcrumb a {
    color: var(--clr-primary);
    text-decoration: none;
}
.product-breadcrumb a:hover { text-decoration: underline; }
.product-breadcrumb .sep { margin-inline: 0.35rem; }

/* Title */
.product-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--clr-primary);
    margin: 0 0 1rem;
    line-height: 1.2;    
	font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

/* Excerpt */
.product-hero__excerpt {
    color: var(--clr-text-soft);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.product-hero__excerpt p { 
	font-size: 16px;
    font-weight: 600;
    color: #000000;
	margin: 0; 
}

/* Buttons */
.product-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: 2px solid transparent;
}


.btn--primary {
    background: var(--clr-accent);
    color: #FFFFFF !important;
    border-width: 1px !important;
    border-color: #F15E27;
    border-radius: 0px;
    font-size: 18px;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    background-color: #F15E27;
    background-image: url(https://dmd.huddleupcreative.com/wp-content/uploads/2026/04/Vector.svg) !important;
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    padding-left: 35px;
}
.btn--primary:hover {
    color: #031951 !important;
    border-color: #D4FF34 !important;
    background-image: initial;
    background-color: #D4FF34;
	    background-position: -10px;
    transition: all ease-in-out 0.5s;
}

.btn--secondary {
    background: #061951;
    color: #FFFFFF !important;
    border-width: 1px !important;
    border-color: #061951;
    border-radius: 0px;
    font-size: 18px;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    background-color: #061951;
}
.btn--secondary:hover { 
    color: #031951 !important;
    border-color: #D4FF34 !important;
    background-image: initial;
    background-color: #D4FF34;
}

/* ── Gallery ─────────────────────────────────── */

.gallery-thumb--hidden {
    display: none;
}

.product-hero__gallery {
    display: grid;
    grid-template-columns: 1fr 88px;
    grid-template-rows: auto;   /* ← add this */
    gap: 0.75rem;
    align-items: start;         /* ← keep this */
}

/* Main image */
.gallery-main {
    overflow: hidden;
    border: 1px solid var(--clr-border);
    background: var(--clr-muted);
    aspect-ratio: 4/3;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

/* Thumb column (right side, scrollable) */
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: start;          /* ← stops it stretching to grid row height */
    max-height: calc((5 * 64px) + (4 * 0.5rem));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
	height: fit-content;  /* ← this is the key addition */
}

.gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}
.gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.gallery-thumb {
    all: unset;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.15s, opacity 0.15s;
    opacity: 0.7;
}
.gallery-thumb:hover,
.gallery-thumb.is-active {
    border-color: var(--clr-accent);
    opacity: 1;
}
.gallery-thumb img {
    width: 80px;
    height: 64px;
    object-fit: cover;
}

@media ( max-width: 520px ) {
    .product-hero__gallery {
        grid-template-columns: 1fr;
    }
    .gallery-thumbs {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
    }
    .gallery-thumb img { width: 70px; height: 56px; }
}


/* ══════════════════════════════════════════════
   FEATURED ITEMS
   ══════════════════════════════════════════════ */
.product-features {
    padding: 3rem 0;
    background: var(--clr-muted);
}

.product-features__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Column sizing */
.product-features__grid.cols-4 .product-feature { flex: 1 1 calc(25% - 1.5rem); }
.product-features__grid.cols-3 .product-feature { flex: 1 1 calc(33.33% - 1.5rem); }
.product-features__grid.cols-2 .product-feature { flex: 1 1 calc(50% - 1.5rem); }
.product-features__grid.cols-1 .product-feature { flex: 0 1 320px; }

@media screen and (max-width:767px){
	.btn--secondary{
		min-width:200px;
justify-content:center;
	}
	.btn--primary{
		display: block;
        max-width: 80%;
        text-align: center;
        margin: 0 auto;
		min-width:200px;
	}
}

@media ( max-width: 680px ) {
    .product-features__grid .product-feature {
        flex: 1 1 calc(50% - 1.5rem) !important;
    }
}
@media ( max-width: 420px ) {
    .product-features__grid .product-feature {
        flex: 1 1 100% !important;
    }
}

.product-feature {
    text-align: center;
    padding: 1.5rem 1rem;
}

/* Filled circle icon — dark navy background, white icon */
.product-feature__icon {
    border-radius: 50%;
    color: #f15e28;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin-bottom: 15px;
}

.product-feature__title {
	font-size: 20px;
    line-height: 1.2em;
    font-weight: 700;
    color: var(--clr-primary);
    margin: 0 0 0.5rem;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.product-feature__desc {
        color: #000000;
}


/* ══════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════ */
.product-tabs {
    padding: 3rem 0 4rem;
}

/* Nav row */
.product-tabs__nav {
    list-style: none;
    margin: 0 0 0.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--clr-border);
}

.product-tabs__nav li { margin: 0; }

.tab-btn {
    all: unset;
    cursor: pointer;
    display: block;
    padding: 0.75rem 1.25rem;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--clr-primary);
}

.tab-btn.is-active {
	color: #ffffff;
    border-bottom-color: var(--clr-accent);
    background: #031951;
}

/* Panels */
.tab-panel {
    display: none;
    padding: 2rem 0 0;
    animation: fadeIn 0.2s ease;
}
.tab-panel.is-active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gform_title{
	display:none;
}

/* Rich text (wysiwyg) reset */
.wysiwyg-content h1,
.wysiwyg-content h2{
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    color: #e65925;
    font-weight: 600 !important;
    font-size: 25px;
    line-height: 1.2em;
    margin-bottom: 15px;
}
.wysiwyg-content h3 {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    color: #061951;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2em;
    margin-bottom: 15px;
}
.wysiwyg-content p  {
	    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    color: #000000;
    font-weight: 500;
    font-size: 16px;
	padding-bottom:20px!important;
    line-height: 21px;
}
.wysiwyg-content ul{
    margin-bottom: 20px;
    margin-top: 20px;
}
.wysiwyg-content li  {
	    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    color: #000000;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
	margin-bottom:10px;
}
.wysiwyg-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.wysiwyg-content th,
.wysiwyg-content td {
    border: 1px solid var(--clr-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.wysiwyg-content th {
    background: var(--clr-muted);
    font-weight: 700;
}

/* ── Video embed ─────────────────────────────── */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}
.responsive-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Gravity Form overrides ──────────────────── */
.product-form-wrap .gform_wrapper {

}
.product-form-wrap .gform_submit_button {
    background: var(--clr-accent) !important;
    border-color: var(--clr-accent) !important;
}

/* ══════════════════════════════════════════════
   ASIDE BANNERS
   ══════════════════════════════════════════════ */
.product-aside-banners {
    padding: 100px 0;
    clear: both;
}

.product-aside-banners .container {
	display: flex;
    /* flex-direction: column; */
    gap: 1.25rem;
    align-items: center;
}

.aside-banner {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;        /* removes inline-block gap under img */
}

.aside-banner a {
    display: block;
    line-height: 0;
}

.aside-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    transition: opacity 0.2s;
}

.aside-banner a:hover img {
    opacity: 0.9;
}

/* Large banner — full container width, 21:9 ratio */
.aside-banner--large {
    max-width: 986px;
}

/* Small banner — square, centred */
.aside-banner--small {
    max-width: 400px;
}

@media ( max-width: 600px ) {
    .aside-banner--large,
    .aside-banner--small {
        max-width: 100%;
    }
}
