/* Smart Locker Product Page - E-commerce Style */

/* Breadcrumb */
.breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-nav {
    font-size: 14px;
    color: #666;
}

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

.breadcrumb-nav a:hover {
    color: #1e90ff;
}

.separator {
    margin: 0 8px;
    color: #999;
}

.current {
    color: #333;
}

/* Product Detail Section */
.product-detail {
    background: #fff;
    padding: 30px 0;
}

.product-main {
    display: flex;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Product Gallery - Left Side */
.product-gallery {
    flex: 0 0 480px;
    position: relative;
}

.main-image {
    width: 100%;
    height: 480px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover {
    border-color: #1e90ff;
}

.thumbnail.active {
    border-color: #1e90ff;
}

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

/* Product Info - Right Side */
.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.product-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Price Section */
.product-price-section {
    background: #fff9f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ffe4cc;
}

.price-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.price-label {
    font-size: 12px;
    color: #666;
    min-width: 50px;
}

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

.price-value {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.price-value span:first-child {
    font-size: 16px;
    color: #ff6700;
    font-weight: 700;
}

.price-amount {
    font-size: 48px;
    color: #ff6700;
    font-weight: 900;
}

.discount-badge {
    background: #ff6700;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.price-info {
    display: flex;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid #ffe4cc;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    color: #999;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.barcode-row {
    display: flex;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ffe4cc;
}

.barcode-label {
    font-size: 14px;
    color: #666;
    margin-right: 15px;
    min-width: 60px;
}

.barcode-value {
    font-size: 14px;
    color: #333;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Delivery Section */
.delivery-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.delivery-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.delivery-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.delivery-item label {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.delivery-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
}

.delivery-select:hover {
    border-color: #1e90ff;
}

.delivery-note {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-btn {
    padding: 8px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.color-btn:hover {
    border-color: #1e90ff;
}

.color-btn.active {
    border-color: #1e90ff;
    background: #e6f3ff;
    color: #1e90ff;
    font-weight: 600;
}

/* Size Options */
.size-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.size-btn:hover {
    border-color: #1e90ff;
}

.size-btn.active {
    border-color: #1e90ff;
    background: #e6f3ff;
    color: #1e90ff;
    font-weight: 600;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e5e5;
    background: white;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: #1e90ff;
    color: #1e90ff;
}

.qty-input {
    width: 60px;
    height: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    padding: 0;
}

/* Hide number input spinner */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.qty-input:focus {
    outline: none;
    border-color: #1e90ff;
}

.stock-info {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* Barcode Section */
.barcode-section {
    margin-top: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.barcode-section .barcode-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.barcode-container {
    position: relative;
    display: inline-block;
}

.barcode-text {
    font-size: 12px;
    color: #333;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
}

.barcode-text:hover {
    border-color: #1e90ff;
    background: #e6f3ff;
}

.qrcode-tooltip {
    position: fixed;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10000;
    pointer-events: none;
}

.barcode-container:hover .qrcode-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-contact,
.btn-phone {
    flex: 1;
    padding: 14px 24px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-contact {
    background: #ff6700;
    color: white;
    border: 2px solid #ff6700;
}

.btn-contact:hover {
    background: #ff8533;
    border-color: #ff8533;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 0, 0.3);
}

.btn-phone {
    background: white;
    color: #ff6700;
    border: 2px solid #ff6700;
}

.btn-phone:hover {
    background: #fff5f0;
}

/* Product Service */
.product-service {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    flex: 0 0 calc(50% - 6px);
}

.service-icon {
    color: #52c41a;
    font-weight: bold;
    font-size: 14px;
}

/* Product Tabs Section */
.product-tabs {
    background: #fff;
    padding: 40px 0;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn:hover {
    color: #1e90ff;
}

.tab-btn.active {
    color: #1e90ff;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1e90ff;
}

.tabs-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-panel {
    display: none;
}

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

.tab-panel h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-panel h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 15px 0;
}

/* Basic Info Section */
.basic-info-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-category {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.category-title {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 12px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.tag-new {
    display: inline-block;
    padding: 6px 12px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    font-size: 13px;
    color: #ff6700;
    font-weight: 600;
}

.info-section {
    margin-bottom: 25px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 4px solid #1e90ff;
    border-radius: 4px;
}

.info-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr 150px 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-cell {
    font-size: 14px;
}

.info-cell.label {
    color: #666;
    font-weight: 500;
}

.info-cell.value {
    color: #333;
}

.divider {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 30px 0;
}
.description-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

.description-content h3 {
    font-size: 18px;
    color: #333;
    margin: 30px 0 20px 0;
    font-weight: 600;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.detail-image {
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    padding: 0 10px;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.detail-image img:hover {
    transform: scale(1.02);
}

/* Specs Detail */
.specs-detail {
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.spec-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
}

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

.spec-name {
    flex: 0 0 150px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.spec-val {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.advantage-item {
    background: #fafafa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.advantage-item:hover {
    background: #f0f8ff;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.1);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

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

.specs-table td {
    padding: 15px;
    font-size: 14px;
}

.specs-table .spec-label {
    width: 200px;
    color: #666;
    font-weight: 500;
    background: #fafafa;
}

.specs-table .spec-value {
    color: #333;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.application-card {
    background: #fafafa;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.application-card:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.application-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.application-card h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.application-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-main {
        flex-direction: column;
    }

    .product-gallery {
        flex: none;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

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

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-main {
        padding: 20px;
    }

    .product-gallery {
        flex: none;
        max-width: 100%;
    }

    .main-image {
        height: 350px;
    }

    .product-title {
        font-size: 20px;
    }

    .price-amount {
        font-size: 28px;
    }

    .product-actions {
        flex-direction: column;
    }

    .tabs-header {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .tabs-content {
        padding: 20px;
    }

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

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

    .specs-table .spec-label {
        width: 120px;
    }
}

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

    .main-image {
        height: 280px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 18px;
    }

    .price-amount {
        font-size: 24px;
    }

    .product-price {
        padding: 15px;
    }

    .product-specs {
        padding: 15px;
    }

    .spec-label {
        flex: 0 0 80px;
        font-size: 13px;
    }

    .spec-value {
        font-size: 13px;
    }

    .btn-contact,
    .btn-phone {
        padding: 12px 20px;
        font-size: 14px;
    }

    .product-service {
        gap: 10px;
    }

    .service-item {
        font-size: 12px;
    }

    .tabs-content {
        padding: 15px;
    }

    .tab-panel h2 {
        font-size: 18px;
    }

    .specs-table td {
        padding: 10px;
        font-size: 13px;
    }

    .specs-table .spec-label {
        width: 100px;
    }
}
