:root {
  --gold: #CBA611;
}

/* *{border: 1px solid magenta;} */

body{
    margin: 0;
    margin-top: 70px;
    font-family: "Roboto Slab", serif;
}

body::selection{
    color: black;
    background-color: #f7dd79;
}

img {
  width: auto;
  height: auto;
  display: block;
}

.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 15px;
  color: #222;
}

.progress-bar {
  width: 100%;
  max-width: 420px;
  height: 10px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--gold);
  animation: progressSlide 1.2s ease-in-out infinite;
}

@keyframes progressSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

.checkout-tabs {
    max-width: 1000px;
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.checkout-tabs :first-child {
    border-radius: 10px 0 0 0;
}

.checkout-tabs :last-child {
    border-radius: 0 10px 0 0;
}

.checkout-tab {
    flex: 1 1 140px;
    min-width: 140px;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
}

.checkout-tab:hover{
    letter-spacing: 1px;
    background-color: #dddcdc;
}

.checkout-tab.active {
    background: black;
    color: white;
    border-color: black;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.checkout-tab:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

a{
    color: var(--gold);
}

a:hover{
    color: rgba(244, 197, 10, 0.963);
    text-decoration: underline;
}

nav{
    width: 100%;
    height: 70px;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background-color: black;
    position: fixed;
    z-index: 999;
}

.navButtonsContainer{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

nav a{
    display: flex;
    height: 100%;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.15s ease;
}

nav a:hover{
    color:var(--gold);
}

nav #navH1{
    display: none;
    font-size: 30px;
    color: white;
    margin-left: 25px;
}

nav #navH1:hover{
    text-decoration: none;
}

nav .dropdown{
    height: 100%;
}

#navDropdownMenu {
  position: absolute;
  background-color: black;
  display: none;
  flex-direction: column;
  min-width: 200px;
  top: 100%;
  left: 0;
  border-radius: 0 0 10px 10px;
  border: 1px solid white;
  border-top: none;
  z-index: 1000;
}

#navDropdownMenu a {
  padding: 8px 12px;
  color: #fff;
}

#navDropdownMenu a:hover {
  background-color: #555;
}

#navDropdownMenu :last-child:hover {
    border-radius: 0 0 10px 10px;
}

nav .dropdownToggle:hover + #navDropdownMenu,
#navDropdownMenu:hover {
  display: flex;
  flex-direction: column;
}

.cartLink {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cartIcon {
  font-size: 1.2rem;
}

.dropdown {
  position: relative;
}

.dropdownMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  padding: 10px 0;
  border-radius: 6px;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  z-index: 1000;
}

.dropdownMenu a {
  display: block;
  padding: 8px 15px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdownMenu a:hover {
  background: #444;
  color: #ffcc00;
}

.dropdown:hover .dropdownMenu {
  display: block;
}

.hamburger{
    display: none;
    margin-left: 35px;
    transition: all 0.2s ease;
}

.hamburger img{
    height: 40px;
}

footer{
    text-align: center;
}

footer {
  background: #2c2c2c;
  color: white;
  padding: 40px 20px;
}

.footerHeader {
  display: flex;
  flex-direction: column; /* stack logo above name */
  align-items: center;
  gap: 10px;
}

.footerLogo {
  max-width: 120px;  /* adjust size */
  height: auto;
  border-radius: 8px; /* optional: slightly rounded corners */
}

footer h1 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: white;
}

footer a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffcc00; /* highlight on hover */
}

footer #footerProductsLink{
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 10px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

footer #footerProductsLink:hover{
    scale: 1.1;
      box-shadow: 0 0 15px 5px rgba(255, 223, 0, 0.8), /* Inner glow */
              0 0 30px 10px rgba(255, 223, 0, 0.5), /* Middle halo */
              0 0 45px 15px rgba(255, 215, 0, 0.3); /* Outer soft glow */
}

footer h2 {
  margin-top: 20px;
  font-size: 1.4rem;
  border-bottom: 1px solid #555;
  display: inline-block;
  padding-bottom: 5px;
}

.storeHours {
  line-height: 1.6;
  margin: 15px 0;
}

.mapContainer {
  margin: 20px auto;
  max-width: 600px;
}

.mapContainer iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
}

footer h6 {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #bbb;
}

footer iframe{
    border-radius: 10px;
}

section{
    padding: 0 50px;
}

section h2{
    margin-left: 20px;
    margin-right: 20px;
}

#homeSearchContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    max-width: 90%;
    gap: 15px;
    height: 30vh;
    margin: auto;
}

#homeSearchContainer div{
    align-items: center;
    max-width: 100%;
}

#homeSearchContainer :nth-child(1){
    display: flex;
    flex-direction: row;
}

#homeSearchContainer :nth-child(1) div{
    flex-direction: column;
}

#homeSearchContainer :nth-child(1) img{
    height: 150px;
    margin-right: 20px;
}

.inputContainer {
  width: 350px;
  height: 40px;
  display: flex;
}

.inputContainer input {
  flex: 1;
  height: 100%;
  padding: 0 10px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid black;
  border-right-width: 0;
  border-radius: 10px 0 0 10px;
}

.inputContainer button{
    height: 40px;
    width: 40px;
    background-color: var(--gold);
    border: none;
    background-image: url("/images/spyglass.png");
    background-size: 75%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius: 0 10px 10px 0;
    border: 1px solid black;
    border-left: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inputContainer button:hover{
    background-size: 100%;
    background-color: black;
    background-image: url("/images/lookupArrow.avif");
}

#darkWoodSection{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 30px;
    background-image: url("https://lh3.googleusercontent.com/pw/AP1GczOXFakvXZfqiWpy9fymlXzmHisnQ40o8Xh__FVWTPTPA-ana9KSIjeOLg0JRchw9suGvBkgF5Ngt5hKZKV_tVQO5HWmH1W02Bf-Qb7C16GgWBwGPH1agDN6GWQColAqMhdM1C7Pyoa7r-ILgjvnpT7-=w512-h512-s-no-gm?authuser=0");
}

#darkWoodSection a{
    height: 80%;
    transition: all 0.2s ease;
}

#darkWoodSection a img{
    width: 100%;
    height: 175px;
}

#darkWoodSection a:hover{
    scale: 1.1;
    transform: rotateZ(20deg);
}

#welcomeSection{
    width: 1200px;
    max-width: 90%;
    margin: auto;
}

.productsSection{
    border: 1px solid gray;
    margin: 0 50px;
    padding: 0;
    border-radius: 10px;
    margin-bottom: 10px;
}

.productsSection > h2{
    padding: 20px;
    background: lightgray;
    margin: 0;
    border-radius: 10px 10px 0 0;
}

.productsContainer{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
}

::-webkit-scrollbar {
    width: 7px;
    background: black;
}

::-webkit-scrollbar-thumb{
    background: var(--gold);
}

.productsContainer::-webkit-scrollbar {
  height: 15px;
  border-radius: 0 0 10px 10px;
}

.productsContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 0 10px 10px;
}

.productsContainer::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 0 0 10px 10px;
  transition: all 0.5s ease;
}

.productsContainer::-webkit-scrollbar-thumb:hover {
  background: rgb(225, 191, 0);
}

.productsContainer::-webkit-scrollbar-corner {
  background: transparent;
}

#searchResultForH1 {
    margin: 0 50px;
    padding: 0;
    margin-bottom: 10px;
}

.product{
    display: flex;
    flex-direction: column;
    width: 250px;
    min-width: 250px;
    color: black;
    text-decoration: none;
    justify-content: center;
    padding: 20px 5px;
    text-align: center;
}

.product img{
    max-height: 200px;
    width: fit-content;
    max-width: 100%;
    margin: auto;
}

.product h2{
    font-size: 16px;
}

.product div{
    display: flex;
    justify-content: center;
}

.product div > p{
    margin: 0;
}

.priceContainer{
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.oldPrice{
  font-size: 14px;
  text-decoration: line-through;
  opacity: 0.7;
}

.discountPrice{
  color: red;
  font-weight: bold;
}

.normalPrice{
  text-decoration: none;
}

.product:hover{
    background-color: rgb(240, 240, 240);
    color: black;
    border-radius: 0 0 10px 10px;
}

.product:hover h2{
    color: black;
    text-decoration: underline;
}

.container {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 30px auto;
    margin-top: 100px;
}

.imageSection {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mainImageWrapper {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #fff;
}

#mainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.thumbnailContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.thumbnailContainer img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.thumbnailContainer img:hover {
    border-color: #333;
}

.details {
    flex: 1;
}

.details h1 {
    margin-top: 0;
}

.details p {
    margin: 5px 0;
}
.imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modalImage {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    background-color: white;
}

.closeModal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
}

.goldenButon{
    font-family: "Roboto Slab", serif;
    width: fit-content  ;
    padding: 16px;
    font-size: 16px;
    border: 0;
    color: white;
    background-color: var(--gold);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.15s ease;
}

.goldenButon:hover{
    background-color: black;
    color: white;
    scale: 1.05;
    box-shadow: 0 0 10px 2px black;
}

#addToCart.disabledButton{
    background-color: gray;
}

#addToCart.disabledButton:hover{
    box-shadow: none;
    scale: 1;
    cursor: not-allowed;
}

.cartItem img{
    max-height: 100px;
}

.cartDetails .quantityInput{
    height: 30px;
    width: 40px;
}

.cartSummary{
    margin: auto;
    width: 1000px;
}

.cartSummary > p{
    color: gray;
}

#checkoutBtn, #addressSubmitBtn{
    width: 100%;
    font-size: 20px;
    font-family: "Roboto Slab", serif;
    color: white;
    padding: 20px;
    background-color: var(--gold);
    border: 0;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

#checkoutBtn:hover{
    padding: 30px 20px;
    box-shadow: 0 0 20px var(--gold);
    font-size: 25px;
}

#rentalForm{
    display: flex;
    flex-direction: column;
    width: 300px;
    max-width: 90%;
    margin: auto;
}

.fieldContainer{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.fieldContainer input{
    height: 30px;
    border-radius: 5px;
    border-top-left-radius: 0;
    border: 1px solid black;
    transition: all 0.15s ease;
}

.fieldContainer label{
    width: fit-content;
    height: 25px;
    padding: 3px 5px;
    border: 1px solid black;
    border-bottom: 1px solid white;
    border-radius: 5px 5px 0 0;
}

.fieldContainer input:hover{
    border-color: var(--gold);
    outline: 2px solid var(--gold);
}

.fieldContainer input:focus{
    background-color: #cba61142;
    border-color: var(--gold);
    outline: 1px solid black;
}

.fieldContainer textarea{
    resize: vertical;
    border-radius: 0 5px 0 5px;
    min-height: 100px;
}

.fieldContainer select{
    height: 30px;
    border-radius: 0 5px 5px 5px;
}

.fieldAddress span{
    display: flex;
    flex-direction: column;
}

#errorContainer{
    margin-bottom: 20px;
    background-color: rgba(255, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid red;
}

#IAcceptTermsAndConditions{
    border: 1px solid black;
    border-radius: 5px;
    transition: all 0.15s ease;
}

#IAcceptTermsAndConditions label{
    height: fit-content;
    cursor: pointer;
}

#IAcceptTermsAndConditions input{
    height: fit-content;
}

#IAcceptTermsAndConditions label{border: 0;}

#IAcceptTermsAndConditions:hover{
    border-color: var(--gold);
    background-color: #f7dd79;
    box-shadow: 0 0 20px var(--gold);
    scale: 1.05;
}

.text.button{
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    color: white;
    padding: 10px;
    background-color: var(--gold);
    margin-bottom: 20px;
    border: 1px solid black;
    border-radius: 5px;
    transition: all 0.15s ease;
}

.falling-note {
    position: fixed;
    top: -50px;
    font-size: 24px;
    pointer-events: none;
    animation: fall linear forwards;
    z-index: 9999;
    user-select: none;
}

.productsSectionHeader{
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: lightgray;
}

.productsSectionHeader .scrollButtons {
    display: flex;
    gap: 0;
    height: 100%;
}

.scrollButtons button {
    margin: 0;
    height: 100%;
    width: 50px;
    border: 0;
    border-radius: 0;
    transition: all 0.1s ease;
    cursor: pointer;
}

.scrollButtons button:nth-child(2) {
    border-top-right-radius: 10px;
}

.scrollButtons button:hover {
    width: 60px;
    background-color: gray;
}

#shippingCalculator{
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#orderDetails{
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: fit-content;
    margin: auto;
    max-width: 90%;
}

#shippingCalculator h2{
    margin-top: 0;
}

#shippingCalculator input{
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid black;
}

#shippingCalculator button{
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    display: inline-block;
    background-color: var(--gold);
    margin-top: 10px;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 8px;
}

#orderTotals{
    margin-top: 20px;
    padding: 15px;
    background:#f8f8f8;
    border-radius: 10px 10px 0 0;
    border: 1px solid #ddd;
    padding-bottom: 0;
}

#buttons-container{
    display: flex;
    justify-content: center;
}

#checkoutForm input{
    width: 100%;
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    padding: 10px;
    border: 1px solid black;
    box-sizing: border-box;
}

.two-column{
    display: flex;
    flex-direction: row;
}

.two-column input, .two-column select{
    min-width: 50%;
    box-sizing: border-box;
}

#checkoutForm #countryInput{
    border: 1px solid black;
}

#checkoutTabs{
    width: 1000px;
    max-width: 90%;
}

#summaryDiv{
    max-width: 90%;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal {
  background: white;
  padding: 20px;
  border-radius: 12px;
  min-width: 300px;
  max-width: 90%;
  margin: 0 20px;
}

.modal-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

input[type="submit"] {
  font-family: "Roboto Slab", serif;
  color: white;
  background-color: var(--gold);
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

input[type="submit"]:hover, button[type="submit"]#payment-submit:hover{
  background-color: black;
  box-shadow: 0 0 10px var(--gold);
  scale: 1.05;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

@media(max-width: 800px){


    .navButtonsContainer{
        position: absolute;
        flex-direction: column;
        height: calc(100vh - 70px);
        width: 100%;
        top: 70px;
        transform: translateX(-100%);
        z-index: 1;
        transition: all 0.2s ease;
    }

    .navButtonsContainer.active{
        justify-content: left;
        transform: translateX(0);
        background-color: black;
    }

    .navButtonsContainer a{
        padding: 0 20px;
    }

    .hamburger{
        display: block;
    }

    .hamburger :nth-child(1){
        height: 30px;
    }

    .hamburger.active{
        transform: rotate(-90deg);
    }

    .hamburger > :nth-child(2){
        display: none;
    }

    .hamburger.active > :nth-child(1){
        display: none;
    }

    .hamburger.active > :nth-child(2){
        display: flex;
    }

    .hamburger img{
        position: absolute;
        transform: translate(-50%, -50%);
    }

    .navButtonsContainer a{
        height: 50px;
        background-color: black;
    }

    nav #navH1{
        display: flex;
    }

    nav .dropdown{
        display: flex;
        flex-direction: column;
        height: fit-content;
    }

    #navDropdownMenu {
        position: relative;
        background-color: black;
        display: block;
        min-width: 200px;
        top: 0;
        left: 0;
        padding-left: 20px;
        border: none;
        border-radius: 0;
        z-index: 1000;
    }

    #navDropdownMenu a {
        position: static;
        height: auto;
        top: 0;
        display: block;
        padding: 8px 12px;
        padding-left: 20px;
        border-left: 1px solid white;
        color: #fff;
        text-decoration: none;
    }

    #navDropdownMenu a:hover {
        background-color: #555;
    }

    #homeSearchContainer{
        height: fit-content;
        flex-direction: column;
    }

    #homeSearchContainer .inputContainer{
        margin-bottom: 20px;
    }

    #darkWoodSection{
        flex-direction: column;
        justify-content: center;
    }

    #darkWoodSection a img{
        height: 50px;
        width: fit-content;
        margin: 20px 0;
    }

    #darkWoodSection a{
        display: flex;
        justify-content: center;
    }

    #darkWoodSection a:hover{
        transform: rotateZ(0deg);
    }

    .scrollButtons{
        display: none;
    }

    #welcomeSection{
        padding: 0;
    }

    .productsSection{
        margin: 20px auto;
        max-width: 90%;
    }

    .productsSection > h2{
        padding: 10px;
    }

    .productsSectionHeader h2{
        font-size: 18px;
    }

    .container {
        flex-direction: column;
        max-width: 90%;
    }

    #searchResultForH1 {
        margin: 20px auto;
        max-width: 90%;
    }
}

@media(max-width: 470px){
    nav #navH1{font-size: 20px;}
}