:root {
    --ios-bg: #f5f6fa;
    --ios-glass: rgba(255, 255, 255, 0.75);
    --ios-border: rgba(0, 0, 0, 0.06);
    --ios-accent: #007aff;
    --ios-placeholder: #d1d5db;
}

html, body {
    min-height: 100%;
}

html {
    background: linear-gradient(180deg, #f7f8fc, #eef1f6);
    background-attachment: fixed;
}

body {
    background: linear-gradient(180deg, #f7f8fc, #eef1f6);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.brand-link {
    min-width: 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
}

.glass {
    background: var(--ios-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--ios-border);
}

.ios-shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.rounded-5 {
    border-radius: 1.5rem;
}

.btn-ios {
    background: var(--ios-accent);
    color: #fff;
    border-radius: 12px;
    /* padding: 12px 20px; */
    font-weight: 500;
}

.btn-ios-outline {
    border: 1px solid var(--ios-border);
    background: #fff;
    border-radius: 12px;
}

footer {
    box-shadow: none;
    background: linear-gradient(180deg, #f7f8fc, #eef1f6);
}

.select2-container {
    font-size: 16px;
}

.select2-container--default .select2-selection--single {
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--ios-border);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 0 48px 0 18px;
    display: flex;
    align-items: center;

    transition: all .2s ease;
}

.select2-selection__rendered {
    color: #111;
    padding: 0 !important;
    line-height: 1.2;
}

.select2-container--default
.select2-selection--single
.select2-selection__placeholder {
    color: var(--ios-placeholder) !important;
    opacity: 1;
}

.form-control::placeholder,
.form-select::placeholder,
.qty-input::placeholder,
.search-input-ios::placeholder,
.select2-search__field::placeholder {
    color: var(--ios-placeholder) !important;
    opacity: 1;
}

.select2-selection__arrow {
    width: 44px;
    height: 100%;
    right: 0;
    top: 0;
}

.select2-selection__arrow b {
    display: none;
}

.select2-selection__arrow::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: translateY(-50%) rotate(45deg);
    transition: transform .2s ease;
}

.select2-container--open
.select2-selection--single {
    border-color: var(--ios-accent);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, .15);
}

.select2-container--open
.select2-selection__arrow::after {
    transform: translateY(-50%) rotate(-135deg);
}

.select2-container--disabled .select2-selection--single {
    background: #f1f5f9;
    color: #9ca3af;
}

.select2-dropdown {
    border-radius: 20px;
    border: 1px solid var(--ios-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    padding: 8px 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .12);
    animation: ios-dropdown .18s ease;
}

@keyframes ios-dropdown {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.select2-search--dropdown {
    padding: 8px 12px;
}

.select2-search__field {
    border-radius: 14px;
    border: 1px solid var(--ios-border);
    padding: 10px 14px;
    font-size: 15px;
}

.select2-results__option {
    padding: 12px 18px;
    border-radius: 12px;
    margin: 4px 8px;
    transition: background .15s ease;
}

.select2-results__option--highlighted {
    background: rgba(0, 122, 255, .12);
    color: #000;
}

.select2-results__option--selected {
    background: rgba(0, 122, 255, .18);
    font-weight: 500;
}

.select2-container *:focus {
    outline: none;
}

@media (max-width: 768px) {
    .select2-container {
        font-size: 16px;
    }
}

.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
}

.hero-spot {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, rgba(0,122,255,.18), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(52,199,89,.16), transparent 55%),
        radial-gradient(circle at 60% 70%, rgba(88,86,214,.16), transparent 60%);
    border-radius: 50%;
    filter: blur(2px);
}

.badge-ios {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.1);
    color: #0a84ff;
    font-weight: 600;
    font-size: 14px;
}

.wholesale-price-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(52, 199, 89, 0.14);
    color: #138a42;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.price-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.search-input-ios {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ios-border);
    padding-left: 42px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
}

.content-card {
    background: rgba(255,255,255,.82);
}

.product-card {
    border: 1px solid var(--ios-border);
    transition: transform .15s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.product-thumb {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f2f4f8, #ffffff);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--ios-border);
}

.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.qty-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qty-group .btn {
    padding: 10px 14px;
    min-height: 44px;
    line-height: 1;
}

.qty-input {
    width: 80px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--ios-border);
    padding: 10px 12px;
    text-align: center;
    background: rgba(255,255,255,.92);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.list-card {
    border: 1px solid var(--ios-border);
    transition: transform .1s ease, box-shadow .15s ease;
}

.list-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.list-thumb {
    width: 90px;
    height: 90px;
    border-radius: 18px;
}

.product-gallery {
    background: rgba(255,255,255,.9);
    border: 1px solid var(--ios-border);
}

.product-gallery img {
    width: 100%;
    object-fit: contain;
}

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #6b7280;
}

.empty-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.skeleton-card {
    height: 160px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
