/**
 * Stili per la visualizzazione dettaglio prodotto
 */

/* Container principale */
.product-view-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
    display: grid;
    grid-template-columns: 500px 1fr;
    grid-template-rows: auto;
    gap: var(--spacing-lg);
    font-family: var(--font-family-base);
    /* IT: Evita overflow orizzontale su mobile / EN: Prevent horizontal overflow on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Galleria immagini */
.product-gallery {
    grid-column: 1;
    grid-row: 1;
    max-width: 500px;
    /* IT: Consenti restringimento in grid per evitare overflow / EN: Allow grid shrink to prevent overflow */
    min-width: 0;
}

/* Correzione rimossa, ora gestita da JavaScript */

.main-image-container {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    width: 500px;
    height: 650px;
    max-width: 100%;
    background-color: var(--color-background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.main-product-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* IT: Icona regalo nella galleria - contenuta nel container / EN: Gift icon in gallery - contained in container */
.product-gallery .gift-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    z-index: 2;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #4a4a4a;
    font-weight: 500;
    z-index: 2;
}

.gallery-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
}

.gallery-nav .icon {
    font-size: 20px;
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.view-mode-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.view-mode-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.view-mode-btn .icon {
    font-size: 18px;
    color: #4a4a4a;
}

.thumbnail-container {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: #d1d1d1;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.thumbnail {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
    background-color: #f0f0f0;
}

.thumbnail.active {
    opacity: 1;
    border-color: #81cdc7;
}

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

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.2s;
}

.indicator.active {
    background-color: #81cdc7;
}

/* Informazioni prodotto */
.product-info {
    grid-column: 2;
    grid-row: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 24px 3vw 8px 3vw;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    /* IT: Evita che la colonna grid si espanda oltre viewport / EN: Prevent grid column from exceeding viewport */
    min-width: 0;
}

.product-header {
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.2;
}

.product-offers {
    font-size: 14px;
    color: #666;
}

.product-details {
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.detail-row {
    display: flex;
    margin-bottom: 22px;
    font-size: 15px;
    align-items: flex-start;
}

.detail-label {
    width: 120px;
    font-weight: 500;
    color: #c3c1c4;
}

.detail-value {
    flex: 1;
    color: #333;
    font-weight: 600;
}

.description-row {
    display: flex;
    align-items: flex-start;
}

.description-text {
    flex: 1;
    color: #333;
    font-weight: 600;
    line-height: 1.5;
}

/* Pulsanti azione */
.product-actions {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 30px;
    width: 100%;
    background-color: rgba(249, 249, 249, 0.7);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    margin-top: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.product-actions::before,
.product-actions::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    height: 1px;
    background-color: rgba(238, 238, 238, 0.7);
}

.product-actions::before {
    top: 0;
    background: linear-gradient(to right, transparent, rgba(238, 238, 238, 0.7), transparent);
}

.product-actions::after {
    bottom: 0;
    background: linear-gradient(to right, transparent, rgba(238, 238, 238, 0.7), transparent);
}

.action-btn {
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    height: 46px;
    letter-spacing: 0.5px;
}

.action-buttons-container {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.edit-btn, .delete-btn {
    flex: 1;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.edit-btn {
    background-color: #81cdc7;
    color: white;
    border-radius: 40px 0 0 40px;
}

.delete-btn {
    background-color: #f9a621;
    color: white;
    border-radius: 0 40px 40px 0;
    margin-left: 0;
}

.offer-btn {
    background-color: #81cdc7;
    color: white;
    border: none;
    flex: 1 0 100%;
    padding: 0 20px;
    margin-bottom: 8px;
}

.favorite-btn, .message-btn, .share-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 0;
    min-width: 0;
    background-color: white;
    color: #666;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.action-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.favorite-btn {
    position: relative;
}

.favorite-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #FF6B6B;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Warning styles for shipping info and login */
.shipping-info-warning, .login-required-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
}

.warning-text {
    color: #8b6914;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-btn, .login-btn {
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipping-btn:hover, .login-btn:hover {
    background-color: #c8860d;
    transform: translateY(-1px);
}

.shipping-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #d4a574;
    border: none;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.shipping-btn-small:hover {
    background-color: #c8860d;
    transform: scale(1.1);
}

.shipping-btn-small svg {
    width: 16px;
    height: 16px;
}

.login-required-warning {
    background-color: rgba(129, 205, 199, 0.2);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.login-required-warning .warning-text {
    color: #81cdc7;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}

.login-btn {
    background-color: #81cdc7;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(129, 205, 199, 0.3);
    display: block;
    margin: 0 auto;
}

.login-btn:hover {
    background-color: #6baca6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 205, 199, 0.4);
}

/* Informazioni venditore */
.seller-info {
    padding-top: 25px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 40px;
}

.seller-profile {
    display: flex;
    align-items: center;
    width: 30%;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #eee;
    border: 1px solid #e0e0e0;
    flex-shrink: 0; /* Impedisce al contenitore di rimpicciolirsi */
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.seller-location {
    color: #c3c1c4;
    font-size: 14px;
    margin-bottom: 0;
    margin-top: 2px;
}

.seller-stats {
    width: 100%;
    text-align: center;
    color: #888;
    font-size: 12px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
}

.rating-circle {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.rating-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    position: relative;
    z-index: 2;
}

/* Definizione principale di user-actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    width: 30%;
}

.user-action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 0;
    background-color: transparent;
    color: #666;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.user-action-btn:hover {
    transform: scale(1.1);
}

.user-action-btn .action-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.user-action-btn .count {
    position: absolute;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

/* Stili per la modalità zoom */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.zoom-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-zoom {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

@media (max-width: 768px) {
    .close-zoom {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .image-zoom-modal {
        padding: 10px;
    }
    
    .zoom-container img {
        max-height: 80vh;
    }
}

.close-zoom:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.toggle-view-mode {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 1001;
}

.toggle-view-mode:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Stili responsivi migliorati */
@media (max-width: 992px) {
    .product-view-container {
        grid-template-columns: 1fr;
        padding: var(--spacing-md) var(--spacing-sm);
        overflow-x: hidden;
    }
    
    .product-gallery {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        min-width: 0;
    }
    
    .main-image-container {
        width: 100%;
        max-width: 100%;
        height: 600px;
        box-sizing: border-box;
    }
    
    .product-info {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }
    
    .seller-info {
        grid-column: 1;
        grid-row: 3;
        flex-wrap: wrap;
        padding: 15px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .product-view-container {
        padding: var(--spacing-sm) var(--spacing-sm);
        gap: var(--spacing-md);
        overflow-x: hidden;
    }
    
    .product-gallery {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 var(--spacing-sm);
        box-sizing: border-box;
        min-width: 0;
    }
    
    .main-image-container {
        height: 500px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .thumbnail-container {
        justify-content: flex-start;
        padding: 10px 0 0 0;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-info {
        padding: 12px 2vw 8px 2vw;
        max-width: 100vw;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .product-title {
        font-size: 22px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .detail-row {
        font-size: 14px;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-label {
        width: auto;
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .detail-value {
        font-size: 14px;
        font-weight: 500;
    }
    
    .product-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-buttons-container {
        max-width: 100%;
    }
    
    .offer-btn {
        flex: 1 0 100%;
        margin-bottom: 8px;
    }
    
    .favorite-btn, .message-btn, .share-btn {
        flex: 1;
    }
    
    .seller-info {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 50px;
        align-items: center;
        text-align: center;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .seller-profile {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .rating-container {
        width: 100%;
        margin: 15px 0;
        display: flex;
        justify-content: center;
    }
    
    .user-actions {
        width: 100%;
        justify-content: center;
    }
    
    .seller-stats {
        margin-top: 15px;
        position: absolute;
        bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    /* Warning styles responsive */
    .shipping-info-warning, .login-required-warning {
        padding: 15px;
        gap: 12px;
    }
    
    .warning-icon {
        font-size: 20px;
    }
    
    .warning-title {
        font-size: 15px;
    }
    
    .warning-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .shipping-btn, .login-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .favorite-btn, .message-btn, .share-btn {
        flex: 1;
    }
}

/* Medium mobile devices */
@media (max-width: 600px) {
    .product-view-container {
        padding: var(--spacing-sm) var(--spacing-xs);
        overflow-x: hidden;
    }
    
    .product-gallery {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 var(--spacing-xs);
        box-sizing: border-box;
        min-width: 0;
    }
    
    .main-image-container {
        height: 450px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .thumbnail-container {
        justify-content: center;
        gap: 5px;
        padding: 10px 0 0 0;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .thumbnail {
        width: 65px;
        height: 65px;
    }
    
    .product-info {
        padding: 12px 2vw 8px 2vw;
        max-width: 100vw;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .detail-row {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .product-view-container {
        padding: var(--spacing-sm) var(--spacing-xs);
        gap: var(--spacing-sm);
        overflow-x: hidden;
    }
    
    .product-gallery {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 var(--spacing-xs);
        box-sizing: border-box;
        min-width: 0;
    }
    
    .main-image-container {
        height: calc(100vw - 16px); /* Responsive height based on viewport width */
        max-height: 400px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-info {
        padding: 12px 2vw 8px 2vw;
        max-width: 100vw;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .product-title {
        font-size: 18px !important;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .detail-row {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .detail-label {
        font-size: 12px;
        color: #999;
        margin-bottom: 3px;
    }
    
    .detail-value {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .gallery-nav {
        width: 32px;
        height: 32px;
    }
    
    .thumbnail-container {
        gap: 4px;
        justify-content: center;
        padding: 10px 0 0 0;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .seller-profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .seller-avatar {
        margin: 0 auto 15px;
        /* Mantiene la dimensione fissa di 60x60px definita sopra */
    }
    
    .seller-details {
        text-align: center;
        margin-bottom: 15px;
        align-items: center;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .user-actions {
        gap: 10px;
        margin: 0 auto;
    }
    
    .seller-stats {
        position: relative;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }
    
    .rating-container {
        margin: 5px auto 15px;
    }
    
    /* Warning styles for mobile */
    .shipping-info-warning, .login-required-warning {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .warning-icon {
        font-size: 18px;
        align-self: center;
    }
    
    .warning-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .warning-text {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .shipping-btn, .login-btn {
        padding: 8px 14px;
        font-size: 12px;
        align-self: center;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 400px) {
    .product-view-container {
        padding: 8px;
        gap: 12px;
        overflow-x: hidden;
    }
    
    .product-gallery {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 8px;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .main-image-container {
        height: calc(100vw - 16px);
        max-height: 360px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .thumbnail-container {
        gap: 2px;
        padding: 10px 0 0 0;
        margin: 10px auto;
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }
    
    .thumbnail {
        width: 48px;
        height: 48px;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .product-info {
        padding: 10px 3vw 8px 3vw;
        max-width: 100vw;
        margin: 0 auto;
        box-sizing: border-box;
        border-radius: 8px;
    }
    
    .product-title {
        font-size: 15px !important;
        line-height: 1.2;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .product-offers {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .detail-row {
        font-size: 11px;
        margin-bottom: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-label {
        width: auto;
        font-size: 10px;
        color: #999;
        margin-bottom: 2px;
        text-transform: uppercase;
        font-weight: 500;
    }
    
    .detail-value {
        font-size: 11px;
        line-height: 1.3;
        font-weight: 600;
        color: #333;
    }
    
    .description-text {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .product-actions {
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .action-btn {
        font-size: 11px;
        padding: 8px 12px;
        font-weight: 600;
    }
    
    .offer-btn, .gift-btn {
        flex: 1 0 100%;
        margin-bottom: 6px;
        min-height: 36px;
    }
    
    .action-buttons-container {
        width: 100%;
        flex-direction: column;
        gap: 6px;
    }
    
    .edit-btn, .delete-btn {
        flex: 1;
        min-height: 32px;
        font-size: 10px;
    }
    
    .gallery-nav {
        width: 26px;
        height: 26px;
    }
    
    .gallery-nav .icon {
        font-size: 14px;
    }
    
    .zoom-btn, .view-mode-btn {
        width: 26px;
        height: 26px;
        bottom: 6px;
    }
    
    .zoom-btn {
        right: 6px;
    }
    
    .view-mode-btn {
        left: 6px;
    }
    
    .seller-info {
        padding: 12px;
        margin-top: 12px;
        border-radius: 8px;
    }
    
    .seller-profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .seller-avatar {
        margin: 0 auto 10px;
        width: 50px;
        height: 50px;
    }
    
    .seller-avatar img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }
    
    .seller-details {
        text-align: center;
        margin-bottom: 10px;
        align-items: center;
        width: 100%;
    }
    
    .seller-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .seller-location {
        font-size: 11px;
        color: #666;
    }
    
    .rating-container {
        margin: 8px auto;
        transform: scale(0.8);
    }
    
    .user-actions {
        gap: 8px;
        margin: 10px auto 0;
        justify-content: center;
    }
    
    .user-action-btn {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
    
    .user-action-btn .action-icon {
        width: 18px;
        height: 18px;
    }
    
    .user-action-btn .count {
        font-size: 10px;
    }
    
    .seller-stats {
        font-size: 10px;
        margin-top: 12px;
        text-align: center;
        width: 100%;
    }
    
    /* Warning styles for very small devices */
    .shipping-info-warning, .login-required-warning {
        padding: 10px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
        margin: 10px 0;
    }
    
    .warning-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .warning-icon {
        font-size: 16px;
    }
    
    .warning-title {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .warning-text {
        font-size: 11px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .shipping-btn, .login-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-height: 32px;
    }
    
    .shipping-btn-small {
        width: 24px;
        height: 24px;
        padding: 4px;
    }
    
    .shipping-btn-small svg {
        width: 12px;
        height: 12px;
    }
} 