
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Arial', sans-serif;
background: #2a152f;
color: #f1b7ff;
overflow-x: hidden;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Navigation */
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
background: rgba(42, 21, 47, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(241, 183, 255, 0.1);
padding: 15px 0;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
height: 40px;
width: auto;
}

.nav-links {
display: none;
gap: 32px;
}

.nav-links a {
color: #f1b7ff;
text-decoration: none;
opacity: 0.9;
transition: opacity 0.3s;
}

.nav-links a:hover {
opacity: 1;
}

.nav-actions {
display: flex;
gap: 16px;
align-items: center;
}

.icon-btn {
background: transparent;
border: none;
color: #f1b7ff;
padding: 8px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
position: relative;
font-size: 18px;
}

.icon-btn:hover {
background: rgba(241, 183, 255, 0.1);
}

.cart-badge {
position: absolute;
top: -8px;
right: -8px;
background: #f1b7ff;
color: #2a152f;
border-radius: 50%;
width: 20px;
height: 20px;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}

/* Starry Background */
.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}

.star {
position: absolute;
width: 2px;
height: 2px;
background: #f1b7ff;
border-radius: 50%;
opacity: 0.3;
animation: twinkle 3s infinite;
}

@keyframes twinkle {

0%,
100% {
    opacity: 0.3;
}

50% {
    opacity: 1;
}
}

/* Main Content */
.main-content {
margin-top: 80px;
padding: 40px 0;
position: relative;
z-index: 10;
}

/* Breadcrumb */
.breadcrumb {
margin-bottom: 30px;
font-size: 14px;
opacity: 0.8;
}

.breadcrumb a {
color: #f1b7ff;
text-decoration: none;
transition: opacity 0.3s;
}

.breadcrumb a:hover {
opacity: 1;
}

.breadcrumb span {
margin: 0 10px;
opacity: 0.5;
}

/* Product Section */
.product-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
margin-bottom: 80px;
}

/* Product Gallery */
.product-gallery {
position: relative;
}

.main-image-container {
position: relative;
margin-bottom: 20px;
background: rgba(241, 183, 255, 0.1);
border: 1px solid rgba(241, 183, 255, 0.2);
border-radius: 20px;
overflow: hidden;
backdrop-filter: blur(10px);
aspect-ratio: 1;
}

.main-image {
width: 100%;
height: 100%;
object-fit: contain;
transition: transform 0.3s;
}

.zoom-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
cursor: zoom-in;
}

.main-image-container:hover .zoom-overlay {
opacity: 1;
}

.zoom-text {
color: white;
font-size: 16px;
font-weight: 600;
}

.product-badge {
position: absolute;
top: 20px;
left: 20px;
background: linear-gradient(135deg, #f1b7ff, #d8a7ff);
color: #2a152f;
padding: 8px 16px;
border-radius: 20px;
font-size: 14px;
font-weight: bold;
z-index: 10;
}

.thumbnail-gallery {
display: flex;
gap: 15px;
overflow-x: auto;
padding: 10px 0;
}

.thumbnail {
width: 80px;
height: 80px;
border-radius: 10px;
border: 2px solid transparent;
cursor: pointer;
transition: all 0.3s;
flex-shrink: 0;
object-fit: contain;
}

.thumbnail.active,
.thumbnail:hover {
border-color: #f1b7ff;
transform: scale(1.05);
}

/* Product Info */
.product-info {
padding: 20px 0;
}

.product-category {
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
opacity: 0.7;
margin-bottom: 10px;
}

.product-title {
font-size: 2.5rem;
font-weight: bold;
margin-bottom: 15px;
background: linear-gradient(135deg, #f1b7ff, #d8a7ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.product-rating {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}

.stars-display {
color: #ffd700;
font-size: 18px;
}

.rating-text {
font-size: 14px;
opacity: 0.8;
}

.rating-link {
color: #f1b7ff;
text-decoration: none;
font-size: 14px;
opacity: 0.8;
transition: opacity 0.3s;
}

.rating-link:hover {
opacity: 1;
}

.product-price {
margin-bottom: 25px;
}

.current-price {
font-size: 2.5rem;
font-weight: bold;
color: #f1b7ff;
}

.original-price {
font-size: 1.2rem;
opacity: 0.6;
text-decoration: line-through;
margin-left: 15px;
}

.discount-badge {
display: inline-block;
background: linear-gradient(135deg, #ff6b6b, #ff5252);
color: white;
padding: 4px 12px;
border-radius: 15px;
font-size: 12px;
font-weight: bold;
margin-left: 15px;
}

.product-description {
font-size: 1.1rem;
line-height: 1.7;
opacity: 0.9;
margin-bottom: 30px;
}

/* Product Options */
.product-options {
margin-bottom: 30px;
}

.option-group {
margin-bottom: 25px;
}

.option-label {
display: block;
font-weight: 600;
margin-bottom: 10px;
font-size: 16px;
}

.color-options {
display: flex;
gap: 10px;
margin-bottom: 15px;
}

.color-option {
width: 40px;
height: 40px;
border-radius: 50%;
border: 3px solid transparent;
cursor: pointer;
transition: all 0.3s;
position: relative;
}

.color-option.active,
.color-option:hover {
border-color: #f1b7ff;
transform: scale(1.1);
}

.color-option.black {
background: #000;
}

.color-option.white {
background: #fff;
}

.color-option.purple {
background: #8b5cf6;
}

.color-option.pink {
background: #ec4899;
}

.size-options {
display: flex;
gap: 10px;
flex-wrap: wrap;
}

.size-option {
padding: 10px 20px;
border: 2px solid rgba(241, 183, 255, 0.3);
border-radius: 8px;
background: rgba(241, 183, 255, 0.1);
color: #f1b7ff;
cursor: pointer;
transition: all 0.3s;
font-weight: 500;
}

.size-option.active,
.size-option:hover {
border-color: #f1b7ff;
background: rgba(241, 183, 255, 0.2);
}

.quantity-selector {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 30px;
}

.quantity-label {
font-weight: 600;
font-size: 16px;
}

.quantity-controls {
display: flex;
align-items: center;
border: 2px solid rgba(241, 183, 255, 0.3);
border-radius: 8px;
background: rgba(241, 183, 255, 0.1);
}

.quantity-btn {
background: none;
border: none;
color: #f1b7ff;
padding: 10px 15px;
cursor: pointer;
font-size: 18px;
font-weight: bold;
transition: background 0.3s;
}

.quantity-btn:hover {
background: rgba(241, 183, 255, 0.2);
}

.quantity-input {
background: none;
border: none;
color: #f1b7ff;
text-align: center;
width: 60px;
padding: 10px 5px;
font-size: 16px;
}

/* Action Buttons */
.action-buttons {
display: flex;
gap: 15px;
margin-bottom: 30px;
flex-wrap: wrap;
}

.btn {
padding: 15px 30px;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 10px;
transition: all 0.3s;
cursor: pointer;
border: none;
flex: 1;
justify-content: center;
min-width: 200px;
}

.btn-primary {
background: linear-gradient(135deg, #f1b7ff, #d8a7ff);
color: #2a152f;
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(241, 183, 255, 0.3);
}

.btn-secondary {
background: rgba(241, 183, 255, 0.1);
color: #f1b7ff;
border: 2px solid rgba(241, 183, 255, 0.3);
}

.btn-secondary:hover {
background: rgba(241, 183, 255, 0.2);
border-color: #f1b7ff;
}

.btn-wishlist {
background: rgba(255, 107, 107, 0.1);
color: #ff6b6b;
border: 2px solid rgba(255, 107, 107, 0.3);
min-width: auto;
flex: none;
padding: 15px;
}

.btn-wishlist:hover {
background: rgba(255, 107, 107, 0.2);
border-color: #ff6b6b;
}

.btn-wishlist.active {
background: #ff6b6b;
color: white;
}

/* Product Features */
.product-features {
margin-bottom: 30px;
}

.features-list {
list-style: none;
margin-top: 15px;
}

.features-list li {
padding: 8px 0;
padding-left: 25px;
position: relative;
opacity: 0.9;
}

.features-list li::before {
content: '✓';
position: absolute;
left: 0;
color: #4ade80;
font-weight: bold;
}

/* Shipping Info */
.shipping-info {
background: rgba(241, 183, 255, 0.1);
border: 1px solid rgba(241, 183, 255, 0.2);
border-radius: 15px;
padding: 20px;
margin-bottom: 30px;
}

.shipping-item {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
}

.shipping-item:last-child {
margin-bottom: 0;
}

.shipping-icon {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #f1b7ff, #d8a7ff);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #2a152f;
font-size: 18px;
}

.shipping-text {
flex: 1;
}

.shipping-title {
font-weight: 600;
margin-bottom: 2px;
}

.shipping-desc {
font-size: 14px;
opacity: 0.8;
}

/* Product Details Tabs */
.product-details {
margin-top: 80px;
}

.tabs-container {
margin-bottom: 40px;
}

.tabs-nav {
display: flex;
gap: 0;
border-bottom: 1px solid rgba(241, 183, 255, 0.2);
margin-bottom: 30px;
}

.tab-btn {
background: none;
border: none;
color: #f1b7ff;
padding: 15px 25px;
cursor: pointer;
font-size: 16px;
font-weight: 500;
opacity: 0.7;
transition: all 0.3s;
border-bottom: 3px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
opacity: 1;
border-bottom-color: #f1b7ff;
}

.tab-content {
display: none;
animation: fadeIn 0.3s ease;
}

.tab-content.active {
display: block;
}

@keyframes fadeIn {
from {
    opacity: 0;
    transform: translateY(10px);
}

to {
    opacity: 1;
    transform: translateY(0);
}
}

.specifications-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}

.spec-group {
background: rgba(241, 183, 255, 0.1);
border: 1px solid rgba(241, 183, 255, 0.2);
border-radius: 15px;
padding: 25px;
}

.spec-group h4 {
font-size: 1.2rem;
margin-bottom: 15px;
color: #f1b7ff;
}

.spec-item {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid rgba(241, 183, 255, 0.1);
}

.spec-item:last-child {
border-bottom: none;
}

.spec-label {
opacity: 0.8;
}

.spec-value {
font-weight: 600;
}

/* Reviews Section */
.reviews-section {
margin-top: 40px;
}

.reviews-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}

.reviews-summary {
display: flex;
align-items: center;
gap: 20px;
}

.rating-average {
font-size: 3rem;
font-weight: bold;
color: #f1b7ff;
}

.rating-breakdown {
flex: 1;
}

.rating-bar {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 5px;
}

.rating-stars {
width: 60px;
font-size: 12px;
}

.rating-progress {
flex: 1;
height: 8px;
background: rgba(241, 183, 255, 0.2);
border-radius: 4px;
overflow: hidden;
}

.rating-fill {
height: 100%;
background: linear-gradient(135deg, #f1b7ff, #d8a7ff);
transition: width 0.3s;
}

.rating-count {
width: 30px;
font-size: 12px;
opacity: 0.8;
}

.review-item {
background: rgba(241, 183, 255, 0.1);
border: 1px solid rgba(241, 183, 255, 0.2);
border-radius: 15px;
padding: 25px;
margin-bottom: 20px;
}

.review-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}

.reviewer-info {
display: flex;
align-items: center;
gap: 15px;
}

.reviewer-avatar {
width: 50px;
height: 50px;
background: linear-gradient(135deg, #f1b7ff, #d8a7ff);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #2a152f;
font-weight: bold;
font-size: 18px;
}

.reviewer-details h5 {
font-weight: 600;
margin-bottom: 2px;
}

.review-date {
font-size: 12px;
opacity: 0.7;
}

.review-rating {
color: #ffd700;
font-size: 16px;
}

.review-text {
line-height: 1.6;
opacity: 0.9;
}

/* Related Products */
.related-products {
margin-top: 80px;
padding-top: 40px;
border-top: 1px solid rgba(241, 183, 255, 0.2);
}

.related-title {
font-size: 2rem;
font-weight: bold;
text-align: center;
margin-bottom: 40px;
background: linear-gradient(135deg, #f1b7ff, #d8a7ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.related-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
}

.related-product {
background: rgba(241, 183, 255, 0.1);
border: 1px solid rgba(241, 183, 255, 0.2);
border-radius: 15px;
overflow: hidden;
transition: all 0.3s;
text-decoration: none;
color: inherit;
}

.related-product:hover {
background: rgba(241, 183, 255, 0.15);
transform: translateY(-5px);
}

.related-image {
width: 100%;
height: 200px;
background: linear-gradient(135deg, rgba(241, 183, 255, 0.2), rgba(216, 167, 255, 0.1));
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
}

.related-info {
padding: 20px;
}

.related-name {
font-weight: 600;
margin-bottom: 8px;
}

.related-price {
font-size: 1.2rem;
font-weight: bold;
color: #f1b7ff;
}

/* Responsive Design */
@media (min-width: 768px) {
.nav-links {
    display: flex;
}
}

@media (max-width: 767px) {
.product-section {
    grid-template-columns: 1fr;
    gap: 40px;
}

.product-title {
    font-size: 2rem;
}

.current-price {
    font-size: 2rem;
}

.action-buttons {
    flex-direction: column;
}

.btn {
    min-width: auto;
}

.tabs-nav {
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
}

.specifications-grid {
    grid-template-columns: 1fr;
}

.reviews-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
}

@media (max-width: 480px) {
.container {
    padding: 0 15px;
}

.thumbnail-gallery {
    justify-content: center;
}

.color-options,
.size-options {
    justify-content: center;
}
}

/* Success Message */
.success-message {
position: fixed;
top: 100px;
right: 20px;
background: linear-gradient(135deg, #4ade80, #22c55e);
color: white;
padding: 15px 25px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
transform: translateX(400px);
transition: transform 0.3s;
z-index: 200;
}

.success-message.show {
transform: translateX(0);
}
