/* Theme Name: Botiga Child
   Template: botiga
*/

/* =========================== HEADER STRUCTURE =========================== */

.emoji {
    transform: scale(2);
}

h1 {
    margin: 0;
}

.intangible-header {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Branding */
.intangible-branding {
    display: block;
    background-color: antiquewhite;
    border-bottom: 2px solid black;
    position: relative;
    height: 335px;
    overflow: hidden; /* keeps everything contained */
    overflow: visible;

}

.custom-logo {
    min-width: 180px;
    padding-top: 20px;
    margin-left: -140px;
    margin-top: -25;
}

.site-title {
    font-family: 'Allura', cursive;
    font-size: 120px;
    line-height: .5;
    position: relative;
    margin-top: -130; /* was transform: translateY(-42px); */
    font-weight: 500;
    -webkit-text-stroke: 1.8px black;
}

.site-description {
    font-family: 'Amatic SC', cursive;
    font-weight: 400;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    transform: scaleX(1.4);
    font-size: 32px;
    color: brown;
    padding: 0;
    margin-top: -3px;
    -webkit-text-stroke: 1.2px brown;
    text-shadow:
        0 0 5px beige,
        0 0 10px antiquewhite,
        0 0 20px antiquewhite,
        0 0 40px antiquewhite,
        0 0 40px antiquewhite;
}

/* BURGER — hidden on desktop */
.intangible-burger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    flex: 0 1 auto;
}

/* =========================== NAV + CART ROW (DESKTOP) =========================== */

.intangible-nav-cart {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    padding-right: 60px;
    background-color: DarkSeaGreen;
    border-bottom: 5px solid black;
    justify-content: space-between;
    line-height: 1.5;
    border-top: solid black 3px;
	position: relative;
	overflow: visible;
	z-index: 10;
}

/* NAV — treat nav as ONE block */
.intangible-nav {
    flex: 0 1 auto;
    margin-left: 160px;
    margin-right: 0;
    display: block;
    flex-basis: 5%;
    padding-left: 21%;
}

/* MINE */
.intangible-nav .has-dropdown {
    position: relative;
}

.intangible-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
}

.intangible-nav .has-dropdown:hover .dropdown-menu {
    display: block;
}

/* my cart */
.custom-cart-icon {
    width: 100px !important;
    height: auto !important;
    display: block !important;
}

/* MENU — horizontal */
.intangible-menu {
    display: flex;
    flex-direction: row;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    justify-content: right;
}

/* HIDE DROPDOWN */
.dropdown-symbol {
    display: none !important;
}

/* SUBMENU — hidden */
.intangible-menu .sub-menu {
    display: none;
    position: absolute;
    background: antiquewhite;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    z-index: 9999;
}

.intangible-menu li:hover > .sub-menu {
    display: block;
}

.intangible-menu li {
    padding-right: 28px;
    padding-left: 28px;
    font-family: 'Amatic SC', cursive;
    font-weight: 400;
    font-size: 26px;
    -webkit-text-stroke: .1px;
    transform: scaleX(1.8) scaleY(0.85);
}

/* Add bullets between nav items */
.intangible-menu > li {
    position: relative;
    padding-right: 1.2rem;
    margin-right: 0.6rem;
}

.intangible-menu > li:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -0rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    color: black;
    pointer-events: none;
}

/* Style the link inside the last nav item */
.intangible-menu > li:last-child > a {
    font-family: 'Amatic SC', cursive;
    font-size: 28px;
    letter-spacing: 1.3px;
    text-decoration: none;
    display: inline-block;
}

/* CART — far right */
.intangible-cart {
    margin-left: auto;
    display: flex !important;
    align-items: center;
	position: absolute;   /* moves UPabove the bars */
    right: 20px;  /* moves RIGHT */
    z-index: 9000;
    display: block; /* IMPORTANT — removes flex behavior */
    top: -20px;   /* safe value — guaranteed visible */
	inset: 0 auto auto 0; /* anchor to its original top-left corner */
	right: 20px;      /* anchors it to the right */
    top: -20px;        /* keeps vertical position exactly where it was */
	width: max-content;
}

.intangible-cart .cart-link {
    display: flex !important;
}

/* Hide burger on desktop */
.intangible-burger {
    display: none;
}

/* =========================== SOCIAL BAR =========================== */

.intangible-social-bar {
    width: 100%;
    background: #000;
    padding: 10px 0;
    color: #fff;
    text-align: center;
}

/* =========================== MOBILE LAYOUT =========================== */

@media (max-width: 768px) {

    .intangible-branding .custom-logo {
        width: 170px;
        height: auto;
    }

    .site-title {
        font-family: 'Allura', cursive;
        font-weight: 500;
        font-size: 96px;
        color: blue;
    }

    .intangible-nav-cart {
        position: relative;
        padding-top: 40px;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .intangible-burger {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 20;
        display: inline-flex;
        align-items: center;
        justify-content: center;
		display: inline-flex;
    }

    .intangible-cart {
        position: absolute;
        right: 0;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
    }

	
	.custom-cart-icon {
    width: 70px;
    height: auto;
}
	
    .intangible-nav {
        width: 100%;
		max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
		position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: mediumseagreen;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease;
     z-index: 9999;
    }

    /* When burger is clicked */
.intangible-nav.open {
        max-height: 500px; /* adjust depending on menu size */
		position: fixed;
    	top: 0;
    	left: 0;
   		width: 100%;
    	z-index: 9999;
    	background: antiquewhite;
        max-height: 100vh;
        opacity: 1;
}
    }

    .intangible-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

}
