/* Importing google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    /* Colours */
    --white-colour: #fff;
    --black-colour: #000;
    --dark-colour: #252525;
    --primary-colour: #3b141c;
    --secondary-colour: #DC143C;
    --light-pink-colour: #faf4f5;
    --medium-gray-colour: #ccc;

    /* Font Size */
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;

    /* Font Weight */
    --font-weight-light: 250;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border radius */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /* Site max width */
    --site-max-width: 1300px;
}

html, body {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px; /* height of fixed header */
}

/* stylings the whole site */
ul {
    list-style: none;
}


a {
    text-decoration: none;
}

img {
    width: 100%;
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title {
    text-align: Center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--secondary-colour);
}

/* stylings the navbar */

header {
    position: flex;
    width: 100%;
    top: 0;
    background: var(--white-colour);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

header .logo {
    position: absolute;
    top: 15px;
    width: 65px;
    height: 70px;
    cursor: pointer;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
}

/* Styling the Search Bar */
.search-box{
    display: flex;
    position: relative;
    left: 10px;
    bottom: 10px;
    margin: 20px auto 0;
    background: var(--white-colour);
    border-radius: 20px;
    transition: 0.5s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 2px rgba(0,0,0,0.75)
}

.search-box:hover {
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.row {
    display: flex;
    padding: 5px 10px;
    align-items: center;
}

input{
    flex: 1;
    height: 30px;
    width: 500px;
    padding: 20px 10px;
    background: transparent;
    border: 0;
    outline: none;
    font-size: var(--font-size-m);
    border-radius: 20px;
    color: #333
}

button {
    background: transparent;
    border: 0;
    outline: none;
}

button .fa-solid {
    color: #555;
    font-size: 25px;
    cursor: pointer;
}

.result-box ul {
    list-style: none;
    margin: 0;
    border-top: 1px solid #3b141c;
    padding: 0;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.result-box li {
    padding: 8px 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.result-box ul li:hover {
    color: #fff;
    background: #DC143C;
}

.result-box {
    position: absolute;
    top: 100%; /* appear directly below input */
    left: 0;
    width: 100%;
    background: var(--white-colour);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    z-index: 9999; /* ensures it floats above everything */
    max-height: 250px;
    overflow-y: auto;
    display: none; /* hidden until results appear */
}

/* nav menu styling */
.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .logobar {
    display: none;
}

.navbar .nav-menu .nav-link{
    padding: 10px 18px;
    color: var(--black-colour);
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover{
    color: var(--white-colour);
    background: var(--secondary-colour);
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;
}

.product-section {
  background: var(--light-pink-colour);
  padding-top: 10px;
  color: var(--black-colour);
  text-align: center;
}

.product-section .section-title {
    padding-top: 30px;
    padding-bottom: 20px;
}

.swiper-product-swiper {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 20px;
  position:relative;
}

/* Move pagination below slides */
.swiper-product-swiper .swiper-pagination {
  bottom: 0 !important;
  top: auto !important;
  position: relative;
  margin-top: 20px;
}

/* Optional: style the dots */
.swiper-pagination-bullet {
  background: #000;
  opacity: 0.4;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  background: #ff3366;
  opacity: 1;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  left: 200px;
  padding: 1px;
  height: 100%;
}

.product-image {
  max-width: 80%;
  aspect-ratio: 1;
  object-fit: contain;
  transition: all 0.3s ease;
}

.product-image:hover {
  transform: scale(1.3);
}

.product-section .swiper-slide img{
    width: auto;
    height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-section h2 {
    font-size: var(--font-size-xxl);
    font-weight: 600;
}

.swiper-slide .name {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    margin-top: 20px;
    margin-bottom: 10px;
}

.swiper-slide .button {
    padding: 8px 16px;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-m);
    cursor: pointer;
    transition: 0.3s ease;
}

.swiper-slide .button:hover{
    color: var(--white-colour);
    background: var(--secondary-colour);
}

/* Product Learn more button */
.swiper-product-swiper .swiper-wrapper .swiper-slide .product-slide .product-more{
    padding: 10px 18px;
    color: var(--black-colour);
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.swiper-product-swiper .swiper-wrapper .swiper-slide .product-slide .product-more:hover{
    color: var(--white-colour);
    background: var(--secondary-colour);
}

.product-slide .product-more:hover {
    outline: none;
    box-shadow: 0 0 5px var(--secondary-colour);
    cursor: pointer;
}

.product-detail {
  background: var(--light-pink-colour);
  padding-top: 10px;
  color: var(--black-colour);
  padding-bottom: 10px;
}

.product-detail .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    padding-bottom: 0px;
    margin-top: 10px;
}

.product-detail .product-info {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin: 60px;
}

.product-detail .product-image-detail {
    width: 700px;
    height: auto;
    border-radius: 10px;
    margin-left: 50px;
    flex-shrink: 0;
}

.product-info-title {
    font-size: 2.5rem;
    font-weight: 550;
    margin-bottom: 20px;
    margin-top: 40px;
    text-align: left;
}

.product-info-detail {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: left;
    line-height: 1.6;
    font-size: 1.6rem;
    font-weight: 500;
}

.product-text .product-info-text {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
}

.product-text .product-info2-text {
    font-size: 1.8rem;
    font-weight: 500;
}

/* Contact Us Styling*/
.contact-section {
    padding-bottom: 100px;
    background: var(--light-pink-colour);
}

.contact-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-section .contact-info-list .contact-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.contact-section .contact-info-list .contact-info i {
    font-size: var(--font-size-m);
}

.contact-section .contact-form .form-input {
    width: 100%;
    height: 50px;
    outline: none;
    margin-bottom: 10px;
    background: var(--white-colour);
    border-radius: var(--border-radius-s);
    border: 1px solid var(--medium-gray-colour);
}

.contact-section .contact-form {
    max-width: 65%;
}

.contact-section .contact-form .form-input:focus {
    border-color: var(--secondary-colour);
}

.contact-section .contact-form textarea.form-input {
    height: 100px;
    padding: 12px;
    resize: vertical;
}

.contact-section .contact-form .submit-button {
    padding: 10px 26px;
    margin-top: 20px;
    color: var(--white-colour);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: var(--primary-colour);
    border-radius: var(--border-radius-m);
    border: 1px solid var(--primary-colour);
    transition: 0.3s ease;
}

.contact-section .contact-form .submit-button:hover {
    color: var(--primary-colour);
    background: transparent;
    cursor: pointer;
}

.fixed-button {
    position: fixed;
    bottom: 20px;
    right: 20px;

    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #383838;
    color: white;
    border-radius: 30%;
    text-decoration: none;
    font-size: 20px;

    transition: background-color 0.3s ease;
}

.fixed-button:hover {
    color: #fff;
    background: #DC143C;
}

/* Reponsive media query code for max width 1112px*/
@media screen and (max-width: 1112px) {
    .search-box{
        margin: 20px 0px 0px 80px;
        width: 350px;
        background: var(--white-colour);
    }
    .section-content .title{
        position: absolute;
        left: 200px;
        top: 300px;
        color: var(--white-colour);
        font-size: var(--font-size-xl);
        font-weight: var(--font-weight-bold);
        height: 50px;
    }
    
    .section-content .learn-more {
        position: absolute;
        padding: 5px 10px;
        top: 360px;
        left: 250px;
        font-size: var(--font-size-m);
        font-weight: var(--font-weight-medium);
        cursor: pointer;
        background: #DC143C;
        color: #fff;
        border: 1px solid #DC143C;
        border-radius: 10px;
    }
}


/* --------------------------- */
/* 📱 MOBILE VIEW ADJUSTMENTS  */
/* --------------------------- */

/* Tablet and smaller screens */
@media screen and (max-width: 768px) {

  /* Navbar adjustments */
    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backface-visibility: blur(5px);
        background: rgba(0,0,0,0.2)
    }

    .navbar :where(#menu-close-button, #menu-open-button){
        display: block;
        font-size:var(--font-size-l);
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
        cursor: pointer;
    }

    .navbar #menu-open-button{
        color: var(--black-colour);
        cursor: pointer;
    } 

    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-colour);
        transition: left 0.2s ease;
        z-index: 1000;
    }

    body.show-mobile-menu .navbar .nav-menu{
        left: 0;
    }

    .navbar .nav-menu .logobar {
        display: block;
    }

    .navbar .nav-menu .nav-link{
        color: var(--dark-colour);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

  /* Search box resizing */
  .search-box {
    left: 0;
    bottom: 0;
    margin-bottom: 20px;
  }

  input {
    width: 100%;
    font-size: 1rem;
  }

  .result-box {
    width: 100%;
  }

  /* Swiper product slides */
  .swiper-product-swiper {
    width: 95%;
    margin-left: 100px;
  }

  .swiper-slide {
    left: 0;
    align-items: center;
    justify-content: center;
  }

  .product-section h2 {
    font-size: 1.5rem;
  }

  .product-section .swiper-slide img {
    width: 90% !important;
    height: auto !important;
    max-height: 400px;
    margin-bottom: 10px;
    object-fit: contain;
  }

  .swiper-slide .name {
    font-size: 1rem;
  }

  .swiper-slide .button {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  /* Product detail section */
  .product-detail .section-title {
    font-size: 1.5rem;
  }

  .product-detail .product-info {
    flex-direction: column;
    align-items: center;
    margin: 20px;
    gap: 20px;
  }

  .product-detail .product-image-detail {
    width: 100%;
    height: auto;
    margin-left: 0;
  }

  .product-info-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .product-info-detail {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .product-text .product-info-text,
  .product-text .product-info2-text {
    font-size: 1.2rem;
    text-align: center;
    white-space: normal;
  }

  /* Contact section */
  .contact-section .section-title {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .contact-section .section-content {
    flex-direction: column;
    gap: 20px;
  }

  .contact-section .contact-form {
    max-width: 100%;
  }

  .contact-section .contact-info-list {
    width: 100%;
  }

  .contact-section .contact-form .form-input,
  .contact-section .contact-form textarea.form-input {
    font-size: 1rem;
  }

  .contact-section .contact-form .submit-button {
    width: 100%;
  }

  /* Fixed button positioning */
  .fixed-button {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }
}

/* Extra small phones (≤480px) */
@media screen and (max-width: 390px) {
  .section-title {
    font-size: 1.5rem;
    padding: 40px 0 60px;
  }

  .product-section h2,
  .product-info-title {
    font-size: 1.5rem;
  }

  .swiper-slide .button {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .product-info-detail {
    font-size: 1rem;
  }

  .navbar .nav-menu .nav-link {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .search-box {
    width: 95%;
  }

  .swiper-slide .name {
    font-size: 1rem;
  }
}
/* End of CSS file */
