
                                                /* Product Detail */
/* === GLOBAL FONT & COLORS === */
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #f4f7fa; }

/* === DETAIL PAGE LAYOUT === */
.detail-page-section {
    padding: 50px 0 100px 0;
}

/* === CARD STYLE === */
.content-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.content-card:hover { transform: translateY(-4px); box-shadow: 0 35px 60px rgba(0,0,0,0.12); }

/* === IMAGE SECTION === */
.product-img-box {
    background: linear-gradient(145deg, #f8f9fc, #e6ebf4);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3eb;
    transition: transform 0.5s ease;
}
.product-img-box img {
    max-height: 400px;
    object-fit: contain;
    width: auto;
    transition: transform 0.5s ease;
}
.product-img-box:hover img { transform: scale(1.08); }

/* === TYPOGRAPHY === */
.product-name { font-weight: 800; font-size: 2rem; color: #153B7B; margin-bottom: 10px; }
.price-tag { font-size: 2.5rem; font-weight: 900; color: #153B7B}
.desc-text { font-size: 1rem; line-height: 1.7; color: #5f6c7b; margin: 20px 0; }

/* === STOCK BADGES === */
.stock-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}
.stock-in { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.stock-out { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* === FEATURE ICONS === */
.feature-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 15px; border-radius: 14px; background: #f8fafc;
    box-shadow: 0 5px 12px rgba(0,0,0,0.04); margin-bottom: 15px;
    transition: 0.3s;
}
.feature-item:hover { transform: translateY(-3px); }
.feature-icon {
    width: 42px; height: 42px;
    background: white;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: #0d6efd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* === ADD TO CART BUTTON === */
.btn-cart {
    background: #153B7B;
    color: white;
    border-radius: 16px;
    font-weight: 700;
    padding: 16px 0;
    font-size: 1rem;
    transition: all 0.3s;
}
.btn-cart:hover { background: #0b5ed7; transform: translateY(-2px); }

/* === QUANTITY SELECT === */
.qty-box {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #dce3eb;
    background: #f8fafc;
}
.qty-box input {
    width: 50px; text-align: center; border: none; background: transparent;
    font-weight: 700;
}
.qty-box button {
    border: none; background: transparent; width: 40px;
    font-size: 1.2rem; font-weight: 700; cursor: pointer;
}

/* === REVIEW SECTION === */
.review-card {
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
    overflow: hidden;
}
.review-header {
    background: #0f172a;
    color: #fff;
    padding: 25px;
    text-align: center;
}
.form-input-pill {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    width: 100%;
    transition: all 0.3s;
}
.form-input-pill:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}

/* === STAR RATING === */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: center; gap: 10px; margin-bottom: 20px; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; color: #cbd5e1; cursor: pointer; transition: 0.2s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* RESPONSIVE */
@media(max-width:991px){
    .product-name { font-size: 1.6rem; }
    .price-tag { font-size: 2rem; }
}

/* main Design  */
    /* --- THEME CONSTANTS --- */
    :root {
      --primary: #1a4b9e;
      --accent: #3b71ca;
      --dark: #0a1421;
      --grey: #1a1a1a;
      --light: #ffffff;
      --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    /* --- GLOBAL RESET --- */
    * {
      box-shadow: none !important;
      -webkit-box-shadow: none !important;
    }

    body, html {
      overflow-x: hidden;
      width: 100%;
      margin: 0;
      padding: 0;
      font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      background-color: var(--light);
      color: var(--dark);
    }

    body {
      padding-top: 85px; 
    }

    /* --- NAVIGATION STYLE --- */
    .header_section {
      background: rgba(255, 255, 255, 0.98);
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 100;
      border-bottom: 2px solid rgba(26, 75, 158, 0.1);
      padding: 10px 0;
    }

    .navbar-brand span {
      font-weight: 900;
      font-size: 1.8rem;
      text-transform: uppercase;
      letter-spacing: -1px;
      color: var(--dark) !important;
    }

    .navbar-brand b {
      color: var(--primary);
    }

    /* --- UPDATED: LEFT-TO-RIGHT ENTRANCE & EXIT --- */
    .nav-item .nav-link {
      font-weight: 700;
      color: var(--dark) !important;
      text-transform: uppercase;
      font-size: 13px;
      letter-spacing: 1px;
      padding: 10px 15px !important;
      position: relative;
      display: inline-block;
      transition: color 0.3s ease;
    }

    /* The underline pseudo-element */
    .nav-item .nav-link::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background-color: var(--primary);
      
      /* Start invisible (scaled to 0) */
      transform: scaleX(0);
      /* Default exit point: the right side */
      transform-origin: bottom right;
      transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    }

    /* On Hover: Grow from the LEFT */
    .nav-item .nav-link:hover::after {
      transform: scaleX(1);
      transform-origin: bottom left;
    }

    /* On Mouse Leave: Shrink toward the RIGHT */
    .nav-item .nav-link:not(:hover)::after {
      transform: scaleX(0);
      transform-origin: bottom right;
    }

    .nav-item .nav-link:hover {
      color: var(--primary) !important;
    }

    .user_option {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .user_option a {
      color: var(--dark);
      font-size: 22px;
      position: relative;
      transition: var(--transition);
      text-decoration: none;
    }

    .user_option a:hover {
      color: var(--primary);
      transform: scale(1.1);
    }

    .cart-badge {
      position: absolute;
      top: -5px;
      right: -8px;
      background: var(--primary);
      color: white;
      font-size: 10px;
      font-weight: bold;
      padding: 2px 6px;
      border: 2px solid var(--light);
    }

    /* --- HERO SLIDER --- */
    .hero_area {
      background: linear-gradient(135deg, #0a1421 0%, #1a4b9e 100%);
    }

    .mySwiper {
      width: 100%;
      height: 85vh; 
    }

    .swiper-slide {
      display: flex;
      align-items: center;
      background: transparent;
      overflow: hidden;
    }

    .swiper-slide::after {
      content: "HENGHOR";
      position: absolute;
      font-size: 15vw;
      font-weight: 900;
      color: rgba(255,255,255,0.03);
      z-index: 1;
      right: -5%;
      bottom: -5%;
    }

    .detail-box {
      position: relative;
      z-index: 5;
    }

    .detail-box h1 {
      font-size: 5rem;
      font-weight: 900;
      color: var(--light);
      text-transform: uppercase;
      line-height: 0.85;
      margin-bottom: 20px;
      letter-spacing: -3px;
    }

    .detail-box p {
      color: #cbd5e0;
      font-size: 1.2rem;
      border-left: 4px solid var(--accent);
      padding-left: 20px;
      margin-bottom: 35px;
    }

    .btn-main {
      display: inline-block;
      padding: 16px 45px;
      background-color: var(--primary);
      color: var(--light);
      text-transform: uppercase;
      font-weight: 800;
      text-decoration: none;
      letter-spacing: 2px;
      border: 2px solid var(--primary);
      transition: var(--transition);
    }

    .btn-main:hover {
      background: transparent;
      border-color: var(--light);
      color: var(--light);
    }

    .slider_img-box img {
      width: 100%;
      filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    }

    /* --- SHOP SECTION --- */
    .shop_section {
      padding: 80px 0;
    }

    /* --- INFO & FOOTER --- */
    .info_section {
      background-color: #050c18;
      color: var(--light);
      padding: 80px 0;
      border-top: 6px solid var(--primary);
    }

    .info_section h6 {
      text-transform: uppercase;
      font-weight: 900;
      margin-bottom: 30px;
      color: var(--accent);
      letter-spacing: 2px;
    }

    .info_form input {
      width: 100%;
      padding: 15px;
      background: #0d1b2e;
      border: 1px solid #1a2a44;
      color: white;
      margin-bottom: 10px;
    }

    .info_form button {
      width: 100%;
      padding: 15px;
      background: var(--primary);
      border: none;
      color: white;
      font-weight: bold;
      text-transform: uppercase;
      transition: 0.3s;
    }

    .info_form button:hover {
        background-color: var(--accent);
    }

    .footer_section {
      background-color: #030811;
      padding: 25px 0;
      text-align: center;
      border-top: 1px solid #112233;
    }

    .footer_section p {
      color: #64748b;
      margin: 0;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* --- MOBILE RESPONSIVE --- */
    @media (max-width: 991px) {
      .detail-box h1 { font-size: 3rem; }
      .mySwiper { height: auto; padding: 50px 0; }
      .navbar-collapse {
          background: white;
          padding: 20px;
          margin-top: 10px;
      }
    }

    /* INDEX.BLADE.PHP */
      :root {
        --brand-primary: #3b71ca;
        --brand-dark: #112A53;
        --bg-light: #fcfcfc;
    }

    body {
        background-color: var(--bg-light);
    }

    /* Product Card Enhancements */
    .product-card {
        transition: all 0.3s ease;
        border: 1px solid #eee;
        height: 100%; /* Keeps all cards same height in a row */
        display: flex;
        flex-direction: column;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

    .image-wrapper {
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Title Clamping: Limits text to 2 lines for a clean grid */
    .p-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-decoration: none;
        color: var(--brand-dark);
        font-weight: 600;
        font-size: 0.9rem;
    }

    /* Overlay only appears on hover (Desktop) */
    .image-overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(17, 42, 83, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: 0.3s ease;
    }

    .product-card:hover .image-overlay {
        opacity: 1;
    }

    /* Slimming the container for better focus */
    .slim-container {
        max-width: 1140px;
    }

    /* product detail */
       body { font-family: 'Plus Jakarta Sans', sans-serif; }
    .detail-page-section { background-color: #f8fafc; padding: 60px 0; }
    .content-card, .review-card { 
        background: white; 
        border-radius: 24px; 
        border: none; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    }
    .product-img-box {
        background: #ffffff;
        border-radius: 20px;
        overflow: hidden;
        aspect-ratio: 1/1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .qty-box {
        display: flex;
        align-items: center;
        background: #f1f5f9;
        border-radius: 12px;
        padding: 5px;
    }
    .qty-box button {
        border: none;
        background: white;
        width: 35px;
        height: 35px;
        border-radius: 8px;
        color: #153B7B;
        transition: 0.3s;
    }
    .qty-box input {
        width: 50px;
        text-align: center;
        border: none;
        background: transparent;
        font-weight: bold;
    }
    .btn-cart {
        background: #153B7B;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 12px;
        font-weight: 700;
        transition: 0.3s;
    }
    .btn-cart:hover { background: #0d2a5a; transform: translateY(-2px); }
    
    /* Star Rating Style */
    .star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
    .star-rating input { display: none; }
    .star-rating label { font-size: 1.5rem; color: #cbd5e1; cursor: pointer; margin-right: 5px; }
    .star-rating input:checked ~ label { color: #f59e0b; }
    .form-input-pill {
        width: 100%;
        padding: 12px 20px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        outline: none;
    }
    /* Allproduct.blade.php */
      .product-card {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: none !important;
        position: relative;
        overflow: hidden;
        border-radius: 15px;
    }

    .product-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

    /* ផ្នែកបង្ហាញ View Detail នៅលើរូបភាព */
    .img-container {
        position: relative;
        background: #f8f9fa;
        border-radius: 12px;
        height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .view-detail-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .img-container:hover .view-detail-overlay {
        opacity: 1;
    }

    .btn-view-detail {
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .img-container:hover .btn-view-detail {
        transform: translateY(0);
    }

    .category-title {
        position: relative;
        padding-left: 15px;
    }

    .category-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 5px;
        background: #007bff;
        border-radius: 10px;
    }