/* HEADER CU VIDEO */
header {
    position: relative;
    height: 60vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.video {
    width: 630px;
    display: block;
    margin: 0 auto;

    border-radius: 15px;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.3);
}

video {
    width: 100%;
    border-radius: 15px;
}



.header-content {
    text-align: center;
    padding: 1rem;
}

.logo {
    width: 325px;
    margin-bottom: 3rem;
}

.header-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.2rem;
}

/* SORTARE */
.sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort select {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* ACTION BUTTONS */
.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-btn {
    background: white;
    border: 2px solid #0288d1;
    color: #0288d1;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    cursor: pointer;
}

.cart-btn:hover {
    background: #0288d1;
    color: white;
}

/* POP-UP */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.popup-content {
    background: white;
    padding: 15px 10px;
    border-radius: 8px;
    width: 90%;
    height: auto;
    max-width: 500px;
    position: relative;
}

.popup-content h2 {
    margin: 5px 0;
}

.product-info-section h3 {
    margin: 5px 0;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 2.5rem;
    cursor: pointer;
}

.hidden {
    display: none;
}


/* Stil general */
body {
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    background: #e0f7fa;
    color: #003d66;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: linear-gradient(to right, #0288d1, #26c6da);
    color: white;
    padding-top: 6rem;
    padding-bottom: 2rem;
    text-align: center;
}

header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
}

/* Catalog */
.catalog,
.accessories {
    padding: 2rem 0;
}

.catalog h2,
.accessories h2 {
    margin-bottom: 1rem;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
}

.accessories .categories {
    margin-bottom: 2rem;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.filters button,
.categories button {
    background: #4dd0e1;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;

    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.3);
}

.filters button:hover,
.categories button:hover {
    background: #00acc1;
}

button {
    background: #4dd0e1;
}

/* Grid produse */
.product-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

/* Card produs */
.product-card {
    flex: 0 0 calc(25% - 16px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
    text-align: center;
}

.product-card .img-fluid {
    height: 385px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card img {
    width: 100%;
    height: auto;

    display: block;
}

#accessoryContainer .product-card img {
    max-width: 60%;
}

.d-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}


.product-card h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.product-card li {
    margin: 0.2rem 0;
}

.product-card li:last-child {
    color: #4dd0e1;
    font-weight: bold;
}

/* Preț */
.price {
    margin: 0.5rem 0;
}

.price .old {
    text-decoration: line-through;
    color: #888;
    margin-right: 0.5rem;
}

.price .new {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Butoane */
.buy-btn {
    background: #0288d1;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.buy-btn:hover {
    background: #01579b;
}

/* Iconițe absolute */
.gift-icon,
.details-btn {
    position: absolute;
    bottom: 200px;
    background: #ffd600;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;

    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.3);
}

.gift-icon {
    left: 10px;
}

.details-btn {
    right: 10px;
    background: #eeeeee;
    color: #0288d1;
    cursor: pointer;
}

.details-btn:hover {
    background: #ddd;
}

/* ICONIȚĂ COȘ GLOBALĂ */
#cart-icon {
    position: fixed;
    top: 15px;
    right: 10px;
    background: #096b8d;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 101;
}

#cart-icon span {
    font-weight: bold;
    margin-left: 5px;
}

/* POP-UP COȘ (folosește stilul deja definit pentru .popup) */
#cart-items {
    list-style: none;
    padding: 0;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#cart-items button {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
}

#order-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

#order-form input,
#order-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#order-form button {
    background-color: #0288d1;
    color: white;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#order-summary {
    font-size: 0.95rem;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
}

.product-info-section {
    border-radius: 10px;
}

.product-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.product-benefits li {
    padding: 5px 0;
    font-weight: 500;
}

.assembly-instructions {
    padding-left: 20px;
}

footer {
    background: #fff;
    color: #000;
    padding: 20px 10px;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #59caff;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* advantages */
.advantages {
    padding-top: 25px;
}

.advantages__title {
    margin-top: 0;
    text-align: center;
}

.advantages__block {
    width: 100%;
}

.advantages__list {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px;
    row-gap: 25px;
    justify-content: space-evenly;
}

.advantages__item {
    display: flex;
    flex-direction: column;

    width: 275px;
    align-items: flex-start;

    padding: 10px 15px;
    background-color: white;
    border-radius: 20px;

    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.3);
}

.advantages__item div:first-child {
    display: flex;
    align-items: center;
    justify-content: start;

    height: 25px;
    padding: 10px 0;
}

.advantages__item div:last-child {
    text-align: center;
}

.advantages__item svg {
    margin-right: 20px;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}

.item__descr {
    margin: 0;
    font-weight: 550;
    font-size: 15px;
}

/* delivery */
.delivery {
    padding-top: 100px;
}

.delivery__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    row-gap: 20px;
    gap: 20px;
}

.delivery__item {
    width: 330px;
    height: 135px;
    background-color: white;
    border-radius: 20px;
    padding: 20px;

    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.3);
}

.review-slider-container {
    position: relative;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.swiper {
    padding-top: 50px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.review-card img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.stars {
    color: gold;
    font-size: 20px;
    margin-bottom: 8px;
}

.name {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* Săgeți poziționate deasupra cardurilor */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    background: #fff;
    padding: 10px 12px;
    border-radius: 50%;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

#reviews{
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {

    .swiper-button-prev,
    .swiper-button-next {
        top: -20px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .review-card {
        max-width: 90%;
    }
}