:root {
    --tt-primary: #0480e6;
    --tt-primary-dark: #0567b8;
    --tt-accent: #f2792a;
    --tt-bg: #f7f7f5;
}

body {
    background-color: var(--tt-bg);
}

.app-navbar {
    background-color: var(--tt-primary);
}

.app-navbar .navbar-brand {
    color: #fff;
}

.app-subnav {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.header-geo {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
}

.header-geo-label {
    font-size: 0.7rem;
    opacity: 0.85;
}

.header-geo-value {
    font-size: 0.82rem;
    font-weight: 600;
}

.header-geo-clear {
    color: #fff;
    opacity: 0.75;
    text-decoration: none;
    margin-left: 0.25rem;
}

.header-geo-clear:hover {
    opacity: 1;
}

.header-geo-btn {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    white-space: nowrap;
}

.header-geo-btn:hover {
    background-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.search-pill {
    display: flex;
    align-items: stretch;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    overflow: hidden;
    min-width: 0;
}

.search-pill-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.search-pill-btn {
    flex: 0 0 auto;
    border: none;
    background-color: var(--tt-bg);
    color: var(--tt-primary);
    padding: 0 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-pill-btn:hover {
    background-color: #ebebe8;
}

.btn-primary {
    background-color: var(--tt-primary);
    border-color: var(--tt-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tt-primary-dark);
    border-color: var(--tt-primary-dark);
}

.hero {
    background: linear-gradient(180deg, rgba(4, 128, 230, 0.08), transparent);
    border-radius: 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--tt-primary);
}

.profile-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    overflow: hidden;
}

.profile-cover {
    height: 180px;
    background-color: #dde3ea;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover-placeholder {
    background-image: linear-gradient(135deg, var(--tt-primary), var(--tt-accent));
}

.profile-cover .btn-edit-profile {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.profile-header {
    padding: 0 1.5rem 1.5rem;
    margin-top: -56px;
}

.profile-avatar-wrap {
    display: inline-block;
    position: relative;
}

.profile-header-avatar {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    background-color: #fff;
    display: block;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
}

.nav-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
}

.app-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

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

.product-card-img {
    height: 180px;
    object-fit: contain;
    background-color: #f1f1ef;
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wizard-steps a {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background-color: #eef2f1;
    color: var(--tt-primary-dark);
    text-decoration: none;
    font-size: 0.85rem;
}

.wizard-steps a.active {
    background-color: var(--tt-primary);
    color: #fff;
}

.product-main-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background-color: #f1f1ef;
}

.chat-window {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0.75rem;
}

.chat-bubble {
    align-self: flex-start;
    background-color: #eef2f1;
    border-radius: 1rem 1rem 1rem 0.25rem;
    padding: 0.5rem 0.9rem;
    max-width: 75%;
}

.chat-bubble.mine {
    align-self: flex-end;
    background-color: var(--tt-primary);
    color: #fff;
    border-radius: 1rem 1rem 0.25rem 1rem;
}

.offer-card {
    align-self: flex-start;
    background-color: #fff7ec;
    border: 1px solid var(--tt-accent);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    max-width: 85%;
}

.offer-card.mine {
    align-self: flex-end;
}

.foto-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.js-product-thumb {
    cursor: pointer;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}

.js-product-thumb:hover {
    border-color: #c8ccd0;
}

.foto-thumb-active {
    border-color: var(--tt-primary);
}

.photo-dropzone {
    position: relative;
    border: 2px dashed #cfd4d1;
    border-radius: 0.75rem;
    background-color: #fafbfa;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.photo-dropzone:hover {
    border-color: var(--tt-primary);
}

.photo-dropzone-dragover {
    border-color: var(--tt-primary);
    background-color: rgba(4, 128, 230, 0.06);
}

.photo-dropzone-disabled {
    cursor: default;
    opacity: 0.6;
}

.photo-dropzone-count {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.photo-dropzone-icon {
    color: var(--tt-primary);
    margin-bottom: 0.5rem;
}

.photo-dropzone-link {
    color: var(--tt-primary);
    text-decoration: underline;
}

.photo-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.photo-slot {
    width: 110px;
    height: 110px;
    border-radius: 0.6rem;
    position: relative;
    overflow: hidden;
}

.photo-slot-filled {
    border: 1px solid #e2e2e2;
}

.photo-slot-filled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-slot-badge {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    background-color: rgba(25, 135, 84, 0.9);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
}

.photo-slot-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.photo-slot-action-btn {
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.photo-slot-action-btn:hover {
    background-color: #fff;
}

.photo-slot-action-danger {
    color: #dc3545;
}

.photo-slot-empty {
    border: 2px dashed #d9dcda;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #fbfcfb;
}

.photo-slot-empty:hover {
    border-color: var(--tt-primary);
}

.photo-slot-plus {
    font-size: 1.75rem;
    color: #b7bcb9;
    line-height: 1;
}
