:root {
    --primary-blue: #003566;
    --secondary-blue: #ff5e14;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --price-red: #ff4d4d;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-main: "Inter", sans-serif;
    --font-secondary: "Spinnaker", sans-serif;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--light-text);
}

.breadcrumbs span {
    margin: 0 5px;
}

.breadcrumbs a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-blue);
}

/* Main Layout Grid */
.product-main-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.product-left-col {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    /* gap: 40px; */
}

/* Gallery container now sits inside left col */
.gallery-container {
    display: flex;
    gap: 15px;
}

.thumbnails-strip {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.thumbnail:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image {
    width: 100%;
    max-width: 350px;
    height: 350px;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Right side: Info */
.product-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-right: -12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-count {
    font-size: 13px;
    color: var(--light-text);
    margin-left: 15px;
    font-weight: 500;
}

.exclusive-badge {
    background: #e7f0ff;
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.product-title {
    font-family: var(--font-secondary);
    font-size: var(--h2-size, 32px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
    color: #ff5e14;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stars {
    color: #ff5e14;
    font-size: 25px;
}

.rating-text {
    font-family: var(--font-secondary);
    font-size: 18px;
    color: var(--light-text);
    font-weight: 400;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: var(--price-red);
    font-size: 17px;
    opacity: 0.8;
}

.price-new {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    color: #003566;
}

.product-discount-tag {
    color: #ff5e14;
    font-weight: 600;
    font-size: var(--body-large, 18px);
    margin-left: 10px;
    font-family: var(--font-secondary);
}

.action-buttons {
    margin-bottom: 35px;
}

.btn {
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 400;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-buy {
    background-color: #ff5e14;
    color: var(--white);
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 30, 66, 0.2);
}

.btn-buy:hover {
    background-color: #002d62;
    box-shadow: 0 6px 20px rgba(0, 30, 66, 0.3);
}

.btn-cart {
    background-color: var(--secondary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 113, 220, 0.2);
}

.btn-cart:hover {
    background-color: #0081f9;
    box-shadow: 0 6px 20px rgba(0, 113, 220, 0.3);
}

/* Info Card */
.info-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.info-card h4 {
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    font-size: var(--body-large, 18px);
    font-weight: 700;
    color: #ff5e14;
}

.info-list {
    list-style: none;
}

.info-list li {
    font-family: var(--font-secondary);
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 15px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: #ff5e14;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 70, 190, 0.1);
}

/* Similar Products Section */
.similar-products {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.similar-products h2 {
    font-family: var(--font-secondary);
    font-size: var(--h2-size, 32px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff5e14;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.similar-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    /* Reduced height to fit better in left col */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.similar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.similar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    .product-main-grid, .bottom-side-bars {
        flex-direction: column;
        gap: 30px;
    }

    .bottom-side-bars .info-card {
        flex: 1 1 auto !important;
    }

    .product-left-col {
        flex: 1 1 auto;
    }

    .gallery-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        flex-direction: column-reverse;
    }

    .thumbnails-strip {
        flex-direction: row;
        justify-content: center;
        overflow-x: auto;
        padding: 10px 0;
    }

    .thumbnail {
        flex-shrink: 0;
    }

    .main-image {
        height: 350px;
    }

    .similar-grid {
        grid-template-columns: 1fr;
    }
}

.protection-section {
    background-color: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.protection-section h2 {
    font-family: var(--font-secondary);
    font-size: var(--h2-size, 32px);
    font-weight: 700;
    margin-bottom: 30px;
    color: #ff5e14;
}

.protection-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.protection-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.protection-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.protection-bullet {
    width: 10px;
    height: 10px;
    background-color: #ff5e14;
    border-radius: 50%;
    flex-shrink: 0;
}

.protection-header h3 {
    font-family: var(--font-secondary);
    font-size: var(--h3-size, 24px);
    font-weight: 700;
    color: #003566;
}

.protection-item p {
    font-family: var(--font-secondary);
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    padding-left: 22px;
}

@media (max-width: 600px) {
    .protection-section {
        padding: 20px;
    }
}

/* Comments and Reviews Section */
.comments-section {
    background-color: #e9ecef;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.comments-section h2 {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #111;
}

.user-current {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-current span {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: #111;
}

.review-form-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.review-form-card h3 {
    font-family: var(--font-secondary);
    font-size: var(--h3-size, 24px);
    font-weight: 700;
    margin-bottom: 25px;
    color: #ff5e14;
}

.rating-input-group {
    margin-bottom: 25px;
}

.rating-input-group p {
    font-family: var(--font-secondary);
    font-size: 15px;
    margin-bottom: 10px;
}

.stars-input {
    color: #ffc107;
    font-size: 20px;
    display: flex;
    gap: 5px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-secondary);
    font-size: 15px;
    color: #111;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #003566;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.btn-submit-review {
    background-color: #ff5e14;
    color: var(--white);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-review:hover {
    background-color: #003566;
}

/* Review List Card */
.review-list-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.review-list-card:last-child {
    margin-bottom: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-header {
    margin-bottom: 15px;
}

.reviewer-name {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.review-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .review-list-card {
        flex-direction: column;
    }

    .comments-section {
        padding: 20px;
    }

    .review-form-card {
        padding: 20px;
    }
}

/* Tabs Section Styling */
.tabs-section {
    margin-top: 50px;
    margin-bottom: 40px;
}

.tabs-header {
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 0;
    cursor: pointer;
    color: #888;
    position: relative;
    font-family: var(--font-secondary), sans-serif;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #1a1a1a;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff5e14;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}