/* phone.php page specific styles */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 13px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breadcrumb a { color: #2563eb; font-weight: 600; }
.breadcrumb span { color: #667085; }

/* ---- Phone Layout ---- */
.phone-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.phone-gallery {}

.phone-main-img {
    aspect-ratio: 4/3;
    background: #f2f5fa;
    border-radius: 22px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eaecf0;
}

.phone-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 28px;
}

.img-placeholder {
    font-size: 90px;
    opacity: .5;
}

/* Phone info */
.phone-brand-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-info h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #101828;
    margin: 8px 0;
    line-height: 1.3;
}

.phone-variant {
    color: #667085;
    font-size: 14px;
    margin-bottom: 20px;
}

.price-block {
    background: linear-gradient(120deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.price-from {
    display: block;
    font-size: 12px;
    color: #667085;
    margin-bottom: 4px;
}

.big-price {
    font-size: 36px;
    font-weight: 800;
    color: #101828;
}

.big-price small {
    font-size: 16px;
    color: #667085;
    margin-right: 4px;
}

.offer-count {
    display: block;
    font-size: 13px;
    color: #2563eb;
    font-weight: 700;
    margin-top: 4px;
}

.phone-desc {
    color: #344054;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Specs */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spec-item {
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 11px;
    color: #667085;
    font-weight: 600;
}

.spec-val {
    font-size: 13px;
    color: #101828;
    font-weight: 700;
}

/* ---- Section Cards ---- */
.section-card {
    background: white;
    border: 1px solid #eaecf0;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(16,24,40,.05);
}

.section-card-header {
    margin-bottom: 20px;
}

.section-card-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #101828;
    margin-bottom: 4px;
}

.section-card-header p {
    color: #667085;
    font-size: 13px;
}

/* ---- Flash Deals Strip ---- */
.deals-strip {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.strip-deal {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    background: linear-gradient(120deg, #eff6ff, #fff);
    position: relative;
    overflow: hidden;
}

.strip-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 0 0 0 14px;
}

.strip-body { flex: 1; }
.strip-body h3 { font-size: 15px; font-weight: 800; color: #101828; margin-bottom: 4px; }
.strip-body p  { font-size: 12px; color: #667085; margin-bottom: 8px; }

.strip-prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strip-prices s { color: #9ca3af; font-size: 13px; }
.strip-prices strong { color: #2563eb; font-size: 20px; font-weight: 800; }

/* ---- Offers List ---- */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.offer-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1.5px solid #eaecf0;
    border-radius: 16px;
    background: white;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}

.offer-row:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37,99,235,.1);
}

.offer-best {
    border-color: #34d399;
    background: linear-gradient(120deg, #f0fdf4, #fff);
}

.best-tag {
    position: absolute;
    top: -1px;
    right: 18px;
    background: #16a34a;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 0 0 10px 10px;
}

.offer-shop {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.shop-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eaecf0;
}

.shop-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
}

.offer-shop strong {
    display: block;
    font-size: 14px;
    color: #101828;
    font-weight: 800;
}

.shop-address {
    display: block;
    font-size: 12px;
    color: #667085;
    margin-top: 2px;
}

.offer-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cond-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.cond-new         { background: #f0fdf4; color: #15803d; }
.cond-used        { background: #fffbeb; color: #b45309; }
.cond-refurbished { background: #eff6ff; color: #1d4ed8; }

.offer-note {
    font-size: 12px;
    color: #667085;
}

.offer-price-col {
    flex-shrink: 0;
    text-align: left;
}

.offer-price {
    font-size: 22px;
    font-weight: 800;
    color: #101828;
}

.offer-price small {
    font-size: 13px;
    color: #667085;
    margin-right: 3px;
}

/* ---- Order Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16,24,40,.55);
    backdrop-filter: blur(6px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
    background: white;
    border-radius: 22px;
    padding: 32px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: modal-in .25s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #eaecf0;
    background: white;
    font-size: 14px;
    color: #667085;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s;
}

.modal-close:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

.modal-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #101828;
    margin-bottom: 6px;
}

.modal-sub {
    color: #667085;
    font-size: 13px;
    margin-bottom: 20px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #101828;
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #eaecf0;
    border-radius: 10px;
    font-size: 14px;
    color: #101828;
    transition: border-color .2s;
    font-family: inherit;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Responsive */
@media (max-width: 900px) {
    .phone-layout {
        grid-template-columns: 1fr;
    }
    .phone-main-img { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 650px) {
    .offer-row { flex-wrap: wrap; }
    .offer-shop { min-width: unset; width: 100%; }
    .offer-price-col { margin-right: auto; }
    .specs-grid { grid-template-columns: 1fr; }
}
