/* ===== STARKUS GALLERY FRONTEND STYLES ===== */

/* Reset y base */
.starkus-gallery-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.gallery-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ===== GRID RESPONSIVO ===== */
.starkus-gallery-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Grid por defecto - 3 columnas */
.starkus-gallery-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

/* Grid de 2 columnas */
.starkus-gallery-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

/* Grid de 4 columnas */
.starkus-gallery-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Grid de 5 columnas */
.starkus-gallery-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

/* ===== SALE BADGE ===== */
.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 20px;
}

/* Estado "Venta" - Rojo */
.sale-badge .badge-text {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

/* Estado "En carrito" - Verde con check */
.sale-badge .badge-check {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    animation: checkPulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
    .starkus-gallery-grid[data-columns="5"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .starkus-gallery-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .starkus-gallery-container {
        padding: 15px;
    }
    
    .gallery-title {
        font-size: 1.75rem;
    }
    
    .gallery-description {
        font-size: 1rem;
    }
    
    .starkus-gallery-grid {
        gap: 15px;
    }
    
    .starkus-gallery-grid[data-columns="5"],
    .starkus-gallery-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .starkus-gallery-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles grandes (480px y menos) */
@media (max-width: 480px) {
    .starkus-gallery-container {
        padding: 10px;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .gallery-description {
        font-size: 0.95rem;
    }
    
    .starkus-gallery-grid {
        gap: 10px;
    }
    
    .starkus-gallery-grid[data-columns="5"],
    .starkus-gallery-grid[data-columns="4"],
    .starkus-gallery-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .starkus-gallery-grid[data-columns="2"] {
        grid-template-columns: 1fr;
    }
}

/* Móviles pequeños (360px y menos) */
@media (max-width: 360px) {
    .starkus-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
}

/* ===== GALLERY ITEMS ===== */
.gallery-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item.free-available {
    border: 2px solid #4CAF50;
    position: relative;
}

.gallery-item.free-available::before {
    content: "GRATIS";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

/* ===== IMAGE CONTAINER ===== */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.05);
}

/* ===== IMAGE OVERLAY ===== */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* ===== BOTONES ===== */
.btn-view,
.btn-download,
.btn-add-cart,
.btn-free-download {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.btn-view:hover,
.btn-download:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.btn-add-cart {
    background: #28a745;
}

.btn-add-cart:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-free-download {
    background: #4CAF50;
}

.btn-free-download:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Responsive para botones */
@media (max-width: 768px) {
    .btn-view,
    .btn-download,
    .btn-add-cart,
    .btn-free-download {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .btn-view,
    .btn-download,
    .btn-add-cart,
    .btn-free-download {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 80px;
    }
}

/* ===== IMAGE INFO ===== */
.image-info {
    padding: 15px;
    text-align: center;
}

.image-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.image-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .image-info {
        padding: 12px;
    }
    
    .image-info h4 {
        font-size: 14px;
    }
    
    .image-info p {
        font-size: 12px;
    }
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px 20px;
    box-sizing: border-box;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex: 1;
    min-height: 0;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

/* Asegurar que la imagen se ajuste correctamente */
#lightbox-image.loading {
    opacity: 0.7;
}

#lightbox-image.loaded {
    opacity: 1;
}

/* ===== LIGHTBOX CONTROLS ===== */
.lightbox-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    opacity: 0.8;
}

/* Posicionamiento dinámico de botones */
.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* En la primera imagen, solo mostrar botón siguiente a la derecha */
.lightbox-prev.hidden + .lightbox-next {
    left: auto;
    right: 20px;
}

/* En la última imagen, solo mostrar botón anterior a la izquierda */
.lightbox-prev:not(.hidden) + .lightbox-next.hidden {
    left: 20px;
    right: auto;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95);
}

/* Ocultar botones cuando no hay navegación */
.lightbox-prev.hidden,
.lightbox-next.hidden {
    display: none !important;
}

/* Mejorar visibilidad en pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    .lightbox-prev,
    .lightbox-next {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(1.05);
    }
}

/* Indicador visual para swipe */
.lightbox-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.lightbox-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

/* Mostrar indicadores en pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    .lightbox-image-container::before,
    .lightbox-image-container::after {
        opacity: 0.6;
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== LIGHTBOX INFO ===== */
.lightbox-info {
    text-align: center;
    color: white;
    max-width: 600px;
}

.lightbox-info h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.lightbox-info p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===== LIGHTBOX BOTTOM CONTROLS ===== */
.lightbox-bottom-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 0 20px;
}

.lightbox-close-bottom {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lightbox-close-bottom:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.lightbox-close-bottom:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* ===== RESPONSIVE LIGHTBOX ===== */
@media (max-width: 768px) {
    .lightbox-modal {
        padding: 15px;
    }
    
    .lightbox-content {
        padding: 50px 15px 15px 15px;
    }
    
    .lightbox-image-container {
        margin-bottom: 15px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin: 0 15px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .lightbox-info h4 {
        font-size: 20px;
    }
    
    .lightbox-info p {
        font-size: 14px;
    }
    
    .lightbox-close-bottom {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .lightbox-modal {
        padding: 10px;
    }
    
    .lightbox-content {
        padding: 40px 10px 10px 10px;
    }
    
    .lightbox-image-container {
        margin-bottom: 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: -35px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .lightbox-info h4 {
        font-size: 18px;
    }
    
    .lightbox-info p {
        font-size: 13px;
    }
    
    .lightbox-close-bottom {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== CART WIDGET ===== */
.cart-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.cart-toggle {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-toggle:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.cart-content {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-total {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 8px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-clear-cart,
.btn-checkout {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-cart {
    background: #6c757d;
    color: white;
}

.btn-clear-cart:hover {
    background: #5a6268;
}

.btn-checkout {
    background: #28a745;
    color: white;
}

.btn-checkout:hover {
    background: #218838;
}

/* Responsive para cart widget */
@media (max-width: 768px) {
    .cart-widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .cart-header h4 {
        font-size: 16px;
    }
    
    .cart-toggle {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cart-total {
        font-size: 16px;
        padding: 12px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn-clear-cart,
    .btn-checkout {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.5s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .btn-view,
    .btn-download,
    .btn-add-cart,
    .btn-free-download,
    .lightbox-prev,
    .lightbox-next,
    .lightbox-close,
    .cart-toggle {
        transition: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover .gallery-thumbnail {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .lightbox-modal,
    .cart-widget,
    .image-overlay {
        display: none !important;
    }
    
    .gallery-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== NOTIFICATIONS ===== */
.starkus-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.starkus-notification.success {
    background: #28a745;
}

.starkus-notification.error {
    background: #dc3545;
}

.starkus-notification.info {
    background: #17a2b8;
}

.starkus-notification.warning {
    background: #ffc107;
    color: #212529;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== CART ITEMS ===== */
.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    gap: 10px;
}

.cart-item-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.cart-item-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.btn-remove-from-cart {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.btn-remove-from-cart:hover {
    background: #c82333;
}

/* ===== CHECKOUT MODAL ===== */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.checkout-modal .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-modal .modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.checkout-modal .close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.checkout-modal .modal-body {
    padding: 20px;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.checkout-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

.checkout-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.checkout-item-price {
    color: #666;
    font-size: 14px;
}

.checkout-total {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkout-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* ===== RESPONSIVE NOTIFICATIONS ===== */
@media (max-width: 768px) {
    .starkus-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 15px;
        font-size: 14px;
        max-width: none;
    }
}

/* ===== RESPONSIVE CART ===== */
@media (max-width: 768px) {
    .cart-item {
        padding: 8px;
        gap: 8px;
    }
    
    .cart-item-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .cart-item-info h5 {
        font-size: 13px;
    }
    
    .cart-item-info p {
        font-size: 11px;
    }
}

/* ===== RESPONSIVE CHECKOUT ===== */
@media (max-width: 768px) {
    .checkout-modal {
        padding: 10px;
    }
    
    .checkout-modal .modal-content {
        max-height: 95vh;
    }
    
    .checkout-modal .modal-header {
        padding: 15px;
    }
    
    .checkout-modal .modal-body {
        padding: 15px;
    }
    
    .checkout-item {
        padding: 8px;
        gap: 8px;
    }
    
    .checkout-item img {
        width: 40px;
        height: 40px;
    }
    
    .checkout-total {
        font-size: 16px;
        padding: 12px;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BODY STATES ===== */
.lightbox-open {
    overflow: hidden;
}

.checkout-open {
    overflow: hidden;
}

/* ===== PAYMENT PROOF UPLOAD ===== */
.upload-proof-section {
    margin: 20px 0;
}

.upload-proof-area {
    margin: 15px 0;
}

.file-selection-area {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.file-info {
    display: flex;
    align-items: center;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.file-info i {
    font-size: 1.5rem;
    color: #28a745;
    margin-right: 10px;
}

.file-details p {
    margin: 0 0 5px 0;
    color: #155724;
    font-weight: 500;
}

.file-details small {
    color: #155724;
    font-size: 0.9rem;
}

.file-selection-buttons {
    text-align: center;
    margin-bottom: 10px;
}

#select-file-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#select-file-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

#select-file-btn i {
    font-size: 1rem;
}

.file-requirements {
    text-align: center;
    margin-top: 10px;
}

.file-requirements small {
    color: #6c757d;
    font-size: 0.85rem;
}

.upload-actions {
    text-align: center;
}

#upload-proof:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
    color: #666;
}

#upload-proof:not(:disabled) {
    background: #007cba;
    color: white;
    cursor: pointer;
}

#upload-proof:not(:disabled):hover {
    background: #005a87;
}

.upload-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #155724;
}

.upload-success h4 {
    margin: 0 0 10px 0;
    color: #155724;
}

.upload-success p {
    margin: 5px 0;
    color: #155724;
}
