/* GLOBAL STYLINGS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Tuesday Night';
    src: url('../fonts/TuesdayNight-Regular.woff2') format('woff2'),
         url('../fonts/TuesdayNight-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #024347;
    color: #F5EFD7;
    font-family: "Andada Pro", serif;
    font-size: 18px;
    line-height: 1.6;
}

.pilow-font {
    font-family: 'Pilowlava', sans-serif;
}

.tnight-font {
    font-family: 'Tuesday Night', cursive;
    font-size: 2em;
}

a {
    text-decoration: none;
    color: #F5EFD7;
    -webkit-tap-highlight-color: transparent;
}

li {
    list-style: none;
}

h1 {
    font-size: 2.3em;
}

h2 {
    font-size: 2em;
}

.p-small {
    font-family: "Roboto", serif;
    font-weight: 200;
    font-size: 0.9em;
}

.main-btn {
    background: #024347;
    color: #F5EFD7;
    border: none;
    border-radius: 2px;
    padding: 12px 30px;
    transition: all 0.3s;
}

.main-btn:hover {
    background: #096469;
    transition: all 0.3s;
}

.secondary-btn {
    background: #F5EFD7;
    color: #024347;
    border: none;
    border-radius: 2px;
    padding: 12px 30px;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: #ffffff;
    transition: all 0.3s;
}

section {
    width: 100%;
    padding: 60px 40px;
}

.section-headers {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.section-body {
    width: 100%;
}

#scroll-to-top {
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #F5EFD7;
    border: 3px solid #F5EFD7;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.7;
    opacity: 0; /* Start fully hidden */
    visibility: hidden; /* Hide from interactions */
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

#scroll-pop-up {
    position: fixed;
    top: 400px;
    right: 0;
    width: 350px;
    height: 80px;
    background: url('../imgs/slanted-cart.png') no-repeat center center/cover;
    color: #024347;
    gap: 10px;
    align-items: center;
    padding-left: 20px;
    padding-top: 10px;
    border-left: 6px solid #096469;
    box-shadow: -10px 10px 19px -4px rgba(0, 0, 0, 0.51);
    transition: opacity 0.5s ease;
}

/* Add to cart notification */
#cart-popup {
    position: fixed;
    top: 150px;
    right: 0;
    width: 300px;
    height: 80px;
    background: url('../imgs/slanted-cart.png') no-repeat center center/cover;
    color: #024347;
    display: none;
    gap: 10px;
    align-items: center;
    padding-left: 50px;
    border-left: 6px solid #096469;
    box-shadow: -10px 10px 19px -4px rgba(0, 0, 0, 0.51);
    transition: opacity 0.5s ease;
    opacity: 0;
}

.tooltip {
    position: fixed;
    bottom: 45px;
    right: 80px;
    transform: translateY(50%);
    background: #F5EFD7;
    padding: 5px 8px;
    color: #000;
    border-radius: 5px;
    font-size: 0.7em;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.scroll-to-top:hover #scroll-to-top {
    opacity: 1;
    transition: all 0.3s;
}

.scroll-to-top:hover .tooltip {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Floating search bar */
.floating-search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #00000041;
}

.floating-search-box {
    width: 100%;
    background: #024347;
    padding: 40px 20px;
    border-bottom: 1px solid #F5EFD7;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: -100px; /* Start off-screen */
    left: 0;
    right: 0;
    transition: top 0.3s ease-in-out;
}

.floating-search-box .input-box {
    display: flex;
    margin-top: 20px;
}

.floating-search-box .input-box input {
    height: 40px;
    width: 600px;
    background: none;
    border: 1px solid #F5EFD7;
    border-right: none;
    padding-left: 20px;
    color: #F5EFD7;
    font-size: 1.2em;
}

.floating-search-box .input-box input:focus {
    outline: none;
}

.floating-search-box .input-box button {
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #F5EFD7;
    color: #fff;
    border-left: none;
}

.floating-search-box .input-box button:hover {
    cursor: pointer;
}

/* Scrollbar track */
::-webkit-scrollbar {
    width: 10px;  /* Width of vertical scrollbar */
    height: 10px; /* Height of horizontal scrollbar */
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
    background: #024347; /* Color of the handle */
    border-radius: 5px; /* Round edges */
}

/* Scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #024347;
}

/* Scrollbar track (the area behind the handle) */
::-webkit-scrollbar-track {
    background: #F5EFD7;
}

/* Animate on scroll */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(10%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.delay-block:nth-child(2), .delay-block:nth-child(6) {
    transition-delay: 200ms;
}
.delay-block:nth-child(3), .delay-block:nth-child(7) {
    transition-delay: 400ms;
}
.delay-block:nth-child(4), .delay-block:nth-child(8) {
    transition-delay: 600ms;
}

/* HEADER & NAV */
header {
    width: 100vw;
    height: 100vh;
    background: url('../imgs/hero-img-2.jpg')no-repeat bottom center/cover;
}

nav {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

ul.navbar {
    display: flex;
    gap: 20px;
}

ul.right-nav {
    display: flex;
    gap: 15px;
    font-size: 1.2em;
}

.brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    width: 150px;
}

#floating-search-toggle {
    cursor: pointer;
}

.cart-no-box {
    position: relative;
    margin-right: 10px;
}

.cart-no {
    font-size: 0.5em;
    /* padding: 3px 5px; */
    width: 15px;
    height: 15px;
    background: #024347;
    position: absolute;
    top: -5px;
    right: -5px;
    color: #F5EFD7;
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero {
    width: 60%;
    margin: 60px auto 40px auto;
    text-align: center;
}

.floating-button {
    width: 60px;
    height: 60px;
    border: 4px solid #F5EFD7;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin: 80px auto 0 auto;
    animation: floatUpDown 1s ease-in-out infinite alternate;
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(15px);
        opacity: 0.3;
    }
}

/* New Products Section */
.card-image {
    width: 100%;
    height: 400px;
    /* background: url('../imgs/product-image-sample.jpg')no-repeat center center; */
    background-size: cover;
    margin-bottom: 20px;
    transition: background-size 0.3s ease-in-out;
}

.product-cards {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    gap: 25px; /* Adds spacing between items */
    justify-content: center; /* Centers items on the row */
}

.product-cards .card {
    /* flex: 1 1 200px; */
    flex: 1 1 calc(25% - 25px);
    /* max-width: 30%; */
    max-width: calc(25% - 25px);
    text-align: center;
    font-weight: bold;
}

.card-details {
    width: 100%;
    padding-bottom: 20px;
}

.amount {
    font-size: 0.9em;
}

.product-name {
    text-transform: uppercase;
    margin-bottom: 20px;
}

.slashed {
    text-decoration: line-through;
    font-size: 0.8em;
    font-weight: 200;
}

.product-btn {
    background: #F5EFD7;
    padding: 8px 12px;
    font-size: 0.6em;
    color: #024347;
}

.product-btn img {
    width: 10px;
    margin-left: 10px;
}

.product-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* Featured card */
.featured-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adds space between cards */
    justify-content: center; /* Centers the items horizontally */
}

.featured-cards .card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    padding: 30px 0 0 30px;
    /* border: 1px solid #ddd; */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.featured-cards .card .amount {
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.92);
}

.featured-cards .card .featured-name {
    font-size: 1.7em;
    width: 40%;
    line-height: 1;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.92);
}

.overlay-bg {
    position: relative;
    overflow: hidden;
    color: white; /* optional if your content needs contrast */
}

.overlay-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000085; /* adjust the opacity here */
    z-index: 0;
}

/* Optional: Bring actual content above the overlay */
.overlay-bg > * {
    position: relative;
    z-index: 1;
}

/* Discount Section */
.advert-discount {
    display: flex;
    width: 100%;
    gap: 20px;
}

.advert {
    width: 30%;
    height: 600px;
    /* background: url('../imgs/advert-img.jpg')no-repeat center center/cover; */
    position: relative;
}

.advert-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
}

.advert-info h3 {
    font-size: 1.5em;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.92);
}

.advert-info p {
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.92);
}

.discount-product {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.discount-product .card {
    width: 200px;
    text-align: center;
    font-size: 0.8em;
    font-weight: bold;
}

.discount-product .card-image {
    height: 200px;
    transition: all 0.3s;
}

.discount-product .card:hover .card-image {
    background-size: 180%;
    transition: all 0.3s;
}

/* Shop perks */
.shop-perks {
    width: 100%;
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}

.perk {
    width: 25%;
    margin-bottom: 40px;
}

.shop-perks .perk i {
    font-size: 50px;
}

.shop-perks .perk i,
.shop-perks .perk img {
    margin-bottom: 20px;
}

.shop-perks .perk span {
    font-size: 0.7em;
}

/* Testimonials */
section#testimonials {
    background: #096469;
}

.testimonial-card {
    width: 100%;
    /* height: 100%; */
    background: #F5EFD7;
    color: #024347;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.testimonial-card .testimonial-img {
    width: 100px;
    height: 100px;
    border: 4px solid #024347;
    border-radius: 100%;
    /* background: url('../imgs/testimonial-img.png')no-repeat center center/cover; */
    margin-top: -80px;
    margin-bottom: 20px;
}

.testimonial-footer {
    font-style: italic;
    margin-top: 20px;
}

/* Category */
.category-blocks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.cat-block {
    width: 200px;
    text-align: center;
}

.cat-img {
    background: url('../imgs/category-img.jpg')no-repeat center center/cover;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.cat-img .cat-info {
    background: #00000056;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.cat-img .cat-info a {
    border: 2px solid #fff;
    border-radius: 5px;
    padding: 8px 10px;
    transform: translateY(10px);
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.cat-block:hover .cat-info {
    opacity: 1;
    visibility: visible;
}

.cat-block:hover a {
    transform: translateY(0);
}

/* Footer */
footer {
    width: 100%;
    background: #000;
    padding: 100px 40px;
    margin-top: 40px;
}

.inner-footer {
    width: 100%;
    position: relative;
}

.inner-footer-2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-logo img {
    width: 150px;
}

.rights {
    display: flex;
    gap: 30px;
}

.links {
    display: flex;
    gap: 25px;
}

.links div {
    padding-right: 25px;
    border-right: 1px solid #fff;
}

.links div:last-child {
    border-right: none;
}

.made-by-irobbott {
    width: 100%;
    height: 100px;
    background: #000;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.made-by-irobbott a {
    color: #38b4bb;
    transition: all 0.3s;
}

.made-by-irobbott a:hover {
    color: #9cebf0;
    transition: all 0.3s;
}

.r-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.r-tooltip:hover {
    color: #1abc9c;
}

.r-tooltip .r-tooltiptext {
    visibility: hidden;
    width: 230px;
    background-color: #222;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the link */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

.r-tooltip:hover .r-tooltiptext {
    visibility: visible;
    opacity: 1;
}