﻿:root {
    --primary: #264EFF;
    --primary-dark: #1A3DD9;
    --primary-light: #4D6FFF;
    --secondary: #F3F4F6;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --border: #E5E7EB;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,.08);
    --success: #10B981;
    --danger: #EF4444;
}
.product-page-wrapper {
    background: #fff;
    padding-bottom: 60px;
}
.breadcrumb-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
    .breadcrumb a {
        text-decoration: none;
        color: #111;
        font-weight: 600;
        transition: color .2s;
    }
        .breadcrumb a:hover {
            color: var(--primary);
        }
.separator {
    color: #999;
}
.current {
    color: #666;
}
.product-container {
    padding: 40px 15px;
}
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media(min-width:992px) {
    .product-grid {
        grid-template-columns: 1fr 1.2fr 380px;
    }
}
.gallery-badges {
    margin-top: 15px;
}
.badge {
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}
.badge-stock {
    background: #D1FAE5;
    color: #065F46;
}
.badge-out {
    background: #FEE2E2;
    color: #991B1B;
}
.product-info-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.product-title h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}
.product-description {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}
.option-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}
.custom-select, .modern-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
    .custom-select:focus, .modern-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(38, 78, 255, 0.15);
    }
.color-swatches {
    display: flex;
    gap: 10px;
}
.swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
    .swatch:hover {
        transform: scale(1.15);
    }
    .swatch.active {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px var(--primary);
        transform: scale(1.1);
    }
.personalization-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
    .personalization-box h3 {
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 700;
    }
.upload-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.preview-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.upload-btn {
    padding: 10px 20px;
    border: 1px dashed var(--primary);
    color: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: background .2s, color .2s;
}
    .upload-btn:hover {
        background: var(--primary);
        color: #fff;
    }
.details-content details {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.details-content summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: background .2s;
}
    .details-content summary:hover {
        background: #f9fafb;
    }
.details-body {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}
.video-container {
    overflow: hidden;
    border-radius: 12px;
}
.pricing-card {
    position: sticky;
    top: 100px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    background: #fff;
}
.price-display {
    text-align: center;
}
.price-label {
    display: block;
    color: #777;
    margin-bottom: 10px;
    font-size: 14px;
}
.price-value {
    font-size: 35px;
    font-weight: 800;
    color: var(--primary);
}
.currency {
    font-size: 18px;
    color: var(--text-gray);
}
.divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}
.tiers-label {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-gray);
}
.price-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tier-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    transition: border-color .2s, background .2s;
}
    .tier-row:hover {
        border-color: var(--primary-light);
        background: #f0f4ff;
    }
.tier-price {
    color: var(--primary);
    font-weight: 700;
}
.quantity-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qty-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-gray);
}
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.qty-input {
    width: 60px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    outline: none;
}
.stepper-btn {
    border: none;
    background: #fff;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s, color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .stepper-btn:hover {
        background: var(--primary);
        color: #fff;
    }
    .stepper-btn:active {
        background: var(--primary-dark);
    }
.btn-primary-full {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-top: 20px;
}
    .btn-primary-full:hover:not(:disabled) {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(38, 78, 255, 0.35);
    }
    .btn-primary-full:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(38, 78, 255, 0.25);
    }
    .btn-primary-full:disabled, .btn-primary-full.disabled-btn {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    .btn-primary-full.loading-state {
        background: var(--primary-dark);
        pointer-events: none;
        animation: btnPulse 1.5s ease-in-out infinite;
    }
    .btn-primary-full.success-state {
        background: var(--success);
        pointer-events: none;
        animation: btnSuccess 0.6s ease-in-out;
    }
@keyframes btnPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}
@keyframes btnSuccess {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.08);
    }
    60% {
        transform: scale(0.97);
    }
    100% {
        transform: scale(1);
    }
}
.btn-primary-full::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%,-50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.btn-primary-full:not(:disabled):active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}
.meta-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
    .meta-row span {
        color: #777;
    }
    .meta-row strong {
        color: var(--text-dark);
    }
.min-qty-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 10px;
}
    .min-qty-text bold {
        font-weight: 700;
        color: var(--text-dark);
    }
.policies {
    margin-top: 20px;
}
.policy-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}
.policy-item p {
    color: #666;
    line-height: 1.8;
    font-size: 13px;
}
.related-section {
    margin-top: 50px;
    padding: 60px 0;
    background: #fafafa;
}
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 35px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card-sm {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
}
    .product-card-sm:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,.12);
    }
    .product-card-sm a {
        text-decoration: none;
        color: #111;
    }
.card-img {
    height: 220px;
    overflow: hidden;
}
    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s;
    }
.product-card-sm:hover .card-img img {
    transform: scale(1.05);
}
.product-card-sm h4 {
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
}
@media(max-width:991px) {
    .pricing-card {
        position: relative;
        top: 0;
    }
    .product-title h1 {
        font-size: 24px;
    }
    .price-value {
        font-size: 28px;
    }
}
.fly-product-img {
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(38, 78, 255, 0.5);
}
.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform .4s ease;
    cursor: zoom-in;
}
.thumbs-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}
    .thumbs-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    .thumbs-wrapper::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 20px;
    }
@media(max-width:768px) {
    .main-image-wrapper {
        height: 350px;
    }
    .gallery-thumb {
        width: 70px;
        height: 70px;
    }
}
.product-gallery-col {
    width: 100%;
    min-width: 0;
}
.modern-gallery {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #edf0f7;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    padding: 18px;
    position: relative;
}
.main-image-container {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg,#fafafa,#f1f1f1);
}
.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, opacity .25s ease;
    will-change: transform;
}
.main-image-container:hover .main-product-image {
    transform: scale(1.06);
}
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.08), transparent 30%);
    pointer-events: none;
}
.gallery-thumbnails {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
    .gallery-thumbnails::-webkit-scrollbar {
        height: 6px;
    }
    .gallery-thumbnails::-webkit-scrollbar-thumb {
        background: rgba(38,78,255,.25);
        border-radius: 30px;
    }
.thumb-item {
    flex: 0 0 auto;
    width: 95px;
    height: 95px;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s ease;
    background: #fff;
    position: relative;
}
    .thumb-item:hover {
        transform: translateY(-4px);
        border-color: rgba(38,78,255,.35);
    }
    .thumb-item.active-thumb {
        border-color: var(--primary);
        box-shadow: 0 10px 24px rgba(38,78,255,.22);
    }
.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) 360px;
    gap: 35px;
    align-items: start;
}
.product-info-col,
.product-sidebar {
    min-width: 0;
}
.product-title h1 {
    font-size: 38px;
    line-height: 1.3;
    word-break: break-word;
}
.product-description {
    font-size: 16px;
    line-height: 1.9;
}
.pricing-card {
    width: 100%;
    min-width: 0;
}
.qty-stepper {
    flex-shrink: 0;
}
.meta-row {
    gap: 12px;
}
    .meta-row strong {
        text-align: right;
        word-break: break-word;
    }
@media(max-width:1400px) {
    .product-grid {
        grid-template-columns: 1fr 1fr 340px;
    }
    .main-image-container {
        height: 540px;
    }
}
@media(max-width:1199px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card {
        position: relative;
        top: 0;
    }
    .main-image-container {
        height: 500px;
    }
}
@media(max-width:991px) {
    .product-container {
        padding: 20px 12px;
    }
    .modern-gallery {
        padding: 12px;
        border-radius: 22px;
    }
    .main-image-container {
        height: 420px;
        border-radius: 18px;
    }
    .product-title h1 {
        font-size: 28px;
    }
    .price-value {
        font-size: 30px;
    }
    .pricing-card {
        padding: 20px;
    }
    .thumb-item {
        width: 82px;
        height: 82px;
        border-radius: 18px;
    }
}
@media(max-width:767px) {
    .breadcrumb {
        font-size: 12px;
    }
    .product-container {
        padding: 15px 10px;
    }
    .main-image-container {
        height: 320px;
    }
    .product-title h1 {
        font-size: 23px;
    }
    .product-description {
        font-size: 14px;
    }
    .price-value {
        font-size: 26px;
    }
    .currency {
        font-size: 15px;
    }
    .thumb-item {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }
    .quantity-section {
        gap: 15px;
        flex-wrap: wrap;
    }
    .qty-stepper {
        width: 100%;
        justify-content: space-between;
    }
    .qty-input {
        width: 100%;
    }
    .stepper-btn {
        width: 55px;
    }
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-primary-full {
        padding: 15px;
        font-size: 15px;
    }
    .related-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 14px;
    }
    .card-img {
        height: 150px;
    }
}
@media(max-width:480px) {
    .main-image-container {
        height: 270px;
    }
    .thumb-item {
        width: 64px;
        height: 64px;
    }
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-title h1 {
        font-size: 20px;
    }
    .price-value {
        font-size: 23px;
    }
    .pricing-card {
        border-radius: 18px;
        padding: 16px;
    }
}
