/* Product Detail Pages - Reusable Styles */

/* === HEADER CONSISTENCY === */
/* Ensure header matches business.html styling */
.hero-area {
    position: relative;
    min-height: 120px !important;
}

.hero-area .overlay {
    background: linear-gradient(95deg, #5533ff 40%, #25ddf5 100%);
}

/* === PRODUCT DETAIL LAYOUT === */
.product-detail-section {
    background: #fff;
}

.product-image-wrapper {
    position: relative;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badges .badge {
    display: block;
    margin-bottom: 5px;
}

.product-info {
    padding-left: 30px;
}

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

.product-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 600;
}

.product-category {
    margin-bottom: 10px;
}

.product-category span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === RATING SYSTEM === */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* === PRICING === */
.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.price-note {
    font-size: 0.9rem;
    margin-left: 10px;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

/* === FEATURES & LISTS === */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.features-list li i {
    margin-right: 10px;
    font-size: 16px;
}

.tech-list {
    padding-left: 0;
    margin-bottom: 20px;
}

.tech-list li {
    list-style: none;
    position: relative;
    padding: 15px 20px;
    margin-bottom: 12px;
    margin-left: 20px; /* Card indentation from left */
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #5533ff;
}

.tech-list li:before {
    content: "✓";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: #5533ff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(85, 51, 255, 0.3);
}

.tech-list li:hover {
    background: #f8f9ff;
    border-left-color: #25ddf5;
    box-shadow: 0 4px 12px rgba(85, 51, 255, 0.15);
    transform: translateX(5px);
}

.tech-list li:hover:before {
    background: #0a0a0a;
    box-shadow: 0 2px 4px rgba(37, 221, 245, 0.3);
}

/* === DELIVERY INFO === */
.delivery-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* === ACTION BUTTONS === */
.product-actions {
    margin-top: 20px;
}

.product-actions .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    padding: 12px 30px;
}

/* === TAGS === */
.product-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* === BREADCRUMBS === */
.breadcrumb-area {
    padding: 20px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* === TABS SYSTEM === */
.product-tabs-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #495057;
    font-weight: 500;
    padding: 15px 25px;
    border-radius: 0;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background: #fff;
    border-bottom: 3px solid #007bff;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #007bff;
}

.tab-content-wrapper {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    min-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Technology section headers with card styling */
.tab-content-wrapper .row .col-md-6 {
    padding: 20px 15px;
}

.tab-content-wrapper h5 {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #5533ff 0%, #131718 100%);
    color: white !important;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(85, 51, 255, 0.3);
}

/* === PROCESS STEPS === */
.process-steps .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid #007bff;
    position: relative;
}

.process-steps .step::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    background: #007bff;
    border-radius: 50%;
}

.step-number {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
}

.step h5 {
    color: #333;
    margin-bottom: 10px;
}

.step p {
    color: #666;
    margin-bottom: 10px;
}

/* === REVIEWS SECTION === */
.reviews-summary {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.rating-overview {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.rating-breakdown {
    padding: 20px 0;
}

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

.rating-bar span:first-child {
    width: 60px;
    font-size: 0.9rem;
    color: #495057;
}

.rating-bar .progress {
    flex: 1;
    margin: 0 15px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
}

.rating-bar .progress-bar {
    background: #ffc107;
    border-radius: 4px;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #495057;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-content {
    color: #495057;
    line-height: 1.6;
}

/* === RELATED PRODUCTS === */
.related-products {
    background: #fff;
}

.product-card {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.15);
    border-color: #007bff;
}

.product-card .card-body {
    padding: 25px;
}

.product-card .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-card .card-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* === PRODUCT DETAIL PAGE SPECIFIC STYLES === */
.product-detail-section h1 {
  color: #223645 !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-info h1 {
  color: #223645 !important;
  font-size: 2.2rem !important;
  margin-bottom: 15px;
}

.product-info h5 {
  color: #223645 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 10px;
}

.tab-content h4 {
  color: #ffffff !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  margin-bottom: 15px;
}

.tab-content h5 {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 10px;
}

/* Breadcrumb heading */
.breadcrumb-area h1, .breadcrumb-area h2, .breadcrumb-area h3 {
  color: #223645 !important;
  font-weight: 600 !important;
}

/* Shop page headings */
.section-header h2 {
  color: #223645 !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 1.6rem;
    }
    
    .product-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .rating-overview {
        padding: 20px;
    }
    
    .rating-score {
        font-size: 2.5rem;
    }
    
    .process-steps .step {
        padding-left: 15px;
    }
    
    .nav-tabs .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .product-info h1 {
      font-size: 1.8rem !important;
    }
    
    .section-header h2 {
      font-size: 2rem !important;
    }
    
    .tab-content h4 {
      font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-bar {
        flex-direction: column;
        gap: 5px;
    }
    
    .rating-bar span:first-child,
    .rating-bar span:last-child {
        width: auto;
    }
    
    .rating-bar .progress {
        margin: 0;
    }
    
    .tech-list li {
    margin-left: 10px;
    padding: 10px 14px;
  }
  
  .tab-content-wrapper h5 {
    padding: 10px 12px;
    font-size: 1rem !important;
  }
}

/* === ANIMATION ENHANCEMENTS === */
.product-badges .badge {
    animation: fadeInDown 0.6s ease;
}

.product-info > * {
    animation: fadeInUp 0.6s ease;
}

.tab-content-wrapper {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    outline: none;
}

.product-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.15);
}

/* === PRINT STYLES === */
@media print {
    .product-actions,
    .related-products,
    .navbar-area {
        display: none !important;
    }
    
    .product-detail-section {
        box-shadow: none !important;
    }
    
    .tab-content-wrapper {
        border: none !important;
    }
}
