@tailwind base;
@tailwind components;
@tailwind utilities;

.site-header {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.breadcrumb-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}
.newsletter {
    background: #ececec;
}
.site-footer {
    background: #0a0a0a;
    color: #e5e5e5;
}
.product-card-img {
    background: transparent;
    aspect-ratio: 3 / 5;
    position: relative;
    overflow: hidden;
}
.product-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.04);
}
.card-checkout-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #111111;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, background .15s ease, color .15s ease;
}
.product-card:hover .card-checkout-btn,
.card-checkout-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}
.card-checkout-btn:hover {
    background: #111111;
    color: #ffffff;
}
.card-checkout-btn:disabled {
    opacity: .5;
    cursor: wait;
}
@media (hover: none) {
    .card-checkout-btn {
        opacity: 1;
        transform: none;
    }
}
.quickadd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 10000;
}
.quickadd-overlay.open { opacity: 1; visibility: visible; }
.quickadd-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: min(420px, calc(100vw - 2rem));
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    z-index: 10001;
}
.quickadd-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}
.quickadd-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #525252;
    transition: background .15s, color .15s;
}
.quickadd-close:hover { background: #f5f5f5; color: #111111; }
.quickadd-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2.25rem;
    margin-bottom: 1.1rem;
}
.quickadd-head img {
    width: 64px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}
.quickadd-name {
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    line-height: 1.35;
}
.quickadd-price {
    margin-top: .25rem;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
}
.quickadd-field { margin-bottom: 1rem; }
.quickadd-label {
    display: block;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: .5rem;
}
.quickadd-label strong {
    color: #111111;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.quickadd-colors,
.quickadd-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.quickadd-color {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #d4d4d4;
    background: #ffffff;
    padding: .35rem .6rem;
    font-size: 13px;
    color: #404040;
    transition: border-color .15s, color .15s;
}
.quickadd-color:hover { border-color: #737373; }
.quickadd-color.active { border-color: #111111; color: #111111; }
.quickadd-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .08);
}
.quickadd-size {
    min-width: 40px;
    padding: .4rem .65rem;
    border: 1px solid #d4d4d4;
    background: #ffffff;
    font-size: 13px;
    color: #404040;
    transition: border-color .15s, background .15s, color .15s;
}
.quickadd-size:hover:not(:disabled) { border-color: #737373; }
.quickadd-size.active { background: #111111; border-color: #111111; color: #ffffff; }
.quickadd-size:disabled {
    color: #d4d4d4;
    border-color: #e5e5e5;
    cursor: not-allowed;
    text-decoration: line-through;
}
.quickadd-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.quickadd-qty-row .quickadd-label { margin-bottom: 0; }
.quickadd-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d4d4d4;
}
.quickadd-qty button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #111111;
    transition: background .15s;
}
.quickadd-qty button:hover:not(:disabled) { background: #f5f5f5; }
.quickadd-qty button:disabled { color: #d4d4d4; cursor: not-allowed; }
.quickadd-qty input {
    width: 40px;
    height: 34px;
    border: none;
    text-align: center;
    font-size: 14px;
    color: #111111;
    -moz-appearance: textfield;
}
.quickadd-qty input::-webkit-outer-spin-button,
.quickadd-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quickadd-hint {
    margin: 0 0 .75rem;
    font-size: 13px;
    color: #b91c1c;
}
.quickadd-submit {
    width: 100%;
    padding: .9rem 1rem;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: .02em;
    transition: opacity .15s;
}
.quickadd-submit:hover:not(:disabled) { opacity: .85; }
.quickadd-submit:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 640px) {
    .quickadd-modal {
        top: auto;
        bottom: 0;
        left: 0;
        transform: translateY(16px);
        width: 100%;
        max-width: none;
        max-height: 88vh;
        padding: 1.35rem 1.25rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    .quickadd-modal.open { transform: translateY(0); }
}
.filter-item input[type="radio"],
.filter-item input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid #d4d4d4;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}
.filter-item input[type="radio"]:hover,
.filter-item input[type="checkbox"]:hover {
    border-color: #737373;
}
.filter-item input:checked {
    border-color: #111111;
    background: #111111;
    box-shadow: none;
}
.filter-item label {
    line-height: 1.3;
}
