/* Breadcrumb */
.breadcrumb {
    background: #7b7a7a;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

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

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span:last-child {
    color: #fff;
}

/* Product Detail Section */
.product-detail {
    padding: 3rem 2rem;
    background: white;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes container always square */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.main-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
	background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.main-slide.active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
	color: #000;
}

.carousel-arrow:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Replace the thumbnail section with this updated version */

.thumbnail-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
	background-repeat: no-repeat;
    gap: 1rem;
}

.thumbnail-carousel {
    display: flex;
    overflow-x: auto;
    gap: 8px;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    overflow: hidden;
    flex: 1;
}

.thumbnail {
    width: 100px;
    height: 100px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent; /* default invisible border */
    box-sizing: border-box;         /* includes border in size */
    transition: all 0.3s;
}

.thumbnail:hover {
    
}

.thumbnail.active {
      border: none;
    outline: 3px solid #000;
    outline-offset: -3px; /* keeps outline overlapping image edge */
}

.thumb-arrow {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #000;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumb-arrow:hover {
    background: #f9c20a;
    color: white;
}

.thumb-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
/* Product Info */
.product-info-detail {
    animation: fadeInUp 0.8s;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #000 0%, #000 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-info-detail h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    padding: 0.3rem 0.8rem;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Product Features */
.product-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.product-features h3 {
    margin-bottom: 1rem;
    color: #333;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1rem;
}

/* Color Options */
.product-options {
    margin-bottom: 2rem;
}

.product-options h3 {
    margin-bottom: 1rem;
    color: #333;
}

.color-options {
    display: flex;
    gap: 1rem;
}

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

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #f9c20a;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 2rem;
}

.quantity-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-size: 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #667eea;
    color: white;
}

#quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f9c20a 0%, #f9c20a 100%);
    color: 000;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    flex: 1;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    background: #667eea;
    color: white;
}

/* Shipping Info */
.shipping-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.info-item .icon {
    font-size: 2rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #333;
}

.info-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Description Section */
.description-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

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

.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

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

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

.tab-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.tab-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 1.5rem;
}

.specs-table td:first-child {
    width: 40%;
    background: #f8f9fa;
}

/* Reviews */
.review-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.large-rating {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
}

.review-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.review-text {
    color: #666;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .shipping-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-gallery {
        position: static;
        top: auto;
        width: 100%;
        overflow: hidden;
    }

    .main-image-container {
        height: auto;
        aspect-ratio: 1 / 1;  /* optional but keeps perfect square without overflow */
    }
}

@media (max-width: 480px) {
    .thumbnail-container {
        display: flex;
        grid-template-columns: repeat(3, 1fr); /* 3 per row */
        gap: 0.5rem;
    }
	
	  .thumbnail {
        width: 55px;
        height: 55px;
        border: 2px solid transparent; /* smaller border on mobile */
        box-sizing: border-box;        /* ensures border does not add extra size */
    }

    .thumbnail.active {
        border-color: #000;
    }
}
}
 