/* ==========================================================================
   Snapstore Modern Redesign Product Detail Stylesheet
   ========================================================================== */

   :root {
    --primary-hue: 252;
    --primary-sat: 60%;
    --primary-light: 65%;
    
    --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
    --primary-hover: hsl(var(--primary-hue), var(--primary-sat), 55%);
    --primary-glow: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.35);
    
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px rgba(147, 132, 209, 0.12);
    
    --text-dark: #2c254a;
    --text-muted: #6e6787;
  }
  
  .product-detailes {
    padding: 60px 0 100px 0;
    background: linear-gradient(135deg, #f8f6ff 0%, #efeaff 100%);
    min-height: calc(100vh - 120px);
  }
  
  .card-wrapper .card {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
  }
  
  /* Product Gallery (Left) */
  .product-imgs {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .img-display {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(147, 132, 209, 0.1);
  }
  
  .img-showcase {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .img-showcase img {
    min-width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  
  .img-select {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .img-select::-webkit-scrollbar {
    height: 6px;
  }
  
  .img-select::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
    border-radius: 3px;
  }
  
  .img-select::-webkit-scrollbar-thumb {
    background: rgba(147, 132, 209, 0.3);
    border-radius: 3px;
  }
  
  .img-item {
    flex: 0 0 100px;
    margin: 0;
  }
  
  .img-item a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  }
  
  .img-item img {
    width: 100%;
    height: 65px;
    object-fit: cover;
  }
  
  .img-item a:hover,
  .img-item.active a {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px var(--primary-glow);
  }
  
  /* Product Content Configurator (Right) */
  .product-content {
    padding: 10px 20px;
  }
  
  .product-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif !important;
  }
  
  .product-desc-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  /* Selector Dropdowns */
  .seletor-devv {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .seletor-devv .dropdown {
    position: relative;
    width: 100%;
  }
  
  .seletor-devv .label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
  }
  
  .preview {
    width: 100%;
    border: 1.5px solid #e2dbf5;
    background: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(147, 132, 209, 0.03);
  }
  
  .preview::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
    transition: transform 0.3s ease;
  }
  
  .preview[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  .preview:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(147, 132, 209, 0.1);
  }
  
  .preview .default {
    padding: 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
  }
  
  /* Dropdown Option List Menu */
  .dropdown-menu.product_sel {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid rgba(147, 132, 209, 0.15);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(147, 132, 209, 0.15);
    padding: 10px;
    z-index: 1000;
  }
  
  .dropdown-menu.product_sel::-webkit-scrollbar {
    width: 6px;
  }
  
  .dropdown-menu.product_sel::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .dropdown-menu.product_sel::-webkit-scrollbar-thumb {
    background: rgba(147, 132, 209, 0.2);
    border-radius: 3px;
  }
  
  .pd_sel_li {
    border-radius: 12px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    margin-bottom: 4px;
  }
  
  .pd_sel_li:last-child {
    margin-bottom: 0;
  }
  
  .pd_sel_li:hover {
    background: rgba(147, 132, 209, 0.08);
  }
  
  .pd_sel_li .box {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  
  .pd_sel_li .img {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f6ff;
    flex-shrink: 0;
    padding: 0;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .pd_sel_li .img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
  }
  
  .pd_sel_li .text {
    flex-grow: 1;
    padding: 0;
    display: block;
    float: none;
  }
  
  .pd_sel_li .text .name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
  }
  
  /* Selection Preview inside the button */
  .preview .pd_sel_li {
    padding: 0;
    width: 100%;
    margin-bottom: 0;
  }
  
  .preview .pd_sel_li:hover {
    background: transparent;
  }
  
  .preview .pd_sel_li .box {
    align-items: center;
  }
  
  .preview .pd_sel_li .img {
    width: 44px;
    height: 34px;
    border-radius: 6px;
  }
  
  .preview .pd_sel_li .text .name {
    font-size: 15px;
    font-weight: 600;
  }
  
  /* Price & Upload CTA Section */
  .product-price {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .product-price .new-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif !important;
    background: rgba(147, 132, 209, 0.1);
    padding: 6px 20px;
    border-radius: 12px;
    display: inline-block;
    animation: fadeInUp 0.4s ease;
  }
  
  .purchase-info {
    margin: 25px 0 0 0;
    animation: fadeInUp 0.5s ease;
  }
  
  .purchase-info .photo_upload_next {
    background: linear-gradient(135deg, var(--primary), #a64cff);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    height: auto !important;
  }
  
  .purchase-info .photo_upload_next::after {
    content: '\f093';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    transition: transform 0.3s ease;
  }
  
  .purchase-info .photo_upload_next:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(166, 76, 255, 0.35);
  }
  
  .purchase-info .photo_upload_next:hover::after {
    transform: translateY(-2px);
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive Breakpoints */
  @media (max-width: 991px) {
    .card-wrapper .card {
      grid-template-columns: 1fr;
      padding: 24px;
      border-radius: 24px;
    }
    
    .product-content {
      padding: 20px 0 0 0;
    }
    
    .product-title {
      font-size: 30px;
    }
  }
  
  @media (max-width: 575px) {
    .product-detailes {
      padding: 30px 0 60px 0;
    }
    
    .card-wrapper .card {
      padding: 16px;
    }
    
    .img-item {
      flex: 0 0 80px;
    }
    
    .img-item img {
      height: 50px;
    }
    
    .product-title {
      font-size: 24px;
    }
    
    .preview {
      padding: 12px 16px;
    }
    
    .product-price .new-price {
      font-size: 26px;
      padding: 4px 16px;
    }
  }
