/* 注文フォーム専用CSS */

/* ヘッダー部分 */
.ptogo-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.ptogo-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="60" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.12)"/></svg>');
    pointer-events: none;
}

.ptogo-header h1 {
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.ptogo-header p {
    position: relative;
    z-index: 2;
}

/* カード基本スタイル */
.uk-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.uk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.uk-card.out-of-stock {
    opacity: 0.65;
    filter: grayscale(30%);
}

.uk-card.out-of-stock:hover {
    transform: none;
}

/* 商品画像エリア */
.uk-card-media-top {
    position: relative;
    overflow: hidden;
}

.uk-card-media-top img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.uk-card:hover .uk-card-media-top img {
    transform: scale(1.08);
}

/* 在庫表示 */
.uk-badge-danger {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* 売り切れオーバーレイ */
.uk-overlay {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(2px);
}

.uk-overlay p {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 商品情報エリア */
.uk-card-body {
    padding: 1.2rem;
}

.uk-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #2c3e50;
}

.menu-description {
    min-height: 2.5rem;
    color: #7f8c8d;
    line-height: 1.4;
}

/* 価格表示 */
.ptogo-price-section {
    margin-top: 0.8rem;
}

.ptogo-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
}

.ptogo-price-unit {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-left: 2px;
}

.ptogo-tax-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-left: 5px;
}

.ptogo-stock-info {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 2px;
}

/* 数量コントロール */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control .uk-button {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid #ddd;
    background: white;
    color: #7f8c8d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control .uk-button:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
    transform: scale(1.1);
}

.quantity-control .uk-button:active {
    transform: scale(0.95);
}

.qty-input {
    width: 50px !important;
    text-align: center;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.qty-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 検索バー */
.uk-search {
    position: relative;
}

.uk-search-input {
    border-radius: 25px;
    border: 2px solid #e1e8ed;
    padding: 12px 20px 12px 45px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.uk-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.uk-search-icon {
    left: 15px;
    color: #95a5a6;
}

/* 浮遊カート */
.floating-cart {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart h4 {
    color: #2c3e50;
    font-weight: 600;
}

.floating-cart .uk-button-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.floating-cart .uk-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* モバイルカートボタン */
.mobile-cart-button {
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

.mobile-cart-button .uk-button {
    border-radius: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* アニメーション */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes itemAdded {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    }

    100% {
        transform: scale(1);
    }
}

.cart-updated {
    animation: cartPulse 0.3s ease;
}

.item-added {
    animation: itemAdded 0.5s ease;
}

/* 売り切れ商品 */
.out-of-stock-label {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* レスポンシブ調整 */
@media (max-width: 960px) {
    .floating-cart {
        display: none !important;
    }

    .ptogo-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1.5rem 0;
    }

    .uk-card-body {
        padding: 1rem;
    }

    .quantity-control .uk-button {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 640px) {
    .ptogo-header h1 {
        font-size: 1.8rem;
    }

    .uk-card-title {
        font-size: 1rem;
    }

    .menu-description {
        min-height: auto;
        font-size: 0.9rem;
    }

    .quantity-control {
        gap: 6px;
    }

    .qty-input {
        width: 45px !important;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {

    .uk-card,
    .uk-card-media-top img,
    .quantity-control .uk-button,
    .floating-cart .uk-button-primary {
        transition: none;
    }

    .cart-updated,
    .item-added {
        animation: none;
    }
}

/* フォーカス可視性 */
.uk-button:focus,
.qty-input:focus,
.uk-search-input:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .uk-card {
        border: 2px solid #000;
    }

    .quantity-control .uk-button {
        border-color: #000;
    }

    .uk-search-input {
        border-color: #000;
    }
}