/* main.css */

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    height: 60px;
    /*background-color: #ac505070 !important;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #c48a8a !important;
    background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 13em;
  margin-top: 81px;
}

.menu {
    display: flex;
    gap: 20px;
    right: 50px;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.menu a:hover {
    color: #db4646;
}

.menu span {
    color: #db4646;
    font-weight: bold;
}

.login {
    background: #fff;
    padding: 3px;
    color: #867777 !important;
    border-radius: 2px;
}

/* Hamburger Menu Button */
.hamburger {
    display: none; /* Hidden by default on desktop */
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    color: #f9f5f5;
    background-image: url('../images/HomePageHead_1440.jpg');
    background-size: cover;
    background-position: center;
}

.main-content.index {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 70px;
    box-sizing: border-box;
}

.main-content.products,
.main-content.shop {
    padding: 100px 20px 20px;
}

.main-content.products {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.main-title {
    font-weight: 500;
    font-size: 5.8vh;
    margin-bottom: 20px;
    text-align: center;
}

.main-title.index {
    width: 34%;
    margin-bottom: -10px;
}

.main-title.shop {
    margin-bottom: 0;
    display: block;
    width: 100%;
}

/* Index Page Specific */
.sub-title {
  margin-bottom: 20px;
  width: 21%;
  line-height: 23px;
  color: #fff;
  font-weight: 400;
  font-size:2.3vh
}

.shop-button {

    background-color: #db4646;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 3.2vh;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;

}

.shop-button:hover {
    background-color: #b53a3a;
}

.boxes {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.main-title{
    color: #df4242;
}

.black-box {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 1px;
    border-radius: 10px;
    text-align: center;
    width: 16.3vh;
    border: 2px solid #fdacac;
    
}

.red-font{
    color:#df4242!important;
}

.white-font{
    color:#ffffff!important;
}

.black-box .price {
    font-size: 2.1vh;
    color: #000000;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 2px 5px;
    border-radius: 3px;
}

.black-box .title {
    font-weight: 500;
    font-size: 3.6vh;
    color: #db4646;
}

.black-box .details {
    font-size: 14px;
    color: #000000;
}
.product-container-info{
        overflow: hidden;
        display: grid;
        align-content: end;
    }

.black-box a {
    text-decoration: none;
    color: #fff;
    display: block;
}

.divider {
    width: 100%;
    height: 60px;
    background-color: #db4646;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.testimonials {
    text-align: center;
    background-color: transparent;
    padding: 20px 0;
    position: relative;
    z-index: 5;
    min-height: 95px;
}

.testimonials h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    margin-bottom: 0px;
}

.testimonial-text {
    margin: 13px 10px 10px;
    color: rgb(0, 0, 0);
    font-weight: 500;
    font-size: 16px;
    /*background: #b7b2b2a6;*/
    display: none;
    padding:10px;
}

.testimonial-text.active {
    display: block;
}

/* Products and Shop Pages Common */
.product-listing {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background-color: #db4646;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.product-item {
    color: #5b5454;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-item .title {
    font-size: 20px;
    color: #db4646;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Products Page Specific */
.product-listing.products {
    width: 70%;
}

.product-item.products {
 width: 250px;
  background-color: #eae4e4;
  border-bottom: 2px solid #d58282;
  align-content: end !important;
  /*align-content: end;
  display: grid;*/
}

.product-item.products img {
    /*max-height: 130px;*/
}

.product-item.products .description {
    font-size: 14px;
    margin-bottom: 5px;
}

.product-item.products .price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
.out-of-stock {
  width: 110px;
  border-radius: 5px;
  color: #fff;
  padding: 8px 0px;
  text-decoration: none;
  font-size: 14px;
  float: right;
  border: none;
  background: #db4646;
}


.product-item.products .add-to-cart {
  border-radius: 5px;
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 14px;
  float: right;
  border: none;
  background: #db4646;
  cursor:pointer;
  width: 110px;
  
}

.product-item .title {
  font-size: 14px;
}

.product-item.products .add-to-cart:hover {
    background-color: #b53333;
}

.categories-list {
    margin-bottom: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
  padding:6px 0;
  text-decoration:none;
  color: #df4242;
  font-size: 14px;
  font-weight: bold;
  flex: 2 1 auto;
  width: 30%;
  text-align: center;

}

.category-item:hover,
.category-item.active {
    border-bottom: 5px solid #d58282;
}

.cart-section {
    width: 25%;
    padding: 20px;
    color: #db4646;
    border-radius: 5px;
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.cart-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #db4646;
}

.cart-item {
    margin-bottom: 10px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: #eae4e4;
    color: #db4646;
    width: 97%;
    padding: 10px;
}

.cart-item span {
    font-size: 14px;
    flex: 1;
}

.cart-item .quantity-controls {
    display: flex;
    gap: 5px;
}

.cart-item .quantity-controls a {
    text-decoration: none;
    color: #fff;
    background-color: #db4646;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.cart-item .quantity-controls a:hover {
    background-color: #b53a3a;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

.checkout-button {
    display: block;
    background-color: #db4646;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
}

.checkout-button:hover {
    background-color: #b53a3a;
}

/* Shop Page Specific */
.product-listing.shop {
    /* No additional width specified */
}

.product-item.shop {
    width: 200px;
    overflow: hidden;
    cursor: pointer;
}

.product-item.shop .title {
    top: 23px;
    position: relative;
    background: #464040;
    padding: 7px;
    width: 94%;
}

/* Footer */
footer {
    background-color: #c48a8a !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 0px;
    height: 100%;
}

.social-icons {
    margin-top: 5px;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    margin: 0 10px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #db4646;
}


.logo {
        width: 30%;
}
@media (min-width: 481px) and (max-width: 1024px) {
    /* Styles for tablets */

    .product-item.shop {
      width: 34%;
      
    }

    .logo {
        width: 45%;
    }

     .top-bar {
        height: 60px;
    }

    /* Rest of your existing media query styles */
    .logo img {
        margin-top: 15px !important;
        text-align: center;
        width: 223px;
    }

}

@media (max-width: 768px) {
    /* Top Bar and Menu */
    .hamburger {
        display: block;
        margin-right: 30px;
    }
    .product-container-info{
        overflow: hidden;
        display: grid;
        align-content: end;
        height:100%;
    }


    .top-bar {
        height: 60px;
        background-color: #8888888f;
    }

    .login-container,.signup-container {
      background: rgba(255, 255, 255, 0.95);
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
      width: 70%!important;
      color: #333;
      margin: 100px auto;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: 0;
        width: 30%;
        background-color: #c48a8a !important;
        height: 100%;
        padding: 20px;
        z-index: 1000000;
        color: #fff;
    }

    .menu.active {
        display: flex; /* Show when active */
    }

    .menu a {
        font-size: 16px;
        padding: 10px 0;
        color: #fff;
        text-align: center;
    }

    .menu a:hover {
        color: #db4646; /* Keep your hover color */
    }

    /* Rest of your existing media query styles */
    .logo img {
        margin-top: 79px !important;
        text-align: center;
        width: 11em;
    }

    .main-title {
        font-size: 28px;
    }

    .main-content.index .main-title {
        width: 80%;
        margin-bottom: 10px;
        margin-top: 35px;
    }

    .main-content.index .sub-title {
        font-size: 14px;
        width: 80%;
    }

    .main-content.index .shop-button {
        font-size: 16px;
        padding: 12px 25px;
    }

    .main-content.index .boxes {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .main-content.products {
        flex-direction: column;
        padding-top: 80px;
    }

    .product-listing.products,
    .cart-section {
        width: 92%;
    }

    .product-item.products img {
        width: 50%;
        float: left;
    }

    .product-item.products {
        width: 100%!important;
    }

    .cart-section {
        position: static;
        margin-top: 20px;
    }

    .product-item.shop {
        width: 100%;
    }

    .footer {
        font-size: 14px;
    }

    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }
    
    .cart-header {
        padding: 0;
    }

    .cart-header {
        right: 20%;
    }
    
    .logo {
        width: 70%;
    }
    
    .hamburger {
        position: absolute;
        right: 15px;
    }
    
    .cart-header {
        order: 3;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 70%;
    }
    .main-title {
        font-size: 22px;
    }

    .main-content.index .sub-title {
        font-size: 12px;
        margin-top: 0px;
        margin-bottom: 15px;
        line-height: 19px;
    }

    .main-content.index .shop-button {
        font-size: 3vh;
        width: 23vh;
        margin: 0px 0px 0px;
    }

    .product-item.shop {
        width: 70%;;
    }

    .main-content.index .black-box {
       
    }

    .product-item.products {
        width: 150px;
    }

    .product-item.shop {
        width: 100%;
    }

    .hamburger {
        position: absolute;
        right: 15px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }


    .cart-item .quantity-controls {
        margin-top: 5px;
    }

    .top-bar {
        height: 46px;
        background-color: #8888888f;
    }

    .login-container,.signup-container {
          background: rgba(255, 255, 255, 0.95);
          padding: 40px;
          border-radius: 10px;
          box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
            width: 70%!important;
          color: #333;
          margin: 100px auto;
        }
}


/* Quantity controls styling */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
}

.qty-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #f0f0f0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border: 1px solid #ddd;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    margin: 0 5px;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .cart-section {
        display: none;
    }

   
    .main-content.products {
        flex-direction: column;
    }
    
    .product-listing.products {
       width: 90%;
       margin-top: 60px;
    }

    .mobile-order-btn {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 90%;
      background: #48333399;
      padding: 14px;
      box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
      z-index: 1000;
    }
    .mobile-order-btn .checkout-button {
        display: block;
        width: 100%;
        padding: 15px;
        background: #4CAF50; /* Adjust to match your theme */
        color: white;
        text-decoration: none;
        text-align: center;
        border-radius: 4px;
        font-size: 16px;
    }
}

/* Ensure add-to-cart button styling matches your theme */
/*.add-to-cart {
    display: inline-block;
    padding: 8px 15px;
    background: #4CAF50; 
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}*/

.mobile-order-btn {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: #48333399;
      padding: 14px;
      box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
      z-index: 1000;
}

.mobile-order-btn .checkout-button {
    margin: 0 auto;
    width: 30%;
    padding: 15px;
    background: #4CAF50; /* Adjust to match your theme */
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .mobile-order-btn {
        display: block; /* Show on mobile */
    }
    
    /* Ensure footer doesn't overlap with fixed button */
    footer {
        padding-bottom: 0px; /* Adjust based on button height */
    }

    footer span{
        display:block;
    }

    .mobile-order-btn .checkout-button {
        margin:0 auto;
        width: 78%;
        left: -9px;
        background:#4CAF50;
        color: white;
        text-decoration:none;
        text-align: center;
        border-radius:4px;
        font-size: 15px;
        position: relative;
    }
}

.cart-header {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333; /* Match your theme */
    position: relative;
}

.cart-link .fa-shopping-cart {
    font-size: 22px; /* Size of the cart icon */
}

.cart-icon-img {
    width: 32px;
  height: 32px;
  vertical-align: middle;
}

.cart-header {
  display: flex;
  align-items: center;
  padding: 7px 15px;
  position: relative;
  top: 9px;
}

.cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    position: relative;

    
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -13px;
  color: white;
  font-size: 10px;
  font-weight: bold;
  height: 21px;
  line-height: 21px;
  text-align: center;
  border-radius: 50%;
  padding: 0 4px;
  background: transparent;
  width: 15px;
  background: #db4646;
}

.css-iguwhy {
  user-select: none;
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  transition: fill 300ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: currentcolor;
  font-size: 1.5rem;
}

.css-1uabrif {
  cursor: pointer;
  text-align: center;
  font-size: 1.5rem;
  color: var(--mui-palette-action-active);
  --IconButton-hoverBg: rgba(var(--mui-palette-action-activeChannel) / var(--mui-palette-action-hoverOpacity));
}

.login-container,.signup-container {
   margin: 15px auto 20px;
          padding: 20px;
          background: rgba(255, 255, 255, 0.95);
          box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
          width:50%;
}

        .login-container h1 {
            color: #db4646;
            margin-bottom: 30px;
            font-size: 28px;
        }

        .login-container form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .login-container label {
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
            text-align: left;
        }

        .login-container input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            box-sizing: border-box;
            transition: border-color 0.3s;
        }

        .login-container input:focus {
            border-color: #db4646;
            outline: none;
        }

        .login-container button {
            background-color: #db4646;
            color: #fff;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .login-container button:hover {
            background-color: #b53a3a;
        }

        .error-message {
            color: #db4646;
            text-align: center;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .signup-link {
            margin-top: 20px;
            text-align: center;
        }

        .signup-link a {
            color: #db4646;
            text-decoration: none;
        }

        .signup-link a:hover {
            text-decoration: underline;
        }


        .user-menu {
    position: relative;
    width: 100px;
}

.user-menu .dropdown-toggle {
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.user-menu .dropdown-toggle:hover {
    color: #db4646;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-menu:hover .dropdown {
    display: block;
}

.user-menu .dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: normal;
}

.user-menu .dropdown a:hover {
    background: #f5f5f5;
    color: #db4646;
}

.form-group select {
    width: 100%;
    padding: 15px 10px 5px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.form-group select:focus {
    border-color: #db4646;
}

.form-group select:focus + label,
.form-group select:not([value=""]) + label {
    top: -8px;
    font-size: 12px;
    color: #db4646;
    background: #fff;
    padding: 0 5px;
    transform: none;
}