/* === Sip N Snacks Catering Plugin Styles === */

/* Hide location step when option is enabled */
.skip-location-mode .progress-step[data-step="4"] {
    display: none !important;
}

.skip-location-mode #step-4 {
    display: none !important;
}

/* Main Container */
.sns-catering-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef7 0%, #fff9e6 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.sns-catering-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,71,218,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

/* Progress Bar */
.sns-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.sns-progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.progress-step.active .step-number {
    background: linear-gradient(45deg, #FF47DA, #FF6BE6);
    color: white;
    box-shadow: 0 4px 15px rgba(255,71,218,0.3);
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.progress-step.active .step-label {
    color: #FF47DA;
}

/* Steps */
.sns-step {
    animation: fadeInUp 0.6s ease-out;
}

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

.step-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.sns-logo {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.welcome-title {
    font-size: 2.5em;
    color: #FF47DA;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(45deg, #FF47DA, #FF6BE6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

/* Product Showcase */
.product-showcase {
    margin: 40px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.showcase-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.showcase-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.showcase-image.bubble-tea {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.showcase-image.smoothies {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.showcase-image.desserts {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.showcase-image.milkshakes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.showcase-item h3 {
    color: #FF47DA;
    margin-bottom: 10px;
    font-weight: 600;
}

.showcase-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.sns-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sns-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.sns-btn:hover::before {
    left: 100%;
}

.sns-btn-primary {
    background: linear-gradient(45deg, #FF47DA, #FF6BE6);
    color: white;
    box-shadow: 0 5px 15px rgba(255,71,218,0.3);
}

.sns-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,71,218,0.4);
}

.sns-btn-secondary {
    background: linear-gradient(45deg, #ffeb3b, #ffc107);
    color: #333;
    box-shadow: 0 5px 15px rgba(255,235,59,0.3);
}

.sns-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,235,59,0.4);
}

.sns-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tracking Section */
.tracking-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tracking-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.tracking-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    accent-color: #FF47DA;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #FF47DA;
    box-shadow: 0 0 0 3px rgba(255,71,218,0.1);
}

.form-note {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 71, 218, 0.03) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 71, 218, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.selected {
    border-color: #FF47DA;
    background: linear-gradient(135deg, rgba(255, 71, 218, 0.05) 0%, rgba(255, 107, 230, 0.08) 100%);
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 71, 218, 0.2);
}

.product-image {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.product-info h3 {
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-price {
    color: #FF47DA;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #FF47DA, #FF6BE6);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 71, 218, 0.3);
    position: relative;
    overflow: hidden;
}

.qty-btn:hover {
    background: linear-gradient(145deg, #e91e63, #FF47DA);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 71, 218, 0.4);
}

.qty-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 71, 218, 0.3);
}

.qty-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.qty-btn:hover::before {
    left: 100%;
}

.qty-btn svg {
    width: 18px;
    height: 18px;
    fill: white !important;
    color: white !important;
    z-index: 2;
    position: relative;
    display: block;
    pointer-events: none;
}

.qty-btn svg path {
    fill: white !important;
    color: white !important;
}

.qty-btn.minus {
    margin-right: 4px;
}

.qty-btn.plus {
    margin-left: 4px;
}

.quantity {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    min-width: 40px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 71, 218, 0.1), rgba(255, 107, 230, 0.15));
    border: 2px solid rgba(255, 71, 218, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 218, 0.1);
}

.product-card.selected .quantity {
    background: linear-gradient(145deg, rgba(255, 71, 218, 0.2), rgba(255, 107, 230, 0.25));
    border-color: rgba(255, 71, 218, 0.4);
    color: #FF47DA;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 71, 218, 0.2);
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.order-summary h3 {
    color: #FF47DA;
    margin-bottom: 15px;
}

.total-amount {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    font-size: 18px;
    color: #FF47DA;
}

/* Location Section */
.location-section {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-btn {
    padding: 12px 20px;
    background: #FF47DA;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #c2185b;
}

#map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.selected-location {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.selected-location h4 {
    color: #FF47DA;
    margin-bottom: 8px;
}

/* Confirmation Section */
.confirmation-content {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #4caf50;
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.tracking-info {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.tracking-number {
    font-size: 36px;
    font-weight: bold;
    color: #FF47DA;
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 15px 0;
    letter-spacing: 3px;
}

.next-steps {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: left;
}

.next-steps h4 {
    color: #FF47DA;
    margin-bottom: 15px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.final-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Tracking Results */
.tracking-results {
    margin-top: 30px;
}

.order-result {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.order-result h4 {
    color: #FF47DA;
    margin-bottom: 10px;
}

.order-result p {
    margin: 5px 0;
}

.order-items-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.order-items-list h5 {
    margin-bottom: 10px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sns-catering-container {
        margin: 10px;
        padding: 15px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 2em;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .sns-btn {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .final-actions {
        flex-direction: column;
    }
    
    .sns-progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
    }
    
    .step-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tracking-number {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .search-box {
        flex-direction: column;
    }
}

/* Categories Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.15);
    border-color: #FF47DA;
}

.category-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

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

.category-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.category-placeholder.bubble-teas {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.category-placeholder.smoothies {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.category-placeholder.desserts {
    background: linear-gradient(135deg, #ffd89b, #19547b);
}

.category-placeholder.milkshakes {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.category-info h3 {
    color: #FF47DA;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.category-info p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.products-header h2 {
    color: #FF47DA;
    margin: 0;
}

.products-header .sns-btn {
    padding: 8px 16px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
