@import url('https://fonts.googleapis.com/css2?family=Besley:ital,wght@0,400..900;1,400..900&family=Jost:ital,wght@0,100..900;1,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Outfit:wght@100..900&display=swap');
:root {
  --color-primary: #9b111e;
  --color-primary-dark: #7a0c16;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-surface: #ffffff;
  --color-page: #f8f9fa;
  --color-text: #241417;
  --color-muted: #6c757d;
  --color-border: rgba(155, 17, 30, 0.18);
  --shadow-card: 0 14px 30px rgba(36, 20, 23, 0.12);
  --radius-card: 12px;
}

* {
  box-sizing: border-box;
}



html{
    scroll-behavior: smooth;
}


body {

  font-family: "Outfit", sans-serif;
  min-width: 320px;
  background: var(--color-white);
  color: var(--color-text);
  overflow-x: hidden;
  width: 100%;
}
/* utility classes */
.text-primary-color{
  color: var(--color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6{
    font-family: "Besley", serif;
    letter-spacing: 1px;
  
}

a {
  color: inherit;
}


.back-btn{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.55rem 1rem;

    margin-bottom: 1.5rem;

    border: 1px solid var(--color-primary);

    border-radius: 999px;

    background: var(--color-surface);

    color: var(--color-primary);

    font-weight: 600;

    text-decoration: none;

    transition: 0.2s ease;
}

.back-btn:hover{
    background: var(--color-primary);

    color: var(--color-white);
}

.btn-main {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
}

.btn-main:hover,
.btn-main:focus-visible,
.btn-main:focus-visible {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
  color: var(--color-white);
}


.section-title{
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin-bottom: 4rem;

    text-align: center;
}

.section-title::before{
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: 50%;

    height: 2px;

    background: var(--color-primary);

    transform: translateY(-50%);

    z-index: 0;
}

.section-title span{
    position: relative;

    display: inline-block;

    padding: 0.8rem 2.2rem;

    background: var(--color-primary);

    color: var(--color-white);

    font-size: clamp(0.9rem, 2vw, 1.4rem);

    font-weight: 600;

    clip-path: polygon(
        10px 0,
        100% 0,
        calc(100% - 10px) 100%,
        0 100%
    );

    z-index: 1;
}


.custom-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050;

  height: 72px;

  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}


.logo-img {
  width: clamp(150px, 18vw, 220px);
  max-width: 100%;
  height: auto;
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  color: var(--color-primary);
}


.navbar-toggler {
  border: none;
}


.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible{
    box-shadow: none !important;

    outline: none !important;
}


.custom-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.desktop-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.search-form .form-control {
  border-color: var(--color-border);
}

.search-form.d-lg-flex {
  max-width: 620px;
}

.nav-list {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-link i{
    display: inline-flex;
    align-items: center;

}

.bi-person-circle{
    font-size: 1.6rem;
    color: var(--color-primary);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}


.cart-toast-container {
    position: fixed;
    top: 135px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.cart-toast {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cart-toast .toast-body {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 20px;
    font-weight: 500;
    color: #198754;
}

.cart-toast .bi-check-circle-fill {
    color: #198754;
    font-size: 25px;
}




.desktop-search{
    flex: 1;

    display: flex;

    justify-content: center;
}

.desktop-search .search-form{
    width: 100%;

    max-width: 620px;
}

/* mobile collapse */
#mobileNav{
    overflow-y: auto;
    width: 60vw !important;
}

.offcanvas{
    width: min(320px, 85vw);

    padding: 1rem;
}

.offcanvas-body{
    padding: 0;
}

.mobile-menu-btn{
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0.9rem 0;

    background: none;

    border: none;

    color: var(--color-text);

    font-weight: 700;
}

.mobile-menu-links{
    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    padding-left: 0.5rem;
}

.mobile-menu-links h6{
    margin-top: 1rem;

    color: var(--color-primary);

    font-weight: 700;
}

.mobile-menu-links a{
    text-decoration: none;

    color: var(--color-text);

    padding: 0.2rem 0;
}



.category-card-link{
    text-decoration: none;
    color: inherit;
}

.mega-nav-wrapper{
    position: sticky;

    top: 72px;

    z-index: 1040;

    background: #fff;

    border-bottom: 1px solid #ececec;
   
}

.mega-nav{
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 2.5rem;

    min-height: 58px;
}

.mega-item{
    position: relative;
}

.mega-nav > a,
.mega-btn{
    position: relative;

    display: flex;

    align-items: center;

    gap: 0.4rem;

    padding: 0;

    background: none;

    border: none;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;

    z-index: 10000;
}

.mega-nav > a::after,
.mega-btn::after{
    content: "";

    position: absolute;

    left: 0;
    bottom: -10px;

    width: 0;

    height: 2px;

    background: var(--color-primary);

    transition: width 0.25s ease;
}

.mega-nav > a:hover::after,
.mega-item:hover .mega-btn::after{
    width: 100%;
}
.mega-dropdown{
    position: absolute;

    top: calc(100% - 2px);
    left: 50%;

    background: white;

    border-radius: 14px;

    box-shadow: 0 16px 40px rgba(0,0,0,0.12);

    opacity: 0;

    visibility: hidden;

    transform: translateX(-50%) translateY(14px);

    transition: 0.25s ease;

    z-index: 9999;
}

.large-dropdown{
    display: flex;

    gap: 4rem;

    width: 850px;

    padding: 2rem;
}

.small-dropdown{
    display: flex;

    flex-direction: column;

    min-width: 220px;

    padding: 1rem 0;
}

.mega-column{
    display: flex;

    flex-direction: column;

    min-width: 220px;
}

.mega-column h5{
    margin-bottom: 1rem;
}

.mega-column h5 a{
    text-decoration: none;

    font-size: 1.2rem;

    font-weight: 700;
}

.mega-column > a,
.small-dropdown a{
    padding: 0.55rem 1rem;
    text-decoration: none;
}

.small-dropdown a:hover,
.mega-column > a:hover,
.mega-column h5 a:hover,
.mega-btn:hover{
    color: var(--color-primary);
}

.mega-item:hover .mega-dropdown{
    opacity: 1;

    visibility: visible;

    transform: translateX(-50%) translateY(0);
}


.announcement-bar{
    padding: 0.7rem 1rem;

    background: var(--color-primary);

    color: var(--color-white);

    font-size: 0.95rem;

    font-weight: 500;

    text-align: center;

    letter-spacing: 1px;

    word-spacing: 3px;
}


.product-grid {
  perspective: 900px;
}

.product-card {
  display: flex;
  height: 100%;
  min-height: 260px;
  margin-inline: auto;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: 0.2s ease;
}

.product-card img{
    width: 100%;

    height: 280px;

    display: block;

    object-fit: contain;

    background: var(--color-white);
}
.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;

  gap: 0.45rem;
    padding: 0.9rem 0.8rem 0.4rem;

}

.product-card-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-card-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  min-height: 2.6em;

  word-break: break-word;
  overflow-wrap: break-word;
}

.product-card-body strong {
  margin-top: auto;
  padding-top: 0.45rem;
  color: var(--color-primary);
  display: block;
}
.product-info {
  width: 100%;
  padding-inline: 0.6rem;

  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .btn {
  width: 100%;
  margin-top: 0.35rem;
  cursor: pointer;
  font-weight: 500;
}

.product-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 8px 20px rgb(67, 67, 67);
  color: var(--color-text);
  transform: translateY(-4px);
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}


.product-slider{
    overflow: hidden;

    position: relative;

    padding-inline: 1rem;
}

.product-slide{
    height: auto;
}

.site-footer{
    margin-top: 5rem;

    padding-top: 4rem;
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-grid{
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 3rem;
}

.footer-logo{
    margin-bottom: 1rem;

    color: var(--color-white);

    font-size: 2rem;

    font-weight: 700;
}

.footer-text{
    line-height: 1.9;

    font-size: 0.95rem;
}

.footer-title{
    margin-bottom: 1.2rem;

    color: var(--color-white);

    font-size: 1.1rem;

    font-weight: 600;
}

.footer-links,
.footer-contact{
    padding: 0;

    margin: 0;

    list-style: none;
}

.footer-links li,
.footer-contact li{
    margin-bottom: 0.9rem;
}

.footer-links a{
    color: var(--color-white);

    text-decoration: none;

    transition: color 0.25s ease;
}

.footer-links a:hover{
    color: rgb(184, 167, 167);
}


.footer-bottom{
    margin-top: 3rem;

    padding:
        1.5rem 0;

    border-top:
        1px solid rgba(255,255,255,0.08);

    text-align: center;

    font-size: 0.9rem;
}


@media (min-width: 992px){

   .login-btn,
    .signup-btn{
        border-radius: 8px;
    }

    .login-btn{
        padding-inline: 0.9rem;
    }

    .signup-btn{
        padding-inline: 0.9rem;

        background: var(--color-primary);

        color: var(--color-white);

        font-weight: 700;
    }
    .login-btn:hover {
      color: var(--color-white);
      background-color: var(--color-primary);
    }

    .signup-btn:hover,
    .signup-btn:focus-visible {
      background: var(--color-primary-dark);
      color: var(--color-white);
    }

    
    .navbar-toggler{
        display: none;
    }

    #mobileNav{
        display: none !important;
    }
    
}


@media (max-width: 991.98px){

        .container{
        max-width: 100% !important;

        width: 100% !important;

        padding-left: 12px;

        padding-right: 12px;
    }

    .custom-nav{
        height: auto;

        min-height: 72px;
    }
    .custom-nav .container{
        gap: 0.75rem;
    }

    .nav-link.nav-list{
    display: flex !important;

    align-items: center;

    gap: 0.45rem;
}

.nav-link.nav-list i{
    line-height: 1;
}

    .mega-nav-wrapper{
        display: none;
    }

    .footer-grid{
        grid-template-columns:
            repeat(2, 1fr);

        gap: 2.5rem;
    }
}


@media  (max-width:767.98px){

     .announcement-bar{
        font-size: 0.8rem;

        padding: 0.55rem 0.8rem;
    }
    .cart-toast-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.cart-toast {
    width: max-content;
    max-width: 90vw;
}

.cart-toast .toast-body {
    padding: 10px 14px;
    font-size: 14px;
}
  .category-links {

    justify-content: flex-start;
  }

  
  .product-card {
    min-height: 280px;
  }

   .product-card img {
    height: 180px;
  }

    .product-slider{
        padding-inline: 0;
    }

    .site-footer{
        margin-top: 4rem;

        padding-top: 3rem;
    }

    .footer-grid{
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .footer-logo{
        font-size: 1.7rem;
    }

    .footer-text{
        font-size: 0.9rem;

        line-height: 1.8;
    }

    .footer-title{
        margin-bottom: 1rem;

        font-size: 1rem;
    }

    .footer-bottom{
        margin-top: 2rem;

        padding: 1.2rem 0;

        font-size: 0.82rem;
    }

}

@media (max-width: 420px){
    .logo-img {
    width: 132px;
  }

  .search-form {
    gap: 0.35rem;
  }

  .search-form .btn {
    padding-inline: 0.75rem;
  }

  .product-card {
    min-height: 260px;
  }

  .product-card img {
    height: 150px;
  }


  .product-card-body {
    gap: 0.3rem;
    padding: 0.72rem;
  }

  .product-card-body p {
    font-size: 0.72rem;
  }

  .product-card-body h3 {
    font-size: 0.86rem;
  }

  .product-card-body strong {
    font-size: 0.86rem;
  }

  .product-card .btn {
    padding: 0.32rem 0.55rem;
    font-size: 0.68rem;
  }
}
   
.footer {
  background: var(--color-primary);
  color: var(--color-white);
}

