/* =========================
   PRODUCT PAGE STYLES
   ========================= */

/* Main Container */
.product-container {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
}

/* =========================
   BREADCRUMB
   ========================= */

.categories-breadcrumb {
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
    background: transparent;
    font-size: 14px;
    list-style: none;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #94a3b8;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item a:hover {
    color: #ff7a00;
    background: rgba(255, 122, 0, 0.08);
}

.breadcrumb-item a i {
    font-size: 14px;
}

.breadcrumb-item.active {
    color: #ff7a00;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(255, 122, 0, 0.08);
    border-radius: 6px;
}

/* Separator between breadcrumb items */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #cbd5e1;
    padding: 0 6px;
    font-size: 18px;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
}

/* =========================
   PRODUCT LAYOUT
   ========================= */

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid #ececec;
}

/* =========================
   PRODUCT GALLERY
   ========================= */

.product-gallery-section {
    position: relative;
}

.product-gallery {
    position: sticky;
    top: 140px;
}

.product-image-container {
    position: relative;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #ececec;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    transition: transform 0.5s ease;
}

.product-main-image:hover {
    transform: scale(1.05);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #d1d5db;
    font-size: 60px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.product-thumbnails .thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-thumbnails .thumb:hover {
    border-color: #ff7a00;
    transform: translateY(-2px);
}

.product-thumbnails .thumb.active {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

/* =========================
   PRODUCT INFO
   ========================= */

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-rating .stars {
    color: #f59e0b;
    font-size: 14px;
}

.product-rating .stars i {
    margin-right: 2px;
}

.product-rating .rating-count {
    color: #94a3b8;
    font-size: 14px;
}

/* =========================
   PRICE SECTION
   ========================= */

.product-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #ff7a00;
}

.product-old-price {
    font-size: 20px;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-discount-badge {
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* =========================
   DESCRIPTION
   ========================= */

.product-short-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    padding: 12px 0;
}

.product-description h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.product-description {
    color: #475569;
    line-height: 1.8;
    font-size: 14px;
}

/* =========================
   VARIANT SELECTOR
   ========================= */

.variant-selector {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.variant-selector label {
    font-weight: 600;
    color: #111827;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.variant-selector .variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-selector .variant-option {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.variant-selector .variant-option:hover {
    border-color: #ff7a00;
    color: #111827;
    transform: translateY(-2px);
}

.variant-selector .variant-option.active {
    border-color: #ff7a00;
    background: #fff7f0;
    color: #111827;
    font-weight: 600;
}

.variant-selector .variant-option .color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* =========================
   PRODUCT ACTIONS
   ========================= */

.product-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quantity-selector .qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #111827;
}

.quantity-selector .qty-btn:hover {
    border-color: #ff7a00;
    background: #fff7f0;
    color: #ff7a00;
}

.quantity-selector .qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.quantity-selector .qty-input:focus {
    border-color: #ff7a00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.add-to-cart-btn {
    flex: 1;
    padding: 14px 24px;
    background: #ff7a00;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #e56e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.3);
}

.add-to-cart-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================
   STOCK STATUS
   ========================= */

.product-stock-status {
    font-size: 14px;
    font-weight: 500;
}

.product-stock-status .in-stock {
    color: #22c55e;
}

.product-stock-status .out-of-stock {
    color: #ef4444;
}

.product-stock-status i {
    margin-right: 6px;
}

/* =========================
   PRODUCT META
   ========================= */

.product-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.product-meta .meta-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.product-meta .meta-item .label {
    color: #94a3b8;
}

.product-meta .meta-item .label i {
    margin-right: 8px;
    width: 16px;
}

.product-meta .meta-item .value {
    color: #111827;
    font-weight: 500;
}

/* =========================
   SHARE
   ========================= */

.product-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.product-share span {
    color: #94a3b8;
    font-size: 14px;
}

.product-share .share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.product-share .share-btn:hover {
    transform: translateY(-3px);
}

.product-share .share-btn.facebook {
    background: #1877f2;
}

.product-share .share-btn.twitter {
    background: #000;
}

.product-share .share-btn.whatsapp {
    background: #25d366;
}

/* =========================
   RELATED PRODUCTS
   ========================= */

.related-products {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #ececec;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.related-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.related-header .view-all {
    color: #ff7a00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-header .view-all:hover {
    color: #e56e00;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #ff7a00;
}

.related-card .related-image {
    background: #fafafa;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.related-card .related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-card .related-info {
    padding: 14px 16px 16px;
}

.related-card .related-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    line-height: 1.4;
}

.related-card .related-title:hover {
    color: #ff7a00;
}

.related-card .related-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff7a00;
    margin: 0;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-main-image {
        max-height: 400px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 15px;
    }
    
    .product-layout {
        padding: 16px;
        gap: 20px;
    }
    
    .product-main-image {
        max-height: 300px;
        padding: 20px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .product-thumbnails .thumb {
        width: 60px;
        height: 60px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image-container {
        aspect-ratio: auto;
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .product-container {
        padding: 10px;
    }
    
    .product-layout {
        padding: 12px;
        gap: 16px;
        border-radius: 12px;
    }
    
    .product-main-image {
        max-height: 220px;
        padding: 12px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .product-price-section {
        flex-wrap: wrap;
    }
    
    .product-short-description {
        font-size: 14px;
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .related-card .related-image {
        padding: 12px;
    }
    
    .variant-selector .variant-option {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .quantity-selector .qty-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .quantity-selector .qty-input {
        width: 50px;
        height: 38px;
        font-size: 14px;
    }
    
    .product-image-container {
        min-height: 200px;
    }
}