@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Righteous&display=swap');
/* Color palette : https://colorhunt.co/palette/f6f1e9ffd93dff9a004f200d */
*{
    font-family: 'Google Sans', sans-serif;
}
html{
    scroll-behavior: smooth;
    /* font-size: 14px; */
}
/* Pseudo-elements for the view transition */
::view-transition-old(root) {
  animation: fadeOut 0.5s ease-out forwards;
}

::view-transition-new(root) {
  animation: fadeIn 0.5s ease-in forwards;
}
:root {
  color-scheme: light;
  --primary-color: #FF9A00;
  --secondary-color: #F6F1E9;
  --secondary-color-blur: #f6f1e9cc;
  --secondary-accent-color: #faf7f3;
  --accent-color: #FFD93D;
  --dark-color: #4F200D;
  --light-color: #F6F1E9;
}
/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

body{
    background: var(--light-color);
}

::selection {
    background: var(--primary-color);
    color: var(--light-color);
}

.navbar{
    background: var(--secondary-color-blur);
}

h1.custom-underline{
    position: relative;
    padding-bottom: 1rem;
}
h1.custom-underline::after {
    content: '';
    background-image: url('/frontend/images/underline-h1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 50%;
    bottom: -60px;
    width: 120%;
    height: 125px;
    transform: translateX(-50%);
    pointer-events: none;
}

.swiper-button-next, .swiper-button-prev{
    color: #fff !important;
    height: 1.3rem !important;
}
.swiper-pagination1x .swiper-pagination-bullet-active{
    width: 18px !important;
    background: #fff !important;
    border-radius: 4px !important;
}
.swiper-pagination4x .swiper-pagination-bullet-active, .swiper-pagination5x .swiper-pagination-bullet-active{
    width: 18px !important;
    border-radius: 4px !important;
}
.title{
    font-family: "Righteous", sans-serif;
    color: var(--dark-color);
    letter-spacing: 1px;  
}
.banner .title, .banner p{
    color: var(--light-color);
}
.card{
    background: var(--secondary-accent-color);
    padding: 1rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.in-stock{
    background: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
}

.in-stock::before{
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--dark-color);
    border-radius: 50%;
    margin-right: 6px;
}

.out-of-stock{
    background: #e74c3c;
    color: var(--light-color);
    font-weight: 600;
}

.out-of-stock::before{
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--light-color);
    border-radius: 50%;
    margin-right: 6px;
}

.event-card {
    display: block;
    padding-top: 4.5rem;
}

.event-card-shell {
    position: relative;
    padding-top: 6rem;
    overflow: visible;
}

.event-card-media {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(82%, 180px);
    aspect-ratio: 1;
    transform: translate(-50%, -32%);
    z-index: 2;
    pointer-events: none;
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(79, 32, 13, 0.18));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.event-card:hover .event-card-image {
    transform: translateY(-6px) scale(1.03);
    filter: drop-shadow(0 22px 22px rgba(79, 32, 13, 0.22));
}

.event-card-title {
    margin-top: 0.5rem;
}

.testimonial-slider article {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.testimonial-slider .swiper-slide-next article {
    background-color: var(--dark-color);
}

.testimonial-slider .swiper-slide-next article p,
.testimonial-slider .swiper-slide-next article h3 {
    color: var(--light-color) !important;
}

.product-description{
    p{
        margin-bottom: 1rem;
    }
    ul{
        list-style: disc;
        padding-left: 1.5rem;
        margin-bottom: 1rem;
        li{
            margin-bottom: 0.5rem;
        }
    }
}
.shine-hover {
    position: relative;
    overflow: hidden;
}

.shine-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    transform: skewX(-25deg);
}

.shine-hover:hover::before {
    animation: shine 0.8s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.order-table th{
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
}
.order-table td{
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}
.order-table td span{
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.order-table td span.status-delivered {
    background: var(--color-green-700);
    color: var(--tw-ring-offset-color);
}
.order-table td span.status-placed{
    background: var(--accent-color);
    color: var(--dark-color);
}