/*single product page*/

body {
    background: #111 !important;
    color: #fff !important;
    font-family: Arial, sans-serif;
}

.single-product-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background: #111;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
}

/* 🔹 Product Image */
.single-product-image {
    width: 40%;
    height: 100%;
    border-radius: 15px;
    object-fit: contain;
    background: #fff;
    aspect-ratio: 1 / 1;
}

/* 🔹 Product Info Section */
.single-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.single-product-info h1 {
    font-size: 32px;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 10px;
}

.single-product-info h3, .category, .description {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 15px;
}

/* 🔹 Price & Weight Selection */
.price {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

/* 🔹 Parent Container for Proper Alignment */
.weight-quantity-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Adjust spacing between weight & quantity */
    margin-top: 15px;
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: flex-start;
    white-space: nowrap; /* Ensure both stay in the same row */
}

input.quantity-selector, input[type=number].quantity-selector {
    padding: 12px;
    font-size: 16px !important;
    font-weight: bold;
    border-radius: 12px;
    /* border-color: #ffcc00 !important; */
    border: 2px solid #ffcc00 !important;
    background-color: #111 !important;
    color: #ffcc00 !important;
    cursor: pointer;
    transition: all 0.3s ease-in-out !important;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    height: auto !important;
    text-align: center;
    appearance: none;
    white-space: nowrap;
    margin-bottom: 10px !important;
}
input.quantity-selector, input[type=number].quantity-selector:focus {
    border: 2px solid #ffcc00 !important;
}

/* 🔹 Weight Selector */
.weight-selector {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    border: 2px solid #ffcc00 !important;
    background: #111;
    color: #ffcc00 !important;
    cursor: pointer;
    transition: all 0.3s ease-in-out !important;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
    text-align: center;
    appearance: none;
    white-space: nowrap;
}

/* 🔹 Ensure Font Visibility in Dropdown */
.weight-selector option {
    font-size: 16px;
    padding: 12px;
    background: #222;
    color: #ffcc00;
}

/* 🔹 Quantity Selector */
.quantity-selector {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #28a745;
    background: #222;
    color: #28a745;
    width: 100px; /* Adjust for better alignment */
    transition: all 0.3s ease-in-out;
    outline: none;
    height: 50px; /* Same height as weight selector */
    display: flex;
    align-items: center;
    justify-content: center;
  margin-top: 10px;
}

/* 🔹 Quantity Input */
.quantity-selector input {
    width: 50%;
    text-align: center;
    background: transparent;
    border: none;
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
}

/* 🔹 Quantity Focus */
.quantity-selector:focus {
    border-color: #fff;
}


/* 🔹 Add to Cart Button */
.add-to-cart {
    background: #28a745;
    color: white;
    font-size: 18px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-in-out;
    width: 220px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.add-to-cart:hover {
    background: #218838;
}




/* 🔹 THC & CBD Badges */
.product-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.badge {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
}

.thc-badge {
    background: #ffcc00;
    color: #222;
}

.cbd-badge {
    background: #00cc99;
    color: #222;
}

.effect-badge {
    background: #333;
    color: #fff;
}

/* 🔹 Responsive Design */
@media screen and (max-width: 768px) {
    .single-product-container {
        flex-direction: column;
        padding: 20px;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .single-product-image {
        width: 100%;
        max-height: 100%;
    }

    .add-to-cart {
        width: 100%;
    }
}

/* 🔹 Page Layout */
body {
    background: #111 !important;
    color: #fff !important;
}

.single-product-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background: #111;
    border-radius: 10px;
}

/* 🔹 Cart Sidebar */
#cart-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: #222;
    color: #fff;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#cart-sidebar.open {
    right: 0;
}

/* 🔹 Floating Cart Button */
#cart-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    font-size: 1.5rem;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
}


/* 🔹 Related Products Title */
.related-products-title {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff !important;  /* ✅ White color */
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: left;
    padding-left: 20px;
}




.carousel-product-card {
    background: #111;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease-in-out;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.carousel-product-card:hover {
    transform: scale(1.03);
}
.carousel-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.carousel-product-brand {
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: capitalize;
}
.carousel-product-title {
    font-size: 15px;
    font-weight: bold;
    color: white;
    margin: 5px 0 10px;
    line-height: 1.3em;
    min-height: 2.6em;
}
.carousel-product-strain {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin-bottom: 6px;
}
.carousel-product-thc {
    font-size: 14px;
    color: #bbb;
    font-weight: 500;
    margin-bottom: 6px;
}
.carousel-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 10px;
}
.carousel-add-to-cart {
    background: #ff6a00;
    color: white;
    font-size: 14px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}
.carousel-add-to-cart:hover {
    background: #e65c00;
}





/* Weight selector css */

.single-product-select-options-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 30px;
}

p.SingleProduct-strain-type {
    border: 2px solid #ffcc00;
    text-align: center;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #FFCC00;
}
p.SingleProduct-thc {
    border: 2px solid #ffcc00;
    text-align: center;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #FFCC00;
}

.singleproduct-product-potency {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 24px;
}
.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: #ccc;
    max-width: 1200px;
    margin: 50px auto;
}

.breadcrumb a {
    color: #E85800;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #97451C;
}

ul.effects-list {
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    flex-wrap: wrap;
}

ul.effects-list li {
    list-style: none;
    border: 2px solid #ffcc00;
    text-align: center;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #FFCC00;
}

p.single-product-main-price {
    font-size: 26px;
}

.related-products-container {
    max-width: 1200px;
    margin: 50px auto;
    position: relative;
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
    .breadcrumb {
        margin: 50px auto;
        margin-left: 55px;
    }
    .single-product-container {
        max-width: 750px;
    }
    .related-products-container {
        max-width: 750px;
    }
}
@media screen and (max-width: 768px) {
    input.quantity-selector, input[type=number].quantity-selector {
        width: 100%;
    }
    ul.effects-list {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .singleproduct-product-potency {
        flex-wrap: wrap;
    }
    .breadcrumb {
        margin: 50px 34px;
    }
    .single-product-container {
        max-width: 750px;
    }
    .related-products-container {
        max-width: 750px;
    }
}

.cart-item-name {
  font-size: 14px;
  font-weight: bold;
  color: white;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 200px;
}


.cart-item-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #f7c700;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #1a1a1a;
  color: white;
  gap: 12px;
}

.cart-item-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cart-item-info {
  font-size: 13px;
  color: #ccc;
  margin-top: 4px;
}

.remove-from-cart {
  background: transparent;
  border: none;
  color: #ff5555;
  font-size: 18px;
  cursor: pointer;
  align-self: start;
  padding: 0;
}

.cart-qty-input {
  width: 50px;
  padding: 4px;
  margin-left: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cart-count-badge {
           position: absolute;
           top: -4px;
           right: -4px;
           background: white;
           color: #E85800;
           font-size: 12px;
           font-weight: bold;
           padding: 4px 6px;
           border-radius: 50%;
           line-height: 1;
           width: 20px;
           height: 20px;
}


