/* UkkU Brand Colors */
:root {
    --ukku-main: #FF8731;
    --ukku-secondary-text: #667085;
    --ukku-border: #D0D5DD;
    --ukku-label: #344054;
    --ukku-item-back: rgba(255, 135, 49, 0.4);
    --ukku-type-back: #FEF8E8;
    --ukku-divider: #FEECD1;
    --ukku-rounded-back: rgba(190, 190, 190, 0.2);
    --ukku-hint: #7E7E7E;
    --ukku-white: #FFFFFF;
}

/* Orange Theme Buttons */
.btn-orange {
    background-color: var(--ukku-main);
    border-color: var(--ukku-main);
    color: white;
    font-weight: 600;
}

.btn-orange:hover {
    background-color: #e6752a;
    border-color: #e6752a;
    color: white;
}

/* Product Page Specific Styles */
.exchange-badge, .sale-badge {
    color: var(--ukku-main);
    font-weight: 600;
    margin-left: 5px;
}

.exchange-price {
    color: var(--ukku-main);
    font-size: 2rem;
    font-weight: bold;
}

.sale-price {
    color: var(--ukku-main);
    font-size: 2.5rem;
    font-weight: bold;
}

.contact-owner-section {
    margin: 30px 0;
}

.contact-owner-btn, .edit-item-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-bottom: 10px;
}

.phone-display {
    text-align: center;
    color: var(--ukku-secondary-text);
    font-size: 0.9rem;
}

.item-details-list {
    margin-top: 30px;
    border-top: 1px solid var(--ukku-divider);
    padding-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    color: var(--ukku-label);
    font-weight: 600;
    flex: 1;
}

.detail-value {
    color: var(--ukku-secondary-text);
    flex: 2;
    text-align: right;
}

/* Tab Navigation */
.nav-tabs .nav-link {
    color: var(--ukku-secondary-text);
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--ukku-main);
    border-bottom-color: var(--ukku-main);
    background: none;
}

.nav-tabs .nav-link:hover {
    color: var(--ukku-main);
    border-bottom-color: var(--ukku-main);
}

/* Owner Profile */
.owner-profile-section .media {
    display: flex;
    align-items: center;
    gap: 20px;
}

.owner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ukku-divider);
}

/* Template Image Gallery Enhancements */
.single-thumbnail-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.single-thumbnail-item.active {
    border-color: var(--ukku-main);
    box-shadow: 0 4px 12px rgba(255, 135, 49, 0.3);
}

.single-thumbnail-item:hover {
    border-color: var(--ukku-main);
    opacity: 0.8;
}

/* Specifications Table */
.specifications-table .table {
    border: 1px solid var(--ukku-divider);
}

.specifications-table .table td {
    border-bottom: 1px solid var(--ukku-divider);
    padding: 12px;
}

.specifications-table .table td:first-child {
    background-color: var(--ukku-type-back);
    font-weight: 600;
    color: var(--ukku-label);
    width: 30%;
}

/* Smooth Transitions */
.single-product-area {
    padding-bottom: 0 !important;
}

/* Right Side Specifications Panel */
.item-specifications-panel {
    background: var(--ukku-type-back);
    border: 1px solid var(--ukku-divider);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.item-specifications-panel h6 {
    color: var(--ukku-label);
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--ukku-main);
    padding-bottom: 8px;
}

.specifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 135, 49, 0.1);
}

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

.spec-label {
    color: var(--ukku-label);
    font-weight: 600;
    flex: 1;
}

.spec-value {
    color: var(--ukku-secondary-text);
    text-align: right;
    flex: 1;
}

/* Owner Info Panel */
.owner-info-panel {
    background: white;
    border: 1px solid var(--ukku-divider);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.owner-info-panel h6 {
    color: var(--ukku-label);
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--ukku-main);
    padding-bottom: 8px;
}

.owner-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.owner-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ukku-main);
}

.owner-details {
    flex: 1;
}

.owner-name {
    font-weight: 600;
    color: var(--ukku-label);
    margin-bottom: 5px;
}

.owner-location {
    color: var(--ukku-secondary-text);
    font-size: 0.9rem;
}

/* Footer Styles */
.footer-area {
    border-top: none !important;
    margin-top: 0;
}

/* Simple download links in footer */
.app-download-links {
    margin: 15px 0;
}

.download-link {
    display: inline-block;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.download-link i {
    margin-right: 5px;
}

/* iOS - Black */
.download-link:nth-child(1) {
    background: #000;
}

.download-link:nth-child(1):hover {
    background: #333;
}

/* Android - Orange */
.download-link:nth-child(2) {
    background: var(--ukku-main);
}

.download-link:nth-child(2):hover {
    background: #e6752a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .spec-value {
        text-align: left;
    }

    .owner-profile {
        flex-direction: column;
        text-align: center;
    }
}

/* Hide old download sections */
.download-cta-compact,
.download-app-section {
    display: none;
}

/* Scrollable thumbnail layout - shows all images */
.product-thumbnail-carousel {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--ukku-main) transparent;
}

/* Custom scrollbar for webkit browsers */
.product-thumbnail-carousel::-webkit-scrollbar {
    width: 6px;
}

.product-thumbnail-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.product-thumbnail-carousel::-webkit-scrollbar-thumb {
    background: var(--ukku-main);
    border-radius: 3px;
}

.product-thumbnail-carousel::-webkit-scrollbar-thumb:hover {
    background: #e6752a;
}

/* Updated thumbnail sizes - Option 1: Increased from 80px to 100px */
.single-thumbnail-item {
    margin-bottom: 10px;
    height: 100px; /* Increased from 80px */
}

.single-thumbnail-item:last-child {
    margin-bottom: 0;
}

.single-thumbnail-item img {
    width: 100%;
    height: 100px; /* Increased from 80px */
    object-fit: cover;
}

/* Image counter */
.image-counter {
    text-align: center;
    margin-top: 10px;
    color: var(--ukku-secondary-text);
}

/* Scroll hint for mobile */
@media (max-width: 768px) {
    .product-thumbnail-carousel::after {
        content: 'Scroll for more images';
        position: absolute;
        bottom: -20px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 0.8rem;
        color: var(--ukku-hint);
        opacity: 0.7;
    }
}

/* No images placeholder */
.no-images-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.placeholder-content {
    text-align: center;
}

/* Enhanced Mobile Responsive Styles for Item Details */

/* Base responsive improvements */
@media (max-width: 991px) {
    .single-product-area {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile-first approach for product layout */
@media (max-width: 767px) {
    /* Stack product images and description vertically */
    .single-product-area .row {
        flex-direction: column;
    }

    .single-product-area .col-lg-7,
    .single-product-area .col-lg-5 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    /* Product image gallery mobile optimization */
    .product-thumbnail-wrapper {
        margin-bottom: 30px;
    }

    .product-thumbnail-wrapper .row {
        flex-direction: column-reverse;
    }

    .product-thumbnail-wrapper .col-3,
    .product-thumbnail-wrapper .col-9 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Main image mobile styles */
    .single-thumbnail-slider {
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
    }

    .single-thumbnail-slider img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    /* Thumbnail gallery - horizontal scroll on mobile */
    .product-thumbnail-carousel {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 10px 0;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-thumbnail-carousel::-webkit-scrollbar {
        display: none;
    }

    .single-thumbnail-item {
        flex: 0 0 80px;
        height: 80px;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .single-thumbnail-item img {
        width: 80px;
        height: 80px;
        border-radius: 6px;
    }

    /* Product description mobile optimization */
    .product-description {
        padding: 20px;
    }

    .product-description .title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .product-description .price {
        margin-bottom: 20px;
    }

    .sale-price {
        font-size: 2rem;
    }

    .exchange-price {
        font-size: 1.5rem;
    }

    .product-description .content {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }
}

/* Specifications panel mobile optimization */
@media (max-width: 767px) {
    .item-specifications-panel,
    .owner-info-panel {
        margin-top: 20px;
        padding: 15px;
        border-radius: 10px;
    }

    .item-specifications-panel h6,
    .owner-info-panel h6 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .spec-row {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 10px 0;
    }

    .spec-label {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .spec-value {
        text-align: left;
        font-size: 0.9rem;
        color: var(--ukku-main);
        font-weight: 500;
    }

    /* Owner profile mobile */
    .owner-profile {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .owner-avatar-small {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .owner-name {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .owner-location {
        font-size: 0.85rem;
    }
}

/* Buttons mobile optimization */
@media (max-width: 767px) {
    .contact-owner-btn,
    .edit-item-btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .my-item-section {
        margin-top: 20px;
    }

    .customer-review {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }

    .exchange-badge,
    .sale-badge {
        font-size: 0.9rem;
        margin-left: 0;
    }
}

/* Breadcrumb mobile optimization */
@media (max-width: 767px) {
    .breadcrumb-area {
        padding: 40px 0 30px;
        background-size: cover;
        background-position: center;
    }

    .breadcrumb-inner h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        word-break: break-word;
    }

    .page-list {
        font-size: 0.9rem;
    }

    .page-list li {
        margin-right: 15px;
    }
}

/* Navigation mobile fixes */
@media (max-width: 767px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        width: 80px;
    }

    .navbar .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Footer mobile optimization */
@media (max-width: 767px) {
    .footer-area {
        padding-top: 60px;
    }

    .footer-widget {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-widget h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .app-download-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .download-link {
        width: 200px;
        text-align: center;
        margin: 0;
    }

    .social-icon {
        justify-content: center;
        gap: 15px;
    }

    .contact_info_list p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Loading spinner mobile */
@media (max-width: 767px) {
    .preloader {
        background: rgba(255, 255, 255, 0.95);
    }

    .preloader-inner {
        padding: 20px;
    }
}

/* Typography improvements for mobile */
@media (max-width: 767px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }

    .title {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Touch-friendly improvements */
@media (max-width: 767px) {
    .single-thumbnail-item {
        min-height: 44px;
        min-width: 44px;
    }

    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    a[href^="tel:"] {
        color: var(--ukku-main);
        text-decoration: none;
        padding: 5px;
        border-radius: 5px;
        background: rgba(255, 135, 49, 0.1);
        display: inline-block;
        margin: 2px 0;
    }
}

/* Landscape phone optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .single-thumbnail-slider img {
        height: 200px;
    }

    .breadcrumb-area {
        padding: 30px 0 20px;
    }

    .single-product-area {
        padding-top: 40px !important;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-description,
    .item-specifications-panel,
    .owner-info-panel {
        padding: 12px;
    }

    .single-thumbnail-slider img {
        height: 220px;
    }

    .sale-price {
        font-size: 1.8rem;
    }

    .breadcrumb-inner h1 {
        font-size: 1.3rem;
    }
}