/* ============================================
   FONTS & TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@100;300;400;500;700;800;900&display=swap');

@font-face {
    font-family: 'Cachet';
    src: url('/files/fonts/Cachet Std Book.otf') format('opentype'),
         url('/files/fonts/Cachet Std Medium.otf') format('opentype'),
         url('/files/fonts/Cachet Std Bold.otf') format('opentype');
    font-weight: 100 200 300 400 700; 
    font-style: normal;
}

* {
    font-family: "Cachet", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Cachet", sans-serif;
    font-weight: 700;
    font-style: bold;
}

p {
    font-family: "Cachet", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ============================================
   BASE LAYOUT
   ============================================ */
body {
    padding: 0;
    margin: 0;
}

.center-wrap {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

main {
    padding: 0 10%;
    padding-top: 4em;
}

.content--main {
    margin-left: 0;
    border-left: 0;
    padding: 0;
}

/* ============================================
   HEADER
   ============================================ */
.header--site {
    color: #ffffff;
    background-color: #1588cb !important;
    margin: 0;
    padding: 0 10%;
    width: 100%;
    padding-bottom: 20px;
}

.header--site:nth-child(1n) {
    float: inline-start;
}

.header__contents {
    display: grid;
    grid-template-areas: "logo search";
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: initial;
    margin-top: 0;
}

/* Logo Area */
.logo-space {
    display: flex;
    align-items: center;
    justify-content: left;
    height: 100%;
    max-height: 150px;
    grid-area: logo;
}

.logo-space img {
    max-height: fit-content;
    width: 346px;
    object-fit: contain;
}

/* Navigation */
.nav--header {
    border-top: 0;
    border-bottom: 0;
    text-align: right;
    padding-top: 20px;
    padding-bottom: 0px;
}

.nav--user {
    padding: 20px 0;
}

.nav--user li + li {
    border-left: none;
}

ul.nav-list {
    text-transform: uppercase;
}

.nav-list li + li {
    margin-top: var(--gutter);
}

ul.nav-list li {
    padding: 5px 10px !important;
    border-radius: 5px;
}

nav.nav--header ul.nav-list li:hover {
    background-color: #8c2d86;
    padding: 5px 0;
}

.nav-list a {
    font-size: 1em;
    font-weight: bold;
}

/* Search Area */
.search-space li:hover {
    background-color: #8c2d86;
    padding: 5px 0;
}

.search-form.formContainer {
    padding: 0 0 0 30%;
}

.search-form input[type=text].input--search,
.search-form input[type=search].input--search  {
    line-height: 1;
    padding: 0 0.5em;
    border: 2px solid #ffffff;
    height: 40px;
    outline: none;
    border-radius: 10px 0 0 10px !important;
}

.search-form.formContainer input[type=text].input--search:focus {
    background: rgb(255 255 255);
}

.search-form.formContainer input[type=text].input--search:focus ~ button {
    background: rgb(138 47 131);
}

.search-form.formContainer input {
    color: #434343;
}

.button--search {
    border: 2px solid #8c2d86;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    background: #8e2a8a;
    color: #ffffff;
    margin: 0;
    height: 40px;
    border-radius: 0 10px 10px 0 !important;
    width: 80px;
}

i.fa.fa-search {
    font-size: 1.4em;
}

.badge--primary {
    background: #2087c7;
}

/* ============================================
   HERO UNIT & BANNER
   ============================================ */
.homepage {
    width: 100%;
}

.homepage:nth-child(1n) {
    float: inline-start;
}

.homepage .hero-unit {
    width: 100%;
    padding: 300px 0;
    margin-bottom: 16px;
    position: relative;
}

.homepage .hero-unit:nth-child(1n) {
    float: inline-start;
}

.homepage .hero-unit .overlay {
    display: none;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0; 
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.5s ease-in-out; 
}

.overlay-1 {
    z-index: 3;
    transform: translateX(29%); 
}

.overlay-2 {
    z-index: 2;
    transform: translateX(36%);
}

.overlay-3 {
    z-index: 1;
    transform: translateX(43%);
}

.hero-banner:hover .overlay-1 {
    transform: translateX(100%);
    transition-delay: 0s; 
}

.hero-banner:hover .overlay-2 {
    transform: translateX(100%); 
    transition-delay: 0.2s; 
}

.hero-banner:hover .overlay-3 {
    transform: translateX(100%);
    transition-delay: 0.4s; 
}

.hero-text {
    position: absolute;
    bottom: 10px; 
    width: 100%;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 2.5em;
    transform: translateY(0);
    transition: transform 0.8s ease-in-out;
}

.hero-banner:hover .hero-text {
    transform: translateY(-10%);
    transition-delay: 0.7s; 
}

.hero-final-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(128, 0, 128, 0.8); 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 24px 40px; 
    opacity: 0; 
    transform: translateY(100%); 
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.hero-banner:hover .hero-final-content {
    opacity: 1;
    transform: translateY(0); 
    transition-delay: 0.5s; 
}

.hero-final-content .hero-text {
    color: white;
    text-align: left; 
    flex: 1;
}

.hero-final-content .hero-text span {
    display: block;
    font-size: 1em;
    margin-top: 5px;
}

.hero-final-content .hero-final-svg {
    flex-shrink: 0; 
    width: 96px;
    height: 97px;
    margin-left: 20px; 
}

.hero-final-content .hero-final-svg svg {
    width: 100px;
    height: auto;
    position: absolute;
    right: 150px;
    bottom: 20px;
}

.hero-final-svg span {
    color: white;
    position: absolute;
    right: 275px;
    bottom: 55px;
    font-size: 1.4em;
    text-transform: uppercase;
    font-weight: 600;
}

svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   CALLOUTS
   ============================================ */
.callout {
    position: relative;
    overflow: hidden;
    width: 100%; 
    height: auto; 
    aspect-ratio: 3 / 2; 
    border-radius: 25px;
    overflow: hidden;
}

.hover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hover-overlay {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transition: transform 0.4s ease;
    opacity: 0.8;
}

.hover-overlay svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; 
}

.left-svg, .right-svg {
    width: 100%;
    height: 100%; 
    z-index: 99;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.left-svg {
    left: -0px;
    width: 331px;
    transform: translateX(0);
}

.right-svg {
    right: -140px;
    width: 450px;
    transform: translateX(0);
}

.callout:hover img {
    transform: scale(1.1);
}

.callout:hover .left-svg {
    transform: translateX(-120%);
}

.callout:hover .right-svg {
    transform: translateX(120%);
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    z-index: 5;
    pointer-events: none;
}

.callout-text {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1); 
    text-align: center;
    color: white;
    z-index: 10;
    transition: transform 0.4s ease; 
    width: 80%;
}

.callout-text h2.title {
    color: white;
    text-transform: uppercase;
}

.callout-text .title {
    font-size: 2rem; 
    font-weight: bold;
    margin: 0;
    line-height: 1.2; 
    transition: transform 0.4s ease;
}

.callout-text .shop-now {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #8e2a8a;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    font-size: 1rem;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.callout-text .shop-now:hover {
    background-color: #90278E;
}

.callout-text .shop-now i {
    margin-left: 5px;
    transition: transform 0.4s ease;
}

.callout-text .shop-now:hover i {
    transform: translateX(5px);
}

.callout:hover .callout-text {
    transform: translate(-50%, -50%) scale(1.1); 
}

.callout:hover .callout-text .title {
    transform: scale(1.1);
}

.callout:hover .callout-text .shop-now {
    transform: scale(1.05); 
}

.homepage .callouts .callout figcaption .title:nth-child(1n) {
    float: none;
}

.homepage .callouts .callout figcaption .title {
    width: 100%;
    text-align: center;
}

/* ============================================
   SIDEBAR & NAVIGATION
   ============================================ */
.sidebar--site {
    text-align: left;
}

.sidebar__title {
    color: #438ECC;
    font-size: 1.8em;
    font-weight: 700;
}

.nav--sidebar ul li {
    line-height: 1.8;
    width: 100%;
    color: #636466;
}

/* Dropdown menu styles */
.has-children > a {
    position: relative;
}

.has-children a {
    width: 100%;
    display: block;
    padding: 0 0em;
}

.has-children > a::after {
    content: "\f078";
    font-family: "FontAwesome", system-ui;
    margin-left: 0.25em;
}

.has-children:hover > a:link {
    color: #8e2a8a;
    background: var(--color-light-grey, white) !important;
}

.has-children:hover > a {
    color: #8e2a8a;
    background: var(--color-light-grey, white) !important;
}

.has-children ul {
    width: 100%;
    display: none;
    margin: 0;
    border: 1px solid var(--divider-color);
    background: white;
    padding-top: 0.5em;
    padding: 1em;
}

.has-children ul li {
    line-height: 1.8;
    width: 100%;
}

.has-children:hover > ul {
    display: block;
}

.child a {
    color: #0089cf;
}

.child a:hover {
    color: #90278E;
}

:after, :before {
    text-decoration: inherit;
    vertical-align: inherit;
}

/* ============================================
   CATEGORIES & PRODUCTS
   ============================================ */
.categories {
    display: flex;
    flex-wrap: wrap;
}

.category {
    min-width: 30%;
}

.category:nth-child(1n) {
    clear: none !important;
}

.category__title {
    display: none;
}

.category__cta {
    display: none;
}

.category__image {
    width: 100%;
    height: auto; 
    display: flex; 
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 25px;
}

.category__image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

.category__info {
    background-color: #800080a1;
    position: relative;
    margin-top: -85px;
    height: 85px;
    border-radius: 0 0 25px 25px !important;
    transition: background-color 0.8s ease, transform 0.4s ease;
    padding: 0 20px;
}

.category__info h3, .category__copy {
    color: white;
}

.category__info h3 {
    font-size: 2em;
}

.category__copy {
    position: relative;
    display: contents;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2em;
}

.category__copy i {
    display: inline-block;
    font-size: 1em; 
    margin-left: 0.5em;
    transition: transform 0.4s ease, font-size 0.4s ease; 
}

.category__copy:hover i {
    transform: translateX(10px); 
    font-size: 1.2em; 
}

.category:hover .category__info {
    background-color: #8c2d86;
}

.category:hover i.fa.fa-angle-double-right {
    position: absolute;
    right: 35px;
    bottom: 30px;
    scale: 1.6;
}

/* Products */
.products.products--grid .product__image img {
    border: 1px solid #c8c8c8;
    border-radius: 25px;
}

.products.products--grid .product__info * {
    font-weight: bold;
}

.product__title {
    height: 3em;
}

.product .product__info .product__title h3 a {
    font-weight: bold;
    color: #8f2b89;
}

.product .product__info .product__copy p {
    font-weight: bold;
    font-size: 1.2em;
    color: #1588cb;
}

.products.products--grid .product__cta {
    border-top: 2px solid #1588cb;
}

.products.products--grid .product__cta .button {
    width: 34%;
    text-transform: uppercase;
}

/* Product Landing */
section.product-landing {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    align-items: start;
    grid-template-rows: auto auto;
}

.product-landing .product__images {
    width: 100%;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.product__info.formContainer {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.product__pricing {
    margin-top: 1rem;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.product__images img.hoverZoom {
    border: 1px solid #a9a9a9;
    border-radius: 15px;
}

/* Buttons */
.button--theme--primary {
    color: white;
    border-radius: 6px;
    background: #91288D;
    border: 1px solid #91288D;
}

a.button, button.button input[type=button].button, input[type=submit].button, .button {
    border-radius: 6px;
}

/* Form Elements */
input, select, form .datum input[type=text]:nth-child(1n), 
.form .datum input[type=email]:nth-child(1n), 
.form .datum input[type=number]:nth-child(1n), 
.form .datum input[type=password]:nth-child(1n), 
.form .datum textarea:nth-child(1n), 
.form select {
    border-radius: 6px !important;
}

/* ============================================
   PAGE STYLES
   ============================================ */
.page__title h1 {
    color: #90278E;
    font-size: 2em;
    text-transform: uppercase;
}

p + * {
    margin-top: 10px;
}

/* ============================================
   IP TABS
   ============================================ */
.ip-tabs:nth-child(1n) {
    float: left;
    margin-right: 16px;
}

.ip-tabs ul {
    list-style: lower-roman;
    margin: 0;
    padding: 0;
    height: 500px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: space-around;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.ip-tabs ul li:not(:first-child) {
    margin-left: 0;
}

.image-picker-wrapper {
    padding: 10px;
}

.ip-body:has(.croppie-container) {
  max-height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer--site {
    background-color: #0089cf;
    color: white;
    padding: 0 10%;
    width: 100%;
    height: 100%;
    margin-top: 250px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
    margin-bottom: 35px;
}

/* Logo styles */
.footer-center-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.footer-center-logo img {
    max-width: 500px;
    width: 100%;
}

.footer-right-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 200px;
}

footer.footer--site {
    font-size: 1.4em;
}

footer.footer--site img {
    margin: 40px;
}

img.y-logo {
    width: 245px;
    position: absolute;
    bottom: 1em;
    right: 10%;
    margin: 0px !important;
}

/* Link styles */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-links a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright-info {
    margin-top: 16px;
    font-size: 0.8em;
}

.copyright-info a {
    color: white;
}

.copyright {
    margin-bottom: 2em;
    margin-top: 4em;
}

.footer-fixer::after {
    height: 0;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
/* Large Screens */
@media all and (max-width: 2045px) {
    .category__info h3 {
        font-size: 1.2em;
    }
}

@media all and (max-width: 1494px) {

    .footer-right-logo {
        width: 80px;
    }

    .footer-center-logo img {
        max-width: 325px;
    }

    .footer-links a {
        font-size: .6em;
    }

    .copyright-info {
        font-size: 0.6em;
        max-width: 160px;
    }
}

@media all and (max-width: 1380px) {
    .products.products--grid .product__cta .button {
        width: 52%;
    }
    
    .hero-banner:hover .hero-text {
        width: 50%;
        padding: 11px;
        font-size: 2em;
    }
    
    .right-svg {
        right: -127px !important;
    }
    
    .left-svg {
        left: -83px !important;
    }
}

@media all and (max-width: 1180px) {
    main {
        padding: 0 5%;
        padding-top: 3em;
    }
}

/* Medium Screens */
@media all and (min-width: 1070px) {
    li.mobile-only {
        display: none !important;
    }
}

@media all and (max-width: 1069px) {
    li.mobile-only {
        display: inline-block;
    }
    
    .sidebar--site {
        display: none;
    }
    
    .content--main {
        border-left: 0px;
    }

}

@media all and (min-width: 890px) and (max-width: 2000px) {
    .category__info {
        margin-top: -70px;
        height: 70px;
    }
}

/* Smaller Screens */
@media all and (max-width: 877px) {
    .header--site {
        padding: 0 5% !important;
    }
    
    .header__contents {
        grid-template-areas:
            "logo"
            "search";
    }
    
    .logo-space {
        justify-content: center;
        text-align: center;
    }
    
    .nav--header {
        text-align: center;
    }
    
    .nav--user {
        font-size: 1em;
        text-align: center;
        padding: 20px 0;
    }
    
    .search-form.formContainer {
        padding: 0px;
    }
    
    .search-form {
        margin-left: 1px;
    }
    
    /* Hero adjustments */
    .hero-banner {
        height: 425px;
    }
    
    .hero-overlay {
        width: 200%;
    }
    
    .hero-unit.hero-image {
        background-position: 40% !important;
    }
    
    .hero-text {
        font-size: 1.8em;
        position: initial;
        bottom: 10px;
        padding: 20px 0 40px 0;
    }
    
    .hero-final-content .hero-final-svg svg {
        width: 60px;
        right: 30px;
    }
    
    .hero-final-svg span {
        color: white;
        position: absolute;
        right: 106px;
        bottom: 18px;
        font-size: 1em;
    }
    
    /* Callout adjustments */
    .callout-text {
        top: 61%;
    }
    
    .callout-text .shop-now {
        padding: 10px 5px;
    }
    
    .right-svg {
        right: -162px;
    }
    
    .left-svg {
        left: -76px;
    }
    
    .homepage .callouts .callout {
        min-width: 200px;
        margin-bottom: 1.4em;
    }
    .callout {
        width: 45% !important;
    }
    /* Footer adjustments */
    footer.footer--site img {
        margin: 25px 0;
    }
    
    .footer__info {
        flex-direction: column;
    }
    
    img.y-logo {
        width: 150px;
        position: inherit;
    }
    
    .social-media ul {
        margin: 0;
    }
    
    .social-media {
        margin-top: 0;
        margin-left: 0;
        text-align: CENTER;
    }
    
    .copyright {
        margin-bottom: 1em;
        margin-top: 1em;
    }
    
    .footer__links {
        margin-top: 25px;
        margin-left: 0px;
    }
    
    .content--main {
        padding: 0;
        border-left: 0px;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .left-svg {
        left: -100px; 
        width: 280px; 
    }

    .right-svg {
        right: -180px;
        width: 380px;
    }

    .hero-text {
        font-size: 1.5em; 
    }
}

/* Tablet/Mobile Styles */
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    /* Reorder elements for mobile */
    .footer-center-logo {
        order: 1;
        margin: 0 0 20px 0;
    }
    
    .footer-right-logo {
        order: 2;
        justify-content: center;
        margin: 0 0 30px 0;
    }
    
    .footer-links {
        order: 3;
        align-items: center;
        width: 100%;
    }
    
    .copyright-info {
        text-align: center;
        width: 100%;
    }
}

/* Small Mobile Styles */
@media (max-width: 600px) {
    .footer--site {
        padding: 20px 5%;
    }
    
    .footer-center-logo img {
        max-width: 280px;
    }
    
    .footer-right-logo img {
        max-width: 120px;
    }
    
    .footer-links a {
        padding: 5px 0;
    }
    .callout {
        width: 95% !important;
    }
}

/*KH added to address product customization proofing on desktop displaying on wrong side of screen */

@media (min-width: 425px) {

    .config__preview:nth-child(5n + 1) {

        clear: unset;

    }

}

@media (min-width: 425px) {

    #configureDiv:nth-child(5n) {

        margin-right: 0;

        float: left;

    }

}