/* ============================================
   SHOP STYLES - Additional styles for shop system
   ============================================ */

/* ============ HEADER LOCATION BUTTON ============ */
.header-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-location-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.header-location-btn i {
    font-size: 14px;
}

#location-text {
    display: inline;
}

/* Hide location text on mobile */
@media (max-width: 768px) {
    #location-text {
        display: none;
    }

    .header-location-btn {
        padding: 10px;
        min-width: 40px;
        justify-content: center;
    }
}

/* ============ HERO SLIDER ============ */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-slide-content p {
    font-size: 20px;
    margin-bottom: 24px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    background: #4CAF50;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Hero Slider */
@media (max-width: 1024px) {
    .hero-slider-section {
        height: 400px;
    }

    .hero-slide-content h1 {
        font-size: 36px;
    }

    .hero-slide-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 300px;
    }

    .hero-slide-content h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-slide-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-arrow-left {
        left: 10px;
    }

    .hero-arrow-right {
        right: 10px;
    }

    .hero-dots {
        bottom: 15px;
        gap: 8px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* ============ SHOP CATEGORY FILTER ============ */
.shop-category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F0F0F0;
}

.shop-filter-chip {
    padding: 10px 20px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-filter-chip:hover {
    border-color: #4CAF50;
    background: #F1F8F1;
}

.shop-filter-chip.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

@media (max-width: 768px) {
    .shop-category-filter {
        gap: 8px;
    }

    .shop-filter-chip {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============ SHOPS SECTION ============ */
.shops-section {
    padding: 40px 0;
}

.shops-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.shops-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .shops-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shop-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    cursor: pointer;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.shop-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.shop-content {
    padding: 16px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.shop-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.shop-distance {
    background: #E8F5E9;
    color: #4CAF50;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.shop-category {
    color: #757575;
    font-size: 13px;
    margin: 4px 0;
}

.shop-description {
    font-size: 14px;
    color: #424242;
    margin: 8px 0;
    line-height: 1.5;
}

.shop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
}

.shop-rating {
    color: #FF9800;
    font-weight: 600;
    font-size: 14px;
}

.shop-rating span {
    color: #757575;
    font-weight: 400;
}

.shop-view-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* ============ SHOP DETAIL PAGE ============ */
.shop-detail-banner {
    position: relative;
    height: 350px;
    overflow: hidden;
    background-color: #000;
}

.shop-detail-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--banner-bg);
    background-size: cover;
    background-position: center;
    animation: bannerZoom 20s infinite alternate ease-in-out;
    will-change: transform;
}

@keyframes bannerZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.back-to-shops-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s 0.2s forwards ease-out;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.back-to-shops-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #4CAF50;
    padding-right: 28px;
}

.shop-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 20px;
    color: white;
    z-index: 1;
}

.shop-detail-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.shop-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.shop-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-detail-info {
    background: white;
    padding: 24px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.shop-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.shop-categories::-webkit-scrollbar {
    height: 4px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.category-btn.active,
.category-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.products-grid-shop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.product-card-shop {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
}

.product-card-shop:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-image-shop {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.product-info-shop {
    padding: 12px;
}

.product-name-shop {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-shop {
    color: #4CAF50;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.product-actions-shop {
    display: flex;
    gap: 8px;
    align-items: center;
}

.qty-selector-shop {
    display: flex;
    align-items: center;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn-shop {
    padding: 6px 10px;
    background: #F5F5F5;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.qty-value-shop {
    padding: 6px 12px;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

.add-cart-btn-shop {
    flex: 1;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.add-cart-btn-shop:hover {
    background: #45a049;
}

/* ============ IMAGE ORDER MODAL ============ */
.image-order-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: slideInUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-order-modal.active {
    display: flex;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.image-order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
    animation: fadeIn 0.3s ease;
}

.image-order-overlay.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.image-upload-area {
    border: 2px dashed #4CAF50;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #f9fff9;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    background: #eaffea;
    border-color: #45a049;
    transform: scale(1.01);
}

.image-preview-container {
    position: relative;
    width: 100%;
    display: none;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.image-preview {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.submit-order-btn {
    width: 100%;
    padding: 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.submit-order-btn:hover {
    background: #45a049;
}