* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Font', sans-serif;
}

body {
    background-color: #070e1c;
    color: white;
    min-height: 100vh;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    flex: 1;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    min-height: 600px;
    max-height: 600px;
    width: 600px;
    border-radius: 25px;
    overflow: hidden;
    background-color: #181c2c;
    box-shadow: 0 4px 15px rgba(255, 107, 187, 0.3);
    border: 2px solid #ff6bbb;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    box-shadow: 0 2px 8px rgba(255, 107, 187, 0.2);
}

.thumbnail.active {
    border-color: #ff6bbb;
    box-shadow: 0 2px 8px rgba(255, 107, 187, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info h1 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.product-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.category-name {
    text-decoration: none;
    color: #a0a8c0;
    transition-duration: 0.3s;
}

.category-name:hover {
    color: rgba(255, 107, 187, 1);
    transition-duration: 0.3s;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #a0a8c0;
}

.product-meta span:first-child {
    font-weight: bold;
    margin-left: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-count {
    color: #a0a8c0;
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.original-price {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a8c0;
    font-size: 1.1rem;
}

.discount-badge {
    background-color: #ff6bbb;
    color: white;
    padding: 4px 8px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
}

.current-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.product-description h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-description p {
    line-height: 1.6;
    color: #d0d4e0;
}

.product-actions {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-right: 0;
    margin-left: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    margin-right: auto;
}

.quantity-selector label {
    font-weight: bold;
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    border: 1px solid #3a4567;
    border-radius: 25px;
    background-color: #181c2c;
    color: white;
    text-align: center;
}

.add-to-cart-btn {
    background-color: #ff6bbb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 200px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: 0;
    margin-right: auto;
}

.add-to-cart-btn:hover {
    background-color: #e055a5;
}

.btn-wishlist {
    background-color: #2a344a;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-left: 0;
    margin-right: auto;
    width: 40px;
    height: 40px;
}

.btn-wishlist:hover {
    background-color: #ff6bbb;
}

.btn-wishlist img {
    width: 20px;
    height: 20px;
}

.product-requirements {
    margin-top: 20px;
}

.product-requirements h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-requirements ul {
    list-style: none;
    padding: 0;
}

.product-requirements li {
    padding: 5px 0;
    color: #d0d4e0;
    position: relative;
    padding-left: 20px;
}

.product-requirements li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6bbb;
}

.product-details-tabs {
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #3a4567;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    color: #a0a8c0;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff6bbb;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.full-description {
    line-height: 1.8;
    color: #d0d4e0;
}

.reviews-section {
    margin-top: 30px;
}

.reviews-section h3 {
    margin-bottom: 30px;
}

.reviews-summary {
    background-color: #181c2c;
    padding: 20px;
    border-radius: 25px;
    margin-bottom: 30px;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.average-rating .stars {
    color: #ffc107;
    font-size: 1.5rem;
}

.average-rating .total-reviews {
    color: #a0a8c0;
    font-size: 1rem;
}

.add-review-form {
    background-color: #181c2c;
    padding: 20px;
    border-radius: 25px;
    margin-bottom: 30px;
}

.rating-input {
    padding-right: 20px;
}

.comment-input {
    padding-right: 20px;
    padding-left: 20px;
}

.comment-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #3a4567;
    border-radius: 35px;
    background-color: #070e1c;
    color: white;
    resize: vertical;
    font-family: 'Font', sans-serif;
    min-height: 80px;
    max-height: 200px;
}

.submit-review-btn {
    background-color: #ff6bbb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 200px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-review-btn:hover {
    background-color: #e055a5;
}

.login-to-review {
    text-align: center;
    padding: 30px;
    background-color: #181c2c;
    border-radius: 25px;
    margin-bottom: 30px;
}

.login-btn {
    background-color: #ff6bbb;
    color: white;
    padding: 10px 20px;
    border-radius: 200px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #e055a5;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background-color: #181c2c;
    padding: 20px;
    border-radius: 25px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-weight: bold;
    color: white;
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.review-meta .stars {
    color: #ffc107;
}

.review-meta .date {
    color: #a0a8c0;
    font-size: 0.9rem;
}

.review-content {
    line-height: 1.6;
    color: #d0d4e0;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: #a0a8c0;
    background-color: #181c2c;
    border-radius: 25px;
}

.related-products {
    margin-top: 50px;
}

.related-products h2 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.related-products .product-card {
    background-color: #181c2c;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 187, 0.5);
}

.related-products .product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.related-products .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover .product-image {
    transform: scale(1.05);
}

.related-products .sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6bbb;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.related-products .stock-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.related-products .stock-status.in-stock {
    background-color: #4CAF50;
    color: white;
}

.related-products .stock-status.out-of-stock {
    background-color: #f44336;
    color: white;
}

.related-products .product-details {
    padding: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-products .product-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: normal;
}

.related-products .product-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.related-products .product-title a:hover {
    color: #ff6bbb;
}

.related-products .product-rating {
    margin-bottom: 10px;
    color: #ffc107;
    font-size: 1rem;
    unicode-bidi: bidi-override;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.related-products .rating-count {
    color: #a0a8c0;
    font-size: 0.8rem;
    margin-right: 5px;
}

.related-products .product-price {
    margin-bottom: 15px;
}

.related-products .original-price {
    text-decoration: line-through;
    color: #a0a8c0;
    font-size: 0.9rem;
    display: block;
}

.related-products .current-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.related-products .product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 0 10px 15px;
    width: 100%;
}

.related-products .product-actions form {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.related-products .btn-wishlist {
    background-color: #2a344a;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    padding: 8px 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.related-products .btn-wishlist:hover {
    background-color: #ff6bbb;
}

.related-products .btn-wishlist img {
    width: 18px;
    height: 18px;
}

.related-products .add-to-cart-btn {
    background-color: #ff6bbb;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 200px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.related-products .add-to-cart-btn:hover {
    background-color: #e055a5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #181c2c;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 187, 0.5);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6bbb;
    color: white;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
}

.stock-status {
    bottom: 10px;
    right: 10px;
    max-width: 60px;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
}

.stock-status.in-stock {
    background-color: #4CAF50;
    color: white;
    max-width: 60px;
}

.stock-status.out-of-stock {
    background-color: #f44336;
    color: white;
    max-width: 70px;
}

.product-details {
    padding: 15px;
    text-align: center;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.product-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #ff6bbb;
}

.product-price {
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #a0a8c0;
    font-size: 0.9rem;
    display: block;
}

.current-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.product-actions form {
    margin: 0;
    padding: 0;
    display: contents;
}

.btn-wishlist {
    background-color: #2a344a;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    padding: 8px 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    background-color: #ff6bbb;
}

.btn-wishlist img {
    width: 18px;
    height: 18px;
}

.add-to-cart-btn {
    background-color: #ff6bbb;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 200px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #e055a5;
}

.add-review-form {
    background-color: #181c2c;
    padding: 25px;
    border-radius: 25px;
    margin-bottom: 30px;
    border: 1px solid #2a344a;
}

.add-review-form h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.review-form-content {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 20px;
    margin-bottom: 20px;
}

.rating-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-input label {
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: right;
    gap: 5px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
    margin: 0;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

.star-rating input[type="radio"]:checked + label {
    color: #ffc107;
}

.comment-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input label {
    font-weight: bold;
    color: white;
}

.comment-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #3a4567;
    border-radius: 25px;
    background-color: #070e1c;
    color: white;
    resize: vertical;
    font-family: 'Font', sans-serif;
    transition: border-color 0.3s;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #ff6bbb;
}

.submit-review-container {
    display: flex;
    justify-content: center;
}

.submit-review-btn {
    background-color: #ff6bbb;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1rem;
}

.submit-review-btn:hover {
    background-color: #e055a5;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .review-form-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .star-rating {
        justify-content: center;
    }

    .main-image {
        width: 450px;
        min-height: 450px;
        max-height: 450px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        padding-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }
    
    .product-gallery {
        order: 1;
        width: 100%;
        max-width: 500px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-info {
        order: 2;
        width: 100%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .main-image {
        width: 100%;
        min-height: 400px;
        max-height: 400px;
        margin: 0 auto;
    }
    
    .thumbnails {
        justify-content: center;
    }
    
    .product-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .product-meta {
        align-items: center;
    }
    
    .product-rating {
        justify-content: center;
    }
    
    .product-price {
        align-items: center;
    }
    
    .product-description {
        text-align: center;
        width: 100%;
    }
    
    .product-actions {
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    
    .quantity-selector {
        justify-content: center;
        margin: 0 0 15px 0;
    }
    
    .add-to-cart-btn, .btn-wishlist {
        margin: 5px;
    }
    
    .product-requirements {
        text-align: center;
        width: 100%;
    }
    
    .product-requirements ul {
        display: inline-block;
        text-align: left;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .review-form-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .review-meta {
        align-items: center;
    }
    
    .tabs {
        justify-content: center;
    }
    
    .stock-status, .category, .parent-category {
        text-align: center;
        justify-content: center;
    }
    
    .tab-content {
        text-align: center;
    }
    
    .full-description {
        text-align: center;
    }
    
    .review-item {
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .related-products {
        text-align: center;
    }
    
    .product-card {
        text-align: center;
    }
    
    .product-actions form {
        justify-content: center;
    }
    
    .full-description {
        text-align: center;
    }
    
    .related-products {
        text-align: center;
    }
    
    .product-card {
        text-align: center;
    }
    
    .product-actions form {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.error-message {
    color: #fff;
    background-color: #f946aa;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: 
        top 0.4s ease-out,
        opacity 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 500px;
    width: auto;
}
.error-message.show {
    top: 20px;
    opacity: 1;
}
.error-message.hide {
    top: -100px;
    opacity: 0;
}
.error-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 7s linear;
}
.error-message.show::after {
    transform: scaleX(0);
}