:root {
    --main-maroon: #1AA7EC;
    --deep-maroon: #89375F;
    --sandy-brown: hsl(29, 90%, 65%);
    
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.view-form{
    width: 100%;
}
.content{
    /* border: 1px solid black; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-left: 10px;
    width: 100%;
    transition: all 0.25s ease;
    cursor: pointer;
}

  /* Completely disable text selection on the whole page */
body * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Re-enable for inputs and search */
input, textarea, .search-field {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}
  
.product_deatail_container{
    border: 1px solid #cfcfcf;
    width: 90%;
    display: flex;
    justify-content: space-between;
    border-radius: 16px;
    background-color: #fefefe;
    padding: 25px;
    
}
.product_image_box{
    width: 40%;
    height: 450px;
    display: flex;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.product_detail_box{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-detail-title{
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 25px;
    font-weight: 600;
}
.product_detail_box hr{
    width: 95%;
}

/* ============ NEW BUTTON STYLES ============ */

/* Buy Now Button - Gradient */
.btn_buy_now {
    flex: 1;
    height: 48px;
    border: none;
    background: linear-gradient(90deg, #007AFF, #00C6FF);
    padding: 0;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
}

.btn_buy_now:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Link inside Buy Now button */
.buy_now_link {
    text-decoration: none;
    color: #FFFFFF;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 48px;
}

/* Add to Cart Button - Outline Style */
.btn_add_to_cart {
    flex: 1;
    height: 48px;
    border: 2px solid #00C6FF;
    background-color: transparent;
    padding: 0;
    color: #00C6FF;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    line-height: 44px; /* 48px - 4px border */
}

.btn_add_to_cart:hover {
    background-color: #00C6FF;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

/* Container for both buttons */
.buy-and-cart-btn {
    width: 100%;
    display: flex;
    margin-top: 20px;
}

/* Row layout for buttons */
.buy-and-cart-btn .row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.product_counter_box {
    width: 100%;
}
.product_counter_btn_box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  /* Common button styles */
  .product_counter_btn_box button {
    width: 40px;
    height: 40px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  
  /* Minus Button */
  .btn_product_decrement {
    background: #ffe4e6; /* light red background */
    color: #e11d48;
  }
  
  .btn_product_decrement:hover {
    background: #e11d48;
    color: #fff;
  }
  
  /* Plus Button */
  .btn_product_increment {
    background: #dcfce7; /* light green background */
    color: #16a34a;
  }
  
  .btn_product_increment:hover {
    background: #16a34a;
    color: #fff;
  }
  
  /* Click effect */
  .product_counter_btn_box button:active {
    transform: scale(0.92);
  }
  
  /* Input field */
  .input_product_quantity {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    background: #fff;
    color: #333;
  }
  
  /* Remove number arrows */
  .input_product_quantity::-webkit-outer-spin-button,
  .input_product_quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  .input_product_quantity {
    -moz-appearance: textfield;
  }
  
  /* Responsive */
  @media (max-width: 576px) {
    .product_counter_btn_box button {
      width: 35px;
      height: 35px;
      font-size: 16px;
    }
  
    .input_product_quantity {
      width: 40px;
      height: 35px;
      font-size: 14px;
    }
  }

/* My Code */
.product_description {
    margin-top: 20px;
    padding: 15px 18px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
  }
  
  .product_description .product_title {
    font-size: 16px;
    font-weight: 400;
    color: #444;
    margin-bottom: 8px;
  }
  
  .product_description .product_detail {
    font-size: 15px;
    color: #444;
    line-height: normal;
    white-space: normal;      /* ensures no weird spacing */
    word-spacing: normal;     /* reset extra spaces between words */
    letter-spacing: normal;   /* reset spacing between letters */
  }
  
/* end of my Code */
.product_description{
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px 18px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e7edf3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.product_title{
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.product_detail {
    width: 98%;
    font-size: 16px;
    color: #475569;
    text-align: justify;
    line-height: 1.6;
    white-space: normal;
    word-spacing: normal;
    letter-spacing: normal;
}

.product_description_dropdown {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
}

.product_description_toggle {
    width: 100%;
}

.product_description_summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.product_description_summary:hover {
    background-color: rgba(26, 167, 236, 0.05);
}

.product_description_summary::-webkit-details-marker {
    display: none;
}

.product_description_summary_text {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.product_description_summary::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef6ff;
    color: #1AA7EC;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product_description_toggle[open] .product_description_summary::after {
    content: "-";
    background: #1AA7EC;
    color: #fff;
}

.product_description_body {
    width: auto;
    padding: 0 18px 18px;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    text-align: left;
    border-top: 1px solid #e2e8f0;
}


.product_reviews_container{
    width: 80%;
}

.showcase-rating {
    color: var(--sandy-brown);
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.price-box {
    display: flex;
    gap: 10px;
    font-size: var(--fs-7);
    color: #e11d48;
    margin-bottom: 10px;
}

.price {
    font-weight: 700;
}

del {
    color: var(--sonic-silver);
}

/* margin-left: 0; */

.user_review_text{
    text-align: justify;
}



.user_review_input_section {
    /* border: 1px solid red; */
    width: 80%;
}
label h3{
    font-weight: 480;
}
#username {
    width: 30%;
    height: 48px;
    outline: none;
}

#userreview {
    width: 100%;
    height: 100px;
    outline: none;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;          /* space between stars */
    white-space: nowrap;
  }
  
  .rating ion-icon {
    font-size: 18px;   /* optional */
    color: #1AA7EC;    /* optional gold color */
  }
  

/* Review thumbnail */
.review-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  }
  
  .review-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  }
  
  /* Modal overlay */
  .review-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 24px;
  }
  
  /* Big image */
  .review-modal img {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
  
  /* Close button */
  .review-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    line-height: 1;
  }
  

.btn_publish_review {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 150px;
    height: 48px;
    border: none;
    outline: none;
    background-color: #09b2ef;
    color: #FFF;
    font-size: 18px;
    font-weight: 280;
}

.btn_publish_review:hover {
    background-color: #0685b3;
    cursor: pointer;
}

.review-section {
    width: 100%;
    margin-left: 10px; /* adjust as needed */
    padding-left: 0;
    margin-top: 20px;
}

/* Star rating colors for reviews */
.review-section .rating ion-icon[name="star"] {
    color: #FBBF24; /* Golden yellow for filled stars */
}

.review-section .rating ion-icon[name="star-outline"] {
    color: #e5e7eb; /* Light gray for empty stars */
}

.review-section .rating ion-icon {
    font-size: 1rem;
    margin-right: 2px;
    transition: transform 0.2s;
}

.review-section .rating ion-icon:hover {
    transform: scale(1.1);
}

.review-images {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}


.review-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.review-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.single-review {
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}


.review-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.review-modal img {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.review-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.review-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;           /* dark professional text */
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e7eb; /* clean underline */
    display: inline-block;
}

.detail-recommendations {
    margin: 28px 0 24px 0;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7f3;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.detail-recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.detail-recommendations-kicker {
    margin: 0 0 6px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0284c7;
}

.detail-recommendations-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.detail-recommendations-subtitle {
    color: #64748b;
    font-size: 14px;
}

.detail-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}

.detail-recommendation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    padding: 12px;
}

.detail-recommendation-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.14);
}

.detail-recommendation-image-wrap {
    width: 78px;
    min-width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.detail-recommendation-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-recommendation-content {
    padding: 0;
    flex: 1;
    min-width: 0;
}

.detail-recommendation-name {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    min-height: 0;
}

.detail-recommendation-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-recommendation-price {
    font-size: 16px;
    font-weight: 700;
    color: #0f766e;
}

.detail-recommendation-old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

@media (max-width: 1250px) {
   
    /* … */
    .product_deatail_container {
            /* border: 1px solid red; */
           flex-direction: column;
           justify-content: center;
           align-items: center;
           width: 100%;
        }
    .product_image_box, .product_detail_box{
        width: 100%;
    }
    .product_detail {
        /* border: 1px solid black; */
        text-align: justify;
        margin-left: 0px;

    }
    
    #username, #userreview{
        width: 95%;
    }

    .detail-recommendations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .detail-recommendations {
        margin: 24px 8px 22px 8px;
        padding: 16px;
        border-radius: 16px;
    }

    .detail-recommendations-title {
        font-size: 20px;
    }

    .detail-recommendations-subtitle {
        display: none;
    }

    .detail-recommendations-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
    }

    .detail-recommendations-grid::-webkit-scrollbar {
        height: 6px;
    }

    .detail-recommendations-grid::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.7);
        border-radius: 999px;
    }

    .detail-recommendation-card {
        min-width: clamp(200px, 72vw, 240px);
        scroll-snap-align: start;
        padding: 10px;
        gap: 10px;
    }

    .detail-recommendation-image-wrap {
        width: clamp(64px, 20vw, 74px);
        min-width: clamp(64px, 20vw, 74px);
        height: clamp(64px, 20vw, 74px);
        padding: 6px;
    }

    .detail-recommendation-name {
        font-size: 13px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .detail-recommendation-price {
        font-size: 15px;
    }

    .detail-recommendation-old-price {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .detail-recommendations {
        padding: 14px;
    }

    .detail-recommendations-header {
        margin-bottom: 14px;
    }

    .detail-recommendations-kicker {
        font-size: 11px;
    }

    .detail-recommendations-title {
        font-size: 18px;
    }

    .detail-recommendations-grid {
        gap: 12px;
    }

    .detail-recommendation-card {
        min-width: clamp(180px, 78vw, 210px);
        border-radius: 12px;
    }

    .detail-recommendation-image-wrap {
        width: clamp(58px, 18vw, 68px);
        min-width: clamp(58px, 18vw, 68px);
        height: clamp(58px, 18vw, 68px);
    }

    .detail-recommendation-price-row {
        gap: 6px;
    }

    .read-more-btn {
        color: #38bdf8; /* Sky Blue */
        cursor: pointer;
        font-weight: 500;
        margin-left: 5px;
        text-decoration: none;
    }
    
    .read-more-btn:hover {
        color: #0ea5e9; /* Darker Sky Blue on hover */
        text-decoration: underline;
    }
}
