.product-container {
    padding: 40px;
    background-color: #fff;
    font-family: Arial, sans-serif;
    max-width: 1320px;
    margin: 0 auto;
}


.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    
}

.product-image .zoomable {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.product-image:hover .zoomable {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #e53935;
    margin-bottom: 10px;
    
}

.rating {
    font-size: 18px;
    color: gold;
    margin-bottom: 15px;
}

.short-description {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
}

.product-form {
    display: flex;
    gap: 15px;
    
    margin-top: 20px;
}

.product-form input[type="number"] {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-cart {
    padding: 8px 15px;
    background-color: blue;
    color:white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    
}
.btn-cart3 {
   padding: 8px 15px;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    
}
.btn-cart2 {
    padding: 8px 10px;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    
    margin-top: 60px;
    
    
}


.btn-cart:hover {
    background-color: #c62828;
}

.product-meta {
    font-size: 14px;
    color: #777;
    margin-top: 15px;
}

.product-description {
    margin-bottom: 50px;
}

.product-description h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.product-description p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.related-products h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.related-grid {
    
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.related-card {
     flex: 1 1 22%;
    background: none;
    padding: 10px;
    text-align: center;
}

.related-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

.related-card img {
     width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.related-card .name {
    font-weight: 600;
    margin-bottom: 5px;
    height: 50px;
}

.related-card .price {
    font-weight: bold;
    color: #e53935;
    margin-top: 20px;
}
.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ccc;
    max-width: 500px;
}

.product-image img.zoom-hover {
    width: 100%;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.product-image:hover img.zoom-hover {
    transform: scale(1.9);
}


@media (max-width: 1024px) {
    .product-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-form {
        flex-direction: column;
        align-items: center;
    }

    .btn-cart,
    .product-form input[type="number"] {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== Related products grid responsive ===== */
@media (max-width: 1024px) {
    .related-grid {
        justify-content: center;
        gap: 25px;
    }

    .related-card {
        flex: 1 1 30%; /* 3 pe rând pe tabletă */
    }
}

@media (max-width: 768px) {
    .related-card {
        flex: 1 1 45%; /* 2 pe rând pe telefon */
    }

    .btn-cart1 {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}
.price-table {
    margin-top: 30px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-size: 15px;
}


.price-table .note {
    font-size: 13px;
    
    margin-top: 10px;
}

/* ===== Calculator preț ===== */
.price-calculator {
    margin-top: 25px;
    padding: 20px;
    background: #eef;
    border-radius: 10px;
}

.price-calculator input, .price-calculator button {
    padding: 8px 12px;
    margin: 10px 5px 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.price-calculator button {
    background: #e53935;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ===== Responsive pentru tabel și calculator ===== */
@media (max-width: 992px) {
    .price-table table,
    .price-table thead,
    .price-table tbody,
    .price-table th,
    .price-table td,
    .price-table tr {
        display: block;
        width: 100%;
    }

    .price-table thead tr {
        display: none;
    }

    .price-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    .price-table td {
        text-align: left;
        padding: 8px 10px;
        border: none;
    }

    .price-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #333;
    }
}

@media (max-width: 768px) {
    .price-calculator {
        text-align: center;
    }

    .price-calculator input,
    .price-calculator button {
        width: 100%;
        max-width: 350px;
        margin: 8px auto;
        display: block;
    }
}
.price-table h3,
.price-table th,
.price-table td,
.price-table .note,
.price-calculator h3,
.price-calculator label,
.price-calculator p {
    color: #1a237e; /* albastru închis */
}

/* Fundal mai neutru pentru contrast */
.price-table {
    background: #f2f4f7;
}

.price-calculator {
    background: #e8f0fe;
}

/* Stil buton calculator */
.price-calculator button {
    background: #1a237e;
    color: #fff;
    font-weight: bold;
}

.price-calculator button:hover {
    background: #0d1648;
}
.final-note {
    margin-top: 20px;
    font-size: 15px;
    font-style: italic;
    text-align: center;
    color: #b71c1c !important; /* roșu vișiniu aprins */
    line-height: 1.6;
}

.final-note strong {
    font-size: 16px;
    font-style: normal;
}
 .product-container{
  padding: 20px;
}
.product-image img{
  width: 100%;
  height: auto;
  display: block;
}

/* Layout principal: pe mobil -> coloana (unu sub altu) */
.product-main{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

/* Asigură lățime completă pe mobil */
.product-image,
.product-info{
  width: 100%;
  max-width: 100%;
}

/* Form-urile pe mobil: stivuite complet */
.product-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}
.product-form label{ margin-bottom: 4px; }
.product-form input[type="number"],
.product-form .btn-cart,
.product-form button{
  width: 100%;
  max-width: 100%;
}

/* Butonul din cardurile recomandate să nu mai aibă margini laterale pe mobil */
.btn-cart1{
  margin-left: 0 !important;
  width: 100% !important;
}

/* Grid produse recomandate – mobil: 1 pe rând; tabletă: 2; desktop: 3-4 */
.related-grid{
  display: grid;
  grid-template-columns: 1fr;          /* mobil */
  gap: 16px;
}
.related-card{ padding: 10px; }
@media (min-width: 480px){
  .related-grid{ grid-template-columns: 1fr 1fr; } /* telefoane mari / mică tabletă */
}
@media (min-width: 992px){
  .related-grid{ grid-template-columns: 1fr 1fr 1fr; } /* desktop mic */
}
@media (min-width: 1200px){
  .related-grid{ grid-template-columns: 1fr 1fr 1fr 1fr; } /* desktop mare */
}

/* Tabelul de preț – păstrează versiunea „card” pe mobil (deja ok în codul tău).
   Doar mic tuning la spații pe mobil. */
.price-table{
  padding: 16px;
  border-radius: 10px;
}
@media (max-width: 992px){
  .price-table tr{ padding: 12px; }
}

/* Calculatorul – 100% pe mobil */
.price-calculator{
  padding: 16px;
}
.price-calculator input,
.price-calculator button{
  width: 100%;
  max-width: 100%;
}

/* Titluri și descrieri – aerisire pe mobil */
.product-info h1{ font-size: 24px; line-height: 1.25; }
.short-description{ font-size: 15px; }

/* ====== TABLETĂ & DESKTOP ====== */
@media (min-width: 992px){
  .product-container{ padding: 40px; }
  .product-main{
    flex-direction: row;   /* pe ecrane mari: imagine + info pe 2 coloane */
    gap: 40px;
  }
  .product-image{ max-width: 500px; }
  .product-info{ min-width: 360px; }
  /* Formularele rămân pe un singur rând DOAR pe desktop, dar păstrăm stivuirea frumoasă pe mobil */
  .product-form{
    flex-direction: row;
    align-items: center;
  }
  .product-form input[type="number"]{ width: 80px; }
  .product-form .btn-cart{ width: auto; }
}

/* Zoom pe imagine – reduce efectul pe mobil ca să nu „sară” */
.product-image img.zoom-hover{
  transition: transform .3s ease;
}
@media (hover:hover){
  .product-image:hover img.zoom-hover{ transform: scale(1.15); }
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
}

/* ======= Mobil: transformăm tabelul în listă ======= */
@media (max-width: 496px) {
    .product-card1 {
        object-fit: contain;
    }
    
}

@media (max-width: 768px) {
  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
    width: 100%;
  }

  .price-table thead {
    display: none; /* ascundem headerul clasic */
  }

  .price-table tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
  }

  .price-table td {
    text-align: left;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .price-table td:last-child {
    border-bottom: none;
  }

  /* Etichete pentru coloane */
  .price-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #a00; /* visiniu */
  }
}
  
 
  
 