/* Product Details Premium Styles */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #d2b48c;
    --text-color: #4a4a4a;
    --white-color: #ffffff;
    --divider-color: #eeeeee;
}

/* Product Hero (Matches Shop Pattern) */
.product-hero {
    position: relative;
    padding: 140px 0 60px;
    background: var(--primary-color);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1880px;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(210, 180, 140, 0.15) 0%, transparent 50%);
    animation: gradientMove 15s infinite alternate;
    z-index: 1;
}

@keyframes gradientMove {
    0% {
        transform: translate(-10%, -10%);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

/* Particles animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(210, 180, 140, 0.3);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-100px) translateX(50px);
    }
}

.product-details-page {
    padding-top: 50px;
    padding-bottom: 100px;
    background: #fff;
}

/* Breadcrumbs (Refined for Hero) */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: var(--accent-color);
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.4);
}

/* Main Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image-container {
    background: #fdfdfd;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    cursor: zoom-in;
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-image-container:hover img {
    transform: scale(1.1);
}

.thumbnail-grid {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: #f9f9f9;
}

.thumbnail.active {
    border-color: var(--accent-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Content */
.product-info-box {
    padding-left: 40px;
}

@media (max-width: 991px) {
    .product-info-box {
        padding-left: 0;
        margin-top: 50px;
    }
}

.badge-stock {
    display: inline-block;
    padding: 5px 15px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.product-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.stars {
    color: #ffc107;
    display: flex;
    gap: 2px;
}

.review-count {
    font-size: 14px;
    color: #888;
}

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

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.short-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 35px;
}

/* Action Section */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    width: fit-content;
    padding: 5px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    border-radius: 50%;
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.qty-input {
    width: 50px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.main-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-add-to-cart {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    flex-grow: 1;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-add-to-cart:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-wishlist {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--divider-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-wishlist:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Tabs Section */
.info-tabs-wrapper {
    margin-top: 80px;
    border-top: 1px solid var(--divider-color);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--divider-color);
}

.tab-link {
    font-size: 18px;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}

.tab-link.active {
    color: var(--primary-color);
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.tab-link.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    padding: 50px 0;
    animation: fadeIn 0.5s ease;
}

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

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

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

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.spec-label {
    font-weight: 700;
    color: #555;
}

.spec-value {
    color: var(--text-color);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.features-list li::before {
    content: '✓';
    color: #2e7d32;
    font-weight: 900;
}

/* Related Products Side Panel */
.related-panel {
    background: #fdfdfd;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--divider-color);
}

.related-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateX(5px);
}

.related-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.related-info .price {
    color: var(--accent-color);
    font-weight: 700;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding: 40px;
    background: #fdfdfd;
    border-radius: 20px;
    text-align: center;
    gap: 20px;
    border: 1px solid var(--divider-color);
}

.badge-item i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.badge-item span {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.badge-item p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Floating Effects */
.floating-ui {
    animation: floatAnim 4s infinite ease-in-out;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .product-title {
        font-size: 32px;
    }

    .main-btns {
        flex-direction: column;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .tab-nav {
        gap: 15px;
        flex-wrap: wrap;
    }

    .tab-link {
        font-size: 14px;
    }

    .trust-badges {
        flex-direction: column;
    }
}

/* Shop Toast Notification (Already in shop.html but repeated for standalone) */
.shop-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    border-top: 2px solid var(--accent-color);
}

.shop-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}