/* my styles */
*{
    box-sizing: border-box;
    font-size: 10px;
    text-decoration: none;
    color: darkslategray;
    background-color: whitesmoke;
    font-family: 'Quicksand', sans-serif;
}
.quicksand {
    font-family: 'Quicksand', sans-serif;
}
h1, h2, h3, button, .checkout {
    font-family: "Marcellus", serif;
}
.centered {
    text-align: center;
}
a, p, td, th {
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
}
/* buttons */
.zoomButton {
    border-radius: 16px;
    border: 1.5px solid darkslategray;
    padding: 0.3rem 1.5rem;
    color: darkslategray;
    display: inline-block;
    overflow: hidden; /* Prevents scale overflow */
}
.zoomButton:hover {
    color: rgb(153, 0, 255);
}
/* text needs to be nested in span to have text transition larger without enlarging/growing the whole button  */
.zoomButton span {
    display: inline-block;
    transition: transform 0.4s ease-out, color 0.3s ease-out;
    transform-origin: center;
    font-size: 1rem;
}
.zoomButton:hover span {
    transform: scale(1.1);
    color: black;
}

.ghostButton {
    overflow: hidden;
    padding: .6rem 1.5rem;
	font-size: 1rem;
	position: relative;
	border: 2px solid black;
    border-radius: 16px;
	color: black;
	background-color: transparent;
	text-align: center;
}
.ghostButton {
    span {
        position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		padding: .6rem 1.5rem;
		opacity: 0;
		color: white;
		transition: 0.35s ease;
        background-color: black;
	}
    &::before {
        content: "";
		left: 0;
		top: 0;
		position: absolute;
		width: 0;
		height: 100%;
		background-color: black;
		transition: 0.5s ease;
	}
    
	&:hover {
        &:before {
            width: 100%;
		}
        
		span {
            opacity: 1;
		}
	}
}
/* header  */
.heroImgFrontPage {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    object-position: 50% 65%;
    display: block;
}
.heroImg {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    object-position: 50% 65%;
}
header {
    padding: 1rem .5rem;
}
header, .customNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* navigation bar */
.title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.1rem;
}
#dropdownButton {
    background: whitesmoke;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
}
.dropdownContainer {
    display: inline-block;
}
.dropdownContent {
    max-height: 0;
    overflow: hidden;
    margin-top: .5rem;
    
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    pointer-events: none;
}
.dropdownContent.show {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto; 
}
.dropdownContent a {
      padding: .8rem 1rem;
      display: block;
      color: darkslategray;
}
.dropdownContent a:hover {
    background-color: #f1f1f1;
    color: black;
}
.link{
    padding: .5rem 1rem;
    border: none;
    color: darkslategray;
}
.link:hover {
    color: black;
    border-bottom: 1px solid black;
}
.customNav {
    padding: 0 1.5rem;
}
/* tagline */
.tagline {
    padding: 7rem 4.5rem;
    font-size: 2.3rem;
}
/* custom work */
.customContainer, 
.customContainer * {
  user-select: none;
}
.sectionCustom {
    margin-top:4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.sectionCustom h2 {
    font-size: 2rem;
    text-align: center;
}
.sectionCustom p {
    font-size: 1.3rem;
    margin-top: .4rem;
    text-align: center;
}
.customContainer {
    margin: 2rem 0 3rem;
    position: relative;
    width: 40rem;
    height: 20rem;
    overflow: hidden;
}
.customImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sliderLine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    cursor: ew-resize;
}
.slider {
    background-color: whitesmoke;
    border-radius: 50%;
    width:2rem;
    height: 2rem;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    line-height: 2rem;
    top: 50%;
    position: absolute;
    z-index:5
}
.line {
    width:3px;
    height: 100%;
    background-color: whitesmoke;
}
#customImgTop {
    z-index: 2;
    clip-path: inset(0 50% 0 0); /* Show only left half initially */
}
@media (min-width: 1500px) {
  .customContainer {
    width: 50rem; 
    height: 30rem;
  }
}

/* recent work */
.secondHeader {
    padding: 0 0 1rem 0;
}
.productCard {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    max-height: 1000px;
    transition: opacity 1s ease, max-height 1s ease;
}
.productCard:hover .frontpageImg {
    transform: scale(1.2); 
}
.frontpageImg {
    width: 100%;
    display: block;
    margin: 0;
    transition: transform 7s ease;
}
.imageGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    margin: 0;
}
.hidden {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}
.seeMoreButton {
    margin: 2rem auto;
}
@media (min-width: 768px) {
    .imageGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* about section */
.aboutSection {
    padding: 5rem 0;
    line-height: 1.3rem;
}
.aboutSection h2 {
    padding: 3rem 0;
    font-size: 1.8rem;
}
.aboutContainer {
    display: flex;
}
.aboutContainer img {
    width: 50%;
    object-fit: contain;
}
.aboutBlurb {
    font-size: 1.2rem;
    padding: 5rem 4rem;
}
.name {
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 2rem;
}
.customArtContainer {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.customArt {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}
.customBlurb {
    font-size: 1.2rem;
    max-width: 800px;
    padding: 0 4rem;
    line-height: 1.5rem;
}
.customBlurb p:first-child {
    margin: 2rem;
}
@media (max-width: 700px) {
    .aboutContainer {
        flex-direction: column;
        align-items: center;
    }
    .aboutBlurb {
        padding: 0 4rem 4rem;
    }
}
@media (min-width: 1200px) {
    .aboutContainer img {
        width: 30%;
        margin: 2rem 3rem 0 0;
    }
    .aboutBlurb {
        padding: 6rem 13rem;
    }
}

/* contact form styles */

.contactFormSection h3 {
    margin: 100px 0 25px 0;
    font-size: 2.3em;
    text-align: center;
    letter-spacing: 7px;
}
.contactFormContainer {
    padding: 2rem 0;
    background: #e2dedb;
    color: #b3aca7;
    overflow: hidden;
}
.contactForm {
    width: 500px;
    margin: 50px auto;
}

.contactForm input {
    color: #b3aca7;
    font-size: 1rem;
    width:  100%;
    height: 50px;
    padding: 0px 15px 0px 15px;
    
    background: transparent;
    outline: none;
    color: black;
    
    border: solid 1px #b3aca7;
    border-bottom: none;
    
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
}

.contactForm input:hover, .contactForm label:hover {
    background: #b3aca7;
    color: black;
}

.contactForm textarea {
    width: 500px;
    max-width: 500px;
    height: 110px;
    max-height: 110px;
    padding: 15px;
    
    background: transparent;
    outline: none;
    
    color: black;
    font-size: 1rem;
    
    border: solid 1px #b3aca7;
    border-bottom: none;
    
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
}

.contactForm textarea:hover {
    background: #b3aca7;
    color: black;
}

/* Container around file input */
.fileUploadWrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease-in-out;
    border: solid 1px #b3aca7;
    font-family: 'Quicksand', sans-serif;
    padding: 10px 0 20px;
}

/* Hide actual input */
#reference {
    display: none;
}

/* Style the fake file input button */
.fileUploadButton {
    margin-left: 1.5rem;
    font-family: 'Quicksand', sans-serif;
    padding: 10px 30px;
    background: #b3aca7;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}

.fileUploadButton:hover {
    background-color: #7a756f;
}

/* File name display text */
#fileUploadText {
    font-size: 0.9rem;
    color: #333;
}
.previewWrapper {
  margin-top: 1rem;
  justify-content: center;
  align-items: center;
  display: none; /* Hidden until image is loaded */
}
#previewImage {
  max-width: 100%;
  max-height: 300px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Clear button style */
#clearFileButton {
  background-color: transparent;
  border: 1px solid #b3aca7;
  color: #7a756f;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#clearFileButton:hover {
  background-color: #b3aca7;
  color: white;
}
#submit {
    width: 100%;
    
    padding: 0;
    margin: -5px 0px 0px 0px;
    
    font-size: 1rem;
    color: rgb(48, 45, 45);
    
    outline:none;
    cursor: pointer;
    
    border: solid 1px #b3aca7;
    border-top: none;
}

#submit:hover {
  color: #e2dedb;
}

/* footer */
.icons {
    display: flex;
    justify-content: center;
}
.icons li {
    margin: 1rem;
}
.icons a{
    transition: background-color 0.25s ease-in-out;
    display: inline-block;
    width: 2.75em;
    height: 2.75em;
    line-height: 2.8em;
    text-align: center;
    border: 0;
    box-shadow: inset 0 0 0 1px #cccccc; 
    /* outline of icon */
    border-radius: 100%;
    color: #aaa;
}
.icons a:hover {
    background: rgba(0, 0, 0, 0.025);
}
footer {
    margin: 2rem;
}
/* category styles */
.categoryTitle {
    font-size: 2rem;
    padding: 3rem 0;
}
.categoryContainer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0 2rem 3rem;

}
.categoryCard {
    width:100%;
    padding-bottom: 1rem;
}
.categoryImg {
    object-fit: contain;
    width:100%;   
}
.prodTitle {
    font-size: 1.2rem;
    font-weight: 600;
    padding: .5rem 0;
}
@media (min-width: 600px) {
    .categoryCard {
        width:49%;
    }
}
@media (min-width: 900px) {
    .categoryCard {
        width:30%;
    }
}
@media (min-width: 1200px) { 
    .categoryContainer {
        padding: 0 8rem 2rem;
    }
}
@media (min-width: 1600px) { 
    .categoryContainer {
        padding: 0 15rem 2rem;
    }
}

/* post styles */
s {
    text-decoration: line-through;
}
.postTitle {  
    font-size: 2.3rem;
    padding: 2rem 0 1.5rem 3rem;
}
.postContainer {
    padding: 1rem 2rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.caption {
    padding-bottom: 1rem;
}
.dimensions {
    padding-bottom: 2rem;
    font-size: 1rem;
}
.mainImage {
    width: 80%;
    max-width: 500px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.galleryContainer {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
}
.gallery {
    width: 30%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.gallery:hover {
    transform: scale(1.05);
}
.postInfo {
    max-width: 20rem;
    margin-top: 2rem;
    font-size: 1.3rem;
    line-height: 1.7rem;
}
.quantityLabel {
    font-family: 'Quicksand', sans-serif;
}
.selectQty {
    appearance: base-select;
    font-size: 1.2rem;
    background-color: transparent;
    font-family: 'Quicksand', sans-serif;
    border-radius: calc(0.5rem - 2px);
}
.selectQty option {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
}
.price {
    padding-bottom: 1rem;
}
.addToCartForm {
    margin: 0 0 3rem 0;
}
.buttonContainer {
    padding: 2rem 3rem .7rem;
    display: flex;
    justify-content: space-around;
    align-items: center; 
    gap: .5rem; 
    line-height: 1.25rem;
}
.checkout, .cartButton {
    display: inline-block;
    width: 50%;
}
.keepLooking { 
    display: inline-block;
    line-height: 1.25rem;
    font-family: "Marcellus", serif;
    width: 70%;
}
/* post modal image styles */
.imageModal {
    display: none; 
    position: fixed;
    z-index: 2;
    padding-top: 5rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.imageModal .modalContent {
  margin: auto;
  display: block;
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.imageModal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  background-color: transparent;
  color: whitesmoke;
  font-size: 3rem;
  font-weight: 600;
  transition: 0.3s;
}

.imageModal .close:hover {
  color: #bbb;
}

/* mobile media queries for post page */

@media screen and (min-width: 650px) {
    .postContainer {
        flex-direction: row;
        justify-content: center;
    }
    .keepLooking, .checkout, .cartButton {
        width: 60%;
    }
    .buttonContainer {
        flex-direction: column;
        padding: 2rem 0 .55rem;
    }
    .IMAGES {
        width: 75%;
    }
}
@media screen and (min-width: 1000px) {
    .IMAGES {
        width: 60%;
    }
    .postInfo {
        margin-top: 3rem;
    }
}
@media screen and (min-width: 1200px) {
    .IMAGES {
        padding-right: 5rem;
    }
    .postTitle {  
        padding: 3rem 0 2rem 18rem;
    }
    .postInfo {
        margin-top: 4rem;
    }
}
@media screen and (min-width: 1500px) {
    .postTitle {  
        padding-left: 30rem;
    }
    .postInfo {
        margin-top: 6rem;
    }
    .galleryContainer {
        width: 80%;
        margin: 2rem auto 0;
    }
}
/* cart styles */
.thanks {
    margin: 2rem auto 1rem;
}
.cartContainer {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
table {
    margin: 2rem 0;
    font-size: 1.2rem;
}
td {
    vertical-align: middle;
    padding: .5rem;
}
thead {
    font-weight: 600;
    border-bottom: solid 1px #888;
}
tfoot {
    border-top: 1px solid black;
}
td:nth-child(1) { width: 50%; } /* Image */
td:nth-child(2) { width: 20%; } /* Title */
td:nth-child(3) { width: 10%; } /* Price */
td:nth-child(4) { width: 10%; } /* Qty */
td:nth-child(5) { width: 10%; } /* Delete */

.cartImage {
    max-width: 100%;
    max-height: 10rem;
    object-fit: cover;
}
.cartQty{
    cursor: pointer;
    padding:.1rem;
    font-size: .8rem;
}
.deleteCart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: .16rem .6rem .16rem .2rem;
    width: fit-content;
    font-size: .8rem;
    border: 1px solid black;
    background-color: rgba(240, 207, 22, 0.925);
    color: black;
    cursor: pointer;
    border-radius: 10px;
}
.deleteCart:hover {
    background-color: rgba(236, 41, 41, 0.911);
}
.deleteCart i {
    background-color: inherit;
    margin-top: 1px;
    border: none; 
    font-size: 0.9rem;  
    padding-right: 0;
    vertical-align: middle;       
    display: inline-block;
}
.total {
    vertical-align: middle;
}
.inline-block {
    display: inline-block;
}
.cartButtonContainer {
    display: flex;
    gap: 1rem; 
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
@media screen and (min-width: 1300px){
    .cartButtonContainer {
        margin-top: 2rem;
        flex-direction: column;
        width: 40%;
    }
    .cartGhostButton {
        background-color: rgba(144, 214, 144, 0.781);
        width: 100%;
    }
    .cartImage {
        max-height: 15rem;
    }
}

/* discount too high error alert */
.custom-alert {
    padding-right: .6rem;
}
.custom-close {
    opacity: .6;
    background-color: hsl(354, 67%, 91%) ;
    padding: 0 .5rem;
    color: black;
    margin-left: .6rem;
}
.custom-close:hover {
    background-color: transparent;
    opacity: 1;  
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2); 
    border-radius: 0.25rem;           
}

/* profile styles */

select {
    font-family: 'Quicksand', sans-serif;
    border-radius: 8px;
    border: 1px solid;
    padding: .2rem 1.7rem;
}
select option {
    font-size: 1rem;
}
.radio {
    display: inline;
}
.productContainer, .addProductContainer, .productDiv {
    width: 50%;
}
.favoriteTrash {
    background-color: transparent;
    display: flex;
    justify-content: end;
    align-content: center;
    position: relative;
    bottom: 1.5rem;
}
.favoriteTrash form {
    background-color: transparent;
}
.iconButton {
    font-size: 1rem;
    border: 1px solid grey;
}
.buttonContainerProfile {
    position: relative;
    bottom: 1.4rem;
}
.buttonContainerProfile .btn {
    width: 100%;
    padding: 0;
}
.favorite {
    background: #fec708; 
}
.profileReturn {
    width: fit-content;
    margin: 2rem auto;
}
@media screen and (min-width: 1250px) {
    .productContainer {
        width: 33%;
    }
    .productDiv {
        width: 60%;
    }
    .addProductContainer {
        width: 40%;
    }
}
@media screen and (min-width: 1550px) {
    .productContainer {
        width: 25%;
    }
    .productDiv {
        width: 62%;
    }
    .addProductContainer {
        width: 33%;
    }
}
/* payment success page */

.checkout-message {
    padding: 3rem;
    font-size: 2rem;
    color: black;
}
.checkout-message p {
    text-align: center;	
    line-height: 2.2rem;
    margin-top: 8rem;	
}

/* signin/password styles */
.authContainer {
    margin: 4rem auto;
    line-height: 1.5rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
}
.authContainer button, .alertDanger, .alertInfo {
    margin: 1rem auto;
    font-size: 1rem;
    border: 1px solid;
    border-radius: 5px;
    padding: .3rem 1rem;
}
.authContainer input {
    font-size: 1rem;
    margin-top: .5rem;
    padding: .4rem;
    border: 1px solid;
    border-radius: 5px;
}
.forgotPassword {
    display: block;
    margin-top: 2rem;
}
.alertDanger {
    background-color: rgb(241, 172, 144);
}
.alertInfo {
    background-color: rgb(192, 235, 192);
}
/* error pages */
.error {
    font-size: 1.5rem;
    padding: 2rem;
}
.error h1 {
    padding: 1rem;
}
.error p {
    padding: 1rem;
}
/* add to cart animation */
.shopping-cart-nav {
    position: relative;
}
.shopping-cart-nav::before {
    position: absolute;
    content: attr(data-product-count);

    top: -.8rem;
    right: -.7rem;

    width: 1.5rem;
    height: 1.5rem;

    color: black;
    border: 1px solid black;
    background-color:transparent;
    font-family: sans-serif;
    font-size: 1rem;

    border-radius: 50%;

    text-align:center;
    line-height: 1.6rem;
}
.shopping-cart-nav:not([data-product-count])::before {
    display: none;
}
.shopping-cart {
    position: fixed;
    right: 1rem;
    bottom: 4rem;

    width: 4rem;
    height: 4rem;
    background-color: #fff;
    border-radius: 50%;
    outline: .5rem solid transparent;

    text-align:center;
    line-height: 4rem;

    cursor: pointer;
    box-shadow: 0 .2rem .6rem #0006;
    transition: .5s ease-in-out;
    z-index: 100;
}

.shopping-cart.active {
    width: 8rem;
    border-radius: .8rem;
}

.shopping-cart.active > span{
    margin-left: -4rem;
}

.arrow:hover, .shopping-cart:hover {
    outline: .5rem solid #fff5;
}

.shopping-cart::before {
    position: absolute;
    content: attr(data-product-count);

    top: -.5rem;
    right: -.5rem;

    width: 2rem;
    height: 2rem;

    color: #fff;
    background-color: rgb(153, 0, 255);
    font-family: sans-serif;

    border-radius: 50%;

    text-align:center;
    line-height: 2rem;
}
.cart-icon {
    font-size: 2rem;
    transition: .5s ease-in-out;
}